4 solutions

  • 0
    @ 2022-1-23 21:01:37
    #include<bits/stdc++.h>
    using namespace std;
    typedef long long ll;
    int main()
    {
    	ll time,h,m,s;
    	scanf("%lld",&time);
    	time/=1000;
    	s=time%60;
    	time/=60;
    	m=time%60;
    	time/=60;
    	h=time%24;
    	printf("%02lld:%02lld:%02lld\n",h,m,s);
    	return 0;
    }
    

    Information

    ID
    1561
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    # Submissions
    109
    Accepted
    56
    Uploaded By