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