muchenglin2023 @ 2024-01-15 20:22:56
m=input().split()
gao=int(m[-1])
s=0
for i in m[:-1]:
if int(i)<=gao+30:
s+=1
print(s)
by Winds_Land @ 2024-01-23 16:40:39
lst = list(map(int, input().split()))
h = int(input())
h += 30
count = 0
for i in lst:
if i<=h:
count+=1
print(count)
by 120229xhj @ 2024-02-16 10:22:40
@muchenglin2023
#include<iostream>
using namespace std;
int main()
{
int a[10]={},b,e;
e=0;
for(int i=0;i<10;i++)
{
cin>>a[i];
}
cin>>b;
for(int d=0;d<10;d++)
{
if(b+30>=a[d])
{
e++;
}
}
cout<<e;
return 0;
}