Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81007 小徐老师 12序列的第n项 Python3 Accepted 36 MS 3752 KB 88 2024-07-11 20:53:54

Tests(10/10):


Code:

n = int(input()) p = 1 i = 1 while i < n - 1: p = p + i i = i + 1 print(p)