作者weeeeeeeeell (等雨停)
看板puzzle
标题[中译] PuzzleUp 2010 (7) Neighboring Digits
时间Wed Aug 25 19:14:50 2010
首页:
http://www.puzzleup.com/2010/
时限:2010/08/26(四)19:00~09/01(三)18:59
答案可上传5次,但每改1次扣20分(基本分为100分)
在比赛期间内可随时回答,但只有在时限内回答者有额外加分
◆Neighboring Digits
We have a number. All the digits of this number are different from one
another and all the digits except the first and the last have a greater value
than the mean of its neighbors (ie. the digits immediately to the left and to
the right).
What can this number be at maximum?
这里有一个数,它所有的数字都相异,而且除了首尾两个数字外
都符合"本身大於左右两边的平均"这条规则。
问这个数字最大可能是多少?
--
解完了好呗
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.113.25.198
※ 编辑: weeeeeeeeell 来自: 140.113.25.198 (08/25 19:15)
1F:推 puzzlez:为什麽我觉得这题好像出过? 08/25 19:18
2F:推 walkwall:我觉得很像 PuzzleUp 2009 (23)Neighborhood Value 那题 08/25 19:41
3F:推 walkwall:阿就排列不是最简单那锅 不过当然又是程式题.... 08/25 19:43
4F:→ walkwall:(写程式中.....) 08/25 19:44
5F:推 ars1an:跟PuzzleUp 2009 (7)Arithmetic Mean of the Neighbors一样 08/25 20:24
6F:→ ars1an:不对,只是类似,这次要求每个digit不同 08/25 20:25
7F:→ ars1an:同意走墙大,这种complexity直接写程式秒杀就好 XD 08/25 20:26
8F:→ walkwall:(握手) 08/25 20:54
9F:→ walkwall:0.0 写完了 收工睡觉 08/25 21:49
10F:推 LPH66:我刚刚才发现我去年的第七题做错了.... 08/26 10:51
11F:推 LPH66:....再次耍笨 加上那个条件去年第七题的答案还是那个... 08/26 10:56
12F:→ LPH66:不过这题加上这个条件就不一样了 0.0 08/26 10:57
13F:推 walkwall:其实我也考虑过可不可能是"大於等於"左右平均 08/26 19:52
14F:→ walkwall:不过当程式显示出9876543210的时候我就知道我错了 0.0 08/26 19:53
15F:推 LPH66:噢不是 我的"那个条件"是自己耍笨加上去的限制 不是≧... 08/26 21:05