Has anyone got any decent test data for this problem?
I'm getting WA and have no idea why! My code appears to work for all of the cases I've been able to come up with, but fails when I submit it.
These are all cases for which my code works properly:
0 0 10 10 1 # Tree can't fall anywhere - 0 ...
Search found 4 matches
- Thu Sep 20, 2012 12:13 am
- Forum: Volume 10 (1000-1099)
- Topic: 1003 - Can't Cut Down the Forest for the Trees
- Replies: 2
- Views: 4530
- Sat Nov 19, 2011 5:00 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10085 - The most distant state
- Replies: 10
- Views: 5581
Re: 10085 - The Most Distant State
The discussion above is very dependent on how you interpret the problem statement.
There is nowhere in the problem statement that says that the integers on the tiles have to be either in the range 1-8 or, more importantly, unique numbers.
1 1 1
1 1 1
0 1 1
has a most distant state of
1 1 0
1 1 1 ...
There is nowhere in the problem statement that says that the integers on the tiles have to be either in the range 1-8 or, more importantly, unique numbers.
1 1 1
1 1 1
0 1 1
has a most distant state of
1 1 0
1 1 1 ...
- Sat Nov 12, 2011 2:43 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 125640
Re: 10189-Minesweeper :WA
Your code produces the same output as mine (which works), save for an extra blank line after the very last test case in your code.
Adrian
Adrian
- Thu Nov 10, 2011 3:26 am
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 125640
Re: 10189 - Minesweeper
This!
Adrian
Adrian
Zopper wrote:Alright, I'm getting RE (runtime) errors, anyone see anything wrong here?
Code: Select all
delete field;