67

3 comments

  • @ 9 months ago

    需要讲解再说

    • @ 9 months ago

      这提油题解

      • @ 9 months ago
        #include<iostream>
        using namespace std;
        int main()
        {
            int n,a,b,c;
            cin >>n;
            a=n/60/60;
            b=n%3600/60;
            c=n%60;
            if(a<10) cout <<"0" <<a <<":";
            else cout <<a <<":";
            if(b<10) cout <<"0" <<b <<":";
            else cout <<b <<":";
            if(c<10) cout <<"0" <<c;
            else cout <<c;
            return 0;
        }
        
        👍 1
        • 1