哪位DALAO帮我看一下???wa的第二个点

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

程序呢?没程序我们怎么帮你看?
by Jasonying @ 2020-07-17 13:36:57


。。。
by monstersqwq @ 2020-07-17 13:44:51


```cpp #include<bits/stdc++.h> using namespace std; int m,t,s; int main() { cin>>m>>t>>s; if(t==0) { cout<<m<<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 monstersqwq @ 2020-07-17 13:46:17


现在t=0得输出0了(
by _5011_ @ 2020-07-17 13:46:54


额,刚入手落谷。。。
by ye1620556360 @ 2020-07-23 12:38:17


|