![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
默认
RinwKn
这个作者很懒,什么都没留下…
展开
-
c++ 高精度模板
#include #include #include #include #include #include using namespace std; const int MAXN = 410; struct bign { int len, s[MAXN]; bign () {转载 2016-12-03 18:59:11 · 419 阅读 · 0 评论 -
归并排序求逆序对
#include using namespace std; const int maxn = 100000+10; int a[maxn],t[maxn];long long ans=0; void merge_sort(int l,int r) { if(l==r) return; int m=(l+r)/2; merge_sort(l,m); merge_sort(m+1,r);原创 2016-12-12 16:10:27 · 424 阅读 · 0 评论 -
把自然数N分解成若干个互不相同的正整数,使乘积最大
转载自:http://m.blog.csdn.net/article/details?id=6212813 #include #include using namespace std; //把自然数N分解成若干个互不相同的正整数,使乘积最大; /** 题意挺晦涩的,就是说要维持这个会议召开需要满足几个条件,而要会议召开最久需要这个条件尽可能久的维持 接着就需要了将整数N分解任意个不同的整数,使这转载 2016-12-04 22:54:06 · 7261 阅读 · 0 评论