Sha256: 9bb283179cb583f834f80fdb210598ae35cb31a11a68194c8b043b7a22200f2a
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
require 'zlib' File.open("./main.c", "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 "/opt/wandbox/gcc-head/bin/gcc main.c -o main -O2" system "timeout -s 9 " + time + " ./main < test.in"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.5.0 | lib/compile_systems/c_system.rb |