hdu 1280 用sort函数解决。(转载)
摘要:
#include<iostream>//2272848 2010-03-31 18:44:28 Accepted 1280 656MS 17868K 609 B C++ 悔惜晟 #include<cstdio>#include<algorithm>using namespace std;const int MAX = 4498501;struct stu{ int sum;}df[MAX];int cmp(stu a, stu b){ return a.sum > b.sum;}int main(){ int n, m, a[3001]; while( 阅读全文
posted @ 2011-04-14 17:43 more think, more gains 阅读(152) 评论(0) 推荐(0) 编辑