kunshao 题解分享 · 2025/3/10
苹果和虫子 - 题解
``` // m = y * (1 / x) //if (m < n) ==> (int)(m - n) #include <bits/stdc++.h> using namespace std; int main() { double n,x,y; cin >> n >> x >> y; double m; int nums = 0; m = y * (1 / x); if ( m < n ) { nums = (int)(n - m); cout << nums; }else { cout << 0; } return 0; } ```
查看全文
0 0 0 1