Sha256: db421e5152b578122d527f67407c89bf6e7a87d62eaad4bf7f6397d64c3cff2c
Contents?: true
Size: 525 Bytes
Versions: 4
Compression:
Stored size: 525 Bytes
Contents
#include <iostream> #include <fstream> using namespace std; int main(int argc, char const *argv[]) { ofstream ofs; ofs.open("test.cpp",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/gcc-head/bin/g++ test.cpp -o test -O2"); system("/usr/bin/time -f '%U' ./test < test.in"); return 0; }
Version data entries
4 entries across 4 versions & 1 rubygems