对拍
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cstdlib>
using namespace std;
int main(){
long long cnt=0;
system("g++ a.cpp -o a -std=c++11");
system("g++ b.cpp -o b -std=c++11");
system("g++ data.cpp -o data -std=c++11");
while(true){
system("./data > data.in");
system("./a <data.in > a.out");
system("./b <data.in > b.out");
if(system("diff a.out b.out")){
printf("Wrong");
break;
}
printf("#%lld# Accepted\n",++cnt);
}
}
int - > long long
0 - > 100