Files
python/TangDou/AoSaiYiBenTong/YBT1038.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

16 lines
400 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
//cin读入优化
std::ios::sync_with_stdio(false);
int n, x, y;
cin >> n >> x >> y;
//============注意:需要特判!========================
//比如一组测试用例: 10 1 20
float a = n - ceil(1.0 * y / x);
if (a > 0) cout << a << endl;
else cout << 0 << endl;
return 0;
}