49
Sim0000
23 50 65
24346/ 25141
Last seen 1 hour ago
Member for 10 years, 3 months, 1 day
Difficulty Normal
from Japan. hobby programmer. start Python from CheckiO.

Missions (438) / Solutions (625)
Best solutions / Newest solutions
Initiation
generator expression
Sum Numbers
isdigit
sum
if-comprehension
split
comprehension
2
2
count
All the Same
count
or
len
2
2
Counter
All the Same
collections.Counter
Counter
collections
len
3
4
str, len
Number Length
int
str
len
6
4
re.findall
End Zeros
findall
re.findall
re
int
str
6
5
iter
Split Pairs
iter
zip
list-comp
comprehension
6
1
one liner
The Most Frequent
as
9
1
First
Multiply (Intro)
10
3
split
First Word (simplified)
split
str
13
1
all
All the Same
all
comprehension
1
slice
Replace First
list
1
strip
End Zeros
strip
int
str
len
2
min with key
Nearest Value
min
abs
set
lambda
int
1
reversed join
Backward String
reversed
join
str
1
First
The Most Frequent
collections.Counter
Counter
collections
First
Acceptable Password I
bool
str
len
with
Easy Unpack
with
class
pass
not any
All Upper I
islower
any
bool
not
or
1
First
Remove All Before
ValueError
index
typing.Iterable
Iterable
except
without capitalize
Correct Sentence
endswith
upper
not
inline-if
str
3
recursive
All the Same
or
and
len
1
lstrip
Beginning Zeros
lstrip
int
str
len
1
First
Between Markers (simplified)
index
str
2
mod 2
Is Even
bool
not
int
1
set
All the Same
set
len
2
eval
All the Same
repr
eval
or
join
comprehension
re.findall
Beginning Zeros
findall
re.findall
re
int
str
1
First
Max Digit
max
int
str
1
Counter
The Most Frequent
collections.Counter
Counter
collections
zip
Split Pairs
zip
list-comp
comprehension
2
sum
Count Digits
map
isdigit
sum
int
str
First
Sum Numbers
filter
map
isdigit
sum
split
First
Easy Unpack
Home
First
Sun Angle
map
inline-if
split
list
int
1
22
Japanese
Right to Left
replace
lambda
join
str
1
19
one liner
Sort Array by Element Frequency
index
lambda
count
sorted
2
5
Second
Between Markers
find
or
and
str
len
2
3
61 chars
Duplicate Zeros
lambda
print
3
one liner
Missing Number
pop
min
set
max
print
3
find & find
Second Index
find
None
count
str
if
5
First
Morse Decoder
capitalize
replace
join
split
comprehension
8
pairwise, groupby, xor
Changing direction
itertools.pairwise
pairwise
groupby
itertools.groupby
is
10
re.search
First Word
re.search
search
re
str
12
1
recursive
Duplicate Zeros
not
print
list
if
17
re.search
Three Words
re.search
search
re
None
4
First
Pawn Brotherhood
chr
ord
lambda
or
sum
2
difference of set
Missing Number
zip
pop
min
set
print
re.split & Counter
Popular Words
re.split
collections.Counter
Counter
dict-comp
collections
First
Split List
list
len
1
First
Three Words
isalpha
join
in
list-comp
split
1
First
Days Between
date
datetime.date
datetime
abs
1
f-string
Date and Time Converter
datetime.strptime
strptime
as
f-string
datetime.datetime
1
First
Right to Left
replace
join
First
Even the Last
sum
len
if
First
Non-unique Elements
count
if-comprehension
list-comp
comprehension
any all
Three Words
all
any
zip
map
isalpha
1
re.sub
Backward Each Word
reversed
re.sub
sub
re
inline-if
Naive
Three Words
isalpha
False
True
split
else
1
re
Between Markers
escape
re.escape
re.search
search
re
2
First
Sort Array by Element Frequency
add
sort
set
lambda
append
First
Bigger Price
lambda
sorted
True
Counter
Popular Words
collections.Counter
Counter
dict-comp
collections
replace
Electronic Station
First
Boolean Algebra
if
1
30
with comment
Acceptable Password V
any
map
isdigit
bool
not
1
16
replace
Brackets
replace
join
while
if-comprehension
in
1
12
with comment
Acceptable Password VI
any
map
isdigit
bool
set
1
11
Second
Inside Block
min
max
elif
and
True
1
2
64 chars
Boolean Algebra
find
lambda
3
7
First
Verify Anagrams
lower
lambda
count
list-comp
comprehension
4
re.sub
Brackets
re.sub
sub
re
not
while
6
4
one liner
Words Order
set-comp
index
bool
sorted
if-comprehension
6
1
with comment
Acceptable Password II
any
map
isdigit
bool
and
7
1
eval eval
Boolean Algebra
eval
8
1
BFS
Remove Brackets
collections.deque
deque
collections
replace
while
8
4
re.match
Unix Match. Part 1
match
re.match
re
None
replace
8
1
rindex
Sort by Extension
rindex
Tuple
typing.Tuple
List
typing.List
9
2
First
Acceptable Password V
any
map
isdigit
bool
not
10
4
First
Unix Match. Part 2
escape
re.escape
translate
match
re.match
10
1
First
Inside Block
collections.namedtuple
namedtuple
collections
min
or
11
4
First
Can You Pass?
any
False
and
True
list-comp
11
with comment
Acceptable Password IV
any
map
isdigit
bool
not
12
Arithmetic
Boolean Algebra
index
13
4
another eval
Boolean Algebra
eval
19
1
SET
Boolean Algebra
symmetric_difference
difference
union
intersection
lambda
dist
Similar Triangles
dist
math.dist
Tuple
typing.Tuple
List
6
sorted
Verify Anagrams
lower
lambda
sorted
if-comprehension
list-comp
Quadratic
Boolean Algebra
2
First
Remove Brackets
extend
dict-comp
enumerate
pop
sorted
1
eval
Boolean Algebra
eval
not
lambda
or
and
Recursive
Brackets
iter
None
except
try
in
2
DICT
Boolean Algebra
lambda
First
Mathematically Lucky Tickets
pop
not
or
elif
False
any map
Acceptable Password III
any
map
isdigit
bool
not
rfind
Sort by Extension
rfind
Tuple
typing.Tuple
List
typing.List
1
one liner
All Upper II
isupper
str
any map
Acceptable Password II
any
map
isdigit
bool
and
side length ratio
Similar Triangles
Tuple
typing.Tuple
List
typing.List
bool
2
zip, all
Ascending List
all
zip
typing.Iterable
Iterable
bool
1
Second
Digits Multiplication
functools.reduce
reduce
functools
map
replace
First
Acceptable Password IV
any
map
isdigit
bool
not
First
Digits Multiplication
replace
list-comp
comprehension
int
str
First
Surjection Strings
zip
bool
elif
False
True
First
Words Order
index
bool
or
False
True
with comment
Acceptable Password III
any
map
isdigit
bool
not
First
Find Sequence
join
if-comprehension
in
list-comp
range
First
Brackets
pop
elif
False
append
for
Scientific Expedition
count
Follow Instructions
count
1
19
Counter
Call to Home
collections.Counter
Counter
values
collections
inline-if
1
24
itertools.cycle
Caps Lock
cycle
itertools.cycle
itertools
upper
zip
1
2
First
Cipher Map
join
if-comprehension
list-comp
range
comprehension
2
13
First
Bird Language
isalpha
while
2
5
SET
Pangram
set
lower
2
Infinite function generator
Caps Lock
yield
upper
zip
lambda
join
2
2
max
Latest ISO datetime
max
print
2
Counter
Follow Instructions
collections.Counter
Counter
collections
3
4
translate 2
Striped Words
translate
isdigit
or
sum
in
3
2
decorator
I Love Python!
decorator
format
4
Second
Morse Clock
format
map
replace
lambda
join
5
5
O(n)
The Most Wanted Letter
get
continue
isalpha
None
not
7
First
Remove Accents
category
unicodedata.category
normalize
unicodedata.normalize
unicodedata
7
3
f-string
Time Converter (24h to 12h)
f-string
map
inline-if
split
int
10
1
groupby, comprehensions
Nonogram Encode
groupby
itertools.groupby
itertools
zip
max
17
First
Common Words
sort
join
if-comprehension
in
list-comp
18
7
First
Letter Queue
elif
split
for
if
First
The Hidden Word
find
min
replace
max
lower
First
Convert and Aggregate
dict-comp
get
dict
tuple
print
datetime.fromisoformat
Latest ISO datetime
datetime.datetime
datetime
max
print
str
1
translate
Striped Words
translate
pass
except
try
and
1
First
Pangram
all
lower
in
comprehension
2
First
Absolute Sorting
abs
sorted
2
First
Secret Message
isupper
join
if-comprehension
comprehension
generator
Sum by Type
Tuple
typing.Tuple
isinstance
typing
lambda
filter
Sum by Type
Tuple
typing.Tuple
isinstance
filter
typing
1
sum
Follow Instructions
sum
comprehension
str.find
Goes Right After
find
bool
str
First
Caps Lock
upper
not
inline-if
False
else
1
generator
I Love Python!
next
split
comprehension
1
map capitalize
Conversion into CamelCase
capitalize
map
join
split
str
First
Striped Words
upper
isalpha
isdigit
not
or
re.findall
Conversion from CamelCase
findall
re.findall
map
re
lower
re.sub
Conversion from CamelCase
re.sub
sub
re
lower
join
3
First
Morse Clock
format
replace
split
int
len
re.sub
Secret Message
re.sub
sub
re
Second
The Most Wanted Letter
isalpha
min
lower
count
sorted
1
First
The Most Wanted Letter
sort
isalpha
lower
if-comprehension
list-comp
O'Reilly
f-string
Time Converter (12h to 24h)
f-string
map
split
int
1
14
Simple
Determine the Order
all
continue
break
replace
set
1
4
First
Sort Except Zero
iter
next
typing.Iterable
Iterable
typing
1
7
np.matmul
Loading Cargo
numpy.matmul
matmul
itertools.product
product
numpy
1
First
Parse Array
raise
is
ValueError
pass
continue
1
4
from statics import median
Median of Three
statistics.median
statistics
median
enumerate
typing.Iterable
2
2
statistics
Median
as
2
7
First
Integer Palindrome
bool
print
False
True
int
2
another recursive
Flatten a List (iterator version)
collections.Iterable
isinstance
collections
Iterable
inline-if
2
combinations
Count Inversions
combinations
itertools.combinations
itertools
sum
comprehension
3
1
65 chars
Median
lambda
sorted
len
4
1
zip
Chunk
iter
yield
zip
typing.Iterable
Iterable
4
1
one liner
Frequency Sorting
lambda
count
sorted
6
1
groupby
Compress List
groupby
itertools.groupby
itertools
typing.Iterable
Iterable
6
recursive
Flatten a List (iterator version)
collections.Iterable
yield
isinstance
collections
Iterable
6
make list, then yield
Flatten a List (iterator version)
collections.Iterable
isinstance
collections
Iterable
else
7
one liner
How Deep
map
max
join
if-comprehension
in
8
1
recursive
Sum of Digits
map
inline-if
sum
print
int
9
Recursive
Flatten a List
isinstance
lambda
inline-if
and
list
9
1
zip
Median of Three
statistics.median
statistics
median
zip
typing.Iterable
11
numpy.median
Median
as
14
6
First
Reverse Every Ascending
iter
next
extend
not
append
Naive
Flatten a List
isinstance
extend
inline-if
append
list
simple
The Final Stone
pop
print
sorted
while
and
2
Second
Integer Palindrome
bool
print
False
True
int
56 chars
Median
sort
len
2
yield from
Flatten a List
isinstance
inline-if
list-comp
list
comprehension
First
Cipher Crossword
yield
remove
continue
replace
elif
First
Determine the Order
yield
zip
continue
index
set
First
Index Power
inline-if
len
generator
Flatten a List
yield
isinstance
lambda
list
else
First
Count Inversions
enumerate
sum
comprehension
First
Chunk
yield
typing.Iterable
Iterable
typing
range
1
First
The Flat Dictionary
isinstance
dict
items
pop
join
1
generator expression
Lightbulb Start Watching
Optional
typing.Optional
iter
is
datetime.datetime
zip(it, it)
Lightbulb Intro
iter
datetime.datetime
datetime
List
typing.List
1
sorted with key function
Frequency Sorting
lambda
count
sorted
True
First
Replace Last
typing.Iterable
Iterable
typing
inline-if
list
1
stack
How Deep
isinstance
extend
pop
typing.Iterable
Iterable
First
Xs and Os Referee
in
list-comp
range
comprehension
if
1
naive 2nd
Flatten a List
isinstance
inline-if
list
for
First
Majority
bool
sum
list
len
1
First
Compress List
yield
is
typing.Iterable
None
Iterable
First
Remove All After
ValueError
index
typing.Iterable
Iterable
except
1
First
Loading Cargo
format
min
abs
sum
if-comprehension
Second
Loading Cargo
format
min
abs
sum
if-comprehension
First
Median
sort
len
Incinerator
class factory
3 Chefs
class
f-string
1
10
constant table
Geometry Figures
class
math.pi
pi
math.sqrt
sqrt
1
3
First
Building Base
class
format
2
12
metaclass
Capital City
class
super
type
if
2
1
First
Voice TV Control
class
object
isinstance
inline-if
in
2
First
Army Units
class
f-string
4
1
First
Party Invitations
class
f-string
remove
append
for
4
abc
3 Chefs
ABCMeta
abc.ABCMeta
abc.abstractmethod
abstractmethod
abc
5
1
table
Multicolored Lamp
class
6
1
ABC
Geometry Figures
ABC
abc.ABC
abc.abstractmethod
abstractmethod
abc
6
1
First
Hacker Language
class
object
f-string
chr
ord
8
1
First
Text Editor
class
is
f-string
None
inline-if
10
1
First
Every Person is Unique
class
datetime.strptime
strptime
as
f-string
12
1
ABC
Microwave Ovens
ABCMeta
abc.ABCMeta
abc.abstractmethod
abstractmethod
abc
First
Friends
class
object
copy
remove
set
3
First
Microwave Ovens
class
object
divmod
super
pass
dict
Geometry Figures
class
math.pi
pi
math.sqrt
sqrt
4
First
Capital City
class
is
None
if
6
First
3 Chefs
class
f-string
1
Mine
reduce
The Greatest Common Divisor
fractions.gcd
gcd
fractions
functools.reduce
reduce
1
25
First
Currency Style
translate
re.sub
sub
re
lambda
1
7
First
What Is Wrong With This Family?
collections.defaultdict
defaultdict
collections
set
not
1
12
First
Find Enemy
ord
abs
lambda
inline-if
else
1
2
list comprehension
Matrix "Hatching"
yield
typing.Iterable
min
Iterable
max
1
2
one liner
Long Pressed
itertools.zip_longest
zip_longest
groupby
itertools.groupby
as
1
1
map
Caesar Cipher (decryptor)
chr
islower
ord
map
lambda
3
5
Dynamic Programming
Fast Train
collections.deque
deque
any
collections
List
3
2
SET
Moore Neighbourhood
set-comp
sum
range
comprehension
len
4
2
First
Bigger Together
class
reversed
map
sorted
join
5
recursive
Disposable Teleports
continue
set
or
in
and
5
2
BFS
Fast Train
collections.deque
deque
any
collections
continue
5
First
Aggregate by Operation
dict-comp
get
dict
tuple
print
6
1
max with default parameter
Replace with Biggest
typing.Iterable
Iterable
max
typing
print
6
First
Escape
abs
not
or
inline-if
in
7
1
First
The Einstein Problem-Lite
Exception
raise
eval
dict-comp
map
10
2
First
Chemical Analysis
isinstance
collections.Counter
Counter
findall
re.findall
11
First
Domino Chain
union
collections.deque
deque
strip
add
14
1
get, union
Switch Keys to Values
get
dict
set
print
str
15
1
First
Achilles and the Tortoise
16
First
Color Map
all
add
enumerate
set
if-comprehension
18
1
while, slice
Fibonacci Poem
print
join
while
append
split
20
1
zip_longest, groupby
Long Pressed
itertools.zip_longest
zip_longest
groupby
itertools.groupby
itertools
Traverse tree from root
What Is Wrong With This Family?
collections.deque
deque
collections.defaultdict
defaultdict
extend
1
set.union
Chess Knight
union
set-comp
chr
ord
map
enumerate with start parameter
Replace with Biggest
enumerate
typing.Iterable
Iterable
max
typing
stack
Adjacent Letters
pop
not
or
print
join
1
deque
Chess Knight
collections.deque
deque
chr
add
collections
O(n)
Long Pressed
None
bool
print
while
False
First
Can Balance
reversed
enumerate
typing.Iterable
Iterable
typing
First
Moore Neighbourhood
sum
if-comprehension
comprehension
len
for loop
The Greatest Common Divisor
math.gcd
gcd
math
for
1
from python 3.9 :-)
The Greatest Common Divisor
as
First
Binary Count
format
count
2
First
Determinant
sum
if-comprehension
list-comp
range
comprehension
First
Cut Sentence
rfind
inline-if
and
len
if
First
Disposable Teleports
all
pop
join
if-comprehension
in
recursive
The Greatest Common Divisor
fractions.gcd
gcd
fractions
else
len
1
key parameter
Best Stock
get
max
map
Caesar Cipher (encryptor)
chr
ord
map
isalpha
lambda
First
Fizz Buzz
elif
else
str
if
1
Ice Base
First
Monkey Typing
lower
sum
in
comprehension
1
83
First
How to Find Friends
any
remove
set
append
split
1
36
split
Find Quotes
split
1
3
First
Clock Angle
map
min
abs
split
int
1
2
First
Morse Encoder
get
lower
join
comprehension
1
Short
Counting Tiles
math.ceil
ceil
math.sqrt
sqrt
math
1
4
O(n)
Largest Rectangle in a Histogram
pop
max
not
or
inline-if
1
1
min max
Interesting, intersecting
tuple
min
bool
max
lambda
1
sympy expand
Write Quadratic Equation
inline-if
print
list
int
str
1
1
one liner
When "k" is Enough!
enumerate
typing.Iterable
Iterable
typing
count
1
First
Making Change
min
None
inline-if
range
for
2
4
Newton method
Feed Pigeons
max
range
int
for
2
1
First
Largest Rectangle in a Histogram
min
max
range
comprehension
len
2
1
O(n)
Long Repeat
None
max
else
for
if
2
1
First
Identify Block
divmod
get
tuple
min
None
2
1
state machine
Reveal the Number
float
None
isdigit
not
print
5
1
rotate numbers
Identify Block
divmod
tuple
min
None
sorted
6
First
Oil Pie
Fraction
fractions.Fraction
fractions
map
abs
7
2
replace
Roman Numerals
replace
for
8
2
sum zip
Not in Order
zip
sum
print
sorted
list
8
1
First
Write Quadratic Equation
f-string
abs
lambda
inline-if
print
11
re
Is String a Number? (Part II)
match
re.match
re
None
bool
15
full search
One Switch Strings
enumerate
bool
print
False
True
15
dictionary of set
How to Find Friends
in
split
for
if
16
1
set
Count Chains
union
Tuple
typing.Tuple
set-comp
dict-comp
split two parts
Reveal the Number
filter
float
index
min
None
Counter
When "k" is Enough!
yield
collections.Counter
Counter
collections
typing.Iterable
First
Move Zeros
print
if-comprehension
list-comp
list
comprehension
isdigit
Is String a Number?
isdigit
bool
print
False
True
one liner
Is String a Number?
isdigit
print
False
True
str
capitalize, upper, lower
Correct Capital
capitalize
upper
bool
lower
print
1
BFS
How to Find Friends
collections.deque
deque
collections
continue
or
Recursive
Roman Numerals
inline-if
First
Counting Tiles
math.ceil
ceil
math
break
range
First
Reverse Roman Numerals
Exception
raise
enumerate
or
inline-if
First
The Most Numbers
round
abs
max
comprehension
len
Second
How to Find Friends
set
not
while
in
and
1
First
Long Repeat
break
count
while
in
for
First
Feed Pigeons
while
if
First
Roman Numerals
if
Alice In Wonderland
First
Middle Characters
len
1
6
~n:n+1
Middle Characters
len
1
2
strptime
When is Friday?
time.strptime
time
strptime
2
2
iter
Swap Nodes
itertools.zip_longest
zip_longest
iter
yield
itertools
2
7
date.weekday()
When is Friday?
date
datetime.date
datetime
map
split
6
2
min, max
The Fastest Horse
min
max
count
list-comp
range
6
1
inversion
15-puzzle Solvability
index
bool
sum
print
if-comprehension
7
First
Flood Area
List
typing.List
enumerate
pop
typing
11
Second
Transposed Matrix
numpy.transpose
transpose
numpy
as
16
Recursive
Tree Walker
isinstance
dict
sum
elif
list
19
1
First
Digits Doublets
collections.deque
deque
collections
zip
continue
First
IP Network: Route Summarization
functools.reduce
reduce
functools
bin
zip
First
The Shortest Knight's Path
ord
break
print
while
and
First
Multiplication Table
bin
inline-if
len
for
Second
Multiplication Table
bin
inline-if
sum
comprehension
len
iter, zip_longest
Swap Nodes
itertools.zip_longest
zip_longest
iter
yield
itertools
First
Zigzag Array
reversed
List
typing.List
not
typing
First
Long Non Repeat
add
enumerate
break
set
in
First
Transposed Matrix
list-comp
range
comprehension
len
GitHub
First
Solution for Anything
class
lambda
True
1
12
First
Broken Clock
datetime.strptime
strptime
datetime.datetime
datetime
split
1
4
namedtuple
Shooting Range
collections.namedtuple
namedtuple
round
collections
min
1
3
Second
Barcode Reader
not
sum
range
comprehension
int
1
First
Power Supply
union
collections.deque
deque
extend
collections
2
1
First
Shooting Range
round
min
lambda
inline-if
and
2
BFS with defaultdict
The Cheapest Flight
collections.deque
deque
collections.defaultdict
defaultdict
extend
4
dict
Paper Dice
all
tuple
enumerate
sum
if-comprehension
4
1
First
Painting Wall
add
min
break
max
sum
5
4
First
Barcode Reader
None
not
sum
range
comprehension
5
First
Xs and Os Champion
zip
None
count
inline-if
join
8
for else
Barcode Reader
None
break
sum
and
range
10
1
First
Cookies
strip
dict
map
split
comprehension
11
First
The Most Frequent Weekdays
calendar.isleap
isleap
calendar.day_name
day_name
calendar.weekday
12
3
First
Merge Intervals
not
elif
append
for
if
13
First
Create Intervals (generator version)
yield
not
sorted
for
if
13
First
Long Repeat Inside
while
and
range
len
for
14
1
heapq
Power Plants
Dict
typing.Dict
typing.Set
Set
union
First
Simplify Unix Path
startswith
continue
pop
not
or
2
yield from
Expand Intervals
typing.Iterable
Iterable
typing
range
for
gcd
Evenly Spaced Trees
math.gcd
gcd
List
typing.List
math
1
any
Searchlights
math.cos
cos
math.sin
sin
math.pi
First
Area of a Convex Polygon
abs
range
len
for
First
Create Intervals
not
sorted
append
for
if
1
First
The End of Other
endswith
any
if-comprehension
comprehension
max
The Highest Building
index
max
lambda
sum
range
First
Open Labyrinth
or
and
list-comp
range
comprehension
Dropbox
First
Friendly Number
format
round
abs
replace
inline-if
1
14
Third
Three Points Circle
math.hypot
hypot
eval
format
round
1
16
multiple of 45
Hubspot Amulet
itertools.product
product
itertools
sum
list-comp
1
Fast
Numbers Factory
map
join
while
append
range
1
2
First
Nonogram Row
any
add
zip
continue
pop
1
1
recursive candidate keys generator
Grille Cipher Attack
yield
extend
dict-comp
tuple
List
1
1
getattr
Simple Hashlib
getattr
hashlib
2
5
zip, reversed
Common Tail
reversed
zip
None
break
print
3
1
eval
Calculator-I
eval
isdigit
or
inline-if
print
5
1
Naive
Simple Hashlib
hashlib.new
new
hashlib
update
5
1
zip_longest
Scytale Encryption
itertools.zip_longest
zip_longest
Optional
typing.Optional
itertools
6
1
First
Scytale Encryption
Optional
typing.Optional
None
typing
join
7
1
First
Place Queens
itertools.permutations
permutations
values
keys
all
7
re.sub
URL Normalization
re.sub
sub
chr
upper
continue
8
one dimensional
Rotating Grille Cipher
Optional
typing.Optional
extend
List
typing.List
9
1
Counter, heapq
Huffman Encode
heapify
heapq.heapify
heappush
heapq.heappush
heappop
11
pairwise, chain
Sort Sorted Groups
itertools.pairwise
pairwise
chain
itertools.chain
yield
12
1
split, format
Text Formatting
yield
zip
sum
join
append
16
1
iter and zip_longest
Scytale Encryption
itertools.zip_longest
zip_longest
Optional
typing.Optional
iter
20
1
max, key, default
The Longest Word
max
print
split
str
len
1
Recursive
On the same path
typing.Union
Union
Tuple
typing.Tuple
isinstance
1
First
Three Points Circle
eval
math.sqrt
sqrt
format
math
textwrap and zip_longest
Scytale Encryption
textwrap.wrap
wrap
textwrap
itertools.zip_longest
zip_longest
First
The Longest Palindromic
continue
range
len
for
if
First
Hubspot Amulet
continue
inline-if
list-comp
range
comprehension
First
Humpty Dumpty Form
math.atanh
atanh
math.asin
asin
math.pi
translate
Atbash Cipher
translate
ascii_uppercase
string.ascii_uppercase
reversed
ascii_lowercase
1
First
Worth of Words
dict-comp
max
lambda
sum
comprehension
1
Python
The Best Number Ever
First
Numbers Factory
min
append
range
len
for
First
Speech Module
rstrip
else
if
PyCon TW
First
Dark Labyrinth
next
collections.Counter
Counter
collections
enumerate
1
8
groupby
Sum Consecutives
groupby
itertools.groupby
itertools
sum
list-comp
1
BFS
Unfair Districts
chain
itertools.chain
collections.deque
deque
divmod
2
2
First
Network Attack
heappush
heapq.heappush
heappop
heapq.heappop
heapq
3
7
One liner
Golden Pyramid
max
lambda
inline-if
len
7
3
One liner 2nd
Golden Pyramid
max
lambda
comprehension
len
8
2
First
Express Delivery
collections.deque
deque
collections
continue
break
11
54 chars
House Password
set-comp
ord
lambda
comprehension
len
12
7
original table
Ryerson Letter Grade
iter
dict
zip
map
split
12
1
Second
Calculate Islands
collections.deque
deque
collections
continue
sorted
15
3
union and find
Fused Cubes
combinations
itertools.combinations
Tuple
typing.Tuple
dict-comp
First
Digit Stack
pop
elif
append
split
int
2
dict
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
3
First
Robot Sort
join
while
append
range
list
5
Exhaustive
Golden Pyramid
max
len
if
First
Sum Consecutives
None
append
for
if
1
union and find
Calculate Islands
class
frozenset
union
itertools.product
product
1
Second
Simple Areas
math.pi
pi
math.sqrt
sqrt
math
First
Building Visibility
round
set
max
sorted
if-comprehension
First
How Much Gold
Fraction
fractions.Fraction
fractions
continue
or
First
Double Substring
reversed
in
range
len
for
First
Calculate Islands
continue
sort
or
while
append
First
House Password
islower
any
isupper
isdigit
and
1
Storage
First
Weak Point
min
lambda
sum
range
comprehension
1
16
direct calculation
Square Spiral
divmod
math.sqrt
sqrt
math
abs
1
4
62 chars
Word Pattern
bytes
lambda
comprehension
int
1
5
43chars
Exec Quine
lambda
1
1
First
Earth Distances
math.radians
radians
math.cos
cos
math.sin
1
random
Forgetful Prisoner
random.choice
choice
random
break
sum
1
First
Moria Doors
reversed
islower
get
enumerate
min
2
1
Second
Skew-symmetric Matrix
all
range
comprehension
len
2
First
Mind Switcher
next
keys
get
tuple
while
3
3
76 chars
Word Pattern
isalpha
lambda
sum
range
comprehension
4
2
deque
Digging a Canal
collections.deque
deque
collections
continue
min
4
2
First
Hexagon Spiral
abs
elif
range
for
if
4
First
Battle Dice
functools.lru_cache
lru_cache
decorator
functools
collections.Counter
5
5
72 chars
Word Pattern
ord
lambda
sum
range
comprehension
6
2
First
Haunted House
collections.deque
deque
divmod
collections
continue
6
3 point lines
The Rows of Cakes
combinations
itertools.combinations
itertools
tuple
map
8
First
Square Spiral
abs
elif
range
for
if
9
groupby
Group Equal consecutive
groupby
itertools.groupby
itertools
list-comp
list
11
First
Restricted Prime
count
while
False
True
list-comp
12
First
Digging a Canal
collections.deque
deque
collections
continue
min
12
First
Playfair Cipher
divmod
index
lower
inline-if
sorted
13
78 chars
Word Pattern
isalpha
lambda
inline-if
14
77 chars
Word Pattern
isalpha
lambda
join
list-comp
comprehension
15
2
First
English to Braille Translator
zfill
update
dict-comp
keys
chr
16
First
The Rows of Cakes
itertools.product
product
itertools
continue
sort
20
First
Saw the Stick
break
while
append
True
if
Second
The Rows of Cakes
itertools.product
product
itertools
continue
sort
2
First
Skew-symmetric Matrix
all
list-comp
range
comprehension
len
Maya
proof by contradiction
Net Game
ABC
abc.ABC
abc.abstractmethod
abstractmethod
abc
3
1
First
Light Up
Tuple
typing.Tuple
copy
reversed
yield
12
always return to start
Inertia
Exception
collections.deque
deque
raise
Tuple
19
3
Greedy search using Dijkstra
Inertia
typing.Set
Set
Exception
collections.deque
deque
20
HubSpot
Second
Auto Painting
min
join
list-comp
range
comprehension
2
4
First
Repeating Decimals
divmod
format
index
inline-if
while
2
divmod
Square Board
divmod
Tuple
typing.Tuple
typing
int
3
2
incremental search
Workout
List
typing.List
max
typing
lambda
3
First
Expected Dice
itertools.product
product
collections.Counter
Counter
dict-comp
3
First
Node Disconnected Users
union
collections.deque
deque
extend
add
5
1
generator expression
Non Empty Lines
replace
sum
split
comprehension
int
6
75 chars (python 3.8 :=)
Univocalic davasaan
lambda
6
1
union and find
Triangular Islands
typing.Set
Set
class
frozenset
union
7
one liner
Number Base
max
lambda
inline-if
int
8
3
Dijkstra
Supply Line
collections.deque
deque
yield
extend
dict-comp
12
1
timedelta
Weekly Calendar
datetime.timedelta
timedelta
date
datetime.date
datetime
13
dynamic programming
Team Play
collections.Counter
Counter
collections
List
typing.List
15
rotate all points
Inscribe a Contour
combinations
itertools.combinations
as
all
itertools
18
82 chars
Univocalic davasaan
lambda
20
2
Second
New Cities
add
continue
enumerate
pop
break
First
Auto Painting
break
sorted
join
while
if-comprehension
Happy birthday!
Next Birthday
calendar.isleap
isleap
Dict
typing.Dict
calendar
First
New Cities
union
map
continue
pop
set
1
First
The Hamming Distance
bin
count
First
Number Base
except
try
int
First
Restricted Sum
if
Blizzard
Dynamic programming
String Conversion
min
max
or
list-comp
range
1
2
without branch
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
as
1
set of square
Rectangles Union
Tuple
typing.Tuple
List
typing.List
set
2
1
First
String Conversion
min
len
if
2
2
forward recursive
String Conversion
functools.lru_cache
lru_cache
decorator
functools
min
2
Recursive
Stair Steps
max
len
if
2
Second
Stressful Subject
endswith
re.search
search
isupper
re
3
backward recursive
String Conversion
functools.lru_cache
lru_cache
decorator
functools
min
3
First
Safe Coasts
yield
continue
replace
join
and
4
1
scipy.sparse.csgraph.minimum_spanning_tree
Connect Stars
scipy.sparse.csgraph.minimum_spanning_tr
minimum_spanning_tree
scipy
Tuple
typing.Tuple
5
sorted
Min and Max
lambda
inline-if
sorted
True
len
7
Second
Radiation Search
collections.deque
deque
collections
continue
max
7
8
First
Unlucky Days
date
datetime.date
datetime
sum
range
8
union
Connect Stars
union
Tuple
typing.Tuple
dict-comp
List
8
1
one liner
Weekend Counter
lambda
9
1
Second
String Conversion
Exception
collections.deque
deque
raise
collections
10
heapq
Min and Max
lambda
inline-if
len
14
5
BFS with defaultdict
Useless Flights
collections.deque
deque
collections.defaultdict
defaultdict
extend
17
Kruskal's algorithm
Connect Stars
Tuple
typing.Tuple
dict-comp
List
typing.List
18
divmod
Reversed Permutation Index
functools.lru_cache
lru_cache
divmod
reversed
decorator
1
First
Sudoku Solver
yield
continue
break
not
or
First
Palindromic Palindrome
lambda
sum of factorial
Permutation Index
functools.lru_cache
lru_cache
Tuple
typing.Tuple
decorator
iter
Min and Max
iter
next
lambda
inline-if
len
4
First
Stressful Subject
endswith
re.search
search
isupper
re
2
First
The First Working Day
datetime.strptime
strptime
datetime.timedelta
timedelta
as
First
Min and Max
lambda
or
False
True
len
18
First
Weekend Counter
datetime.timedelta
timedelta
datetime
not
while
First
The Angles of a Triangle
math.asin
asin
math.pi
pi
math.sqrt
First
Spaceship Landing Strip
all
continue
break
or
list-comp
Second
Spaceship Landing Strip
itertools.product
product
all
itertools
continue
First
Radiation Search
or
False
True
list-comp
range
Second
The Angles of a Triangle
math.asin
asin
math.degrees
degrees
math.sqrt
Rock
First
Parity Bit Generator
chr
bin
count
join
if-comprehension
1
3
log then Halley
Super Root
math.log
log
math
abs
while
1
2
permutations
Most Efficient Cutting
itertools.permutations
permutations
itertools
min
comprehension
1
2
Counter
Home Coming
collections.Counter
Counter
collections
List
typing.List
1
1
First
Crossword Solver
class
keys
any
remove
continue
1
1
First
Life Counter
set-comp
set
not
if-comprehension
in
2
First
Black Holes
math.hypot
hypot
intersection
math.acos
acos
2
log then Newton
Super Root
math.log
log
math
abs
while
3
1
First
Chicken Hunt
random.choice
choice
random
collections.deque
deque
3
1
First
Family Gifts
copy
extend
find
zip
break
3
67 chars
Parity Bit Generator
chr
bin
lambda
count
join
4
5
Newton method
Super Root
math.log
log
math
abs
while
4
6
First
Berserk Rook
min
max
if-comprehension
and
append
5
3
ast
Count Comprehensions
ast.dump
dump
ast.parse
parse
ast
5
union and find
Hexagonal Islands
typing.Set
Set
class
frozenset
union
6
1
map
Parity Bit Generator
chr
bin
map
lambda
count
6
generator
Fibonacci Spiral's End
yield
enumerate
break
print
while
7
1
First
Count Comprehensions
Dict
typing.Dict
re.sub
sub
findall
8
more simple
Water Jars
collections.deque
deque
collections
continue
min
12
binary search
Super Root
abs
inline-if
while
19
First
Web Log Sessions
splitlines
datetime.strptime
strptime
datetime.datetime
datetime
20
BFS
River Crossing
collections.deque
deque
yield
add
collections
Recursive
Greedy Number
index
max
print
int
str
First
Water Jars
reverse
or
while
and
append
First
CheckSum
digits
string.digits
reverse
ascii_uppercase
string.ascii_uppercase
First
Sort by Removing
not
or
append
list
for
1
Shelter
First
ADFGVX Cipher
divmod
zip
isalpha
index
isdigit
1
4
Second
ADFGVX Cipher
divmod
zip
isalpha
index
isdigit
1
9
right-hand rule
The Lantern Festival
Exception
raise
itertools.product
product
itertools
3
1
First
Climbing Route
functools.lru_cache
lru_cache
Exception
itertools.permutations
permutations
4
1
First
AMSCO Cipher
zip
enumerate
sum
join
while
7
First
Seven Segment
set-comp
islower
upper
isupper
set
8
1
DFS revised
One line Drawing
set
not
count
inline-if
if-comprehension
8
1
not list trick
Completely Empty
collections.Iterable
isinstance
all
collections
map
11
1
First
Completely Empty
collections.Iterable
isinstance
all
collections
Iterable
16
First
Pattern Recognition
all
range
comprehension
len
for
BFS with Counter
Halloween Monsters
collections.deque
deque
collections.Counter
Counter
all
2
First
The Nearest Square Number
math.sqrt
sqrt
math
abs
inline-if
3
divide four rectangles
Four To The Floor
all
lambda
False
and
True
divide two rectangles
Four To The Floor
not
lambda
False
and
True
hexagon generator
Landing Site
typing.Set
Set
set-comp
yield
all
use any
Pattern Recognition
itertools.product
product
any
itertools
continue
First
Ghosts Age
yield
index
while
in
append
Codeship
First
Texas Referee
combinations
itertools.combinations
collections.Counter
Counter
all
1
5
fast
Unfair Dice
combinations
itertools.combinations
itertools
sum
and
1
1
bi-direction
8 Puzzle
collections.deque
deque
tuple
collections
continue
1
2
Random Solver
Magic Domino
random.randrange
randrange
random.shuffle
shuffle
random
1
2
Recursive
The Territory of Go
add
pop
bool
set
or
2
1
Short
Minesweeper
or
inline-if
sum
if-comprehension
False
2
Exhaustive
Unfair Dice
break
inline-if
sum
append
range
2
We love comprehensions
Magic with 5 cards
insert
f-string
dict-comp
tuple
enumerate
5
1
First
Snake Lite
collections.deque
deque
collections
continue
index
7
1
Third
Behind 2048
copy.deepcopy
deepcopy
copy
continue
abs
9
4
First
The 88th Puzzle
collections.deque
deque
tuple
collections
continue
10
1
Generator
Unfair Dice
yield
sum
list-comp
range
comprehension
14
Generator & sum of subset
The Square Chest
frozenset
yield
add
map
set
15
1
First
Minesweeper
randint
random.randint
random
itertools.product
product
19
First
Bats Bunker
math.hypot
hypot
collections.deque
deque
collections
First
Pearls in the Box
count
or
if
2
make table
Ugly Numbers
math.log
log
collections.Counter
Counter
keys
2
First
Probably Dice
min
set
or
append
range
2
First
8 Puzzle
collections.deque
deque
tuple
collections
continue
Generator
Probably Dice
mul
operator.mul
operator
yield
functools.reduce
First
The Square Chest
all
or
in
list-comp
comprehension
Hermit
combination
Break Rings
union
combinations
itertools.combinations
all
itertools
1
7
Third
Anagrams By Stacks
collections.deque
deque
add
tuple
collections
1
2
eval
Simplification
class
eval
isinstance
collections.Counter
Counter
1
3
RPN
Reverse Engineer
Fraction
fractions.Fraction
fractions
eval
yield
1
2
First
Count Consecutive Summers
break
range
for
if
2
3
First
Network Loops
collections.deque
deque
collections
continue
set
2
6
First
Strawberry Fields
math.degrees
degrees
math.acos
acos
round
3
1
BFS
Stacking Cubes
collections.deque
deque
Tuple
typing.Tuple
collections.Counter
5
1
Short
Colder-Warmer
math.hypot
hypot
math
or
if-comprehension
5
while, index
Backspace Apply
index
print
while
in
else
8
1
max max
Stock Profit
enumerate
max
print
list
comprehension
8
First
Keywords Finder
find
max
not
lower
sorted
11
7
Counter
Simplification
Exception
raise
collections.Counter
Counter
keys
12
len of set
Unique Email Addresses
set-comp
index
replace
lower
print
13
1
Fraction
Fractions Addition
Fraction
fractions.Fraction
fractions
f-string
inline-if
14
heapq BFS
Break Rings
heappush
heapq.heappush
heappop
heapq.heappop
heapq
15
Second
Anagrams By Stacks
reverse
collections.deque
deque
tuple
collections
17
First
Mono Captcha
index
min
sum
append
list-comp
First
Colder-Warmer
if-comprehension
elif
and
list-comp
range
weekday, timedelta
Birthday Party
datetime.timedelta
timedelta
date
datetime.date
datetime
First
Anagrams By Stacks
reverse
continue
pop
index
break
while, index 2
Backspace Apply
index
max
print
while
in
difference_update
Shorter Set
min
break
set
max
not
First
Ore In The Desert
math.sqrt
sqrt
round
math
if-comprehension
First
The Good Radix
ord
max
list-comp
range
comprehension
Watchtower
First
Bag of Santa Claus
max
or
inline-if
False
int
1
5
magic numbers 70,21,15
Number Guess
len
if
1
First
Ethernet Ring Dimensioning
index
min
abs
max
lambda
1
First
Rotate Hole
all
if-comprehension
list-comp
range
comprehension
1
6
7 steps solver
Bulls and Cows
itertools.permutations
permutations
values
itertools
map
1
1
First
Wall Keeper
Exception
collections.deque
deque
raise
collections
1
1
O(1)
Wall Keeper
sum
if-comprehension
in
list-comp
range
1
2
np.matmul
Wall Keeper
numpy.matmul
matmul
numpy
as
if-comprehension
1
2
First
Bacteria Colonies
max
inline-if
while
and
True
2
1
68 chars
Rotate Hole
all
lambda
if-comprehension
list-comp
range
2
Short
Bulls and Cows
itertools.permutations
permutations
all
itertools
inline-if
2
1
wo trig
Convex Hull
Fraction
fractions.Fraction
fractions
index
min
2
1
2 liner
Wall Keeper
lambda
sum
if-comprehension
in
list-comp
2
First
DNA Common Sequence
set-comp
get
enumerate
inline-if
sorted
3
2
Second
Vigenere Cipher
next
chr
ord
zip
join
3
2
Second
Bulls and Cows
itertools.permutations
permutations
itertools
tuple
continue
5
defaultdict
DNA Common Sequence
collections.defaultdict
defaultdict
set-comp
collections
enumerate
5
6
First
Vigenere Cipher
chr
tuple
ord
zip
break
12
First
Bulls and Cows
randint
random.randint
random
itertools.permutations
permutations
14
union and find
Boundary Blocks
frozenset
Tuple
typing.Tuple
add
List
First
Magic Square
yield
continue
break
not
count
First
Compare Functions
None
except
try
inline-if
else
First
Number Guess
len
if
First
Convex Hull
math.hypot
hypot
math.acos
acos
round
First
Numbered Triangles
itertools.permutations
permutations
itertools
break
max
First
Funny Addition
count
Escher
6 line
Card Game
min
max
sorted
False
True
1
1
combinations
Wild Dogs
math.hypot
hypot
combinations
itertools.combinations
itertools
2
3
table
The Secret Room
lambda
2
1
re.search & eval
Safe Code
eval
re.search
search
re
replace
3
2
scipy linprog
Treasures
scipy.optimize.linprog
linprog
scipy
f-string
zip
3
for-else
Card Game
remove
break
set
sorted
in
4
speech module
The Secret Room
reversed
f-string
map
index
inline-if
6
1
Dynamic Programming
The Stones
set-comp
set
inline-if
in
range
7
2
BFS
Graphical Key
collections.deque
deque
collections
continue
max
8
1
comment one by one
Compass, Map and Spyglass
dict-comp
abs
max
lambda
if-comprehension
10
Counter
The Tower
collections.Counter
Counter
collections
join
comprehension
13
1
recursive search (DFS)
Hypercube
lower
or
False
True
list-comp
17
1
First
Keys and Locks
reversed
zip
enumerate
min
max
19
Recursive
The Buttons
map
enumerate
or
sorted
append
19
exaustive search
Treasures
f-string
zip
continue
sum
if-comprehension
1
min, max
Ground for the House
rfind
find
min
max
lambda
Second
Ground for the House
enumerate
min
max
if-comprehension
and
comment one by one
The Stone Wall
zip
min
lambda
count
if-comprehension
3
sort with generator expression
The Ship Teams
or
sorted
if-comprehension
comprehension
Not On Map
one liner
Length of the String
print
len
7
First
Aggregate and Count
dict
print
in
and
list
1
First
Length of the String
print
int
str
len