摘要: Uncle Johny题目链接:http://www.codechef.com/NOV13/problems/JOHNY水题。排序即可代码如下: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef struct{ 8 int pos, val; 9 }aa;10 11 aa a[1010];12 13 bool cmp(aa x,aa y)14 {15 return x.val 2 #include 3 #include 4 #define MOD 10000... 阅读全文
posted @ 2013-11-01 23:55 张小豪 阅读(429) 评论(0) 推荐(0) 编辑