最搞笑的一集
  • 板块灌水区
  • 楼主D2T1xubiaoshi
  • 当前回复5
  • 已保存回复5
  • 发布时间2023/11/14 15:06
  • 上次更新2023/11/14 20:29:15
查看原帖
最搞笑的一集
390770
D2T1xubiaoshi楼主2023/11/14 15:06

这是数据生成器:

//dm
#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 中第一个数是递增的,,,

2023/11/14 15:06
加载中...