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

阅读程序(2) 6-11题 组合题 #include #include using namespace std; const int P = 998244353, N = 1e4 + 10, M = 20; int n, m; string s; int dp[1 = 0; j--) { int k = (j > n >> m; cin >> s; if (n <= 20) { cout << solve2() << endl; } cout << solve() << endl; return 0; }

正确答案:判断题答案A。solve()时间复杂度O(n·2^m),正确。

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

本卷相关题目

在线做题 同科目题库