跳到正文

个人记录

对拍模板

wkjwkj约 1 分钟
原文
文章信息与版本

文章信息

发布
2020年8月14日
收录
2026年8月16日
更新
2026年11月15日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前
C++
#include<cstdlib>
#include<cstdio>
#include<ctime>
int main() {
    for (int T = 1; T <= 10000; T++) {
        system("random.exe");
        double st = clock();
        system("test.exe");
        double ed = clock();
        system("std.exe");
        if (system("fc test.out std.out")) {
            puts("Wrong Answer");
            return 0;
        }
        else {
            printf("Accepted, #%d, 用时 %.0lfms\n", T, ed - st);
        }
    }
}
原文