题解 | #将真分数分解为埃及分数#
将真分数分解为埃及分数
https://www.nowcoder.com/practice/e0480b2c6aa24bfba0935ffcca3ccb7b
while True:
try:
s1 = list(map(int,input().strip().split('/')))
print('+'.join([f'1/{s1[1]}' for i in range(s1[0])]))
except:
break
查看7道真题和解析