2 solutions

  • 1
    @ 2026-8-14 16:26:40
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,x,y;
        cin>>n>>x>>y;
        int z=y%x;
        int a=y/x;
        if(z!=0)
        {
            a=a+1;
        }
        cout<<n-a;
    	return 0; 
    }
    

    Information

    ID
    2559
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    # Submissions
    113
    Accepted
    39
    Uploaded By