1 solutions

  • 0
    @ 2025-12-12 15:52:59
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
    	int x,a,b,c;
    	cin>>x;
    	a=x/3600;
    	b=x%3600/60;
    	c=x%60;
    	if(a>=10)cout<<a<<":";
    	else cout<<0<<a<<":";
    	if(b>=10)cout<<b<<":";
    	else cout<<0<<b<<":";
    	if(c>=10)cout<<c;
    	else cout<<0<<c;
    }
    
    • 1

    Information

    ID
    621
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    10
    Tags
    # Submissions
    2
    Accepted
    2
    Uploaded By