Tuesday, 15 April 2014

online compilation - Invidual Test cases checking like InterviewStreet.com -



online compilation - Invidual Test cases checking like InterviewStreet.com -

i built own online judge hosting intra-college programming contest.the justice similar , spoj,codechef,uva,etc. @ present, online justice utilize same logic above 3 websites checking whether, reply correct(accepted) or wrong.that is, runs user programme against standard official test cases , compares output file generated user programme against standard(expected) output file.when user output file matches expected output file , verdict correct answer else wrong answer.

now, want add together feature of individual test case scoring system interviewstreet.com.the user awarded point on basis of number of test-cases passed(accepted).[refer above pic]. not able think of efficient method/way implementing it.

my initial intrusion is:

put each test cases(assume there total t test-cases) inputs in t separate input files(in1.txt,in2.txt,in3.txt,...int.txt) , expected outputs in t separate files(out1.txt,out2.txt,out3.txt,....outt.txt) , run user programme t times, 1 each input test case(input files).

but doesn't sound good.when number of test-cases t large, compilation server slow user programme has run t times.

please suggest me fast , efficient way of implementing individual test-case scoring scheme .

you can utilize our tool free :)

online-compilation

No comments:

Post a Comment