import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int sumTime = sc.nextInt();
int h = sumTime / 3600;
sumTime = sumTime - h * 3600;
int m = sumTime / 60;
sumTime = sumTime - m * 60;
int s = sumTime;
System.out.print(h + ":" + m + ":" + s);
}
}
基础练习 时间转换
最新推荐文章于 2021-02-22 12:27:58 发布