judge_system 1.6.1 → 1.6.2
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/swift_system.rb +19 -0
- data/lib/judge_system/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba3f139032a07d9ecd980e4ff48da971e44ff90b
|
4
|
+
data.tar.gz: 68edac85951112a2271a3520095ca33538ff8a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61e6e414e6d962a1338784b98eed2d27db8c78cac8f44048a19fcd9ea6b2a49c73ae36e8cdd5a8e7c03c1df34c01b1ac3a51b955a0ea369b7c49ad4d7884c39
|
7
|
+
data.tar.gz: ffa7e76dd59039997ae016acade1522869b046dab6e7ced59de2b8b2b4004901e3d835dee20bf2065368ba94552fdb98f452fe8a55b61ba5d97998dc002e223a
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'zlib'
|
2
|
+
require 'base64'
|
3
|
+
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
|
4
|
+
code = stdin[0]
|
5
|
+
input = stdin[1]
|
6
|
+
time = stdin[2]
|
7
|
+
|
8
|
+
File.open("./main.swift", "w") do |file|
|
9
|
+
file.puts code
|
10
|
+
file.close
|
11
|
+
end
|
12
|
+
|
13
|
+
File.open("./test.in", "w") do |file|
|
14
|
+
file.puts input
|
15
|
+
file.close
|
16
|
+
end
|
17
|
+
|
18
|
+
system "/opt/wandbox/swift-head/usr/bin/swiftc main.swift -o main"
|
19
|
+
system "timeout -s 9 " + time + " ./main < test.in"
|
data/lib/judge_system/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: judge_system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- getty104
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,6 +76,7 @@ files:
|
|
76
76
|
- lib/compile_systems/go_system.rb
|
77
77
|
- lib/compile_systems/py_system.rb
|
78
78
|
- lib/compile_systems/rb_system.rb
|
79
|
+
- lib/compile_systems/swift_system.rb
|
79
80
|
- lib/judge_system.rb
|
80
81
|
- lib/judge_system/version.rb
|
81
82
|
- lib/zlib_input.rb
|