题解 | #判断闰年#
判断闰年
http://www.nowcoder.com/practice/a7bcbe3cb86f435d9617dfdd20a16714
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int year = scanner.nextInt();
if((year % 100 != 0 && year % 4 == 0) || year % 400 == 0){
System.out.print("yes");
}else{
System.out.print("no");
}
}
}
