Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. intList = list(map(int, input().split()))
  2. height = int(input())
  3. pos = 0
  4. while intList[pos] >= height and pos < len(intList) - 1:
  5. pos += 1
  6. if pos == len(intList) - 1 and intList[-1] >= height:
  7. pos += 2
  8. else:
  9. pos += 1
  10. print(pos)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement