上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: #include<stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)==2) { if(a==0&&b==0) break; else printf("%d\n",a+b); } return 0; } 阅读全文
posted @ 2017-01-25 00:05 王坤1993 阅读(153) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main(){ int n; cin>>n; while(n--){ int a,b; cin>>a>>b; cout<<a+b<<endl; } return 0;} 阅读全文
posted @ 2017-01-23 20:04 王坤1993 阅读(185) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main() { int n,m,s; while(cin>>n>>m) { s=n+m; cout<<s<<endl; } return 0; } 阅读全文
posted @ 2017-01-22 23:34 王坤1993 阅读(195) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> int main() { char s[10000]; int len; int cnt = 0; while(~scanf("%s",s)) { if(!strcmp(s,"<br>")) { cnt = 0; prin 阅读全文
posted @ 2017-01-22 23:32 王坤1993 阅读(186) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <string.h> int main() { int d[1001], ans[1001]; int n, i, j, flag, rst; while(~scanf("%d", &n) && n) { for(i=0; i<n; i++) 阅读全文
posted @ 2017-01-22 23:31 王坤1993 阅读(126) 评论(0) 推荐(0)
摘要: #include <iostream>#include <stdio.h>#include <string.h>#include <stack>#include <queue>#include <map>#include <set>#include <vector>#include <math.h> 阅读全文
posted @ 2017-01-22 23:27 王坤1993 阅读(182) 评论(0) 推荐(0)
摘要: #include <iostream> #include <cstring> using namespace std; int n[3],a[9000],b[9000],i,j,k,last,last2; int v[3]={1,2,5}; int main() { while ((cin>>n[0 阅读全文
posted @ 2017-01-22 23:26 王坤1993 阅读(149) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; #define N 101 struct node { int score; //学生分数 int num; //学生做出的题目数目 char time[10]; //花费时间 } 阅读全文
posted @ 2017-01-22 23:24 王坤1993 阅读(254) 评论(0) 推荐(0)
摘要: #include"stdio.h" #include"string.h" #define N 305 int mark[N],link[N],map[N][N],p; int find(int a) //匈牙利算法,二分匹配 { int i; for(i=1;i<=p;i++) { if(!mark 阅读全文
posted @ 2017-01-22 23:22 王坤1993 阅读(146) 评论(0) 推荐(0)
摘要: #include<iostream> #include<stack> #include<string> #include<cctype> using namespace std; #define N 30 struct node { char m; int r,c; } a[N]; string s 阅读全文
posted @ 2017-01-22 23:21 王坤1993 阅读(185) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页