1 solutions

  • 0
    @ 2025-7-11 9:29:03
    #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
    84
    Accepted
    29
    Uploaded By