5 条题解

  • 1

    #include<iostream>
    #include<cmath>
    #include<iomanip>
    using namespace std;
    int main()
    {

    int h,m,s;
    cin>>s;
    h=s/3600;
    m=(s-h*3600)/60;
    s=s-h*3600-m*60;
    cout<<h<<":"<<m<<":"<<s;
    return 0;
    }

  • -1
    @ 2021-11-21 21:16:55

    #include <iostream>
    using namespace std;
    int main()
    {
    int s;
    cin>>s;
    cout<<s/3600;
    cout<<':';
    cout<<(s-s/3600*3600)/60;
    cout<<':';
    cout<<s-(s/3600*3600)-((s-s/3600*3600)/60)*60;
    return 0;
    }

  • -1

    #include<iostream>
    #include<cmath>
    #include<iomanip>
    using namespace std;
    int main()
    {
    int h,m,s;
    cin>>s;
    h=s/3600;
    m=(s-h*3600)/60;
    s=s-h*3600-m*60;
    cout<<h<<":"<<m<<":"<<s;
    return 0;
    }

  • -2

    #include<iostream>
    #include<cmath>
    #include<iomanip>
    using namespace std;
    int main()
    {

    int h,m,s;
    cin>>s;
    1<=s<=86400;
    h=s/3600;
    m=(s-h*3600)/60;
    s=s-h*3600-m*60;
    cout<<h<<":"<<m<<":"<<s;
    return 0;

    return 0;
    }

  • -2
    @ 2021-10-31 20:39:27

    #include<iostream>
    using namespace std;
    int main( )
    {
    int h,m,s;
    cin>>s;
    h=s/3600;
    m=(s-h*3600)/60;
    s=s-h*3600-m*60;
    cout<<h<<":"<<m<<":"<<s;
    return 0;
    }

  • 1

信息

ID
1691
难度
1
分类
(无)
标签
递交数
294
已通过
187
通过率
64%
被复制
6
上传者