My question in title .I will be glad if you help me.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3839 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | Geothermal | 3569 |
7 | cnnfls_csy | 3569 |
9 | ecnerwala | 3494 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 164 |
2 | maomao90 | 160 |
3 | -is-this-fft- | 159 |
4 | atcoder_official | 158 |
4 | cry | 158 |
4 | awoo | 158 |
7 | adamant | 155 |
8 | nor | 154 |
9 | TheScrasse | 153 |
10 | maroonrk | 152 |
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.