# -*- coding:utf-8 -*- class Solution: def Sum_Solution(self, n): # write code here ans=0 for i in range(1,n+1): ans+=i return ans
# -*- coding:utf-8 -*- class Solution: def Sum_Solution(self, n): # write code here ans=0 for i in range(1,n+1): ans+=i return ans