摘要: 题目链接:http://codeforces.com/problemset/problem/352/B题目意思:给出一个长度为n的序列a1, a2, ..., an(序号i,1 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int maxn = 1e5 + 5; 9 10 struct pairs 11 { 12 int index; // 保存位置的编号i 13 int num; // 保存序列的数,即题目中的a[i] 14... 阅读全文
posted @ 2013-10-06 19:27 windysai 阅读(299) 评论(0) 推荐(0) 编辑