摘要:
【算法】数学 【题解】n!的位数相当于ans=log10(n!)上取整,然后就可以拆出来加了。 可以用log10(i)或log(i)/log(10) 阶乘好像有个斯特林公式…… #include<cstdio> #include<cmath> using namespace std; int mai 阅读全文
posted @ 2017-05-29 22:20
ONION_CYC
阅读(278)
评论(0)
推荐(0)
摘要:
【算法】DP 【题解】开long long…… #include<cstdio> #include<algorithm> #include<cstring> using namespace std; const int maxn=50010; int a[maxn],n; int main() { 阅读全文
posted @ 2017-05-29 22:04
ONION_CYC
阅读(121)
评论(0)
推荐(0)

浙公网安备 33010602011771号