1 solutions

  • 0
    @ 2025-6-14 11:02:35
    
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    int n;
    cin>>n;
    int h=n/3600;
    n%=3600;
    int m=n/60;
    n%=60;
    if (h<10){
        cout<<0;
    }
    cout<<h<<":";
    if (m<10){
        cout<<0;
    }
    cout<<m<<":";
    if (n<10){
        cout<<0;
    }
    cout<<n;
    return 0;
    }
    
    
    
    
    
    
    • 1

    Information

    ID
    1505
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    4
    Tags
    # Submissions
    53
    Accepted
    23
    Uploaded By