20分,悬关,大佬求调

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

打错了,是四十分
by mlkjy @ 2024-04-18 18:43:35


俩WA,1RE
by mlkjy @ 2024-04-18 18:45:20


@[mlkjy](/user/1014599) ```cpp #include<iostream> using namespace std; int main() { ios::sync_with_stdio(0),cin.tie(0),cout.tie(0); int m,t,s; cin>>m>>t>>s; if(t==0) cout<<0; else { if(s%t==0) cout<<max(m-s/t,0); else cout<<max(m-s/t-1,0); } return 0; } ```
by xiangzhenze611 @ 2024-04-18 19:02:47


|