Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85311 丁俊杰 12序列的第n项 Python3 Wrong Answer 36 MS 3764 KB 163 2024-07-17 00:41:16

Tests(1/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[4])


Run Info:

------Input------
13
------Answer-----
67
------Your output-----
7