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

Автор shad_kidwai, история, 2 года назад, По-английски

I see the input in the test case is getting trimmed

submission

https://imgur.com/wHpnUyD

1708A — 30

I really would like to know, where my code went wrong.

problem is 1708A — 30

and pretest case is 2.

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

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

You can't, however you can use cfstress.com which generates a test case that makes your code fail

»
2 года назад, # |
Rev. 3   Проголосовать: нравится +1 Проголосовать: не нравится

For example, if your code failed in 143 test case u can make some int f = 1, and after each test case increase f, when f will become 143 output input (if input is 1 3 5 output "1,3,5"). This helps if there was not any test before which has more testcase than where your code failed (in above example 143) because code will fail before. Also I recommend to check editorial, its faster way to understand your mistake.