摘要:
链接 [https://vjudge.net/contest/212939 problem/D] 题意 让你计算n!的位数有多少个0,生成0的就是2,5,可以把一些数拆成2的乘积或者5的乘积(10=2 5,25=5 5,125=5 5 ) 但有一点很明确就是拆之后2的个数一定是大于5的个数,所以只需 阅读全文
摘要:
链接 [https://vjudge.net/contest/212939 problem/C] 题意 给你个字典,字典包含若干个单词; 再给你若干个单词,让你输出跟这个单词有相同的字母的字典里的单词(不考虑顺序) 分析 STL set的应用以及next_permutation的应用 用set保存字 阅读全文
摘要:
这个讲的好 [http://www.cnblogs.com/My Sunshine/p/4985366.html] 阅读全文
摘要:
链接 [http://acm.hdu.edu.cn/showproblem.php?pid=1098] 分析: 数学归纳法 f(1) = 18 + ka; 假设f(x) = 5 x^13+13 x^5+k a x 能被65整除 f(x+1) = 5 (x+1)^13+13 (x+1)^5+k a ( 阅读全文