对拍
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
const int T = 500; //对拍的次数
int main(){
srand(time(0));
for(int i = 1;i <= T;i++){
freopen("xxx.in","w",stdout);
//此处是生成输入的代码
fclose(stdout);
system("tj.exe < xxx.in > xxx.out");
system("mine.exe < xxx.in > xxx.ans");
if(system("fc /B xxx.out xxx.ans > nul")){
cerr << "Wrong Answer on #" << i << "\n";
break;
}
else cerr << "Accepted on #" << i << "\n";
}
return 0;
}