3 solutions

  • 1
    @ 2026-2-23 11:59:25
    #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;
    }
    
    
    • 0
      @ 2026-1-25 20:07:57
      #include<bits/stdc++.h>
      using namespace std;
      int main()
      {
          double a,b,c;
          cin>>a>>b>>c;
          a-=c/b;
          cout<<int(a);
      }
      
      • -2
        @ 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
        5
        Tags
        # Submissions
        28
        Accepted
        15
        Uploaded By