1
2
3
4
|
from datetime import datetime
class Solution:
def dayOfTheWeek(self, day: int, month: int, year: int) -> str:
return datetime(year,month,day).strftime('%A')
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
leetcode 1800. Maximum Ascending Subarray Sum (0) | 2022.04.04 |
---|---|
leetcode 896. Monotonic Array (0) | 2022.03.28 |
leetcode 448. Find All Numbers Disappeared in an Array (0) | 2022.03.28 |
Leetcode 268. Missing Number (0) | 2022.03.28 |
leetcode 2129. Capitalize the Title (0) | 2022.03.25 |
댓글