a004.
文文的求婚
| From: [122.116.139.112] |
發表日期
:
2014-01-04 21:35
import java.util.Scanner;
public class JAVA {
public static void main(String[] args) {
Scanner Scanner = new Scanner(System.in);
while (Scanner.hasNext()) {
int Y = Scanner.nextInt();
if (Y % 400 == 0 || (Y % 4 == 0 && Y % 100 != 0)) {
System.out.println("閏年");
} else {
System.out.println("平年");
}
}
}
}