cmp:
#include <bits/stdc++.h>
using namespace std;
int T;
int main()
{
while (++T)
{
cout << "The " << T << "-th data" << endl;
system("datamaker.exe > data.in");
system("std.exe < data.in > exp.out");
system("yours.exe < data.in > yours.out");
if (system("fc exp.out yours.out")) break;
}
return 0;
}
datamaker:
#include <bits/stdc++.h>
using namespace std;
int main()
{
freopen("seed.txt","r",stdin);
int seed;
cin >> seed;
mt19937 rnd(seed);
freopen("seed.txt","w",stdout);
cout << rnd();
return 0;
}

924

被折叠的 条评论
为什么被折叠?



