Блог пользователя Marco_L_T

Автор Marco_L_T, история, 7 лет назад, По-английски

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!

  • Проголосовать: нравится
  • +16
  • Проголосовать: не нравится

»
7 лет назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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.