13
Winandfx
2 10 28
772/ 845
Andrey Makarov
Last seen 2 years ago
Member for 9 years, 4 months, 15 days
Difficulty Normal
One-liners are WET!

Missions (58) / Solutions (57)
Best solutions / Newest solutions
Home
count with reduce
Three Words
functools.reduce
reduce
functools
isalpha
lambda
10 lines
Pawn Brotherhood
chr
ord
lambda
in
append
join, replace
Right to Left
replace
join
3 lines, datetime.date
Days Between
as
date
datetime.date
datetime
abs
find even indexes with enumerate
Even the Last
enumerate
not
inline-if
sum
if-comprehension
Electronic Station
22 lines (with handmade matrix rotation)
Find Sequence
filter
tuple
zip
None
not
18
1
10 lines
Brackets
pop
not
or
in
False
map operators with dict
Boolean Algebra
eq
operator.eq
and_
operator.and_
operator.xor
calc product with reduce
Digits Multiplication
functools.reduce
reduce
functools
lambda
or
Scientific Expedition
3 lines, strip
Pangram
ascii_lowercase
string.ascii_lowercase
strip
string
not
9 lines
Letter Queue
pop
join
elif
append
split
First
I Love Python!
ord
Rotate with zip
Cipher Map
reversed
tuple
zip
join
if-comprehension
filter v. after c. then replace 3 same v. in a row /10 lines
Bird Language
ascii_lowercase
string.ascii_lowercase
string
enumerate
replace
2 lines
Absolute Sorting
abs
sorted
2 lines: split, compare, sort, join
Common Words
set
sorted
join
split
Filter it! Join it!
Secret Message
filter
lambda
join
in
1
First
The Most Wanted Letter
filter
dict-comp
isalpha
lower
lambda
O'Reilly
nested generator
Count Inversions
enumerate
sum
comprehension
First
Xs and Os Referee
zip
count
and
append
list-comp
First
Index Power
inline-if
len
Incinerator
17 lines
Friends
class
set-comp
index
if-comprehension
in
First
Building Base
class
Mine
Fill neighbours recursively /26 lines
Color Map
any
None
break
set
max
First
Moore Neighbourhood
continue
lambda
inline-if
and
range
First
Fizz Buzz
not
or
join
append
str
2 lines
Binary Count
bin
count
Ice Base
Expand area to the left&right /13 lines
Largest Rectangle in a Histogram
break
range
len
for
if
1
3 lines
Clock Angle
map
min
abs
split
int
14 lines
How to Find Friends
index
lambda
inline-if
while
in
Sum booleans
Monkey Typing
lower
sum
in
comprehension
9 lines
Feed Pigeons
filter
tuple
None
while
True
Other solutions driven simplification
Feed Pigeons
max
while
True
if
Second (7 line)
Roman Numerals
reversed
enumerate
min
abs
max
max-min
The Most Numbers
min
max
inline-if
GitHub
3 lines
Solution for Anything
class
lambda
True
14 lines
Open Labyrinth
tuple
map
enumerate
pop
not
First
The End of Other
in
False
True
list-comp
comprehension
Dropbox
14 lines (with kind-of zero division:-)
Three Points Circle
rstrip
findall
re.findall
r-string
round
15 lines (0-division fix)
Three Points Circle
rstrip
findall
re.findall
r-string
round
get substrings and compare their halves /9 lines
The Longest Palindromic
startswith
next
None
if-comprehension
range
10 lines
Numbers Factory
reversed
break
not
inline-if
join
8 lines
Speech Module
rstrip
reversed
enumerate
replace
join
PyCon TW
go through pyramid: accum. path costs, filter worst paths
Golden Pyramid
collections.defaultdict
defaultdict
as
values
dict-comp
First
House Password
re.search
search
re
False
True
Storage
16 lines
Moria Doors
punctuation
string.punctuation
translate
dict-comp
string
Check all Xij=-Xji /kind of one-liner
Skew-symmetric Matrix
any
not
range
comprehension
len
2 lines
Weak Point
map
enumerate
min
lambda
sum
HubSpot
1 line
The Hamming Distance
bin
count
1 line
Restricted Sum
eval
map
join
str
4 lines, nothing special
Number Base
ValueError
except
try
int
Blizzard
12 lines
Min and Max
get
None
or
inline-if
False
get rnd item and crawl through its neighbours, repeat until dict is empty
Radiation Search
iter
next
filter
dict-comp
keys
Codeship
no creativity, just using a known formula
Probably Dice
scipy.stats.norm
scipy.stats
scipy.special.binom
binom
norm
Hermit
delete ring with max.links or its neighbours (recursion)
Break Rings
chain
itertools.chain
set-comp
as
collections.Counter
Watchtower
8 lines
Vigenere Cipher
next
set-comp
filter
chr
ord