Sha256: b3ead961d30b7f190887e87a954e7fd3fe44680b80b1e2e2743016933e30ff2d
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
require 'zlib' require 'base64' stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n") code = stdin[0] input = stdin[1] time = stdin[2] File.open("./main.go", "w") do |file| file.puts code file.close end File.open("./test.in", "w") do |file| file.puts input file.close end system "timeout -s 9 " + time + " /opt/wandbox/go-head/bin/go run main.go < test.in"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.6.2 | lib/compile_systems/go_system.rb |
judge_system-1.6.1 | lib/compile_systems/go_system.rb |
judge_system-1.6.0 | lib/compile_systems/go_system.rb |