My question in title .I will be glad if you help me.
# | 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 |
My question in title .I will be glad if you help me.
Name |
---|
Feel free to ask any questions you have about the script.
Here is how it works: suppose you have a compiled
solution.exe
in the current working directory (it should read fromstdin
and print tostdout
, no file I/O at all), as well as your tests:01.in
(first input),01.ans
(expected output for the first input),02.in
,02.ans
, ...,complex.in
,complex.ans
(it's not necessary for the test name to be a number). Now, if you save the script here astestall.cmd
(ortestall.bat
, whatever, I prefer the former), you can run it from command prompt and check its output.So, directory structure may go like this:
If you type the following in command prompt (
cmd.exe
), it should run the solution on all tests:It will test until the solution fails or its output (stored in
01.out
,02.out
,complex.out
) does not match the expected output. If something goes wrong, the script terminates. If everything goes well, it ends and printsok
in the very end.