WA 40求助
查看原帖
WA 40求助
872662
mengleo楼主2023/4/2 20:44
#include <bits/stdc++.h>

using namespace std;

int m, t, s, ans;

int main()
{
    cin >> m >> t >> s;

    if (t == 0)
    {
        cout << m;
        return 0;
    }

    ans = max(0, m - (s / t + s % t));
    cout << ans << endl;

    return 0;
}
2023/4/2 20:44
加载中...