judge_system 1.5.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/compile_systems/c_system.rb +1 -1
- data/lib/compile_systems/cpp_system.rb +1 -1
- data/lib/compile_systems/go_system.rb +1 -1
- data/lib/compile_systems/py_system.rb +1 -1
- data/lib/compile_systems/rb_system.rb +1 -1
- data/lib/judge_system/version.rb +1 -1
- data/lib/judge_system.rb +1 -1
- data/lib/zlib_input.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b564b3e767e4dab11a8c2724adecb3b264c2605b
|
4
|
+
data.tar.gz: 1c18db1c164a55947af759ac3c50cbd83029e067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c49634a4566bc35769d127a2eff6db94b7d771c0b7ca075093444286d9b330b2478a3765a9c8d6eac2cd312cc273fe9f7e10fd3babfaf24b4ef95f6879f022e9
|
7
|
+
data.tar.gz: 12de0241a766e12778ed148b30aa73e5b646304a84833479bc74320b4a3b76127c3b1bc765fd856036224da50a0435d43e6a2df8bb912d43de038a53a9d2d1ac
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'zlib'
|
2
2
|
require 'base64'
|
3
|
-
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\n")
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
4
|
code = stdin[0]
|
5
5
|
input = stdin[1]
|
6
6
|
time = stdin[2]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'zlib'
|
2
2
|
require 'base64'
|
3
|
-
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\n")
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
4
|
code = stdin[0]
|
5
5
|
input = stdin[1]
|
6
6
|
time = stdin[2]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'zlib'
|
2
2
|
require 'base64'
|
3
|
-
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\n")
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
4
|
code = stdin[0]
|
5
5
|
input = stdin[1]
|
6
6
|
time = stdin[2]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'zlib'
|
2
2
|
require 'base64'
|
3
|
-
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\n")
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
4
|
code = stdin[0]
|
5
5
|
input = stdin[1]
|
6
6
|
time = stdin[2]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'zlib'
|
2
2
|
require 'base64'
|
3
|
-
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\n")
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
4
|
code = stdin[0]
|
5
5
|
input = stdin[1]
|
6
6
|
time = stdin[2]
|
data/lib/judge_system/version.rb
CHANGED
data/lib/judge_system.rb
CHANGED
@@ -29,7 +29,7 @@ module JudgeSystem
|
|
29
29
|
path = File.expand_path('../', __FILE__ )
|
30
30
|
sys = File.open("#{path}/compile_systems/#{lang}_system.rb", "r").read
|
31
31
|
data = nil
|
32
|
-
spliter = "<$><*><$>\n"
|
32
|
+
spliter = "\n<$><*><$>\n"
|
33
33
|
stdin = ZlibInput.zlib(code + spliter + input + spliter + ("%f" % time))
|
34
34
|
begin
|
35
35
|
data = compile( compiler: "ruby-head", code: sys, stdin: stdin )
|
data/lib/zlib_input.rb
CHANGED