Created
December 10, 2017 02:07
-
-
Save whatalnk/889167bf675579efe1c71b9df5590ba6 to your computer and use it in GitHub Desktop.
AtCoder ABC #076
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = int(input()) | |
k = int(input()) | |
number = 1 | |
for i in range(n): | |
number = min(number * 2, number + k) | |
print(number) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment