Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- intList = list(map(int, input().split()))
- height = int(input())
- pos = 0
- while intList[pos] >= height and pos < len(intList) - 1:
- pos += 1
- if pos == len(intList) - 1 and intList[-1] >= height:
- pos += 2
- else:
- pos += 1
- print(pos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement