CCF非专业级别软件能力认证(CSP-J/S 2024)第二轮认证于2024年10月26日举行,上午进行了入门级认证。为大家总结CSP-J组复赛真题主要考点(T1字符串、T2模拟、T3贪心、T4动态规划)。 CSP-J组真题解析——
你说得对,但是 I AK 36th CSP。Update on 2024.12.13:代码已替换为赛时 AC 代码。A 签到,模拟直接模拟即可。#include <bits/stdc++.h> #define LL long long const int kN = 1e6 + 10; std::map <char, int> ex; std::map <char, int> ey; //=== //=== //===...
该题解可以通过 AcWing 官网 (8/21) 的数据点,CSP 官网评测系统下得分为 35 分 #include <iostream> #include <cstring> #include <algorithm> #include <unordered_set> #define x first #define y second using namespace std; typedef pair<int, int> PII; typedef long long LL; const int N = 2e...
看到物品种类-总价格的题目,首先想到背包问题;然而该题中价格与容量是同一变量(预算作为约束条件),而且要求尽可能等于m的总价格而不是尽可能多。 根本的思路是不变的,通过对每个物品的选与不选的判断使得时间复杂度为O(n),只需要改变策略:dp[i][j]的 i 仍然表示考虑前 i 个物品,j 仍然表示当前的容量上限为...
假设输入的s是包含 n个字符的 01串,完成下面的判断题和单选题 判断题 21. 假设数组 dp 长度无限制,函数solve()所实现的算法时间复杂度是 O(n*2^m) ( ) 题解 T 22. 输入“11 2 10000000001”时,程序输出两个数32和23 ( ) 题解 T 23. (2分)在 n<=10 时,solve()的返回值始终小于 4^10 ( ...
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services. /阅读下一篇/ 2025年CCF GESP认证安排的通知 返回网易首页 下载网易新闻客户端 相关...
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services. /阅读下一篇/ 2025年CCF GESP认证安排的通知 返回网易首页 下载网易新闻客户端 相关...
2022年CSP-S第一轮认证圆满结束 2022年9月18日下午16:30,CSP-S 2022第一轮认证圆满结束; 今年的单项 选择题考察内容更加丰富了,出现了Linux系统指令、大端小端存储法等 计算机系统的相关知识,另外考察了数据结构、排序组合、排序算法,整体考察内容比较精细,冷门内容比较多。
2023-CSP-J(入门组)认证第一轮试题详细解析 一、单项选择题(共15题,每题2分,共计30分:每题有且仅有一个正确选项)1.在C++中,下面哪个关键字用于声明一个变量,其值不能被修改?()。A.Unsigned B.const C.static D.Mutable 解析:答案B C++中const关键字用于定义一个常量,表示该量(变量或者对象...