1 solutions

  • 2
    @ 2025-11-21 19:05:59
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c,d;cin>>a>>b>>c>>d;
        int gc=0,sc=c-a;
        if(d-b<0)
        {
            sc-=1;
            gc=60+d-b;
        }
        else gc=d-b;
        cout<<sc<<" "<<gc;
        return 0;
    }
    
    • 1

    Information

    ID
    1478
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    11
    Accepted
    10
    Uploaded By