第一个点和最后一个点WA求助
查看原帖
第一个点和最后一个点WA求助
321373
_HighStrike300_楼主2021/2/21 10:16
#include<iostream>
using namespace std;
int main(){
int m = 0, t = 0, s = 0;
cin>>m>>t>>s;
if(t==0){
cout<<0;
}
else if (s%t!=0){
cout<<m-(s/t)-1;
}
else{
cout<<m-(s/t);
}
return 0;
}
2021/2/21 10:16
加载中...