![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
丿灬短发
这个作者很懒,什么都没留下…
展开
-
HDU 1394 Minimum Inversion Number 线段树和逆序数的应用
地址:http://acm.hdu.edu.cn/showproblem.php?pid=1394题意:给出n个数,通过移动,求最小的逆序数对#include#includeusing namespace std;#define lx (root<<1)#define rx ((root<<1)|1)#define mid ((left+right)>>1)#def原创 2015-06-01 20:58:15 · 281 阅读 · 0 评论 -
HDU 1018 斯特林公式应用
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1018题意:输入一个整数,输出这个数的阶乘的位数思路: 没有!吸收知识: 1.对数函数的认识:log( n ) //返回以e为底的对数log10( n ) //返回以10为原创 2015-07-18 00:38:07 · 454 阅读 · 0 评论