AnPelec's blog

By AnPelec, 7 years ago, In English

Hello everyone!

During practising for programming competitions, I have solved some problems from various online competitions (like USACO). Sometimes, the test cases are provided if you want to test your solution on the actual test data.

And here's the problem: Usually when you download these test cases, you have a folder full of .ins and .outs. So one way to test your solution, is to take every test case and copy it to your file (or stdin), run the program and compare your output with the expected output.

What I am asking, is a way to test your program to all the test cases simultaneously and after the testing, you can go to another file that describes the performance of your program. i.e. Case #1: AC Case #2: WA Case #3: TLE (if it's possible to check execution time too that'd be great!) ...

I am sorry if there is already a similar topic at Codeforces, but I couldn't find anything on the Internet.

  • Vote: I like it
  • +8
  • Vote: I do not like it

7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

caide allows you to do this, but you could also write a simple bash/python/powershell script.

7 years ago, # |
Rev. 4   Vote: I like it 0 Vote: I do not like it

You may want to install some judge locally.

My suggestion would be Sharif Judge.
Website: (seems like it is currently unavailable)
GitHub: mjnaderi/Sharif-Judge

7 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Chortos-2 has written a tool relevant to this task:

It is also easy to write a small script or a Makefile that builds and runs the solution on all test files.