1 条题解

  • 1
    @ 2026-5-31 22:13:54
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
    int n, x, y;
        cin >> n >> x >> y;
        int e;
        if (x == 0) {
            e = 0;
        } else {
            e = (y + x - 1) / x;
        }
        
        int ans = n - e;
        if (ans < 0) ans = 0;
        
        cout << ans << endl;
        return 0;
    }
        
    
    
    • 1

    信息

    ID
    30943
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    (无)
    递交数
    22
    已通过
    6
    上传者