全部评论 2

  • 6

    2024-10-26 来自 四川

    1
  • 答案:

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

    2025-02-04 来自 浙江

    0

热门讨论