80wa
查看原帖
80wa
1129992
xuhaoyi0305楼主2024/6/29 14:09
#include<bits/stdc++.h>
using namespace std;
int main (){
	int a, b, c, d;
	cin >> a >> b>> c;
	if (b == 0)  
	{
		cout << '0';
		return 0;
	}
	if (c % b == 0)
	{
		d = a - c / b;
		if (d < 0)
		{
			cout << 0;
			return 0;
		}
	}else
	{
	d = a - (c / b + 1);
	}
	cout << d;
	return 0;            
}
2024/6/29 14:09
加载中...