Written by
java-style
on
on
[2753번 - java] 윤년
[2753번 - java] 윤년
내 답안
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { Scanner s = new Scanner(System.in); int year = s.nextInt(); if ((year%4 == 0) && ((year%100 != 0) || (year%400 == 0))) { System.out.println("1"); } else System.out.println("0"); } }
from http://dotddori-prgmwh.tistory.com/46 by ccl(A) rewrite - 2021-11-03 14:02:03