第35031题 单选题
下面的 C++ 代码用于计算今天之后第 n 天是星期几(start 代表今天星期几,0 代表周日,1~6 代表周一到周六),两处横线处分别应填入的代码是( )。
int start, n, ans;
cin >> start >> n;
ans = ____________; // L1
if (____________) cout << "周日" << endl; // L2
else cout << "星期" << ans << endl;
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
知识点:
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析