Sha256: 8b2860ed8996b325344bea941399668bce9fb78b9f766c37d8a750c1126d0002
Contents?: true
Size: 419 Bytes
Versions: 3
Compression:
Stored size: 419 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.rb", "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/ruby-head/bin/ruby main.rb < test.in"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.6.2 | lib/compile_systems/rb_system.rb |
judge_system-1.6.1 | lib/compile_systems/rb_system.rb |
judge_system-1.6.0 | lib/compile_systems/rb_system.rb |