Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Timed 10 - correctness


djcomidi's Avatar
Member
75 0

I already solved it, but before I did I had one case that failed:

The numbers I got were: 186, 7440, 4464, 9114 I submitted answer = 186, because:

  • 186 / 186 = 1
  • 7440 / 186 = 40
  • 4464 / 186 = 24
  • 9114 / 186 = 49

The response I got was: "That answer is incorrect, the correct answer is: 93"

Since 186 is obviously the greatest common divisor, why was my answer wrong ?


Euforia33's Avatar
philalethes
0 0

I was curious so I forced a similar situation. I cannot see the code but I'm guessing that, by design, it reverts to the 2nd GCD whenever the GCD is equal to the first integer.