import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
if ( (a%4 == 0 && a%100 != 0) || a%400 == 0) {
System.out.print("1");
} else {
System.out.print("0");
}
}
}
728x90
반응형
'매일코테' 카테고리의 다른 글
백준 2단계 no.5 (0) | 2022.07.19 |
---|---|
백준 2단계 no.4 (0) | 2022.07.19 |
백준 2단계 no.2 (0) | 2022.07.19 |
백분 2단계 no.1 (0) | 2022.07.19 |
백준 1단계 no.14 (0) | 2022.07.18 |