Do you use online-judge-tools? If not, it is valueable tool to try.
Your operation in competitive programming will become automated and the competition programming experience will be comfortable.
Good tutorial is here.
online-judge-tool seems simple, but if you execute, oj test --help
you can find about 20 command line options for oj test
.
Other subcommand (login
, download
and etc.) have many command line options.
Therefore, today I want to my favorite online-judge-tools features.
- Side-by-Side diff
This is very new feature.
And you
- Float error judge
Some problem requires floating point output. (ex. 2.500000) In many situation, relational and absolute error is allowed for these problems.
oj test
can handle these errors by -e
option.
If problem expectation 3
and your program outputs 3.00000001
$ oj t -c 'echo 3.00000001'
[*] 1 cases found
[*] sample-1
[x] time: 0.004793 sec
[-] WA
output:
3.00000001
expected:
3
In this situation, oj
recognize your output as "Wrong Answer". But if you indicated allowed error by -e
option,
$ oj t -c 'echo 3.00000001' -e 0.000001
[*] 1 cases found
[*] sample-1
[x] time: 0.004088 sec
[+] AC
Good, oj
result becomes "All Correct". Here, oj t -c 'echo 3.00000001' -e 1e-5
is equivalent with oj t -c 'echo 3.00000001' -e 0.000001
.
- MLE and TLE checking
Almost of problems
oj t -c './a.out' --mle 56 oj t -c './a.out' --tl2 2.5
oj test
- API
This is feature for developers.