Tuesday, April 9, 2013

10189 - Minesweeper


update, okay I get it, enter dimensions followed by the board and then [followed by the next dimension!] why?

Sample:


2 2
..
*.
3 3
Field #1:
11
*1
...
.*.
..*
1 1

Field #2:
111
1*2
12*
.
0 0

Field #3:
0


------------------

This problem drove me crazy because I'm wasn't getting the correct format for the output, eventually I gave up and submitted and it got accepted!. 


No comments:

Post a Comment