Search found 2 matches

by blittman
Sat Sep 19, 2009 4:11 am
Forum: Volume 100 (10000-10099)
Topic: 10037 - Bridge
Replies: 84
Views: 37589

Re: 10037 - Bridge

Here is some test data with correct output for those in need (strategies may vary). Don't forget about cases with 1, 2, or 3 people :)

Input:

5

6
1
5
10
10
100
100

6
1
10
10
10
100
100

6
4
2
3
3
5
10

6
2
20
22
24
26
28

6
20
15
10
5
2
1


Output:

137
1 5
1
100 100
5
1 5
1
10 10
5
1 5

153 ...
by blittman
Mon Aug 31, 2009 1:17 am
Forum: Volume 101 (10100-10199)
Topic: 10189 - Minesweeper
Replies: 418
Views: 124945

Re: 10189 - Minesweeper

If your test cases work but you're getting WA, make sure your output is in this format (put a blank line ONLY BETWEEN output fields). It got accepted for me in Java:

IRO:Minesweeper Brian$ java Main
4 4
*...
....
..*.
....
3 3
*..
.*.
...
0 0
Field #1:
*100
1211
01*1
0111

Field #2:
*21
2*1
111
IRO ...

Go to advanced search