package com.minrisoft;
import java.lang.String;
import java.util.Scanner;
public class Riqi {
public static boolean leapYear(int y){
if (y % 400 == 0 || (y % 4 == 0 && y % 100 != 0))
return true;
else
return false;
}
public static void calcWeek(int a,int b,int c){
if(b == 1){
b = 13;
a =a - 1;
}
if(b ==12){
b = 14;
a = a - 1;
}
int h = (int) ((c + (26 * (b + 1) / 10) + (a % 100) + ((a % 100) / 4) + ((a / 100) / 4) + 5 * (a / 100)) % 7);
switch (h) {
case 0:
System.out.println("星期六");
break;
case 1:
Syst
import java.lang.String;
import java.util.Scanner;
public class Riqi {
public static boolean leapYear(int y){
if (y % 400 == 0 || (y % 4 == 0 && y % 100 != 0))
return true;
else
return false;
}
public static void calcWeek(int a,int b,int c){
if(b == 1){
b = 13;
a =a - 1;
}
if(b ==12){
b = 14;
a = a - 1;
}
int h = (int) ((c + (26 * (b + 1) / 10) + (a % 100) + ((a % 100) / 4) + ((a / 100) / 4) + 5 * (a / 100)) % 7);
switch (h) {
case 0:
System.out.println("星期六");
break;
case 1:
Syst