永夜初晗凝碧天

本博客现已全部转移到新地址,欲获取更多精彩文章,请访问http://acshiryu.github.io/

导航

2011年8月5日 #

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 阅读(2462) 评论(0) 推荐(0) 编辑

POJ2249--一道简单的排列组合题

摘要: Binomial Showdown这一题就是运用了一些简单的排列组合公式,但在做一题时WA了好多次,都是因为在一些细节上没有主要到,刚开始时数据可能会超int,又或者在做除法运算时也可能会结果不精确,递推是会出现RE,不过,最后还是解决了这些问题。 阅读全文

posted @ 2011-08-05 11:24 ACShiryu 阅读(1032) 评论(4) 推荐(1) 编辑