4 条题解

  • 2
    @ 2026-2-6 13:36:57
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double a,b,c;
    	cin>>a>>b>>c;
    	double d=a-c/b;
    	if(d>=0) cout<<int(d);
    	else cout<<0;
    	return 0;
    }
    • 1
      @ 2026-3-8 13:18:20
      
      #include<bits/stdc++.h>
      using namespace std;
      double n,x,y;
      int main()
      {
      	cin >> n >> x >> y;
      	double r = n-y/x;
      	if(r > 0)
      	{
      		cout << int(r);
      	}else{
      		cout << 0;
      	}
      	return 0;
      }
      
      • 1
        @ 2024-12-29 16:27:51
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double a,b,c;
        	cin>>a>>b>>c;
        	double d=a-c/b;
        	cout<<int(d);
        	return 0;
        }
        • -1
          @ 2025-10-26 18:03:46

          #include using namespace std; int main() { int a,b,c,d,e; cin>>a>>b>>c; d=c/b; if(c%b>0) { d++; } if(d<0) { d=0; } e=a-d; if(e<0) { e=0; }

          cout<<e;
          return 0;
          

          }

          • 1

          信息

          ID
          5
          时间
          1000ms
          内存
          256MiB
          难度
          8
          标签
          递交数
          76
          已通过
          12
          上传者