Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 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. print(pos + intList.count(height) + 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement