作者LPH66 (-858993460)
看板puzzle
标题[中译] Puzzleup 2011 (16) Ordered Codes
时间Wed Nov 9 22:44:34 2011
题目网址: www.puzzleup.com/2011/puzzle/?234
加分时限: 11/10 7PM - 11/15 7PM
答对可得基本分100分。答案可上传5次,每改1次答案从基本分扣20分。
比赛期间内可随时上传答案,加分时限内答对第n天加(6-n)分
另依题目的难易有额外加分(如有80%的人这题答错,答对者加80分)
◆Ordered Codes
You will generate codes using the 26 letters of the English alphabet. There
is a single condition: The sum of the alphabetical order value of the letters
(A=1, B=2, C=3, …, Z=26) used in a code can at most be 26. Then the codes
generated on this condition are ordered alphabetically. What is the code in
the middle of the sequence?
If the same question was asked for a maximum total value of 3, instead of 26;
the answer would be AB. (A, AA, AAA, AB, B, BA, C).
你要以 26 个英文字母产生字串。唯一的条件是:将这些字串以数字表示後
(A=1, B=2, C=3, …, Z=26) 相加的和至多是 26。将产生的字串以字典顺序排序。
问正中间的那个字串是什麽?
如果题目把和至多为 26 改成至多为 3,则答案为 AB。
(产生的字串依序为 A, AA, AAA, AB, B, BA, C)
--
是个排列组合题...
才怪, 又是个说破不值三两银的题目XD 不过我喜欢这题
--
1985/01/12 三嶋鸣海 1989/02/22 优希堂悟 1990/02/22 冬川こころ 1993/07/05 小町
つぐみ 欢迎来到 1994/05/21 高江ミュウ 1997/03/24 守野いづみ 1997/03/24 伊野瀬
チサト 1998/06/18 守野くるみ 打越钢太郎的 1999/10/19 楠田ゆに 2000/02/15 樋口遥
2002/12/17 八神ココ 2011/01/11 HAL18於朱仓岳坠机 ∞与∫的世界 2011/04/02 茜崎空
启动 2012/05/21 第貮日蚀计画预定 2017/05/01~07 LeMU崩坏 2019/04/01~07 某大学合宿
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.28.91
※ 编辑: LPH66 来自: 140.112.28.91 (11/10 01:24)
1F:推 grooving:高中上排列组合时好像做过类似题XD 11/10 17:50
2F:推 grooving:个数是S(n)=2*S(n-1)+1 n=26时正中间为**** 11/10 19:05
3F:→ grooving:更正一下 是**** 11/10 19:12
马赛克一下好了....虽然要看的大概都看光了 (爆)
※ 编辑: LPH66 来自: 140.112.28.91 (11/11 07:07)