随笔分类 -  大数

摘要:DescriptionYou are given a number 1 ≤N≤ 50. Every ticket has its 2N-digit number. We call a ticket lucky, if the sum of its firstNdigits is equal to t... 阅读全文
posted @ 2015-05-12 15:21 Painting、时光 阅读(135) 评论(0) 推荐(0)
摘要:DescriptionLet’s considerK-based numbers, containing exactlyNdigits. We define a number to be valid if itsK-based notation doesn’t contain two success... 阅读全文
posted @ 2015-05-08 16:41 Painting、时光 阅读(152) 评论(0) 推荐(0)
摘要:Description郭橐驼,不知始何名。病偻,隆然伏行,有类橐驼者,故乡人号之驼。驼闻之,曰:“甚善。名我固当。”因舍其名,亦自谓橐驼云。其乡曰丰乐乡,在长安西。驼业种树,凡长安豪富人为观游及卖果者,皆争迎取养。视驼所种树,或移徙,无不活;且硕茂,蚤实以蕃。他植者虽窥伺效慕,莫能如也。 有问之... 阅读全文
posted @ 2015-04-17 11:13 Painting、时光 阅读(188) 评论(0) 推荐(0)
摘要:DescriptionOne of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 and he ex... 阅读全文
posted @ 2015-03-27 19:32 Painting、时光 阅读(144) 评论(0) 推荐(0)
摘要:问题描述作为史上最强的刷子之一,zhx在各大oj上交了很多份代码,而且多数都AC了。有一天,zhx想数一数他在n个oj上一共交了多少份代码。他现在已经统计出在第i个oj上,他交了ai份代码。而把它们加起来就是你的工作了。当然zhx是一个不走寻常路的人,所以他的数字都是用B进制表示的。而他也要求你告诉... 阅读全文
posted @ 2015-03-15 12:55 Painting、时光 阅读(176) 评论(0) 推荐(0)