#23544: python解法 (c++好像也可以?)


skyblue2016219@gmail.com (天藍)


 

可以直接令一個遞迴函數

 

如果n=1: a(n)=1

 其他: a(n)=a(n-1)+n-1