摘要: #include<iostream>#include<stdio.h>#include<math.h>using namespace std;int main (){ int t; cin>>t; while(t--) { double x1,x2,y1,y2; cin>>x1>>y1>>x2>>y 阅读全文
posted @ 2018-07-25 15:02 换牙 阅读(88) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n; cin>>n; if(n>=90 && n<=100) cout<<"A"<<endl; else if(n>=80 && n< 阅读全文
posted @ 2018-07-25 14:47 换牙 阅读(69) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>using namespace std;int main (){ int n; cin>>n; while(n--) { double m,x,y,z; cin>>m>>x>>y>>z; double s1=m*x; double 阅读全文
posted @ 2018-07-25 14:39 换牙 阅读(90) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int fun(int n){ int i=0; while(n!=0) { n=n/10; i++; } return i;}int main(){ int t; cin>>t; while(t--) { int n; c 阅读全文
posted @ 2018-07-25 12:55 换牙 阅读(70) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,k; cin>>n>>k; int count=n; while(n>=k) { int tmp=n; n=n/k; count= 阅读全文
posted @ 2018-07-25 12:46 换牙 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>using namespace std;int main (){ int t; cin>>t; while(t--) { char s[20]; cin>>s; cout<<s<<endl; } return 0;} 定义字符串数 阅读全文
posted @ 2018-07-25 11:42 换牙 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int n,k; cin>>n>>k; int book[1005]; for(int i=1;i<=n;i++) book[i]=1; for(int j=2;j<=k;j++) { int a= 阅读全文
posted @ 2018-07-25 11:38 换牙 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int m1[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};int m2[13]={0,31,29,31,30,31,30,31,31,30,31,30,31};int main ( 阅读全文
posted @ 2018-07-25 11:04 换牙 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<stdio.h>using namespace std;int main (){ int n,m; while(scanf("%d %d",&n,&m),n!=0 && m!=0) { int a[3],b[3]; a[0]=n%10; b[0 阅读全文
posted @ 2018-07-25 10:45 换牙 阅读(89) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ double m[13]; double sum=0; for(int i=1;i<=12;i++) { cin>>m[i]; sum=sum+m[i]; } cout<<sum/12<<endl; 阅读全文
posted @ 2018-07-25 10:18 换牙 阅读(77) 评论(0) 推荐(0) 编辑