Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- hackerrank
- programmers
- 프로그래머스 파이썬
- 코로나19
- gs25
- 파이썬
- SW Expert Academy
- dacon
- Git
- 맥북
- 데이콘
- 편스토랑
- 우분투
- 프로그래머스
- AI 경진대회
- 자연어처리
- Real or Not? NLP with Disaster Tweets
- github
- leetcode
- ubuntu
- PYTHON
- 캐치카페
- 백준
- Kaggle
- 편스토랑 우승상품
- ChatGPT
- 금융문자분석경진대회
- 더현대서울 맛집
- Baekjoon
- Docker
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 27001번 : Bovine Birthday (Python) 본문
728x90
반응형
코딩 1일 1문제! 오늘의 문제는 백준의 Bovine Birthday 입니다.
27001번: Bovine Birthday
Bessie asked her friend what day of the week she was born on. She knew that she was born on 2003 May 25, but didn't know what day it was. Write a program to help. Note that no cow was born earlier than the year 1800. Facts to know: January 1, 1900 was on a
www.acmicpc.net
👨🏻💻 코드 ( Solution )
from datetime import datetime
def bovine_birthday(year, month, day):
week_day_list = ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]
return week_day_list[datetime(year=year, month=month, day=day).weekday()]
if __name__ == "__main__":
year, month, day = map(int, input().split())
print(bovine_birthday(year=year, month=month, day=day))
GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07
1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.
github.com
'Programming > 코딩 1일 1문제' 카테고리의 다른 글
[BaekJoon] 23806번 : 골뱅이 찍기 - ㅁ (Python) (2) | 2023.01.12 |
---|---|
[BaekJoon] 26587번 : Reverse (Python) (0) | 2023.01.10 |
[BaekJoon] 10570번 : Favorite Number (Python) (0) | 2023.01.08 |
[BaekJoon] 26500번 : Absolutely (Python) (0) | 2023.01.07 |
[BaekJoon] 5344번 : GCD (Python) (0) | 2023.01.07 |
Comments