Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- if n < 0 or n > 10:
- print("INVALID INPUT")
- else:
- for _ in range(n):
- n = int(input())
- if n > 365:
- print("INVALID INPUT")
- else:
- res = 1
- for i in range(11, n + 1, 11):
- res *= 2
- print(res - 1)
- '''
- 4
- 9
- 480
- 19
- 120
- '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement