HappyLittlePony's blog

By HappyLittlePony, 6 years ago, In English

There are lot of competitions which do not allow to submit your solution after contest's end(CEOI,COCI,IOI...), but they publish test data. I think it is very hard to manually compare output data with diff and it would be much more simpler if there was program for that. Isn't there something like that? Isn't there a nice coder who could code that for us? :D :D Sorry for english.

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

»
6 years ago, # |
Rev. 2   Vote: I like it +9 Vote: I do not like it
  • »
    »
    6 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Thanks, I tried both of these judges but there are not CEOI tasks. I was asking if there is a judge(offline running on my computer) where i can put my test data and solution and it will give me the result(AC,WA,TLE).

»
6 years ago, # |
  Vote: I like it +8 Vote: I do not like it

Assuming that test data are *.in/*.out files:

for in_file in *.in
do
    etalon_file=${in_file%.in}.out
    out_file=${in_file%.in}.myout
    
    ./program <$in_file >$out_file && diff -w $etalon_file $out_file && echo "$in_file : AC" || echo "$in_file : WA"
done
»
6 years ago, # |
Rev. 3   Vote: I like it +4 Vote: I do not like it

Upreckon is a very advanced local testing system, which allows you to specify input data filenames with either Python code or regular expressions (for most of the tasks, you'll just specify a mask like 'test.#.in' and the list of possible values for #).

»
9 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Please help me!!! I have the very same issue, i want to upsolve problems from neerc.ifmo.ru/school and COCI, as they all have good editorials and are medium OI-style. They only provide I/O files, so i somehow need to test my programs. I tried installing DOMjudge, algohub/judge-engine and Openjudge, but failed.. All links to downloading Upreckon are down :( Or sb. have a copy of Upreckon? pls.