```python n = int(input()) total = n * (n + 1) // 2 print(total) ``` [2024-09-29 10:53:11 | AI写代码神器 | 46点数解答]