Windows下的对拍程序
#include <bits/stdc++.h>
using namespace std;
signed main()
{
for(int T = 1;T <= 100000;T++){//对拍组数
system("random.exe"); //随机数据生成器
double st = clock();
system("sol.exe");//自己的程序 data.out
double ed = clock();
system("checher.exe");//无错程序 data.ans
if(system("fc data.ans data.out")){//检查输出
puts("WA");
return 0;
}
else cout << "AC" << " " << T << ":" << ed - st << endl;//windows下为ms
}
}