Sha256: b103f3115544ba109fd4ff11b606469b32ecee31f8004e9d517537ebc770a5d9
Contents?: true
Size: 554 Bytes
Versions: 4
Compression:
Stored size: 554 Bytes
Contents
#include <iostream> #include <fstream> using namespace std; int main(int argc, char const *argv[]) { ofstream ofs; ofs.open("test.java",ios::binary); string buf; while(getline(cin,buf)){ if(buf=="<$><*><$><*><$><*><$><*><$><*><$><*><$>")break; ofs<<buf<<endl; } ofs.close(); ofs.open("test.in",ios::binary); while(getline(cin,buf)){ ofs<<buf<<endl; } ofs.close(); system("/opt/wandbox/openjdk-head/bin/javac test.java"); system("/usr/bin/time -f '%U' /opt/wandbox/openjdk-head/bin/java test < test.in"); return 0; }
Version data entries
4 entries across 4 versions & 1 rubygems