3 条题解

  • 0
    @ 2023-4-3 21:47:05
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,x;
        cin>>n>>x;
        n*=1000;
        if (n%x!=0)
            cout<<n/x+1;
        else
            cout<<n/x;
        return 0;
    }
    
    • 0
      @ 2023-3-24 20:11:19
      #include <iostream>
      using namespace std;
      int main()
      {
          int n,x;
          cin >> n >> x;
          n*=1000;
          if(n%x==0)
          {
              cout << n/x;
          }
          else
          {
              cout << n/x+1;
          }
      }
      
      • 0
        @ 2022-10-3 18:44:18
        #include <iostream>//hetao3097453
        using namespace std;
        int main()
        {
            int a,b;
            cin >> a >> b;
            a *= 1000;
            if(a % b == 0)
            {
                cout << a / b;
            }
            else
            {
                cout << a / b + 1;
            }
            return 0;
        }
        
        
        • 1

        【入门】最多能倒多少杯水

        信息

        ID
        306
        时间
        1000ms
        内存
        16MiB
        难度
        4
        标签
        递交数
        315
        已通过
        142
        上传者