对拍模板,很好理解,就不多讲了。

#include<bits/stdc++.h>
using namespace std;
int main(){
	while(1){
		system("data.exe > data.in");
		int t=clock();
		system("hard.exe < data.in > hard.out");
		system("easy.exe < data.in > easy.out");
		printf("%dms\n",clock()-t);
		if(system("fc hard.out east.out")){
			//如果系统是linux,把fc改成diff
			printf("WA\n");
			return 0;
		}
		printf("AC\n");
	}
	return 0;
}