Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77507 桂敬然 [在线测评解答教程] 求和 Python3 Accepted 39 MS 3776 KB 114 2024-06-09 20:20:55

Tests(10/10):


Code:

while True: n = int(input()) i = 1 a = 0 while i <= n: a += i i += 1 print(a)