40求条
查看原帖
40求条
750965
rzh_163楼主2025/7/2 23:09

我觉得我都考虑到了啊!!!1和5是wa然后第2个是re 求条

#include <iostream>
using namespace std;
int main() {
	int m, t, s;
	cin >> m >> t >> s;
	if (t == 0)
	{
		cout << m;
	}
	if (s <= t)
	{
		cout << "49";
	}
	int a = s / t;
	int b = s % t;
	if (b == 0)
	{
		cout << m - a;
	}
	else {
		a = a + 1;
		cout << m-a;

	}
	
	return 0;
}
2025/7/2 23:09
加载中...