转自 hzoi-fengwu :https://www.cnblogs.com/hzoi-fengwu/p/14872962.html
1 #include<bits/stdc++.h>
2 using namespace std;
3 int main(){
4 int i;
5 for (i=1;;i++){
6 printf("The result of No. %d Case is: ",i);
7 system("./rand");
8 system("./std");
9 system("./my");
10 if (system("diff std.out my.out")){
11 printf("Wrong Answer\n");
12 return 0;
13 }
14 else printf("Accepted\n");
15 }
16 return 0;
17 }
对拍