Sha256: 1a7bf85a6b84d19ea7dd3a6b9cc39cfed9c7f3e652c8a7d342b8fddd9f2f2669

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

#include <iostream>
#include <fstream>
using namespace std;

int main(int argc, char const *argv[])
{
  ofstream ofs;
  ofs.open("test.rb",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("/usr/bin/time -f '%U' /opt/wandbox/ruby-head/bin/ruby test.rb < test.in");
  return 0;
}

Version data entries

4 entries across 4 versions & 1 rubygems

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