代码如下:
#include<bits/stdc++.h> using namespace std; int m, t, s; int main() { cin >> m >> t >> s; if(t == 0) { cout << m; return false; } else { cout << max(0, m - (s / t + s % t)) << endl; } return false; }