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 |
Tags
- 코로나19
- Git
- dacon
- github
- Docker
- Kaggle
- 프로그래머스 파이썬
- ChatGPT
- 프로그래머스
- 맥북
- 파이썬
- leetcode
- 자연어처리
- 백준
- ubuntu
- hackerrank
- programmers
- gs25
- 우분투
- AI 경진대회
- Baekjoon
- 금융문자분석경진대회
- 캐치카페
- PYTHON
- 더현대서울 맛집
- 편스토랑 우승상품
- 데이콘
- SW Expert Academy
- 편스토랑
- Real or Not? NLP with Disaster Tweets
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 |