My question in title .I will be glad if you help me.
№ | Пользователь | Рейтинг |
---|---|---|
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 |
Страны | Города | Организации | Всё → |
№ | Пользователь | Вклад |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 157 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
9 | nor | 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.