1 条题解

  • 0
    @ 2026-4-2 19:06:07

    #include<bits/stdc++.h> using namespace std; int main(){ int h,u,d; int day = 0; cin >> h >> u >> d; while (h){ h = h - u; day++; if (h <= 0){ break; } h = h + d; } cout << day; return 0; }

    信息

    ID
    60
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    递交数
    262
    已通过
    43
    上传者