题解 | #将真分数分解为埃及分数#
将真分数分解为埃及分数
https://www.nowcoder.com/practice/e0480b2c6aa24bfba0935ffcca3ccb7b
zi, mu = input().split('/') print('+'.join([f'1/{mu}' for _ in range(int(zi))]))
将真分数分解为埃及分数
https://www.nowcoder.com/practice/e0480b2c6aa24bfba0935ffcca3ccb7b
zi, mu = input().split('/') print('+'.join([f'1/{mu}' for _ in range(int(zi))]))
相关推荐