摘要:
StaircasesTime Limit: 1.0 second Memory Limit: 16 MBOne curious child has a set of N little bricks (5 ≤ N ≤ 500). From these bricks he builds different staircases. Staircase consists of steps of different sizes in a strictly descending order. It is not allowed for staircase to have steps equal sizes 阅读全文
posted @ 2012-04-05 15:36
书山有路,学海无涯
阅读(178)
评论(0)
推荐(0)
摘要:
K-based NumbersTime Limit: 1.0 secondMemory Limit: 16 MBLet’s consider K-based numbers, containing exactly N digits. We define a number to be valid if its K-based notation doesn’t contain two successive zeros. For example:1010230 is a valid 7-digit number;1000198 is not a valid number;0001235 is not 阅读全文
posted @ 2012-04-05 09:32
书山有路,学海无涯
阅读(425)
评论(1)
推荐(0)
浙公网安备 33010602011771号