Run ID:137441
提交时间:2025-11-17 17:12:19
#include <iostream> using namespace std; int main() { int n, x, y; cin >> n >> x >> y; int eaten_apples = 0; if (y % x == 0) { eaten_apples = y / x; } else { eaten_apples = y / x + 1; } int remaining_apples = n - eaten_apples; if (remaining_apples < 0) { remaining_apples = 0; } cout << remaining_apples << endl; return 0; }