POJ1019 ---简单的数学找规律题
摘要:
A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of positive integer numbers ranging from 1 to k, written one after another. 阅读全文
posted @ 2011-08-05 20:46 ACShiryu 阅读(2498) 评论(0) 推荐(0)
Binomial Showdown这一题就是运用了一些简单的排列组合公式,但在做一题时WA了好多次,都是因为在一些细节上没有主要到,刚开始时数据可能会超int,又或者在做除法运算时也可能会结果不精确,递推是会出现RE,不过,最后还是解决了这些问题。
浙公网安备 33010602011771号