Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75510 冯潇阳 拆分分数 Python3 Wrong Answer 32 MS 3756 KB 168 2024-05-26 19:55:58

Tests(0/20):


Code:

k=int(input()) for x in range(1,2*k+1): if x-k==0 or k*x%(x-k)>0: continue y=k*x//(x-k) if y>0: print("1/{}=1/{}+1/{}".format(k,x,y))


Run Info:

------Input------
4
------Answer-----
1/4 = 1/5 + 1/20 1/4 = 1/6 + 1/12 1/4 = 1/8 + 1/8
------Your output-----
1/4=1/5+1/20 1/4=1/6+1/12 1/4=1/8+1/8