c++求助!!!
查看原帖
c++求助!!!
1557349
bacfdml楼主2025/1/11 19:37
#include <bits/stdc++.h>
using namespace std;
int main()
{
 int m,x,y;
 double t,s;
 cin>>m>>t>>s;
 if(!s) return 0;
 x=ceil(s/t);
 y=m-x;
 if(m<0)
  return 0;
 else
  cout<<y;
 return 0;
}
2025/1/11 19:37
加载中...