1 solutions

  • 1
    @ 2025-7-5 11:33:30
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int N,M,X,T,D;
        cin>>N>>M>>X>>T>>D;
        if(M<X)
        {
            cout<<T-(X-M)*D;
        }
        else
        {
            cout<<T;
        }   
        return 0;
    }
    

    Information

    ID
    2361
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    63
    Accepted
    26
    Uploaded By