Advertisement
tungSfer

covid

Jan 16th, 2022
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. n = int(input())
  2. if n < 0 or n > 10:
  3.     print("INVALID INPUT")
  4. else:
  5.     for _ in range(n):
  6.         n = int(input())
  7.         if n > 365:
  8.             print("INVALID INPUT")
  9.         else:
  10.             res = 1
  11.             for i in range(11, n + 1, 11):
  12.                 res *= 2
  13.             print(res - 1)
  14.  
  15. '''
  16. 4
  17. 9
  18. 480
  19. 19
  20. 120
  21. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement