edsa's blog

By edsa, history, 4 years ago, In English

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.

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

»
4 years ago, # |
  Vote: I like it +13 Vote: I do not like it

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

  • »
    »
    4 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    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 years ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      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.