摘要:
#include "bits/stdc++.h" using namespace std; #define LL long long #define INF 0x3f3f3f3f3f #define PI acos(-1) #define N 510 #define MOD 10 LL quickPow(LL a,LL b) { LL ans=1; while(b>0){ ... 阅读全文
posted @ 2017-08-31 22:08
kimsimple
阅读(128)
评论(0)
推荐(0)
摘要:
题意:n的阶乘后面0的个数,如果直接算出阶乘再数0的数量一定会超时的。 因为10=2*5,所以求出5贡献的次数就行。 阅读全文
posted @ 2017-08-31 21:51
kimsimple
阅读(145)
评论(0)
推荐(0)
摘要:
Input示例 Output示例 DP: 递推式: 阅读全文
posted @ 2017-08-31 20:32
kimsimple
阅读(149)
评论(0)
推荐(0)
摘要:
Input示例 Output示例 first try: O(n^2) Time limit exceeded,优化 second try: 第二层从后向前找,及时跳出 #include "bits/stdc++.h" using namespace std; #define LL long long 阅读全文
posted @ 2017-08-31 20:21
kimsimple
阅读(442)
评论(0)
推荐(0)

浙公网安备 33010602011771号