import java.util.Calendar;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Calendar c=Calendar.getInstance();
        Scanner read=new Scanner(System.in);
        c.set(read.nextInt(),read.nextInt(),read.nextInt());
        long time1=c.getTimeInMillis();
        c.set(read.nextInt(),read.nextInt(),read.nextInt());
        long time2=c.getTimeInMillis();
        long time=(time2-time1)/(1000*60*60*24);
        System.out.println(time);
    }
}

0
Posted in Java

Leave a Comment:

电子邮件地址不会被公开。