基础训练 时间转换

Posted a-little-nut

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基础训练 时间转换相关的知识,希望对你有一定的参考价值。

时间转换

#include<iostream>
using namespace std;
int main(){
    int t;
    cin>>t;
    cout<<t/3600<<":"<<(t%3600)/60<<":"<<(t%3600)%60<<endl;
    return 0;
}

以上是关于基础训练 时间转换的主要内容,如果未能解决你的问题,请参考以下文章