Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85313 丁俊杰 12序列的第n项 Python3 Accepted 34 MS 3764 KB 136 2024-07-17 00:44:09

Tests(10/10):


Code:

n=int(input()) list=[] a=2 b=1 res=-1 while b <=n: a+=res list.append(a) res+=1 b+=1 print(list[n-1])