Hi,
import re
l=len
def recognize(n):
s=re.findall("1+","{0:b}".format(n))
return not any([l(s[i])!=l(s[i+1]) for i in range(l(s)-1)])
its 138 char with indents, its pass the tests, and i didnt get any points :(
why?
Created at: 2015/06/03 09:07; Updated at: 2015/06/03 09:08