Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sys import stdin, stdout
- ins = stdin
- outs = stdout
- a = list(map(int, ins.readline().split()))
- print(a)
- a += [a[-1]]
- ans = [0, 0]
- state = 0
- pos = 0
- for i in range(len(a) - 1):
- if a[i] < a[i + 1]:
- pos = i
- if a[i] > a[i + 1]:
- ans = pos + 1, i + 1
- if ans[1] - ans[0] != 0:
- print(ans)
- else:
- print(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement