以下是题目内容---------
import java.util.Map;
import java.util.Scanner;
/**
* @Author 陈平安
* @Date 2022/8/29 9:25
* @PackageName:PACKAGE_NAME
* @ClassName: Main
* @Description: TODO
* @Version 1.0
*/
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String time01 = scanner.next();
String time02 = scanner.next();
long num = scanner.nextInt();
//数据类型是long,不然有些数据不通过
//以上就是获取输入内容
String[] arr = time01.split(":");
String[] arr01 = time02.split(":");
//将获取到的时间拆分成为数组形式,方便后去获取时分秒的数据
long hours = Integer.parseInt(arr01[0]) - Integer.parseInt(arr[0]);//获取时 的数据
long minutes = Integer.parseInt(arr01[1]) - Integer.parseInt(arr[1]);//获取分的数据
long seconds = Integer.parseInt(arr01[2]) - Integer.parseInt(arr[2]);//获取秒的数据
long result = hours * 3600 + minutes * 60 + seconds;//计算即可
long res = result * num;
System.out.println(res);
}
}