I wrote a solution to Problem G of Educational Round 27 and it passed all the tests.Later I found that I assumed that the graph contained at most 100000 cycles but it was wrong.So I generated a test case with more than 100000 cycles to hack my solution. However,it wasn't accepted by the hacking system because my test case is larger than 256KB. So could anyone help me with the issue? Thanks a lot!
You can send the generator which will print your test to stdout.
Note, that printed test will go through validator, which does not accept extra spaces (usually at the end of the line), empty lines and test should end with newline.
OK,thanks a lot!