Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = 0
- l = int(input())
- r = int(input())
- n = int(input())
- arr = list(map(int, input().split()))
- for i in range(n):
- if l < arr[i] < r:
- s += arr[i]
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement