这是数据生成器:
#include <bits/stdc++.h>
using namespace std;
int main(){
srand(unsigned(time(NULL)));
freopen("dice.in", "w", stdout);
int k = rnd() % 900 + 126;
int a = rnd() % 5 + 1;
int b = rnd() % 5 + 1;
printf("%d %d %d\n", k, a, b);
return 0;
}
这是对拍:
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
while(1){
system("dm.exe");
system("std.exe");
system("my.exe");
if(system("fc dice.out dice.ans"))break;
}
return 0;
}
然后发现 dice.in 中第一个数是递增的,,,