@zzzc18
2017-12-17T13:48:16.000000Z
字数 553
阅读 1096
AtCoder
#include<windows.h>
#include<sstream>
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
string FILENAME,DATA,STD;
string INPUT;
string OUTPUT;
string NUM;
string LEFT,RIGHT;
int main(){
FILENAME="parking";LEFT="<";RIGHT=">";
INPUT=".in";OUTPUT=".out";DATA="data";STD="std";
system("g++ data.cpp -o data");
system("g++ std.cpp -o std");
for(int i=1;i<=10;i++){
stringstream ss;
ss<<i;
ss>>NUM;
cout<<NUM<<endl;
system((DATA+RIGHT+FILENAME+NUM+INPUT).c_str());
system((STD+LEFT+FILENAME+NUM+INPUT+RIGHT+FILENAME+NUM+OUTPUT).c_str());
Sleep(2*1000);
}
return 0;
}