Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
TopCoder SRM #664 Div2
class BearCheats:
def eyesight(self, a, b):
res = 0
for(i, j) in zip(list(str(a)), list(str(b))):
if i != j:
res += 1
if res <= 1:
return "happy"
else:
return "glasses"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment