symons

___________每一天都是幸福的!!

  博客园  ::  :: 新随笔  ::  :: 订阅 订阅  :: 管理

2013年4月15日

摘要: 需要注意的是,逆序数的变量要设为long long。 1 #include <iostream> 2 #include <stdio.h> 3 #include <algorithm> 4 #include <string.h> 5 #define maxn 500000+100 6 #define _cp(a,b) ((a)<=(b)) 7 using namespace std; 8 typedef int elem_t; 9 int num[maxn];10 elem_t _tmp[maxn];11 12 long long inv( 阅读全文
posted @ 2013-04-15 23:38 symons 阅读(184) 评论(0) 推荐(0)