1 solutions

  • 0
    @ 2025-11-27 11:54:18

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n,x,y;
    	cin>>n>>x>>y;
    	int a=y%x,b=y/x;
    	if(a!=0) b++;
    	cout<<n-b;
    	return 0;
    }
    
    • 1

    Information

    ID
    7
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By