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.
# | User | Rating |
---|---|---|
1 | tourist | 3985 |
2 | jiangly | 3814 |
3 | jqdai0815 | 3682 |
4 | Benq | 3529 |
5 | orzdevinwang | 3526 |
6 | ksun48 | 3517 |
7 | Radewoosh | 3410 |
8 | hos.lyric | 3399 |
9 | ecnerwala | 3392 |
9 | Um_nik | 3392 |
# | User | Contrib. |
---|---|---|
1 | cry | 169 |
2 | maomao90 | 162 |
2 | Um_nik | 162 |
4 | atcoder_official | 161 |
5 | djm03178 | 158 |
6 | -is-this-fft- | 157 |
7 | adamant | 155 |
8 | awoo | 154 |
8 | Dominater069 | 154 |
10 | luogu_official | 150 |
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.
Name |
---|
Ensure that you reading from the input file, whose name is specified in the statements
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.
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.