说明:n个石头(每相邻两个的距离是1米,最边上石头和岸的距离也是1米),礼物放在第m个石头上,青蛙第i次跳2*i-1米.问能否得到礼物.(n>=49肯定能得到礼物,n<49,可以bfs或递归)-n stones (each of the two adjacent distance of a meter, the most edge of the rocks and the shore is a distance meters), <江> 在 2025-03-11 上传
| 大小:1kb | 下载:0
说明:把1到n的数放在一个环里,使相邻的2个数和是质数.用递归做-n to put a few on a loop, so that the two neighboring and the number is prime. Using recursive do <江> 在 2025-03-11 上传
| 大小:1kb | 下载:0