摘要: #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) 编辑