第37860题 判断题
N 是整数,执行如下 C++ 代码,将能输出 0 到 N 之间(包含 N)所有数之和。
int N, tot, i;
cin >> N;
tot = 0;
for (i = 0; i < N + 1; i++)
    tot += i;
cout << tot;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析