之前展示了一波Linux下对拍,现在换Windows下的。

模板:

#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("fc 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;
}

相关文章:

  • 2021-12-27
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-16
  • 2021-11-10
  • 2022-12-23
  • 2021-11-20
猜你喜欢
  • 2021-09-12
  • 2021-11-27
  • 2022-12-23
  • 2021-08-27
  • 2021-09-22
  • 2021-12-05
  • 2021-11-05
相关资源
相似解决方案