摘要: #include <iostream> #include <string> using namespace std; const int SIZE = 1001; const int BASE = 10; string result[SIZE]; string two("2"); void init 阅读全文
posted @ 2017-01-15 21:22 王坤1993 阅读(288) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>int a[100];int cmp(const void *a,const void *b){ return *(int *)a-*(int *)b;} int main(){ int T,n,i; scanf("%d",&T) 阅读全文
posted @ 2017-01-14 23:44 王坤1993 阅读(227) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>const int MAXN=200;char str[MAXN]; bool isvowel(char c){ if(c=='a'||c=='e'||c=='i'||c=='u'||c=='o') return true; el 阅读全文
posted @ 2017-01-14 23:43 王坤1993 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #define P 3.1415927 #define toFeet(x) x/12.0 #define toMiles(x) x/5280.0 int main(){ double diameter;//直径 int revolutions;//转数 doub 阅读全文
posted @ 2017-01-14 23:40 王坤1993 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstdio> using namespace std; int main() { int a,b,c; while (~scanf("%d%d%d",&a,&b,&c)) { if (a>168&&b>168&&c>168) printf 阅读全文
posted @ 2017-01-14 23:39 王坤1993 阅读(179) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>int main(){ int n; double d; int num; char h,m1,m2,s1,s2; scanf("%d",&n); scanf("%lf",&d); while(scanf("%d",&num)!=EOF) { printf("%3d 阅读全文
posted @ 2017-01-14 23:37 王坤1993 阅读(158) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<string.h>int step,n,m;int a[1010][1010];char map[11][11];void DFS(int x,int y){ while(x>=0&&y>=0&&x<n&&y<m&&map[x][y]!='O') 阅读全文
posted @ 2017-01-14 23:34 王坤1993 阅读(186) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>const int MAXN=1000;int a[MAXN];int main(){ int n; int i; while(scanf("%d",&n),n) { for(i=0;i<n;i++) scanf("%d",&a[i]); int res=0; wh 阅读全文
posted @ 2017-01-14 23:33 王坤1993 阅读(225) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<string.h> const int MAXN=200; char str[MAXN]; int main() { int x,y; while(scanf("%s",&str)!=EOF) { int len=strlen(str); int 阅读全文
posted @ 2017-01-14 23:32 王坤1993 阅读(145) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { int a,b,t,i,max; while(cin >> a >> b) { cout << a << " " << b << " "; if(a>b)//大小不确定 { t = a; a 阅读全文
posted @ 2017-01-13 21:09 王坤1993 阅读(174) 评论(0) 推荐(0) 编辑