对拍

#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);
	}
}
posted @ 2020-06-26 17:07  An_Fly  阅读(137)  评论(0编辑  收藏  举报