12
しらかみゅ
Last seen 5 years ago
Member for 10 years, 2 months, 17 days
Difficulty Normal
A little shorter:
checkio=lambda x:"www" in "".join('dw'[w.isalpha()] for w in x.split())
More
A little speed up to use set().
s=lambda m,n:[[m[i][i+z]for i in range(n)if 0<=i+zMore
It's converted from my 2nd solution.
http://www.checkio.org/mission/feed-pigeons/publications/shiracamus/python-3/second/
More
Reformat:
checkio=f=lambda d:min(
d<10 and [d]
or [x
for i in range(2,10)
if d%i<1
for x in [f(d//i)*10+i]
if x>9]
or [0])
More
Reformat:
checkio=f=lambda d:min(
d<10 and [d]
or [x for i in range(2,10)
if d%i<1
for x in [f(d//i)*10+i]
if x>9]
or [0])
More
I made a speedy version with reference to the http://www.checkio.org/mission/numbered-triangles/publications/veky/python-3/savage/
.
More
I like this solution.
I tried to shorten a little.
def checkio(data):
return 9 < len(data) and 2 < len({1*i.islower() or 2*i.isupper() or 3*i.isdigit() or 4 for i in data} & {1, 2, 3})
More