解题思路:
import java.util.Scanner;
public class 时间显示 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long n = sc.nextLong();
n = n /1000;
int s = (int)(n % (24*60*60));
int hours = s / 3600;
s = s % 3600;
int m = s / 60;
s = s % 60;
System.out.printf("%02d:%02d:%02d",hours,m,s);
}
}