7 solutions

  • -1
    @ 2025-12-24 17:17:49

    #include <bits/stdc++.h> using namespace std; int a,b,c,d,e,f; int main() { cin>> a>> b>> c>> d; e = c - a; if(b<=d){ f = d - b; }else{ e--; f = 60 - (b - d); } cout<< e<< ' '<< f; return 0; }

    Information

    ID
    1329
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    # Submissions
    186
    Accepted
    79
    Uploaded By