1015: 计算时间间隔
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);String s1;s1=cin.next();String s[] = s1.split(":");int a1=Integer.parseInt(s[0]);int b1=Integer.parseInt(s[1]);int c1=Integer.parseInt(s[2]);s1=cin.next();s = s1.split(":");int a2=Integer.parseInt(s[0]);int b2=Integer.parseInt(s[1]);int c2=Integer.parseInt(s[2]);int x1=a1*3600+b1*60+c1;int x2=a2*3600+b2*60+c2;System.out.println(x2 - x1);}
}