题解 | #时间转换#
时间转换
https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int seconds=in.nextInt(); int hour=seconds/3600; int minute=(seconds%3600)/60; int s=seconds%60; System.out.println(hour+" "+minute+" "+s); } }