标签:微软雅黑 user put color script lang status problem size
12:01:12 13:09:43
01:08:31
Java实现
1 import java.util.Scanner; 2 import java.util.Date; 3 import java.util.TimeZone; 4 import java.text.SimpleDateFormat; 5 import java.lang.Math; 6 7 public class Main{ 8 public static void main(String[] args) throws Exception { 9 SimpleDateFormat fd=new SimpleDateFormat("HH:mm:ss"); 10 Scanner input=new Scanner(System.in); 11 Date t1=fd.parse(input.next()); 12 Date t2=fd.parse(input.next()); 13 long t=Math.abs(t2.getTime()-t1.getTime()); 14 fd.setTimeZone(TimeZone.getTimeZone("GMT+0")); 15 System.out.println(fd.format(t)); 16 } 17 } 18 19 /*************************************************** 20 User name: *** 21 Result: Accepted 22 Take time: 196ms 23 Take Memory: 11900KB 24 Submit time: 2017-05-18 15:48:06 25 ****************************************************/
标签:微软雅黑 user put color script lang status problem size
原文地址:http://www.cnblogs.com/Mimick/p/6873807.html