1 solutions

  • 1
    @ 2026-6-14 11:51:47
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n;cin>>n;
        if(n>=60)
        {
            cout<<"22:";
            if(n-60<10)
            {
                cout<<"0"<<n-60;
            }
            else 
            {
                cout<<n-60;
            }
        }
        else{
            if(n<10)
            {
                cout<<"21:0"<<n;
            }
            else{
                cout<<"21:"<<n;
            }
        }
        return 0;
    }
    
    • 1

    Information

    ID
    2303
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    # Submissions
    4
    Accepted
    3
    Uploaded By