Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67590 金浩 [在线测评解答教程] 求和 Python3 Accepted 35 MS 3768 KB 87 2024-03-17 09:46:11

Tests(10/10):


Code:

n=int(input()) a=0 while n: a=int(((n+1)*n)/2) print(a) n=int(input())