7 solutions

  • 0
    @ 2025-10-7 15:43:46

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

    Information

    ID
    24
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    191
    Accepted
    86
    Uploaded By