Description:
MERGED change set (408:410) from web/judge in branch combined-with-judge (fixed time_limit option bug) git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@411 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r73:34ddb0155d6f - - 1 file changed: 1 inserted, 1 deleted

@@ -34,13 +34,13
34 def copy_testcase(importing_test_dir,fname,dir,i)
34 def copy_testcase(importing_test_dir,fname,dir,i)
35 system("cp #{importing_test_dir}/#{fname}.in #{input_filename(dir,i)}")
35 system("cp #{importing_test_dir}/#{fname}.in #{input_filename(dir,i)}")
36 system("cp #{importing_test_dir}/#{fname}.sol #{answer_filename(dir,i)}")
36 system("cp #{importing_test_dir}/#{fname}.sol #{answer_filename(dir,i)}")
37 end
37 end
38
38
39 def process_options(options)
39 def process_options(options)
40 - i = 4
40 + i = 3
41 while i<ARGV.length
41 while i<ARGV.length
42 if ARGV[i]=='-t'
42 if ARGV[i]=='-t'
43 options[:time_limit] = ARGV[i+1].to_f if ARGV.length>i+1
43 options[:time_limit] = ARGV[i+1].to_f if ARGV.length>i+1
44 i += 1
44 i += 1
45 end
45 end
46 if ARGV[i]=='-m'
46 if ARGV[i]=='-m'
You need to be logged in to leave comments. Login now