http://codeup.kr/problem.php?id=1166
Codeup 1166 - 윤년 판별
xxxxxxxxxx
year = input()
year = int(year)
if(((year % 4 == 0) and (year % 100 != 0)) or (year % 400 == 0)):
print('yes')
else:
print('no')
'알고리즘 문제 풀기 > Codeup' 카테고리의 다른 글
Codeup 1168 - 나이 계산 1 (0) | 2018.12.23 |
---|---|
Codeup 1167 - 두 번째로 작은 수 (0) | 2018.12.23 |
Codeup 1165 - 축구의 신 1 (0) | 2018.12.22 |
Codeup 1164 - 터널 통과하기 1 (0) | 2018.12.22 |
Codeup 1163 - 당신의 사주를 봐 드립니다 2 (0) | 2018.12.21 |