My issue
how to get a num in p/q form
My code
# cook your dish here
t=int(input())
for i in range(t):
n=int(input())
Problem Link: Rational Numbers Practice Coding Problem - CodeChef
how to get a num in p/q form
# cook your dish here
t=int(input())
for i in range(t):
n=int(input())
Problem Link: Rational Numbers Practice Coding Problem - CodeChef