第41071题 判断题
某一系列数据的规律是从第3个数值开始是前两个数之和。下面的代码求第N个数的值,N限定为大于2。( )
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 }}%
答案解析