#33805: 好像沒有人提到reduce [python]


illumeow0223@gmail.com (幻喵)


除了math裡面的gcd
這題也可以用到functools的reduce喔
對前兩個取lcm後再跟下一個取,如此循環
用法是reduce(func, iterator),func的部分可以用lambda