import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int year = sc.nextInt();
if (((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0))
System.out.println(1);
else
System.out.println(0);
sc.close();
}
}
Algorithm백준+프로그래머스+SWEA+정올+구름카테고리의 다른글
[Algorithm] 백준 10250 ACM 호텔 (0) | 2021.03.25 |
---|---|
[Algorithm] 백준 2577 숫자의 개수 (0) | 2021.03.25 |
[Algorithm] 백준 2884 알람 시계 (0) | 2021.03.25 |
[Algorithm] 백준 10871 X 보다 작은 수 (0) | 2021.03.24 |
[Algorithm] 백준 2739 구구단 (0) | 2021.03.24 |