TOPIC

Runtime Error. O que dá para melhorar?

Jorge Boccanera CZ (UFF - CEDERJ) asked 1 year ago

from math import gcd
t = float(input())
if 360%t == 0:
    s = int((360//t))
    print(s)
else:
    t = int(t*100)
    u = gcd(36000,t)
    r = int(36000//u)
    print(r)

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.