摘要: https://oj.shiyancang.cn/Problem/304.html 首先数据范围不可能算出来的,那么就要看数的性质。 0是怎么来的首先我们知道,有一个0,就必然会有一个5和2. n!在这里面,只要是偶数必然会有2,则2的次数一定大于5的次数。 则只需要统计5的次数即可。这就是n!里面 阅读全文
posted @ 2021-07-26 22:42 mofan552 阅读(63) 评论(0) 推荐(0)
摘要: https://acm.hdu.edu.cn/showproblem.php?pid=2098 时间复杂度 #include<bits/stdc++.h> using namespace std; typedef long long ll; const ll N=2e4+520; bool st[N 阅读全文
posted @ 2021-07-26 20:47 mofan552 阅读(17) 评论(0) 推荐(0)