[中译] Puzzleup 2017 (6) Palindromic Code

楼主: LPH66 (-6.2598534e+18f)   2017-09-14 16:01:31
题目网址: http://www.puzzleup.com/2017/
http://www.puzzleup.com/2017/puzzle/?6
答题时限: 9月14日7PM-比赛结束(约12月27日)
加分时限: 9月14日7PM-9月19日6:59PM
答对可得基本分100分。答案可上传5次,每改1次答案从基本分扣20分。 
比赛期间内可随时上传答案,加分时限内答对第n天加(6-n)分       
另依题目的难易有额外加分(如有80%的人这题答错,答对者加80分)  
◆PALINDROMIC CODE
All 5-digit codes where a digit is used at most twice is generated and
listed in ascending order. N codes consecutive in the list will be selected.
What is the minimum value of N for which having a palindromic code in the
list is guaranteed?
A palindromic code is one that is the same forwards and backwards.
For example: 00000, 02520, 47974.
以递增顺序列出所有任一数字不出现超过两次的五位数的编码。
在其中选择连续的 N 个编码。
试问 N 要最小多少才能保证无论怎么选,当中总有一个回文编码?
回文编码即是正读反读均相同的编码。例如:00000、02520、47974。
作者: DreamYeh (天使)   2017-09-14 18:25:00
置底

Links booklink

Contact Us: admin [ a t ] ucptt.com