第19970题 判断题
判断下述C++代码是否实现将输入整数n不断除以2,每次输出商和余数,直到n为0时停止的功能
long long n;
cin >> n;
while(n != 0) {
  cout << n/2 << ' ' << n%2 << '\n';
  n /= 2;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析