shuiyuans @ 2024-02-27 11:15:13
#include <stdio.h>
void main()
{
int a[10],b;
for(int i=0;i<10;i++)
{
scanf("%d",&a[i]);
}
scanf("%d",&b);
int count=0;
for(int i=0;i<10;i++)
{
if(b+30>=a[i])
count++;
}
printf("%d",count);
}
by _czx6666_ @ 2024-02-27 11:18:32
main()是int! @shuiyuans
by shuiyuans @ 2024-02-28 00:00:30
@czx6666 明白了,我还有个问题,洛谷的实名认证在哪啊,我找好久了
by Lin_Ziluo @ 2024-03-17 21:40:53
@shuiyuans 你在洛谷绑定一个软件,微信QQ都行,你在微信(QQ)上实名认证后,洛谷就自然会实名认证了。
by personality_chip @ 2024-03-29 17:42:30
@shuiyuans 我也没找到,你认证手机号试一下吧,我认证完之后就没显示我未认证,但是我还是下载不了测试点,跟我说我超过了下载次数
by Mr_Clock @ 2024-03-29 21:13:40
int main()说:“HI~”
by Innate_Joker @ 2024-03-31 11:56:50
我的代码
#include<cstdio>
using namespace std;
void main() {
int a[11] {};
for(int i=1; i<=10; i++) scanf("%d",&a[i]);
int x,total=0;
scanf("%d",&x);
x+=30;
for(int i=1; i<=10; i++)
if(a[i]<=x)
total++;
printf("%d",total);
return 0;
}
by Xingyi_2014 @ 2024-07-28 11:44:33
我的代码:```
using namespace std;
int height,a[10],x,sum;
int main(){
for(int i=0;i<10;i++){
cin>>a[i];
}
cin>>height;
x=height+30;
for(int i=0;i<10;i++){
if(a[i]<=x) sum++;
}
cout<<sum;
return 0;
}