1 solutions

  • 1
    @ 2026-8-11 10:37:06

    点赞的是彭于晏

    #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 h=t/3600;
        int m=t%3600/60;
        int s=t%60;
    	cout<<h<<" "<<m<<" "<<s;
        return 0;
    }
    
    • 1

    Information

    ID
    2177
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    178
    Accepted
    42
    Uploaded By