An integer is divisible by 3 if the sum of its digits is also divisible by 3. For example, 3702 is divisible by 3 and 12(3+7+0+2) is also divisible by 3. This property also holds for the integer 9.
I...
分类:
其他好文 时间:
2015-04-19 06:32:29
阅读次数:
124
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actually shrinking by 50 square miles each year, due to erosion caused by the Mississipp...
分类:
其他好文 时间:
2015-03-11 14:49:28
阅读次数:
144
题意:统计[a, b]中有多少个数字满足:自身是k的倍数,而且各个数字之和也是k的倍数。分析:详细分析见《训练之南》吧,=_=||书上提出了一个模板的概念,有了模板我们就可以分块计算。虽然书上定义f(x)表示不超过x的非负整数且满足条件的个数,但为了编码方便,代码中f(x)的含义为0~x-1中满足条...
分类:
其他好文 时间:
2015-03-04 18:33:52
阅读次数:
142
1.You observe that a database performance has degraded overa period of time. While investigating the reason, you find the size ofthe database buffer c...
分类:
其他好文 时间:
2015-02-27 16:50:11
阅读次数:
743
这道题居然提交了十次才过....期间小问题不断。思路的话基本是《训练指南》里面来的,不过有几个小问题需要注意一下。第一,当K在大于100的情况下,就直接输出0就可以了。因为a,b不超过2^31,可以估算出a,b最多十位十进制数,那么每位最大为9,所以各个数字之和是不可能超过100的,那么个数字之和为模K为0的条件是永远不可能到达的。
还有一点是,当剩余数字d=0时,当且仅当m1和m2...
分类:
其他好文 时间:
2015-02-22 17:20:16
阅读次数:
160
问题及代码:
Problem Description
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is...
分类:
其他好文 时间:
2015-02-15 12:13:22
阅读次数:
259
Problem Description
Fred Mapper is considering purchasing some land in Louisiana to build his house on. In the process of investigating the land, he learned that the state of Louisiana is actua...
分类:
其他好文 时间:
2015-02-03 11:16:24
阅读次数:
155
传送门:ZOJ 1853
Description
Evolution is a long, long process with extreme complexity and involves many species. Dr. C. P. Lottery is currently investigating a simplified model of evolution: cons...
分类:
其他好文 时间:
2014-11-11 09:26:23
阅读次数:
239
Investigating issues with Unmanaged Memory. First steps.
分类:
其他好文 时间:
2014-10-25 09:14:51
阅读次数:
245
Young cryptoanalyst Georgie is investigating different schemes of generating random integer numbers
ranging from 0 to m - 1.
He thinks that standard random number generators are not good enough, s...
分类:
其他好文 时间:
2014-08-29 21:26:38
阅读次数:
317