Marco.L.Tsien's blog

By Marco.L.Tsien, history, 5 weeks ago, In English,

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!

 
 
 
 
  • Vote: I like it  
  • +16
  • Vote: I do not like it  

»
5 weeks ago, # |
  Vote: I like it +5 Vote: I do not like it

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.