Skip to content

Instantly share code, notes, and snippets.

@avamsi
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save avamsi/87425f65782c6dbdd482 to your computer and use it in GitHub Desktop.

Select an option

Save avamsi/87425f65782c6dbdd482 to your computer and use it in GitHub Desktop.
from math import log
try:
while True:
print int(log(int(raw_input()), 2))
except ValueError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment