Ad
  • Default User Avatar

    I think it's broken somewhere. My decision is based on a LCM of all denominators. And sometime it's incorrect, but sometimes it passes one test less and correct.
    Difference in code — 1-2 empty lines. I have no idea, why it works in the way like that.