Ad
  • Custom User Avatar

    Either the wording of the problem is flawed, or the testing batteries are. 4 pancakes (at 2 mins each) on a max-3 pan CANNOT take 3 (shouldn't even be possible to be an odd number, according to the description) minutes to produce 4 cooked pancakes. Whether 4, 5, or 6, you'd need to be running that griddle an additional 2 minutes (total 4) to finish the next 1-3 flapjacks.

  • Custom User Avatar

    Because 33, 45, and 95 are not prime numbers. That final combination of yours (1176, 1382976) should be the first working combination, so if it's not working then you need to examine your code.