https://www.acmicpc.net/problem/2753
x = int(input())
if (x % 4 == 0 and x % 100 != 0) or x % 400 == 0:
print(1)
else:
print(0)
코드 해석
'Python > BOJ' 카테고리의 다른 글
[Python] 합 (0) | 2021.08.11 |
---|---|
[Python] A + B - 3 (0) | 2021.08.11 |
[Python] 구구단 (0) | 2021.08.11 |
[Python] 알람 시계 (0) | 2021.08.11 |
[Python] 사분면 구하기 (0) | 2021.08.11 |