import java.util.Scanner;
public class test11{
public static void main(String[]args){
Scanner in=new Scanner(System.in);
System.out.println("请输入所查找的年份:");
int year=in.nextInt();
int sum=0;
for(int i =1900;i<=year-1;i++){
if(i%4==0&&i%100!=0||i%400==0){
sum=sum+366;
}else{
sum=sum+365;
}
}
for(int month=1;month<=4;month++){
if(month==2){
if(year%4==0&&year%100!=0||year%400==0){
sum=sum+29;
}else{
sum=sum+28;
}
}else{
if (month==4||month==6||month==9||month==11){
sum=sum+30;
}else{
sum=sum+31;
}
}
}
sum=sum+7;
System.out.println("1900年到"+year+"\t"+sum+"共天");
//System.out.println("2016.5.7是星期:"+sum%7);
}
}
public class test11{
public static void main(String[]args){
Scanner in=new Scanner(System.in);
System.out.println("请输入所查找的年份:");
int year=in.nextInt();
int sum=0;
for(int i =1900;i<=year-1;i++){
if(i%4==0&&i%100!=0||i%400==0){
sum=sum+366;
}else{
sum=sum+365;
}
}
for(int month=1;month<=4;month++){
if(month==2){
if(year%4==0&&year%100!=0||year%400==0){
sum=sum+29;
}else{
sum=sum+28;
}
}else{
if (month==4||month==6||month==9||month==11){
sum=sum+30;
}else{
sum=sum+31;
}
}
}
sum=sum+7;
System.out.println("1900年到"+year+"\t"+sum+"共天");
//System.out.println("2016.5.7是星期:"+sum%7);
}
}