标签:exe system DFS input 拍板 txt DP
对拍
#include <bits/stdc++.h>
using namespace std;
// make 是数据生成器,其他的是两份代码
bool work()
{
system("make.exe > input.txt");
system("DFS.exe < input.txt > DFS.txt");
system("DP.exe < input.txt > DP.txt");
return !system("fc DP.txt DFS.txt");
}
int main()
{
for (int i = 0; i < 1000; i ++ )
{
if (!work()) {
break;
}
}
return 0;
}
标签:exe,system,DFS,input,拍板,txt,DP 来源: https://www.cnblogs.com/Mxrush/p/16248896.html