본문 바로가기
python-algorithm

백준 10420 기념일 1

by 무적김두칠 2023. 1. 4.

https://www.acmicpc.net/problem/10420

 

10420번: 기념일 1

세계적으로 유명한 커플 상근이와 나예는 2016년 4월 3일이 사귀기 시작한지 200일이 되는 날이었다. 상근이는 그 날이 200일인줄 몰라서 나예한테 혼났다. 이런 일이 다시는 없도록 하기 위해서

www.acmicpc.net

 

1
2
3
4
5
6
7
8
9
10
11
12
13
from datetime import date, timedelta
 
 
def sol(n):
    start = date(201442)
    answer = start + timedelta(days=- 1)
    return answer
 
 
if __name__ == '__main__':
    n = int(input())
    print(sol(n))
 
cs
반응형

댓글