huoxiangdong / Blog

学习记录
0 stars 0 forks source link

1+2+3..+100 #80

Open huoxiangdong opened 6 years ago

huoxiangdong commented 6 years ago

1 10 2 9 3 8 4 7 5 6 --> (1+10) x (10/2) --> 10x(1+10)/2 --> (n+1)xn/2