FAHIM_py's blog

By FAHIM_py, history, 20 months ago, In English

from fractions import Fraction x,y,n=int(input()),int(input()),int(input())

f=Fraction(x,y).limit_denominator(n)

print(str(f.numerator)+"/"+str(f.denominator))

I have submitted the code bt shows runtime error on test 1 can anyone help me please?

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it