Sha256: 11714390c52dbe9cbe3e1fb110acd65bc945db01bdcc75e42629658c5707f7ff
Contents?: true
Size: 583 Bytes
Versions: 2
Compression:
Stored size: 583 Bytes
Contents
#include <iostream> #include <fstream> using namespace std; char command[1024]; int main(int argc, char const *argv[]) { ofstream ofs; ofs.open("main.go",ios::binary); string buf; string splitter="<$><*><$>"; string time; while(getline(cin,buf)){ if(buf==splitter)break; ofs<<buf<<endl; } ofs.close(); ofs.open("test.in",ios::binary); while(getline(cin,buf)){ if(buf==splitter)break; ofs<<buf<<endl; } ofs.close(); cin>>time; system(("timeout -s 9 " + time + " /opt/wandbox/go-head/bin/go run main.go < test.in ").c_str()); return 0; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
judge_system-1.4.0 | lib/compile_systems/go_system.cpp |
judge_system-1.3.0 | lib/compile_systems/go_system.cpp |