题库首页 › 信息学奥赛 › 题目 17748

②处应填?

A:next_permutation(bits.begin(), bits.end())
B:prev_permutation(bits.begin(), bits.end())
C:next_permutation(bits.begin(), bits.begin() + ones)
D:prev_permutation(bits.begin(), bits.begin() + ones)

正确答案:完善程序②答案A。②处应填 next_permutation(bits.begin(), bits.end())。

试卷来源:2025 CSP-S提高级(第一轮)C++真题

本卷相关题目

在线做题 同科目题库