i've got the program working but the only problem is
do they require the output after they input all the grids and enter the final 0, 0 or they want the final grid to be displayed after each and every grid's 0,0 is encounter ????
After we encounter the "0, 0", we must check 2 condition:
1. If the game won, we must output : "Game Won".
2. Otherwise you must output the final configuation of that game.
Well ashutoshkorde, that doesn't realy matter, because the judge first lets you complete the program, collecting all output in one big text file, and then checks this file to determine the verdict. So it's realy up to you how and in which order you read input, process data and write output, as long as the resulting output file is correct.
(The actual situation is a little more complicated, because the running program can be interrupted by errors, but that is the general idea).
I wrote an implementation for 339 problem. I tried to submit it but the Onlid Jutge answers me Wrong Answer. For this reason, I want a sample output from a program that the online Judge accepts. Thanks.[/cpp]
Why did you not search this forum before posting this ? This problem has our thread - look at it ...
DM
If you really want to get Accepted, try to think about possible, and after that - about impossible ... and you'll get, what you want ....
Born from ashes - restarting counter of problems (800+ solved problems)
I've figured out that I actually had a presentation error - they want spaces printed so that the size of the game state is always the same, even if most of the numbers are gone...
minskcity wrote:I've figured out that I actually had a presentation error - they want spaces printed so that the size of the game state is always the same, even if most of the numbers are gone...
I still don't understand. Can u help me about this?? I want to know about the output pattern. Anybody can help??
Thankx minskcity, but I m still getting WA.
Can u tell me what is the output for the following input set...
( If u don't mind please use * instead of space)