第30186题 单选题
计算从1到n(n为正整数)的所有正整数之和,以下哪种实现方案是经过数学推导优化后的时间复杂度最优的方案?

假设n的取值范围为1 ≤ n ≤ 10^9,忽略整数溢出问题。

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