上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页
摘要: #includeusing namespace std;void main(){ int t,s,n,m,k; int qhs(int); cin>>k; while(cin>>n,cin>>m,k--){ t=qhs(n); //s=qhs(... 阅读全文
posted @ 2014-12-17 11:30 __夜风 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include #include using namespace std;struct p{ int endd,start;};p p1[1000];bool cmp(p p1,p p2){ return p1.endd>t&&t) { for... 阅读全文
posted @ 2014-12-17 11:30 __夜风 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #includeusing namespace std;int main(){ float n,m,x,y,x1,y1,x2,y2; while(cin>>n,n){ double sum=0.0; cin>>x>>y; x1=x,y1=y... 阅读全文
posted @ 2014-12-17 11:29 __夜风 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include using namespace std;int main(){ int i,j,n,k,a[100],b[100]; cin>>n; while(n--) { memset(a,0,sizeof(a)); m... 阅读全文
posted @ 2014-12-17 11:28 __夜风 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include int main(){ int a[31][31]; int i,j,n; a[1][1]=a[2][1]=a[2][2]=1; for(i=3;i<=30;i++) { ... 阅读全文
posted @ 2014-12-17 11:27 __夜风 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #includeusing namespace std;int main(){ int i,j,b[1000],k; while(cin>>i>>j) { int a=0; if(i=0;k--) if(b[k]>9) ... 阅读全文
posted @ 2014-12-17 11:27 __夜风 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include#includeusing namespace std;int main(){ int i,j,T; char a[100]; cin>>T; while(cin>>a,T--) { j=strlen(a)-1; int... 阅读全文
posted @ 2014-12-17 11:25 __夜风 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #includeusing namespace std;int main(){ int gcd(int,int); int i,j,b=1; int a[1000]; while(cin>>j) { b=1; for(i=0... 阅读全文
posted @ 2014-12-17 11:24 __夜风 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include using namespace std;int main(){ char a[100],*p; int max,i; while(cin>>a){ max=int(a[0]); p=a; for(i=0;a[i]!='\0'... 阅读全文
posted @ 2014-12-17 11:24 __夜风 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 水题 AC代码: #include int main(){ int i,n,a[100]; while(scanf("%d",&n)!=EOF) { int max=0,min=99999999,sum=0; for(i=1;imax) max=a[i]; ... 阅读全文
posted @ 2014-12-17 11:21 __夜风 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 25 下一页