对拍板子

//linux背景下
#include <bits/stdc++.h> using namespace std; int main(){ int T = 10000; int tot = 0; system("g++ 1.cpp -o 1; g++ std.cpp -o std; g++ data.cpp -o data"); while(T--){ tot++; cout << tot << "--->"; system("./data; ./1; ./std"); if(system("diff 1.out std.out")){ cout << "WA" << endl; return 0; } else cout << "AC" << endl; } }
 
原文地址:https://www.cnblogs.com/soda-ma/p/13132011.html