Sha256: c56f5747ab053b3f2e9e206d8db4087164d1f3f88bee54db0f31c697dcda0282
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 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.c", "w") do |file| file.puts code file.close end File.open("./test.in", "w") do |file| file.puts input file.close end system "/opt/wandbox/gcc-head/bin/gcc main.c -o main -O2" system "timeout -s 9 " + time + " ./main < test.in"
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.6.2 | lib/compile_systems/c_system.rb |
judge_system-1.6.1 | lib/compile_systems/c_system.rb |
judge_system-1.6.0 | lib/compile_systems/c_system.rb |