#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; }
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.
Using your Hydro universal account