My question in title .I will be glad if you help me.
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3676 |
| 2 | Kevin114514 | 3659 |
| 3 | jiangly | 3640 |
| 4 | turmax | 3450 |
| 5 | tourist | 3382 |
| 6 | strapple | 3360 |
| 7 | Um_nik | 3354 |
| 8 | squareOf105 | 3348 |
| 9 | maroonrk | 3312 |
| 10 | idontwannadothis…e | 3191 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 156 |
| 2 | nik_exists | 151 |
| 3 | maspy | 149 |
| 4 | AmShZ | 145 |
| 5 | Um_nik | 143 |
| 6 | Errichto | 139 |
| 7 | BledDest | 136 |
| 8 | adamant | 135 |
| 9 | maroonrk | 132 |
| 10 | cry | 130 |
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.exein the current working directory (it should read fromstdinand 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 printsokin the very end.