My question in title .I will be glad if you help me.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3823 |
3 | Benq | 3738 |
4 | Radewoosh | 3633 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3390 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 160 |
4 | adamant | 160 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
8 | Dominater069 | 154 |
8 | nor | 154 |
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.