2012年8月6日

hdu 4006The kth great number

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4006View Code 1 #include<queue> 2 #include<stdio.h> 3 #include<string.h> 4 #include<functional> 5 #include<vector> 6 using namespace std; 7 struct cmp 8 { 9 bool operator()(const int &a,const int &b)10 {11 return a>b; 阅读全文

posted @ 2012-08-06 15:23 仁者无敌8勇者无惧 阅读(128) 评论(0) 推荐(0) 编辑

hdu 1171Big Event in HDU

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1171View Code 1 #include<stdio.h> 2 #include<string.h> 3 #define max(x,y) x>y?x:y 4 int main() 5 { 6 int n; 7 int m; 8 int sum; 9 int i,j,jj;10 int a[55];11 int w[5500];12 int f[250000];13 while(~scanf("%d",&n)&&n>0)14 阅读全文

posted @ 2012-08-06 10:24 仁者无敌8勇者无惧 阅读(110) 评论(0) 推荐(0) 编辑

导航