• + 0 comments

    Didn't work it gave me some error: Traceback (most recent call last): File "/tmp/submission/20240917/16/26/hackerrank-ffe6cd9618bfa8e6e1a0cb84761efbf7/code/Solution.py", line 11, in from fractions import gcd ImportError: cannot import name 'gcd' from 'fractions' (/usr/local/lib/python3.12/fractions.py)

    NVM, I changed fractions to math. So do this: from math import gcd That will changed everything and will result in completion.