Skip to content

Instantly share code, notes, and snippets.

@lucasgsa
Created April 2, 2019 00:15
Show Gist options
  • Save lucasgsa/4b06e106de083c39b07a711052517787 to your computer and use it in GitHub Desktop.
Save lucasgsa/4b06e106de083c39b07a711052517787 to your computer and use it in GitHub Desktop.
while True:
try:
a = raw_input()
a = a.replace("l","1")
a = a.replace("o","0")
a = a.replace("O","0")
a = a.replace(",","")
a = a.replace(" ","")
if int(a) > 2147483647:
print "error"
else:
print int(a)
except EOFError:
break
except:
print "error"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment