Dari_ Feb 19th, 2019 18 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- nums = list(map(int, input().split()))
- res = 0
- for i in range(1, len(nums)-1):
- if nums[i-1] < nums[i] > nums[i+1]:
- res += 1
RAW Paste Data