Sha256: 262629abc39f9732f5e9df520b3ef8a1787479697ca413a6d989a613b8b1c9c7
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'zlib' File.open("./main.py", "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/cpython-head/bin/python3 main.py < test.in"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.5.0 | lib/compile_systems/py_system.rb |