80分求大佬解答一下,谢谢

P5709 【深基2.习6】Apples Prologue / 苹果和虫子

```cpp #include<bits/stdc++.h> using namespace std; int m,t,s; int main(){ cin>>m>>t>>s; if(t==0){ cout<<0<<endl; return 0; } if(s%t==0)cout<<max(m-s/t,0)<<endl; else cout<<max(m-s/t-1,0)<<endl; return 0; } ``````
by conancat @ 2023-12-05 20:22:36


|