输入:日期,如2022,1,1
输出:天数
public static void main(String[] args) {
Scanner sc =new Scanner(System.in);
String s[] = sc.nextLine().split(",");
int a [] = new int[3];
for (int i=0;i<3;i++){
a[i] = Integer.parseInt(s[i]);
}
int mouthDays [] = {0,31,28,31,30,31,30,31,31,30,31,30};
if(a[0]%4==0&&a[0]%100!=0||a[0]%400==0){
mouthDays[2] = 29;
}
int day = 0 ;
for (int i=0;i<a[1];i++){
day += mouthDays[i];
}
System.out.println(a[2]+day);
}