Sha256: af4d9183880e8fc4208a3d67f4ff8be4a1bfa9d2df086c29e0a3a6d787cc3b5e

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require 'zlib'

File.open("./main.cpp", "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/g++ main.cpp -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/cpp_system.rb