题解 | #时间转换#

时间转换

https://www.nowcoder.com/practice/c4ae7bcac7f9491b8be82ee516a94899

#include <stdio.h>

int main() 
{
    long int seconds=0;
    scanf("%ld",&seconds);
    int s = seconds/3600;
    int f = (seconds%3600)/60;
    int m = seconds%60;
    printf("%d %d %d",s,f,m);
    return 0;
}

全部评论

相关推荐

1 收藏 评论
分享
牛客网
牛客企业服务