注册 登录
编程论坛 C语言论坛

周末了,再出一道题给大家练习思维。

diycai 发布于 2021-10-22 15:11, 1605 次点击
从1到1000之间的任意选择两个可重复的自然数,
把这两个数的和以及两个数的范围区间[1,1000]告诉甲,
把这两个数的积以及两个数的范围区间[1,1000]告诉乙,
甲说无法确定这两个数是多少,
乙知道甲无法确定后也说无法确定这两个数,
甲听到乙无法确定后说可以确定这两个数了,
乙听到甲可以确定后也说可以确定这两个数了。

请编码输出满足上述要求的两个数的值(提示,满足要求的解有多组)。
附加要求可在https://www.bccn.net/run/上运行,并且运行时间不大于200ms。
第一个正确的代码并符合要求的获得全部分数。
2 回复
#2
自由而无用2021-10-22 15:52
提示: 该帖被管理员或版主屏蔽,只有管理员可见
#3
diycai2021-10-22 16:03
回复 2楼 自由而无用
你这链接里面答案都是错的。。。
#4
自由而无用2021-10-22 16:14
回复 3楼 diycai
oh, I feel so sorry for that and I m not sure of the answer, after all everything is possible on the net
#5
diycai2021-10-22 16:19
回复 4楼 自由而无用
你可以不用搜索, 自己试着做一下的。
#6
自由而无用2021-10-22 17:49
Actually, I dont have enough mathematical knowledge, for example:discrete mathematics
that will affect you how to create a mathematical model, how to deal with data smoothly
I dont have that ability at the moment, however I dont care that
Secondly, I m not young anymore, and still everyday have to deal with huge amounts of house-mess
so, I dont want to be a bald earlier
Finally, I m not a programmer, C/ASM is just one of my hobby though I was a software college student in the past time
Thank you for inviting me, I left this chance to someone else



1