You are viewing a single comment's thread. Return to all comments →
Yeah! A little variation:
int count = 0; while(s >= 0) { s -= Math.Max(p, m); p -= d; count++; } return Math.Max(0, count - 1);
Halloween Sale
You are viewing a single comment's thread. Return to all comments →
Yeah! A little variation: