对拍笔记
#include <bits/stdc++.h>
using namespace std;
int main
{
system("g++ ac.cpp -o ac.exe");
system("g++ baoli.cpp -o baoli.exe");
system("g++ rand.cpp -o rand.exe -std=c++11");
int cnt=0;
while(1)
{
cout<<"running on case "<<++cnt<<endl;
system("rand.exe > input.txt");
system("ac.exe < input.txt > ac.txt");
system("baoli.exe < input.txt > baoli.txt");
if(system("fc ac.txt baoli.txt")) break;
}
system("pause");
return 0;
}