換library後 就過了~
回饋一下:
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.time.LocalDate;
import java.time.temporal.ChronoUnit;
public class A263_14{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String str=br.readLine();
String[] strArray;
LocalDate d1,d2;
while(str!=null){
strArray=str.split(" ");
d1=LocalDate.of(Integer.parseInt(strArray[0]),Integer.parseInt(strArray[1]),Integer.parseInt(strArray[2]));
strArray=br.readLine().split(" ");
d2=LocalDate.of(Integer.parseInt(strArray[0]),Integer.parseInt(strArray[1]),Integer.parseInt(strArray[2]));
System.out.println(Math.abs(ChronoUnit.DAYS.between(d1,d2)));
str=br.readLine();
}
}
}