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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70716c172749813213bc8aec306408fde58426e5
4
- data.tar.gz: 76748c0d666d74dc70eaa106b2630c56e2358737
3
+ metadata.gz: ba3f139032a07d9ecd980e4ff48da971e44ff90b
4
+ data.tar.gz: 68edac85951112a2271a3520095ca33538ff8a1a
5
5
  SHA512:
6
- metadata.gz: 40f992405f136a393b833f38e2ca07bced6d55a88773d4dd155f0e016b939a69d0a500fef475f7c4d18a20d2bfbb8504bc86c3c2446d7ba5de4b573638a8819b
7
- data.tar.gz: 9149876dc1a3e33f3bfdab5d14b7581fc01bf17524e2dcc25545ad53e1dc88d2b903c126989195a20bd39d153f64fbc578dd6249efc529e08ccc7745cf94e4f4
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"
@@ -1,3 +1,3 @@
1
1
  module JudgeSystem
2
- VERSION = "1.6.1"
2
+ VERSION = "1.6.2"
3
3
  end
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.1
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-27 00:00:00.000000000 Z
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