백준 2753번 윤년 파이썬

Joy·2021년 3월 15일

백준

목록 보기
2/7

백준 2753번

a = int(input())
if a % 4 == 0 and a % 100 != 0:
    print("1")
elif a % 4 == 0 and a % 400 == 0:
    print("1")
else:
    print("0")

배수를 구하는 법

  • 숫자를 배수를 구할 수로 나누었을 때 나머지가 0으로 나와야함
profile
개발 신생아🍼

0개의 댓글