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

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

Hello,

If you check this submission, you can see that according to codeforces, the input contains one testcase, but my program just reads the number of testcases and prints it and we can see a different result.

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

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

Ensure that you reading from the input file, whose name is specified in the statements

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Oh, thanks. Actually, I had never seen a problem in codeforces that used anything apart from standard input, and as the name is just below the title I didn't see it.

    • »
      »
      »
      4 года назад, # ^ |
        Проголосовать: нравится 0 Проголосовать: не нравится

      Yeah, I've made such an error several times in the gym as well :)

      As it turns out, it's really typical of older problems to have some input/output file rather than standard input/output.