第10939题 判断题
给定从第3个数起为前两数之和的数列,判断以下求第N个值(N>2)的Python代码是否正确
start1 = int(input()) #第1个数
start2 = int(input()) #第2个数
N = int(input()) #求第N个数的值
for i in range(2, N):
    start1, start2 = start2, start1 + start2
print(start2)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析