22
hrvoje
9 25 38
2826/ 2945
Last seen 2 years ago
Member for 10 years, 1 month, 13 days
Difficulty Normal
Trying to make everything a one-liner and sometimes failing miserably. :)

Missions (125) / Solutions (120)
Best solutions / Newest solutions
Home
Boring and not very creative
Bigger Price
lambda
sorted
True
list
int
Straightforward ... :)
Pawn Brotherhood
chr
ord
map
inline-if
sum
3
The last is a blast
Even the Last
IndexError
except
try
sum
Slightly weird solution :)
Three Words
isdigit
inline-if
join
in
list-comp
1
Short & boring
Right to Left
replace
join
No wheel reinvented
Days Between
date
datetime.date
datetime
abs
First
Non-unique Elements
count
if-comprehension
list-comp
comprehension
1
Electronic Station
Four fors in f
Mathematically Lucky Tickets
operator.truediv
truediv
operator.sub
operator.add
mul
1
Laying some tiles
Can You Pass?
difference
union
set-comp
functools.reduce
reduce
I <3 ZIP!
Find Sequence
re.search
search
r-string
any
zip
Relatively short
Boolean Algebra
int
Reduce and list comprehension
Digits Multiplication
functools.reduce
reduce
functools
lambda
if-comprehension
First
Verify Anagrams
dict-comp
replace
set
lower
count
Scientific Expedition
Don't ask. :o)
Cipher Map
tuple
zip
map
enumerate
print
First
Letter Queue
pass
IndexError
pop
except
try
Limerick
I Love Python!
1-Line
Bird Language
re.sub
sub
r-string
re
7
1
Simple, fast
Secret Message
isupper
join
if-comprehension
list-comp
list
Oneliner pangram!
Pangram
isalpha
set
lower
if-comprehension
list-comp
Fun problem
Common Words
sorted
join
if-comprehension
in
list-comp
Simple and fun :)
Absolute Sorting
abs
sorted
Second
Morse Clock
zfill
format
map
replace
join
Short Telegraph
Morse Clock
zfill
format
map
replace
join
2
1
A little weird :)
The Most Wanted Letter
ord
isalpha
max
lower
lambda
1
O'Reilly
Almighty Zip
Cipher Crossword
dict-comp
dict
items
tuple
zip
6
Straightforward
Xs and Os Referee
zip
isalpha
join
and
list-comp
1
Transitive relations
Determine the Order
itertools.product
product
itertools
ord
index
15
No need to complicate
Index Power
except
try
At least it's short
Count Inversions
enumerate
sum
list-comp
comprehension
Very weird solution
Loading Cargo
itertools.product
product
itertools
zip
min
Incinerator
First
Friends
class
difference
union
remove
set
Base By The Book
Building Base
class
Mine
Disposable Recursion
Disposable Teleports
frozenset
iter
next
set-comp
filter
7
Simplicity
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
Oh, Albert!
The Einstein Problem-Lite
eval
any
map
pop
set
2
Recursive Laplace
Determinant
enumerate
sum
list-comp
comprehension
len
Quicky in da hood
Moore Neighbourhood
itertools.product
product
set-comp
itertools
map
Tortoise outlived Achilles :)
Achilles and the Tortoise
lambda
Binary count, literally :)
Binary Count
bin
count
Ice Base
If only there was an algorithm :)
How to Find Friends
intersection
update
enumerate
set
in
Nom nom nom nom
Oil Pie
Fraction
fractions.Fraction
fractions
map
abs
17
1
Boring and predictable
Feed Pigeons
if-comprehension
list-comp
range
comprehension
len
7
The shortest I know
Monkey Typing
lower
sum
in
list-comp
comprehension
Shorty
The Most Numbers
min
max
inline-if
len
Recursive, short, weird but works! :)
Roman Numerals
not
lambda
inline-if
str
16
1
Alice In Wonderland
Double D's :)
Digits Doublets
itertools.starmap
starmap
itertools.permutations
permutations
all
4
Knighty Knight
The Shortest Knight's Path
difference
union
set-comp
functools.reduce
reduce
Oneliner
Transposed Matrix
zip
map
list
GitHub
Even shorteeeeeeeeeeeeeer! :)
Solution for Anything
class
None
lambda
True
Shoooooooooort. :)
Solution for Anything
class
None
lambda
True
7
2
Quick & gets the job done :)
Area of a Convex Polygon
zip
abs
sum
list-comp
comprehension
5
1
Not efficient but short :)
The End of Other
endswith
is
not
if-comprehension
in
Recursive Boulder Dash.
Open Labyrinth
if
3
Dropbox
Nine, One, MinusOne
Numbers Factory
inline-if
sorted
join
range
int
2
9
Pawn Humps Queen
Place Queens
operator.sub
operator.add
itertools.product
product
operator
Shuffle the points!
Three Points Circle
ZeroDivisionError
eval
float
format
map
9
1
First
Simple Hashlib
hashlib.new
new
hashlib
update
Ugliest oneliner in history. Ever.
Speech Module
strip
inline-if
join
2
PyCon TW
Fill, Sort & Partners, Inc.
Calculate Islands
union
set-comp
functools.reduce
reduce
functools
Python haiku
How Much Gold
lambda
sum
in
list-comp
comprehension
13
1
Kind of ugly, but fits in a single line.
Simple Areas
lambda
len
Very short and non-recursive
Golden Pyramid
tuple
enumerate
max
lambda
comprehension
19
Look ma, no regex! :)
House Password
islower
any
isupper
isdigit
False
1
Storage
Cakes Or Cevapi? :)
The Rows of Cakes
Fraction
fractions.Fraction
fractions
combinations
itertools.combinations
Brain Slugs
Mind Switcher
popitem
union
functools.reduce
reduce
functools
Complex numbers FTW
Square Spiral
abs
append
range
for
8
For For For
Hexagon Spiral
operator.sub
operator
sub
zip
map
4
Quine Exec Quine Exec Quine Exec Quine Exec Quine ...
Exec Quine
lambda
11
First
Weak Point
zip
map
index
min
sum
Short, but boring.
Earth Distances
math.radians
radians
math.cos
cos
math.sin
1
1
Simply test
Skew-symmetric Matrix
zip
lambda
list-comp
comprehension
4
1
Good enough.
Word Pattern
zfill
format
isalpha
lambda
inline-if
Seriously bad and improvized
Restricted Prime
not
while
False
True
if
8
HubSpot
Long division, ugly code.
Repeating Decimals
divmod
format
zip
map
index
Ugly, improvised, without a better idea how to tackle this.
Supply Stations
time.time
random.shuffle
shuffle
time
random
9
FOS - First One Sucks
Expected Dice
random.choice
choice
random
float
round
Short recursion
Restricted Sum
not
len
if
13
Zip, difference, sum
The Hamming Distance
format
zip
inline-if
sum
comprehension
By the book
Number Base
reversed
enumerate
except
try
sum
1
Blizzard
Dutch Quickie
Safe Coasts
union
set-comp
functools.reduce
reduce
functools
6
Don't Be Square
Spaceship Landing Strip
yield
zip
map
enumerate
min
5
Chernobyl Jive
Radiation Search
union
set-comp
functools.reduce
reduce
functools
13
Golfish
Stair Steps
max
lambda
inline-if
len
13
FirstsriF
Palindromic Palindrome
lambda
Sudoku Golf attempt
Sudoku Solver
yield
ValueError
any
index
except
4
Short and weird
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
15
Calendar solution
Weekend Counter
or
if-comprehension
list-comp
range
comprehension
Rock
Life(cat)=9
Life Counter
divmod
set-comp
enumerate
abs
set
5
Just Keep Pouring
Water Jars
any
min
break
not
lambda
3
Rook Gone Wild
Berserk Rook
set-comp
map
max
not
or
Oh Lambert, My Lambert :)
Super Root
math.exp
exp
math.log
log
as
1
Shelter
Boring, Sliding Window
Pattern Recognition
lambda
list-comp
range
comprehension
len
Race tracks
The Lantern Festival
copy.deepcopy
deepcopy
union
set-comp
copy
Codeship
First and Slow
Magic Domino
random.shuffle
shuffle
random
iter
set-comp
14
Windows 3.1 winmine.exe
Minesweeper
union
set-comp
functools.reduce
reduce
functools
15
First attempt
8 Puzzle
collections.deque
deque
divmod
add
collections
13
First, the "Dumb One"
Unfair Dice
partition
StopIteration
raise
yield
get
Slightly less dumb
The 88th Puzzle
add
tuple
pop
set
while
4
Dumb solution to a smart problem
The 88th Puzzle
min
lambda
or
list-comp
range
1
2**11
Behind 2048
ValueError
zip
map
index
except
2
Generating function
Probably Dice
IndexError
enumerate
except
try
range
13
Short and ugly.
The Square Chest
all
sum
sorted
in
list-comp
8
Hermit
Cut non-loopy branches and do some recursion
Network Loops
frozenset
iter
next
set-comp
filter
17
Eq Le Ge
Colder-Warmer
ge
operator.ge
le
operator.le
eq
Ping ... ping ... ping ...
Ore In The Desert
math.hypot
hypot
intersection
set-comp
round
Not so fast
Break Rings
union
combinations
itertools.combinations
itertools
map
14
Try-Except
The Good Radix
ValueError
pass
except
try
not
Bool overdose
Simplification
class
itertools.zip_longest
zip_longest
object
eval
1
Weird
Mono Captcha
zfill
bin
zip
map
enumerate
1
Watchtower
Convex Skull
Convex Hull
math.atan2
atan2
math
pop
index
1
First Fugly Attempt
Bulls and Cows
string.split
zfill
intersection
set-comp
functools.reduce
Made in China :)
Number Guess
mul
operator.mul
pow
operator
functools.reduce
11
Recursive LCS with dict() cache
DNA Common Sequence
clear
set-comp
get
dict
None
15
I'm washing my hands twice today :)
Bacteria Colonies
issubset
union
intersection
set-comp
yield
5
Sloppy λ Quickie
Numbered Triangles
enumerate
set
max
lambda
inline-if
8
Codes and ciphers
Vigenere Cipher
string.uppercase
uppercase
startswith
string
ord
2
Magic**2-{d}
Magic Square
copy.deepcopy
deepcopy
divmod
copy
ValueError
1
1
And around, and around, and around and around we go.
Rotate Hole
yield
all
enumerate
lambda
list
12
1
No need to complicate
Funny Addition
lambda
sum
Not On Map
Slightly boring, does the job
Most Wanted Letter
filter
collections.Counter
Counter
values
items
11