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