You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
16 lines
400 B
#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;
|
|
} |