// 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; }
微信直接扫码登录
使用经过邮箱注册的账号密码登录