23
ArchTauruS
5 21 41
3032/ 3195
Last seen 1 year ago
Member for 10 years, 9 months, 8 days
Difficulty Normal
I love coding!

Missions (145) / Solutions (218)
Best solutions / Newest solutions
Initiation
This should not be named as a task !!!
Easy Unpack
Some tricks with max() function.
The Most Frequent
set
max
count
comprehension
1
A little trick is that Python treats boolean as 0/1 when it think so ...
Correct Sentence
endswith
upper
19
1
Second
Easy Unpack
Second
The Most Frequent
set
max
count
comprehension
Clear that you have to have a look ;)
Easy Unpack
inline-if
len
Clear that you have to have a look ;)
The Most Frequent
set
max
count
comprehension
First
Correct Sentence
upper
inline-if
str
First
All the Same
set
len
Home
Looking for protector in dictionary.
Pawn Brotherhood
f-string
break
in
int
for
Seconds to Degrees
Sun Angle
datetime.datetime
datetime
or
if
3
1
Use set() to make it speedy
Non-unique Elements
add
remove
continue
set
if-comprehension
Learn some things more about time module.
Date and Time Converter
time.strftime
time.strptime
strftime
time
strptime
2
job can be considered as searching for '\D+ \D+ \D+'
Three Words
re.search
search
r-string
re
bool
1
one-line
Even the Last
inline-if
sum
1
sorted, reverse, slicing, done!
Bigger Price
lambda
sorted
True
1
A simple but readable dictionary comprehension (字典解析式)
Popular Words
dict-comp
lower
count
split
comprehension
2
A string slicing operation, with the help from trinocular operator (三元运算符)
Between Markers
find
inline-if
in
len
1
string.find is better than string.index
Second Index
find
None
inline-if
1
Use re.search, but not re.findall.
First Word
re.search
search
re
7
3
Second
Three Words
re.search
search
r-string
re
bool
3
Third
Even the Last
inline-if
sum
Second
Popular Words
dict-comp
lower
count
split
comprehension
1
Second
Second Index
find
None
inline-if
2
datetime did it!
Sun Angle
datetime.datetime
datetime
or
if
Clear that you do have to have a look ;)
Morse Decoder
capitalize
get
join
split
comprehension
Clear that you don have to have a look ;)
Date and Time Converter
time.strftime
time.strptime
strftime
time
strptime
Clear that you have to have a look ;)
Bigger Price
lambda
sorted
True
Clear that you have to have a look ;)
Popular Words
dict-comp
lower
count
split
comprehension
index_begin, index_end, done!
Between Markers
index
inline-if
in
str
len
First, Second, OK!
Second Index
index
count
str
if
re
First Word
findall
re.findall
r-string
re
str
Third
Non-unique Elements
count
if-comprehension
list-comp
comprehension
First
Right to Left
replace
join
First
Days Between
date
datetime.date
datetime
abs
First
Pawn Brotherhood
break
in
int
str
for
First
Three Words
isalpha
False
True
split
else
Second
Even the Last
inline-if
sum
First
Even the Last
except
try
sum
Second
Non-unique Elements
count
if-comprehension
list-comp
comprehension
First
Non-unique Elements
count
append
for
if
Electronic Station
reduce() function is great for this task
Digits Multiplication
functools.reduce
reduce
functools
map
replace
3
Second
Digits Multiplication
functools.reduce
reduce
functools
map
replace
First
Boolean Algebra
eval
First
Verify Anagrams
replace
lower
sorted
First
Find Sequence
map
join
if-comprehension
in
False
First
Brackets
not
join
if-comprehension
in
elif
First
Digits Multiplication
if-comprehension
list-comp
comprehension
int
str
Scientific Expedition
First
Conversion into CamelCase
title
map
join
split
str
Second
Call to Home
math.ceil
ceil
values
get
math
Why it is speed I think.
The Most Wanted Letter
dict-comp
isalpha
max
lower
lambda
How ease an array can be sorted with a key?
Absolute Sorting
abs
sorted
1
Join all uppercase letters
Secret Message
isupper
join
if-comprehension
comprehension
1
First
Call to Home
values
bool
inline-if
sum
in
First
Time Converter (24h to 12h)
datetime.datetime
datetime
replace
if
First
Conversion from CamelCase
re.sub
sub
r-string
re
lower
First
The Hidden Word
divmod
f-string
find
map
None
Second
Absolute Sorting
abs
sorted
Clear that you do have to have a look ;)
Pangram
all
lower
in
comprehension
1
Third
The Most Wanted Letter
lower
for
if
First
Secret Message
isupper
join
if-comprehension
comprehension
First
Bird Language
re.sub
sub
re
3
7
I love Python!
I Love Python!
1
First
I Love Python!
First
Striped Words
punctuation
string.punctuation
string
map
isalpha
First
Letter Queue
else
for
if
First
Absolute Sorting
abs
sorted
First
Common Words
sorted
join
if-comprehension
in
list-comp
Second
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
as
string
lower
First
The Most Wanted Letter
ascii_lowercase
string.ascii_lowercase
as
string
lower
First
Morse Clock
isdigit
join
append
list-comp
split
1
O'Reilly
Nice and Neat!
Xs and Os Referee
inline-if
in
11
try ... except ... makes jobs easier.
Index Power
except
try
time module did it
Time Converter (12h to 24h)
time.strftime
time.strptime
strftime
time
strptime
Second
Index Power
except
try
1
First
The Flat Dictionary
isinstance
dict
items
pop
join
First
Loading Cargo
combinations
itertools.combinations
itertools
min
abs
First
Count Inversions
sorted
while
range
list
len
First
Index Power
inline-if
len
First
Xs and Os Referee
or
elif
range
for
if
First
Median
sort
else
len
if
Incinerator
Just two more attack points!
The Warriors
class
property
decorator
while
and
2
First
Friends
class
Exception
add
tuple
remove
First
Dialogues
class
f-string
pass
add
None
First
Every Person is Unique
class
f-string
date
datetime.date
datetime
First
Voice TV Control
class
isinstance
inline-if
in
else
First, I think it is clear :)
Army Battles
class
staticmethod
property
decorator
extend
10
First
Multicolored Lamp
class
1
平庸
The Warriors
class
property
decorator
while
and
Mine
I guess most of you did this the same.
The Greatest Common Divisor
math.gcd
gcd
functools.reduce
reduce
functools
First
The Greatest Common Divisor
math.gcd
gcd
functools.reduce
reduce
functools
Just works
Chess Knight
union
f-string
chr
add
ord
10
str object has maketrans() and translate() functions, great!
Caesar Cipher (encryptor)
translate
str
4
f-sting makes it possible and neat in one line code done this job
Fizz Buzz
f-string
strip
or
1
Since `sorted(dict, key=lambda x:dict[x])` can work, why not ...
Best Stock
max
lambda
4th
Fizz Buzz
f-string
strip
or
2
Third
Fizz Buzz
f-string
strip
or
str
1
Second
Fizz Buzz
strip
or
join
str
Second
Best Stock
max
lambda
Python Build-in Makes It Easy, Clear and Readable, text.translate(trans_table)
Caesar Cipher (encryptor)
translate
ascii_lowercase
string.ascii_lowercase
string
str
First
Cut Sentence
startswith
endswith
strip
join
elif
Clear that you do have to have a look ;)
What Is Wrong With This Family?
set
count
in
False
and
1
Clear that you have to have a look ;)
Best Stock
items
max
comprehension
First
Moore Neighbourhood
sum
if-comprehension
elif
and
list
First
Binary Count
bin
map
sum
list
int
First
Fizz Buzz
not
str
if
Ice Base
The most clear and hard solution!
Identify Block
in
if
1
Third
Roman Numerals
join
if-comprehension
list-comp
range
comprehension
Second
Long Repeat
max
else
for
if
So ease?
The Most Numbers
min
max
inline-if
First
Morse Encoder
get
lower
join
comprehension
2
Third
The Most Numbers
min
max
inline-if
First !!!!!!!!!!!!!!!!!
Largest Rectangle in a Histogram
copy
items
pop
max
range
Second
The Most Numbers
min
max
inline-if
Second, with better understading the roman number, which I will keep it as a function.
Reverse Roman Numerals
startswith
items
replace
while
for
Clear code with comment, enjoy :)
Reverse Roman Numerals
re.search
search
re
bool
while
First
Long Repeat
findall
re.findall
r-string
re
sorted
Second
Monkey Typing
lower
sum
if-comprehension
in
comprehension
First
Monkey Typing
lower
sum
if-comprehension
in
list-comp
2
First
The Most Numbers
min
max
inline-if
Second
Roman Numerals
join
if-comprehension
list-comp
range
comprehension
First
Feed Pigeons
while
else
if
First
How to Find Friends
extend
pop
break
set
not
First
Roman Numerals
join
if-comprehension
list-comp
range
comprehension
Alice In Wonderland
First
When is Friday?
datetime.strptime
strptime
datetime.datetime
datetime
First
Multiplication Table
f-string
sum
list-comp
comprehension
int
1
First
The Fastest Horse
index
min
max
list
int
1.88400006294e-06s per call
The Shortest Knight's Path
ord
index
abs
in
if
1
4
First
The Shortest Knight's Path
index
abs
in
int
if
3
Second
Transposed Matrix
zip
map
list
First
Transposed Matrix
list-comp
range
comprehension
len
GitHub
First
The Most Frequent Weekdays
union
intersection
date
datetime.date
datetime
First
Simplify Unix Path
startswith
not
or
join
if-comprehension
First
Merge Intervals
add
set
not
sorted
append
Second
Create Intervals
not
sorted
append
range
len
First
Create Intervals
not
sorted
append
range
len
First, anything
Solution for Anything
class
True
Clear that you do have to have a look ;)
Long Repeat Inside
X
re.X
findall
re.findall
r-string
First
Area of a Convex Polygon
math.asin
asin
math.degrees
degrees
float
First
Open Labyrinth
pop
index
while
in
append
1
First
The End of Other
endswith
False
True
len
for
Dropbox
First
Humpty Dumpty Form
math.tan
tan
math.sin
sin
math.atanh
Clear that you do have to have a look ;)
Simple Hashlib
hashlib.sha1
hashlib.sha224
hashlib.sha256
hashlib.sha384
hashlib.sha512
Clear that you do have to have a look ;)
The Longest Palindromic
True
range
len
for
if
Second
Friendly Number
abs
inline-if
if-comprehension
list-comp
range
First
Friendly Number
abs
inline-if
if-comprehension
list-comp
range
First
Numbers Factory
continue
or
while
in
True
"--" bug corrected
Three Points Circle
eval
format
round
replace
Very Clear ~~~
Three Points Circle
eval
format
round
3
First
Three Points Circle
eval
type
float
round
tuple
First
Speech Module
pass
map
join
elif
list
PyCon TW
Clear that you do have to have a look ;)
Simple Areas
math.pi
pi
math
len
First
Simple Areas
math.pi
pi
math
len
Clear that you do have to have a look ;)
Double Substring
count
range
len
for
if
Third
House Password
islower
any
isupper
isdigit
comprehension
First
Robot Sort
pop
max
not
join
while
First
Calculate Islands
divmod
remove
pop
sorted
while
Object Oriented
Network Attack
class
object
all
not
while
First
Digit Stack
pop
in
elif
and
append
First
Golden Pyramid
bin
map
range
list
int
Second
House Password
islower
isupper
break
isdigit
False
First
House Password
break
in
False
True
len
Storage
hash() and set() make unique lines
The Rows of Cakes
hash
class
raise
is
f-string
First ... just works
The Rows of Cakes
hashlib.md5
md5
class
hashlib
raise
First
Skew-symmetric Matrix
all
range
comprehension
len
First
Saw the Stick
break
sum
if-comprehension
list-comp
range
1
First
Restricted Prime
chr
ord
join
in
comprehension
AStar
Digging a Canal
class
insert
is
continue
pop
First
Square Spiral
cycle
itertools.cycle
divmod
next
itertools
18
First
Playfair Cipher
digits
string.digits
divmod
ascii_lowercase
string.ascii_lowercase
First
Word Pattern
all
format
zip
map
isalpha
First
Weak Point
index
min
sum
list-comp
range
HubSpot
First
Node Disconnected Users
values
items
pop
set
sum
So ease, int(str_number, base) ... try ... except ...
Number Base
except
try
int
Second
Number Base
except
try
int
1
Clear!
Restricted Sum
inline-if
First
Restricted Sum
if
First
The Hamming Distance
bin
count
First
Number Base
except
try
int
Blizzard
A solution using re module.
Stressful Subject
re.I
I
endswith
f-string
re.search
1
Minimum Edit Distance - Levenshtein Distance! (min version)
String Conversion
min
range
int
len
for
Minimum Edit Distance - Levenshtein Distance!
String Conversion
min
max
or
inline-if
append
This is Levenshtein Distance!
String Conversion
min
max
inline-if
in
list-comp
First
The First Working Day
datetime.timedelta
timedelta
date
datetime.date
datetime
Last
Spaceship Landing Strip
all
max
if-comprehension
in
and
16
2
First
Min and Max
hasattr
get
map
index
None
First
Radiation Search
union
set-comp
remove
pop
while
First
The Angles of a Triangle
math.degrees
degrees
math.acos
acos
round
First
Weekend Counter
sum
if-comprehension
list-comp
range
comprehension
Rock
First
Berserk Rook
itertools.permutations
permutations
itertools
pop
break
Shelter
Clear that you do have to have a look ;)
Completely Empty
TypeError
iter
any
except
try
First
ADFGVX Cipher
divmod
dict-comp
zip
isalpha
index
16
First
Ghosts Age
index
19
2
First
One line Drawing
remove
break
set
count
inline-if
Codeship
First
The Square Chest
all
sort
sum
in
list-comp
19
3
Hermit
First
Keywords Finder
remove
find
sort
break
not
First
Mono Captcha
break
sum
while
append
list-comp
Last
Ore In The Desert
round
remove
abs
not
list-comp
16
First
Ore In The Desert
round
abs
not
in
append
First
The Good Radix
max
sum
list-comp
range
comprehension
Watchtower
First
Funny Addition
sum
First
Rotate Hole
is
all
inline-if
if-comprehension
True
Escher
First Treasures Taken
Treasures
f-string
lambda
sorted
while
in
果然是贼 ...
Safe Code
eval
re.search
search
re
replace
好似做贼...
Keys and Locks
re.search
search
zip
map
pop
Second
Wild Dogs
combinations
itertools.combinations
set-comp
add
itertools
初步实现
The Secret Room
index
not
or
sorted
join
平面几何复习题
Wild Dogs
combinations
itertools.combinations
set-comp
add
itertools
再修改一下下
The Stone Wall
divmod
enumerate
replace
max
split
小修改
The Stone Wall
divmod
enumerate
replace
max
split
一气呵成
The Stone Wall
divmod
enumerate
replace
max
split
大家觉得如何就如何吧...
Compass, Map and Spyglass
divmod
map
index
abs
max
不够完美
Ground for the House
divmod
enumerate
min
replace
max
一般般
The Ship Teams
items
inline-if
sorted
append
for
19