![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数论-分解质因数
偷吃了老鼠的土豆
戒骄戒躁,脚踏实地,坚持不懈,愈挫愈勇。
展开
-
求组合数
求组合数非常简单的。暴力求解太惨了。 比较高级的等以后再学。 利用公司公式 C(n,m) = C(n - 1,m) + C(n-1,m-1) #include <iostream> #define LL long long using namespace std; LL rst[67][67] = {0}; LL C(LL n, LL m) { if(m == 0 || n == 0 || n == 1 || m == n) return 1; if(原创 2020-09-20 21:04:11 · 79 阅读 · 0 评论 -
HDU1405(质因数分解)
题目:HDU - 1405 Tomorrow is contest day, Are you all ready? We have been training for 45 days, and all guys must be tired.But , you are so lucky comparing with many excellent boys who have no chance ...原创 2019-03-18 23:49:34 · 161 阅读 · 0 评论