第30586题 单选题
在C语言中处理未知数量的多组测试数据,以下哪种输入写法是正确且符合要求的?

算法题中经常遇到「输入包含多组测试数据,直到文件结束」的要求,假设需要读取整数n作为每组数据的输入,下列写法中正确的是?

{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析