Sha256: 9b6b7919b77bd0702eed967794776d507c8afd43cccaa3931ff27945635a7934

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

require 'zlib'
require 'base64'
stdin = Zlib::Inflate.new(Zlib::MAX_WBITS + 32).inflate(Base64.decode64($stdin.read)).split("\n<$><*><$>\n")
code = stdin[0]
input = stdin[1]
time = stdin[2]

File.open("./main.py", "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/cpython-head/bin/python3 main.py < test.in"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
judge_system-1.6.2 lib/compile_systems/py_system.rb
judge_system-1.6.1 lib/compile_systems/py_system.rb
judge_system-1.6.0 lib/compile_systems/py_system.rb