对拍
#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;
}
如初见 与初见