Skip to content

Instantly share code, notes, and snippets.

@Svastikkka
Created June 12, 2020 10:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Svastikkka/11cacc1e456ce1e0e1a9a15463aa9214 to your computer and use it in GitHub Desktop.
Save Svastikkka/11cacc1e456ce1e0e1a9a15463aa9214 to your computer and use it in GitHub Desktop.
from pip._vendor.distlib.compat import raw_input
num=input() #101010101
print(int(num,2))
n, k = raw_input().split(" ")
n = int(n)
k = int(k)
@Svastikkka
Copy link
Author

Binary to decimal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment