摘要: 1 #include<iostream> 2 using namespace std; 3 int main() 4 { 5 char n; 6 int i=1; 7 int s=0; 8 while(cin.get(n)) 9 { 10 if (n=='#')break; 11 if (n!='\ 阅读全文
posted @ 2017-05-04 12:56 浮华散丶 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<algorithm> 4 #include<string> 5 #include<iomanip> 6 using namespace std; 7 //½á¹¹Ìå: 8 struct stude 阅读全文
posted @ 2017-05-04 12:54 浮华散丶 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<vector> 3 #include<string> 4 #include<algorithm> //reverse所在头文件 5 using namespace std; 6 bool Comp(const string &str1, 阅读全文
posted @ 2017-05-04 12:51 浮华散丶 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<set> 3 #include<string> 4 #include<algorithm> 5 using namespace std; 6 struct Comp//multiset内部排序名为Comp 7 { 8 bool oper 阅读全文
posted @ 2017-05-04 12:48 浮华散丶 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 bool sushu(int n); 6 long long i,n,s,t,a,b,c,d,e; 7 while (cin>>n) 8 { 9 a=n%10; 10 b= 阅读全文
posted @ 2017-05-04 12:47 浮华散丶 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 #include<set> 3 using namespace std; 4 int main() 5 { 6 int s=0; 7 int F=479001600; 8 multiset<unsigned int> a; 9 int n; 10 whi 阅读全文
posted @ 2017-05-04 12:44 浮华散丶 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int n,i,s,j,a[100],w,k; 5 while(scanf("%d",&n)==1) 6 { 7 printf("%d:",n); 8 for (i=2; i<=n; i++) 9 { 10 s=1; 11 阅读全文
posted @ 2017-05-04 12:43 浮华散丶 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int i,n,j[31],s,a,b; 5 for(;scanf("%d",&n)==1;) 6 { 7 i=0; 8 if (n==0) 9 { 10 printf("%11d-->0\n",n); 11 contin 阅读全文
posted @ 2017-05-04 12:42 浮华散丶 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int x,i,n,a,c; 5 while(scanf("%d",&x)==1) 6 { 7 if (x>=100 && x<=999) 8 { 9 n=0; 10 for (i=1;i<=x;i++) 11 { 12 阅读全文
posted @ 2017-05-04 12:35 浮华散丶 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int i,j,s,b,a; 5 float t; 6 s=0; 7 for (i=1;i<=5;i++) 8 { 9 while(scanf("%d",&a)==1) 10 { 11 for (j=1;j<=a;j++) 阅读全文
posted @ 2017-05-04 12:34 浮华散丶 阅读(64) 评论(0) 推荐(1) 编辑
摘要: 1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 unsigned int a,b,t,i,s,v,n=0; 6 for (;scanf("%d%d",&a,&b)==2;) 7 { 8 if (a>b) 9 { 10 t=a; 11 阅读全文
posted @ 2017-05-04 12:33 浮华散丶 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<math.h> 3 int main() 4 { 5 unsigned int a,b,t,i,s,n=0; 6 for (;scanf("%d%d",&a,&b)==2;) 7 { 8 if (a>b) 9 { 10 t=a; 11 a 阅读全文
posted @ 2017-05-04 12:29 浮华散丶 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int i,n,a[47]; 5 for (i=0;i<=46;i++) 6 { 7 if (i==0) 8 { 9 a[i]=0; 10 continue; 11 } 12 if (i==1) 13 { 14 a[i]= 阅读全文
posted @ 2017-05-04 12:28 浮华散丶 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int n,i,t; 5 float q,s; 6 while(scanf("%d%f",&n,&q)==2) 7 { 8 if (n>=2&&n<=20&&q>0&&q<2) 9 { 10 s=0; 11 for (i= 阅读全文
posted @ 2017-05-04 12:27 浮华散丶 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int a,b,s,t,i,j; 5 while((scanf("%d",&a)==1)) 6 { 7 if (a<=12&&a>=1) 8 { 9 t=0; 10 for (i=1;i<=a;i++) 11 { 12 s 阅读全文
posted @ 2017-05-04 12:26 浮华散丶 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main () 3 { 4 long long a,b,s; 5 6 while(scanf("%lld%lld",&a,&b)==2) 7 { 8 s=a-b; 9 printf("%lld\n",s); 10 } 11 12 return 0; 阅读全文
posted @ 2017-05-04 12:25 浮华散丶 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int a[50],n; 5 for (n=0;n<25;n++) 6 { 7 scanf("%d",&a[n]); 8 if (a[n]>=1&&a[n]<=10000) 9 printf("%d\n",a[n]*a[n 阅读全文
posted @ 2017-05-04 12:23 浮华散丶 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 char a,b; 5 scanf("%c %c",&a,&b); 6 if (a>='a'&&a<='z') 7 printf("%c=>%c\n",a,a-32); 8 else 9 printf("error\n") 阅读全文
posted @ 2017-05-04 12:22 浮华散丶 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int a,b,c,x; 5 scanf("%d,%d,%d",&a,&b,&c); 6 if (a>b) 7 { 8 x=a; 9 a=b; 10 b=x; 11 } 12 if (b>c) 13 { 14 x=b; 1 阅读全文
posted @ 2017-05-04 12:21 浮华散丶 阅读(58) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 int main() 3 { 4 int a,b,s; 5 scanf("%d#%d",&a,&b); 6 if (b>a) 7 s=a; 8 a=b; 9 b=s; 10 printf("%d,%d",a,b); 11 return 0; 12 } 。 阅读全文
posted @ 2017-05-04 12:20 浮华散丶 阅读(103) 评论(0) 推荐(0) 编辑