对拍

· · 个人记录

对拍详细

#include<bits/stdc++.h>
using namespace std;
int main()
{
    while(1)
    {
        system("data.exe");
        double begin=clock(); 
        system("bf.exe");//待检测 
        double end=clock();
        system("std.exe");//正确答案 
        double t=end-begin;
        if(system("fc pro.out bs.out"))
            return -1;
        else
        {
            printf("用时%.1lfms\n",t);
        }
    }
    return 0;
}