对拍生成器
对拍
#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);
}
}
}