lib/judge_system.rb in judge_system-1.3.0 vs lib/judge_system.rb in judge_system-1.4.0
- old
+ new
@@ -27,10 +27,10 @@
def self.run lang, code, input, time
path = File.expand_path('../', __FILE__ )
sys = File.open("#{path}/compile_systems/#{lang}_system.cpp", "r").read
data = nil
spliter = "\n<$><*><$>\n"
- stdin = code + spliter + input + spliter + time.to_s
+ stdin = code + spliter + input + spliter + ("%f" % time)
begin
data = compile( compiler: "gcc-head", code: sys, stdin: stdin )
rescue
return 'RE'
end