Sha256: 4b11227438642eff86b9fce0a698d06287e3c10642f5ef6216df7ed3346e05bc
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require 'zlib' require 'base64' stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("<$><*><$>\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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.5.2 | lib/compile_systems/go_system.rb |
judge_system-1.5.1 | lib/compile_systems/go_system.rb |