BC79 小乐乐求和

思路:

step1:等差数列求和;

代码如下:

n = int(input())
c = (1+n)*n/2
print(int(c))