80分求助!第4个测试点wa了,实在检查不出来了
查看原帖
80分求助!第4个测试点wa了,实在检查不出来了
1534735
ParkourCat楼主2024/11/3 11:52
#include<bits/stdc++.h>
using namespace std;
int main(){
	int m,t,s;
	cin>>m>>t>>s;
	double x,y;
	x=s/t;
	if(t==0||x>=m){
		cout<<"0"<<endl;
	}
	else{
		y=m-x;
		y=floor(y);
		cout<<y;
	}
	return 0;
}
2024/11/3 11:52
加载中...