对拍

#include <bits/stdc++.h>
using namespace std;
int main(){
    system("g++ a.cpp -o a");
    system("g++ data.cpp -o data");
    system("g++ std.cpp -o std");
    for(int i=1;;i++){
        system("./data > in");
        system("./a < in > a.out");
        system("./std < in > std.out");
        if(system("diff -b -B -q a.out std.out")) return system("gnome-terminal"),cout << "Wrong Answer" << endl,0;
        else printf("test %d :  Accept\n",i);
    }
    return 0;
}
posted @ 2020-07-16 21:17  HISKrrr  阅读(164)  评论(7编辑  收藏  举报