随笔分类 -  水题

摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int k1,k2,k3,a[3]; while(scanf("%d%d%d",&k1,&k2,&k3)==3){ a[0] = k1-3*k2+3*k3; a[ 阅读全文
posted @ 2021-07-31 20:48 智人心 阅读(14) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int a[3],pos; scanf("%d%d%d",&a[0],&a[1],&a[2]); bool flag = true; for(int i=0;i< 阅读全文
posted @ 2021-07-31 20:07 智人心 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,m,p,c; while(scanf("%d%d%d%d",&n,&m,&p,&c)==4&&n)//真币数:m+c-p,亏损:n+c-(m+c-p) 阅读全文
posted @ 2021-07-31 19:58 智人心 阅读(19) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int n,kase = 1,pos,sum,len,i,v[3] = {9,3,7}; char d[10]; scanf( 阅读全文
posted @ 2021-07-31 17:08 智人心 阅读(18) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; #define PI 3.1415927 int main(){ double D,V,d; while(scanf("%lf%lf",&D,&V)==2 阅读全文
posted @ 2021-07-31 16:41 智人心 阅读(52) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ unsigned R,M,Y; scanf("%u%u%u",&R,&M,&Y); unsigned ans = floor(po 阅读全文
posted @ 2021-07-31 16:24 智人心 阅读(14) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main(){ int n,d[10005]; scanf("%d",&n); for(int i=0;i<n;i++) scanf("% 阅读全文
posted @ 2021-07-31 16:10 智人心 阅读(29) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int ans,sum,c,n,data[1005]; double avg,per; scanf("%d",&c); while(c--){ scanf("%d 阅读全文
posted @ 2021-07-31 16:01 智人心 阅读(79) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int p; char a[10]; int s=0,e=11; while(true){ scanf("%d",&p); i 阅读全文
posted @ 2021-07-31 15:43 智人心 阅读(31) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int s,d,p,q,n; scanf("%d",&n); while(n--){ scanf("%d%d",&s,&d); if(d>s||(s-d)%2== 阅读全文
posted @ 2021-07-31 15:20 智人心 阅读(9) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ long long n,k,i,j,sum; while(scanf("%lld%lld",&n,&k)==2&&n){ if(n-k<k){ k = n-k; 阅读全文
posted @ 2021-07-31 15:11 智人心 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; #define PI 3.141592653589793 #include<cmath> int main(){ double x1,y1,x2,y2,x3,y3; double k1, 阅读全文
posted @ 2021-07-31 14:38 智人心 阅读(27) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; bool test(int n){ int p,s1,s2,s3; s1 = s2 = s3 = 0; p = n; while(p>0){ s1 += p%10; p /= 10; } 阅读全文
posted @ 2021-07-31 10:21 智人心 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ char a[15]; scanf("%s",a); int i,sum,pos; sum = 0; for(i=0;i<10 阅读全文
posted @ 2021-07-31 10:07 智人心 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char k[27],data[85],ans[85]; gets(k); gets(data); for(int i=0;i 阅读全文
posted @ 2021-07-30 22:31 智人心 阅读(14) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; bool wr(double sp,double w,double s){ if(sp<=4.5&&w>=150&&s>=200)return true; else return fal 阅读全文
posted @ 2021-07-30 22:03 智人心 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,x,y; scanf("%d",&n); while(n--){ scanf("%d%d",&x,&y); if(x>=y)printf("MMM B 阅读全文
posted @ 2021-07-30 21:20 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,sum,s[15],t[15]; while(scanf("%d",&n)&&n!=-1){ for(int i=1;i<=n;i++){ scanf 阅读全文
posted @ 2021-07-30 21:15 智人心 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ char data[20][30]; int n,kase = 1; while(scanf("%d",&n)&&n){ for(int i=1;i<=n;i++ 阅读全文
posted @ 2021-07-30 21:04 智人心 阅读(29) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,sum,i,j,t; while(scanf("%d",&n)&&n){ i=1; while(i*(i+1)/2<n)i++; i--; sum = 阅读全文
posted @ 2021-07-30 20:51 智人心 阅读(22) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示