2 条题解

  • 3
    @ 2026-6-4 22:25:04
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
     int m, n;
        cin >> m >> n;
        int c;
        if(m % n == 0)
            c = m / n;
        else
            c = m / n + 1;
        cout << c;
        return 0;
    }
        
    
    
    • 1
      @ 2026-5-30 8:39:38

      #include using namespace std;

      int main() { int a, b, c, d; cin >> a >> b; c = a % b; if (c != 0) d = a / b + 1; else d = a / b; cout << d; return 0; }

      • 1

      信息

      ID
      30034
      时间
      1000ms
      内存
      256MiB
      难度
      4
      标签
      递交数
      76
      已通过
      33
      上传者