对拍生成器

对拍

#include <cstdlib>
#include <cstdio>
#include <ctime>
int main() {
	for (int t = 1; t <= 10000; t++) {
		system("数据生成.exe");
		double st = clock();
		system("待测试.exe");
		double ed = clock();
		system("暴力.exe");
		if (system("fc 暴力.out 待测试.out")) {
			puts("wa");
			return 0;
		} else {
			printf("ACCEPTED, 测试点 #%d, 用时 %.0lfms\n", t, ed - st);
		}
	}
}

实际应用

image

posted @ 2024-03-18 06:58  Peppa_Even_Pig  阅读(12)  评论(0编辑  收藏  举报