1
# Runtime: 31 ms (Top 93.30%) | Memory: 13.8 MB (Top 98.50%)
2
class Solution:
3
def reformatDate(self, date: str) -> str:
4

5
m_dict_ = {
6
"Jan": "01",
7
"Feb": "02",
8
"Mar": "03",
9
"Apr": "04",
10
"May": "05",
11
"Jun": "06",
12
"Jul": "07",
13
"Aug": "08",
14
"Sep": "09",
15
"Oct": "10",
16
"Nov": "11",
17
"Dec": "12",
18
}
19

20
day = date[:-11]
21

22
if len(day) == 1:
23
day = "0" + day
24

25
return date[-4:] + "-" + m_dict_[date[-8:-5]] + "-" + day

0

WPM •0 •0

100%

ACC •0 •0

0s

TIME •0