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;
    }
    • -1
      @ 2026-3-24 22:15:00
      #include<bits/stdc++.h>
      using namespace std;
      int n,x,y; 
      int main()
      {
      	cin>>n>>x>>y;
      	cout<<n-(y+x-1)/x;
      	return 0;
      }
      
      • 1

      Information

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