蓝桥网试题 java 基础练习 时间转换
---------------------------------------
---------------------------------------
1 import java.util.*; 2 public class Main { 3 public static void main(String[] args) { 4 int n = new Scanner(System.in).nextInt(); 5 int i,j,k; 6 i = n/3600; 7 j = (n%3600)/60; 8 k = (n%3600)%60; 9 System.out.println(i+":"+j+":"+k); 10 } 11 }