import sys
for line in sys.stdin:
a,n = line.split()
n = int(n)
res = 0
for i in range(1,n+1):
res += int(a*i)
print(res)
KY167 数字阶梯求和
最新推荐文章于 2024-08-18 17:01:18 发布
import sys
for line in sys.stdin:
a,n = line.split()
n = int(n)
res = 0
for i in range(1,n+1):
res += int(a*i)
print(res)