1 solutions

  • 0
    @ 2023-11-5 10:52:49
    #include <bits/stdc++.h> 
    using namespace std;
    
    int main()
    {
        int  x=0,n=0,y=0,a=0;
        cin>>n>>x>>y;
        a=n-y/x;
        if((y%x)>0)
        {
            a=a-1;
        }
        cout<<a<<endl;
     return 0;  
    }
    

    Information

    ID
    550
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    7
    Tags
    # Submissions
    110
    Accepted
    33
    Uploaded By