tj
2024-08-23 11:28:15
发布于:广东
2阅读
0回复
0点赞
#include <iostream>
#include <cmath>
using namespace std;
inline int readInt() {
int s = 0, w = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if (ch == '-') w = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
s = s * 10 + ch - '0';
ch = getchar();
}
return s * w;
}
inline void writeInt(int x) {
if (x < 0) {
putchar('-');
x = -x;
}
if (x > 9) writeInt(x / 10);
putchar(x % 10 + '0');
}
int main() {
int n = readInt();
int x = readInt();
int y = readInt();
int eats = ceil(static_cast<double>(y) / x);
int rems = max(0, n - eats);
writeInt(rems);
putchar('\n');
return 0;
}
这里空空如也
有帮助,赞一个