60分,大佬救救孩子吧!!
查看原帖
60分,大佬救救孩子吧!!
959053
Dingym123456楼主2024/7/8 10:46

60分,#1、#5没过,大佬救救我!!

#include<bits/stdc++.h>
#define M 101010
#define N 1010
using namespace std;

int main(){
	int m,t,s,oth;
	cin>>m>>t>>s;
	if(t<=0){
		oth=0;
		cout<<oth;
	}
	else{
		oth=m - ceil(1.0*s / t);
		cout<<oth;	
	}
	
	
	return 0;
}
2024/7/8 10:46
加载中...