2011-06-17 12:42:43Morris
[JAVA] a004. 文文的求婚
/**********************************************************************************/
/* Problem: a004 "文文的求婚" */
/* Language: JAVA */
/* Result: AC (236ms, 6236KB) on ZeroJudge */
/* Author: new1028 at 2011-06-17 08:49:04 */
/**********************************************************************************/
import java.util.Scanner;
public class a004 {
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int N;
while(cin.hasNextInt()) {
N = cin.nextInt();
if(N%4 == 0 && N%100 != 0 || N%400 == 0)
System.out.println("閏年");
else
System.out.println("平年");
}
}
}
/* Problem: a004 "文文的求婚" */
/* Language: JAVA */
/* Result: AC (236ms, 6236KB) on ZeroJudge */
/* Author: new1028 at 2011-06-17 08:49:04 */
/**********************************************************************************/
import java.util.Scanner;
public class a004 {
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
int N;
while(cin.hasNextInt()) {
N = cin.nextInt();
if(N%4 == 0 && N%100 != 0 || N%400 == 0)
System.out.println("閏年");
else
System.out.println("平年");
}
}
}