백준
[JAVA] 백준 2753번 윤년
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Integer a = scanner.nextInt(); if (a%4==0){ if (a%100!=0 || a%400==0) { System.out.println("1"); }else { System.out.println("0"); } }else { System.out.println("0"); } }}