40分,求助
查看原帖
40分,求助
952033
lutaoquan2012楼主2023/3/5 11:33
#include<bits/stdc++.h>
using namespace std;
int main(){
	int m,t,s;
	scanf("%d%d%d",&m,&t,&s);
	if(t==0){
		cout<<0;
		return 0;
	}
	while(1){
		if(s<t){
			printf("%d",m);
			return 0;
		}
		s-=t;
		m--;
	}
	return 0;
}
2023/3/5 11:33
加载中...