Sha256: 421188e236a975eda7e980cf88ba7dc0a707a2c4615993d09d51cd133ce5ffbe
Contents?: true
Size: 406 Bytes
Versions: 1
Compression:
Stored size: 406 Bytes
Contents
require 'zlib' File.open("./main.go", "w") do |file| loop{ str = gets.chomp.to_s break if str == "<$><*><$>" file.puts str } file.close end File.open("./test.in", "w") do |file| loop{ str = gets.chomp.to_s break if str == "<$><*><$>" file.puts Zlib::Inflate.inflate(str) } file.close end time = gets system "timeout -s 9 " + time + " /opt/wandbox/go-head/bin/go run main.go < test.in"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.5.0 | lib/compile_systems/go_system.rb |