Sha256: 869a8eb586c4465e5df7663026a13804310c74f24dbbe132b062be0c194ee470
Contents?: true
Size: 456 Bytes
Versions: 1
Compression:
Stored size: 456 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.swift", "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/swift-head/usr/bin/swiftc main.swift -o main" system "timeout -s 9 " + time + " ./main < test.in"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.6.2 | lib/compile_systems/swift_system.rb |