摘要: 题目出处题意描述:这个题目提问的是,在插入排序的序列给定的情况下,求最少需要移动的次数。序列的长度n 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 const int MAXN = 1000000+5; 10 11 struct Node{ 12 int a,b,left,right,val; 13 }; 14 15 Node tree[MAXN*2]; 16 int L = 0; 17 int a[100000+5]; 18 19 ... 阅读全文
posted @ 2013-09-19 10:47 qoshi 阅读(289) 评论(0) 推荐(0)