分类
发现
标签
搜索
注册
登录
分类
发现
榜单
搜索
注册
登录
搜索
椰程智库
本次搜索耗时
0.096
秒,为您找到
62
个相关结果.
搜书籍
搜文档
空白文档
559
2025-07-09
《2025暑假C++算法提升笔记》
输入输出那些事 2 3 4课堂练习三 (结束符也符合容器类型判断) 5 6 7 输入输出那些事 cin cout scanf () printf () 格式: cin >> cout << 慢(关闭同步流) ios :: sync_with_stdio ( fals...
阅读程序
534
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 =...
第一章 模拟
531
2025-10-04
《CSP专题2025》
第一章 模拟 1.概念 2.常见题型 3.例题 【GESP202403四级T1】相似字符串 4.作业 【NOIPS2015A】神奇的幻方 第一章 模拟 1.概念 模拟就是用计算机来模拟题目中要求的操作 。 建模 就是把事物进行抽象,根据实际问题来建立对应的数:学模型。 如果把实际问题建模 成数学问题,就会大大地方便...
通用函数
506
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; ...
第五节
500
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 };...
其他
493
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 ...
第二节
468
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 ...
CSP题解
424
2025-10-25
《C++CSP题解》
素数回文数的个数[T1408] 素数回文数的个数[T1408] #include < bits / stdc ++. h > using namespace std ; bool is_ss ( int n ){ if ( n < 2 ){ return false ; }...
完善程序
347
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 ...
贪心算法
251
2026-01-28
《CSP寒假集训》
贪心算法 贪心的定义 -贪心搜索算法是一种在每一步选择中都采取当前状态下最优的选择,以达到整体的局部最优解。它不保证最终结果是最佳的全局解,但在某些情况下提供了一种快速且实用的解决方案。贪心算法在解决最短路径问题等方面应用广泛,尤其是在图和树的搜索中表现出高效的性能。 比如,你面前有一堆不同面额的硬币(比如 1 元、5 角、1 角),你需要用最...
1..
«
4
5
6
7
»
..7