摘要: #include<iostream>using namespace std;int fun(int n){ int ans=1; for(int i=1;i<=n;i++) { if(i%2==1) { ans=ans*i; } } return ans;}int main (){ int t; c 阅读全文
posted @ 2018-07-25 10:11 换牙 阅读(59) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int a; cin>>a; while(a--) { int n,m; cin>>n>>m; int x=(4*n-m)/2; int y=(m-2*n)/2; if(x>=0 && y>=0 & 阅读全文
posted @ 2018-07-24 21:39 换牙 阅读(95) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<string.h>#include<stdio.h>#include<math.h>using namespace std;bool prime(int n){ if(n==0 || n==1) return false; else if(n== 阅读全文
posted @ 2018-07-24 20:55 换牙 阅读(70) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>using namespace std;struct student{ char n[25]; int aver=0; int mark=0; char a; char b; int num=0; int sum=0;};void 阅读全文
posted @ 2018-07-24 19:11 换牙 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>#include<algorithm> using namespace std;int f1(int n){ int a[4]; a[0]=n/1000; a[1]=n/100%10; a[2]=n%100/10; a[3]=n% 阅读全文
posted @ 2018-07-24 18:06 换牙 阅读(113) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>using namespace std;int main (){ int t; cin>>t; while(t--) { int n,m; int count=0; cin>>n>>m; while(n/m!=0) { count=count+n/m; int t 阅读全文
posted @ 2018-07-22 21:38 换牙 阅读(82) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;int main (){ int a[3]; cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); cout<<a[0]<<" "<<a[1]<<" "<<a[2]<< 阅读全文
posted @ 2018-07-22 21:04 换牙 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<algorithm>using namespace std;int main (){ int n; cin>>n; while(n--) { int max; int min; int a,b; cin>>a>>b; if(a<b) { max= 阅读全文
posted @ 2018-07-22 20:56 换牙 阅读(358) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<stdio.h>using namespace std;int main (){ int n; while(scanf("%d",&n),n!=0) { int a,b,c; a=n%10; c=n/100; b=n%100/10; int x, 阅读全文
posted @ 2018-07-22 20:23 换牙 阅读(111) 评论(0) 推荐(0) 编辑
摘要: /*#include<iostream>using namespace std;int main (){ int a,b,c; int sum; cin> cin>>a>>b>>c; for(int i=1;i<100;i++) { if(i%3==a&&i%5==b&&i%7==c) { cout 阅读全文
posted @ 2018-07-22 20:15 换牙 阅读(202) 评论(0) 推荐(0) 编辑