标签:logs div out 2.0 stat imp 1.0 static system
1 import java.util.Scanner; 2 3 public class Main { 4 public static void main(String[] args){ 5 Scanner sc=new Scanner(System.in); 6 int n=sc.nextInt(); 7 8 int h = n / 3600 ; //小时 9 int m = n % 3600 / 60 ; //分钟 10 int s = n % 60; //秒 11 System.out.println(h+":"+m+":"+s); 12 } 13 }
标签:logs div out 2.0 stat imp 1.0 static system
原文地址:http://www.cnblogs.com/cao-lei/p/6686117.html