80分求助
查看原帖
80分求助
1436107
封禁用户楼主2024/11/2 10:32
#include<bits/stdc++.h>
using namespace std;
int main()
{
    int m, t, s;
    cin >> m >> t >> s;
    if(t == 0)
    {
        cout << 0;
        return 0;
    }
    int a = ceil(double(s / t));
    if(a >= m)
    {
        cout << 0;
    }
    else
    {
        cout << m - a;
    }
    return 0;
}

求助,看不出来哪里错了

2024/11/2 10:32
加载中...