2 条题解

  • 0
    @ 2023-11-11 16:07:47

    #include using namespace std; int main() { int n,x,y; cin>>n>>x>>y; int b=y/x; if(y/x>n){ cout<<0; } else if(y/x<n){ cout<<n-b-1; } return 0; }

    • -1
      @ 2024-1-26 21:18:05

      其实很简单

      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          int n,x,y;//定义
          cin>>n>>x>>y;//输入
          cout<<n-y/x-1;//计算
      }
      
      • 1

      信息

      ID
      6
      时间
      1000ms
      内存
      256MiB
      难度
      6
      标签
      递交数
      23
      已通过
      11
      上传者