3 条题解

  • 1
    @ 2024-2-3 10:52:52
    > #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,m;
        cin>>n>>m;
        if(n>=250)
        {
            cout<<"NO";
        }
        else 
        {
            cout<<(m/(250-n));
        }
    
    	return 0; 
    }
    
    • -1
      @ 2024-7-20 17:24:18

      #include<bits/stdc++.h> using namespace std; int main() {

      cin>>n>>m;
      if(n>=250)
      {
      cout<<"NO";
      }
      else
      {
      cout<<m/(250-n);
      }
      
      return 0;
      
      
      
      

      }

      • -2
        @ 2024-2-3 10:45:45
        #include<bits/stdc++.h>
        using namespace std;
        int main()
        {
            int t=0,z=0;
            double n,m;
            cin>>n>>m;
            
            if(n>250)
            {
                cout<<"NO";
            }
            else
            {
            for(;z<m;t++)
            {
                z=250-n+z;
            }
            cout<<t;
            }
        }
        
        • 1

        信息

        ID
        873
        时间
        1000ms
        内存
        128MiB
        难度
        3
        标签
        递交数
        136
        已通过
        32
        上传者