第25621题 单选题
补全求循环小数0.123123...第N位的Python代码,横线处应填入的是?

一个无限循环小数是 0.123123123......,其小数点后第1位是1,第2位是2,第3位是3,第4位是1,依此类推,求第N位。需补全如下代码:

N = int(input())
remainder = ______________
if remainder == 0:
    print(1)
elif remainder == 1:
    print(2)
else:
    print(3)
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析