摘要: #include#include#includeusing namespace std;int dp[310][310];int maxsub(int n,int a[]){ int i,sum=0,b=0; for(i=1;i0) b+=a[i]; else b=a[i]; if(b>sum) sum=b; } return sum;}int main(){ int b[310]; int n,i,k,j,sum,maxsum=0,t,m; scanf("... 阅读全文
posted @ 2013-07-15 16:40 nylg-haozi 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 int t; 9 scanf("%d",&t);10 11 while(t--)12 {13 double h,angel,devil,boss[110];14 int a,d,b,i;15 scanf("%lf%d%d%d",&h,&a,&d,&b);16 //printf("%... 阅读全文
posted @ 2013-07-15 12:14 nylg-haozi 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int main() 7 { 8 char a[1010]; 9 void aj(char a[],int len); 10 void dx(char a[],int len); 11 while(gets(a)!=0) 12 { 13 if(a[0]>='0'&&a[0]<='9') 14 aj(a,strlen(a)); 15 else 1... 阅读全文
posted @ 2013-07-15 11:39 nylg-haozi 阅读(204) 评论(0) 推荐(0) 编辑