BC30 时间转换
思路:
step1:输入秒;
分别计算出对应的hour、minute、second;
格式化输出;
代码如下:
n = int(input())
h = n//3600
m = n%3600//60
s = n%3600%60
print('{} {} {}'.format(h,m,s))
n = int(input())
h = n//3600
m = n%3600//60
s = n%3600%60
print('{} {} {}'.format(h,m,s))