为什么???#4过不去
查看原帖
为什么???#4过不去
684337
sweet_melon楼主2022/7/20 10:05
#include <iostream>
#include <cmath>
using namespace std;

int main(){
    long long n, t, k;
    cin >> n >> t >> k;
    if (t == 0){
        cout << 0;
        return 0;
    }
    if (n - k / t <= 0){
        cout << 0;
        return 0;
    }
    if (k % t != 0){
        cout << ceil(n - k / t);
    }
    cout << n - k / t;
    return 0;
}

就想知道哪错了QAQ

2022/7/20 10:05
加载中...