Last active
January 10, 2016 03:51
-
-
Save whatalnk/fb9407076aa7236329be to your computer and use it in GitHub Desktop.
TopCoder SRM #664 Div2
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
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