1 solutions

  • 0
    @ 2024-2-3 19:37:38

    C++ :

    #include <iostream>
    using namespace std;
     
    int main() {
    int x,y,n,i,j;
    	cin>>n>>x>>y; 
    	j=y%x;		
    	if(j!=0) j=y/x+1; 
    	else  j=y/x;
    	if(j>n)			
    	cout<<"0";	
    	else
    	{
    		i=n-j;	
    		cout<<i;
    }
    return 0;}
    
    • 1

    Information

    ID
    31
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    1
    Tags
    # Submissions
    11
    Accepted
    9
    Uploaded By