You are viewing a single comment's thread. Return to all comments →
Why so many test cases?
int games = 0; while(p>m && s>0){ s-=p; if(s>0){ games++; p-=d; } } if((s-m)>=0){ return games + (s/m); } return games;
Seems like cookies are disabled on this browser, please enable them to open this website
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
Why so many test cases?