Guest User

Untitled

a guest
Jan 16th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. import math
  2. n = int(input())
  3. while n != 0:
  4. n = (n - 1960) / 10 + 2
  5. m = pow(2,n)
  6. i = 1
  7. while m > 0:
  8. m -= math.log(i,2)
  9. i += 1
  10. print(i - 2)
  11. n = int(input())
Add Comment
Please, Sign In to add comment