Блог пользователя shishir.hstu

Автор shishir.hstu, история, 6 лет назад, По-английски

I am getting WA this problem but could not find any critical case. Give some case. Thanks advance. . problem: https://uva.onlinejudge.org/external/125/12501.pdf my code: https://pastebin.com/Xk8mMJPr

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

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

Won't try to read your code as it is too long and messy. I will just give some general advice for debugging (as usual):

  1. Have you tried uDebug for test cases?
  2. Have you tried random test case + brute force answer generator?
  3. Have you tried extreme cases?
  4. Have you tried testing each of your methods in isolation?