题解 | #时间转换#
时间转换
http://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 secs = in.nextInt();
int hour = secs / 3600;
int min = secs % 3600 / 60;
int sec = secs % 60;
System.out.println(hour + " " + min + " " + sec);
}
}