摘要: Given a sequence of positive integers, count all contiguous subsequences (sometimes called substrings, in contrast to subsequences, which may leave ou 阅读全文
posted @ 2017-04-26 17:37 Asimple 阅读(419) 评论(0) 推荐(0) 编辑
摘要: The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room 阅读全文
posted @ 2017-04-26 15:40 Asimple 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 题目意思就是已知n的阶乘,求n。 当输入的阶乘小于10位数的时候,我们可以用long long将字符串转化成数字,直接计算。 而当输入的阶乘很大的时候,我们就可以利用位数去大概的估计n。 阅读全文
posted @ 2017-04-26 14:40 Asimple 阅读(413) 评论(0) 推荐(0) 编辑