My question in title .I will be glad if you help me.
№ | Пользователь | Рейтинг |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3821 |
3 | Benq | 3736 |
4 | Radewoosh | 3631 |
5 | jqdai0815 | 3620 |
6 | orzdevinwang | 3529 |
7 | ecnerwala | 3446 |
8 | Um_nik | 3396 |
9 | ksun48 | 3388 |
10 | gamegame | 3386 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 164 |
1 | maomao90 | 164 |
3 | Um_nik | 163 |
4 | atcoder_official | 161 |
5 | -is-this-fft- | 158 |
6 | awoo | 157 |
7 | adamant | 156 |
8 | TheScrasse | 154 |
8 | nor | 154 |
10 | Dominater069 | 153 |
My question in title .I will be glad if you help me.
Название |
---|
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.