2 solutions

  • 0
    @ 2026-1-17 20:09:41
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c,d;
        cin>>a>>b>>c>>d;
        int t=a*3600+b*60+c+d;
        int l=t/3600;
        int f=t%3600/60;
        int n=t%3600%60;
    	cout<<l<<" "<<f<<" "<<n;
        return 0;
    }

    Information

    ID
    2177
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    120
    Accepted
    22
    Uploaded By