对拍就是对拍啦,没什么好说的。
直接放模板吧。
网上大多数的对拍模板都是用bat写的。什么鬼看不懂我菜。
所以拿CPP写一发。
就当练练
#include<bits/stdc++.h>
using namespace std;
int main()
{
	for(int i=1;i<=20;i++)
	{
		system("./data.exe");
		double beg=clock();
		system("./test.exe");
		double end=clock();
		system("./vio.exe");
		if(system("diff vio.out test.out"))
		{
			printf("WA on testdata#%d\n",i);
			return 0;
		}
		else
			printf("AC on testdata#%d Time:%.2lf\n",i,end-beg);
	}
	return 0;
}
原文:https://www.cnblogs.com/fusiwei/p/13905107.html