| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72068 | 殷老师 | [在线测评解答教程] 求和 | Python3 | Accepted | 36 MS | 3760 KB | 208 | 2024-04-30 19:43:33 |
def calculate_sum(n): return n * (n + 1) // 2 while True: try: n = int(input().strip()) result = calculate_sum(n) print(result) except EOFError: break