백준 - 2753 윤년

AekT·2021년 10월 19일

단계별로풀어보기

목록 보기
1/11
post-thumbnail

백준 2753 윤년

문제 : https://www.acmicpc.net/problem/2753

Swift :

import Foundation

let input = Int(readLine()!)!
if (input%4 == 0 && input%100 != 0) || input%400 == 0{
    print("1")
}else{
    print("0")
}
profile
으악

0개의 댓글