[置顶] 2019.3.6

摘要: 计划做一个题集。 目的是有效的复习学过的知识点。 避免遗忘或者有还没有弄懂的题。 阅读全文

posted @ 2019-03-06 20:23 hanahanahanabe 阅读(186) 评论(0) 推荐(0)

2019年4月10日

哪里错了,答案40分

摘要: #include<stdio.h> int main(){ int a[12],i,m=0,n=0;/*m表示现在存在妈妈那里的钱,n表示津津手里的钱,要记得先清零*/ for(int i=0;i<=11;i++) scanf("%d",&a[i]);/*输入每个月的预算*/ for(int i=0 阅读全文

posted @ 2019-04-10 20:07 hanahanahanabe 阅读(80) 评论(2) 推荐(0)

2019年3月31日

【非原创】 时,分的计算

摘要: #include<stdio.h>int main(){ int h1,h2,m1,m2; scanf ("%d:%d",&h1,&m1); scanf ("%d:%d",&h2,&m2); int time=(h2-h1)*60+m2-m1; time/=2; int h=time/60,m=ti 阅读全文

posted @ 2019-03-31 10:21 hanahanahanabe 阅读(158) 评论(0) 推荐(0)

2019年3月30日

循环 统计天数

摘要: #include <stdio.h>int main(){ int n,sum=1,ans=0,a[10000001]; scanf("%d",&n); a[n+1]=-1; for(int i=1;i<=n;i++) { scanf("%d",&a[i]); } for(int i=2;i<=n; 阅读全文

posted @ 2019-03-30 11:23 hanahanahanabe 阅读(275) 评论(0) 推荐(0)

仍然是一道还没有解决的题

摘要: #include<stdio.h>main(){ char a[8],b[8],x=1,y=1; scanf("%s %s",a,b); for(int i=0;i<6;i++) { x *= (a[i]-'@'); y *= (b[i]-'@'); } if(x%47==y%47) printf( 阅读全文

posted @ 2019-03-30 11:18 hanahanahanabe 阅读(95) 评论(0) 推荐(0)

【非原创】 珠心算测验(循环?)

摘要: #include<stdio.h>//第一次,20分main(){ int n,a[101],b,k,ans=0; scanf("%d",&n); for(int x=0;x<n;x++) { scanf("%d",&a[x]); } for(int x=0;x<n-1;x++) { k=x; fo 阅读全文

posted @ 2019-03-30 09:53 hanahanahanabe 阅读(240) 评论(0) 推荐(0)

2019年3月27日

【非原创】Game23

摘要: #include<stdio.h>int main(){ int n,m,x=0,flag=0; scanf("%d%d",&n,&m); x=m/n; if(m%n!=0) { printf("-1\n"); } else { while(x%3==0) x=x/3,flag++; while(x 阅读全文

posted @ 2019-03-27 21:04 hanahanahanabe 阅读(125) 评论(0) 推荐(0)

2019年3月20日

【非原创】ISBN码

摘要: #include<stdio.h>int main(void){ char a[14],mod[12]="0123456789X"; #include <stdio.h>int main(void){ char a[14], mod[12] = "0123456789X"; scanf("%s",a 阅读全文

posted @ 2019-03-20 19:29 hanahanahanabe 阅读(173) 评论(0) 推荐(0)

2019年3月17日

【非原创】 难点是什么还不知道

摘要: #include<stdio.h> main(){ int a[12],i,m=0,n=0;/*m:给妈妈整百的钱,n:自己手里的钱*/ for(int i=0;i<=11;i++) scanf("%d",&a[i]); for(int i=0;i<=11;i++) { m=((n+300-a[i] 阅读全文

posted @ 2019-03-17 09:59 hanahanahanabe 阅读(88) 评论(0) 推荐(0)

导航