分类
发现
标签
搜索
注册
登录
分类
发现
榜单
搜索
注册
登录
搜索
椰程智库
本次搜索耗时
0.097
秒,为您找到
62
个相关结果.
搜书籍
搜文档
第三节
671
2025-08-15
《2025暑假csp笔试笔记——下午15:30~17:30》
字符串中第一个仅出现一次的字母 一、模拟策略 二、字符处理 三、枚举 判断回文 字符串中第一个仅出现一次的字母 #include < bits / stdc ++. h > using namespace std ; int main (){ int t [ 256 ]; string s ; ...
空白文档
649
2025-07-09
《2025暑假C++算法提升笔记》
输入输出那些事 2 3 4课堂练习三 (结束符也符合容器类型判断) 5 6 7 输入输出那些事 cin cout scanf () printf () 格式: cin >> cout << 慢(关闭同步流) ios :: sync_with_stdio ( fals...
阅读程序
646
2025-08-11
《2025暑假csp笔试笔记》
#include < bits / stdc ++. h > using namespace std ; const int maxn = 50 ; void getnext ( char str []){ int l = strlen ( str ), i , j , k , temp ; k =...
通用函数
596
2025-10-25
《csp专题2025》
#include < bits / stdc ++. h > using namespace std ; // 求素数(质数) bool is_prime ( int n ){ if ( n < 2 ) return false ; // 1000*1000 = 100000000; ...
第五节
594
2025-08-21
《2025暑假csp笔试笔记——下午15:30~17:30》
搜索算法 搜索算法 #include < bits / stdc ++. h > using namespace std ; const int SIZE = 105 ; int arr [ SIZE ] = { 0 , 11 , 22 , 33 , 44 , 55 , 66 , 77 , 88 , 99 };...
其他
571
2025-07-15
《2025暑假csp笔试笔记——下午15:30~17:30》
P61,第九题 P61,第九题 #include < bits / stdc ++. h > using namespace std ; int main (){ int n ; string s ; cin >> n ; cin >> s [ 1 ] >> s [ 2 ...
CSP题解
564
2025-10-25
《C++CSP题解》
素数回文数的个数[T1408] 素数回文数的个数[T1408] #include < bits / stdc ++. h > using namespace std ; bool is_ss ( int n ){ if ( n < 2 ){ return false ; }...
第二节
552
2025-08-12
《2025暑假csp笔试笔记——下午15:30~17:30》
#include < bits / stdc ++. h > using namespace std ; void getnext ( char str []){ int l = strlen ( str ), i , j , k , temp (); k = l - 2 ; while ...
贪心算法
436
2026-01-28
《CSP寒假集训》
贪心算法 贪心的定义 -贪心搜索算法是一种在每一步选择中都采取当前状态下最优的选择,以达到整体的局部最优解。它不保证最终结果是最佳的全局解,但在某些情况下提供了一种快速且实用的解决方案。贪心算法在解决最短路径问题等方面应用广泛,尤其是在图和树的搜索中表现出高效的性能。 比如,你面前有一堆不同面额的硬币(比如 1 元、5 角、1 角),你需要用最...
完善程序
427
2025-08-13
《2025暑假csp笔试笔记》
#include < bits / stdc ++. h > using namespace std ; const int SIZE = 100 ; int matrix [ SIZE + 1 ][ SIZE + 1 ]; int rowsum [ SIZE + 1 ][ SIZE + 1 ]; int m , n ...
1..
«
4
5
6
7
»
..7