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

Version Path
judge_system-1.1.0 lib/compile_systems/c_system.cpp
judge_system-1.0.0 lib/compile_systems/c_system.cpp
judge_system-0.1.4 lib/compile_systems/c_system.cpp
judge_system-0.1.3 lib/compile_systems/c_system.cpp