10分求助!

P1046 [NOIP2005 普及组] 陶陶摘苹果

Kaarim @ 2020-03-12 13:02:08

_list = [int(x) for x in input().split()]
high = int(input())
j = 0
for i in _list:
    if i < high:
        j += 1
print(j)

by IntrepidStrayer @ 2020-03-12 13:03:20

@Kaarim

high = int(input()) + 30

<改为<=


by 死神审判 @ 2020-03-12 13:04:03

@Kaarim 您是不是忘了板凳。。。


by 死神审判 @ 2020-03-12 13:04:41

_list = [int(x) for x in input().split()]
high = int(input())+30
j = 0
for i in _list:
    if i <= high:
        j += 1
print(j)

by Kaarim @ 2020-03-12 20:30:14

@死神审判 说话不用那么客气啦

谢谢提醒


by Kaarim @ 2020-03-12 20:30:40

@fhh_orz TY


|