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 |
Tags
- SW Expert Academy
- Kaggle
- 편스토랑 우승상품
- gs25
- 맥북
- 캐치카페
- 우분투
- 프로그래머스 파이썬
- 백준
- leetcode
- 편스토랑
- github
- 자연어처리
- 코로나19
- dacon
- Git
- PYTHON
- 금융문자분석경진대회
- AI 경진대회
- 데이콘
- Docker
- ChatGPT
- hackerrank
- ubuntu
- Real or Not? NLP with Disaster Tweets
- Baekjoon
- 프로그래머스
- 더현대서울 맛집
- 파이썬
- programmers
Archives
- Today
- Total
솜씨좋은장씨
[BaekJoon] 10768번 : 특별한 날 (Python) 본문
728x90
반응형
![](http://t1.daumcdn.net/tistory_admin/static/images/xBoxReplace_250.png)
코딩 1일 1문제! 오늘의 문제는 백준의 특별한 날 입니다.
10768번: 특별한 날
마지막 줄에 "Before", "After"나 "Special"을 출력한다.
www.acmicpc.net
👨🏻💻 코드 ( Solution )
def special_day(month, day):
answer = "After"
if f"{month} {day}" == "2 18":
answer = "Special"
elif (month <= 2 and day < 18) or (month == 1 and day < 32):
answer = "Before"
return answer
if __name__ == "__main__":
month = int(input())
day = int(input())
print(special_day(month, 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] 2408번 : 큰 수 계산 (Python) (0) | 2022.04.30 |
---|---|
[BaekJoon] 2052번 : 지수연산 (Python) (0) | 2022.04.29 |
[BaekJoon] 1297번 : TV 크기 (Python) (0) | 2022.04.27 |
[BaekJoon] 16394번 : 홍익대학교 (Python) (0) | 2022.04.26 |
[BaekJoon] 1038번 : 감소하는 수 (Python) (0) | 2022.04.25 |