2 solutions

  • 1
    @ 2026-8-20 20:33:23
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int a,b,c;
    	cin>>a>>b>>c;
    	int i=c/b;
    	int z=a-i;
    	if(c%b==0)
    	{
    		cout<<z;
    	}
    	else
    	{
    		cout<<z-1;
    	}
    	return 0;
    }

    Information

    ID
    3473
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    47
    Accepted
    30
    Uploaded By