Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 16th, 2018
70
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
import math
n = int(input())
while n != 0:
n = (n - 1960) / 10 + 2
m = pow(2,n)
i = 1
while m > 0:
m -= math.log(i,2)
i += 1
print(i - 2)
n = int(input())
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Untitled
C# | 1 hour ago | 2.78 KB
K_C_Shuffle
C# | 1 hour ago | 1.13 KB
pagination-fixed
JavaScript | 2 hours ago | 4.75 KB
Untitled
TypeScript | 2 hours ago | 2.13 KB
:/
JavaScript | 2 hours ago | 5.22 KB
Untitled
Java | 4 hours ago | 1.72 KB
Splah Layout
XML | 5 hours ago | 0.31 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!