椰程智库 本次搜索耗时 0.070 秒,为您找到 101 个相关结果.
  • 数组排序

    767 2025-01-14 《2025寒假集训》
    数组求大小: 静态排序 数组求大小: int size = sizeof(arr) / sizeof(arr[0]); 静态排序 #include <iostream> #include <algorithm> using namespace std ; // SymoChan <hnai@qq.com> ...
  • 空白文档

    输入输出那些事 2 3 4课堂练习三 (结束符也符合容器类型判断) 5 6 7 输入输出那些事 cin cout scanf () printf () 格式: cin >> cout << 慢(关闭同步流) ios :: sync_with_stdio ( fals...
  • 第五节

    搜索算法 搜索算法 #include < bits / stdc ++. h > using namespace std ; const int SIZE = 105 ; int arr [ SIZE ] = { 0 , 11 , 22 , 33 , 44 , 55 , 66 , 77 , 88 , 99 };...
  • 通用函数

    729 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; ...
  • CSP题解

    691 2025-10-25 《C++CSP题解》
    素数回文数的个数[T1408] 素数回文数的个数[T1408] #include < bits / stdc ++. h > using namespace std ; bool is_ss ( int n ){ if ( n < 2 ){ return false ; }...
  • 空白文档

    676 2024-11-10 《好六的C++》
    #include <iostream> using namespace std ; int main (){ int n , ge , shi , bai , he ; cout << "请输入一个三位数:" ; cin >> n ; ge = n % 10 ; s...
  • 深搜

    675 2026-01-31 《CSP寒假集训》
    深搜 深搜的定义 深搜是一种对数串或图形进行遍历的算法。它会从起点像树状图一样向下进行探索,如果发现不能到达目标解,那就返回到上一个节点,然后从另一条路开始走到底 ,这种尽量往深处走的概念即是深度优先的概念。回溯是一种选优搜索法,又称为试探法,按选优条件向前搜索,以达到目标。但当探索到某一步时,发现原先选择并不优或达不到目标,就退回一步重新选择,这...
  • 其他

    P61,第九题 P61,第九题 #include < bits / stdc ++. h > using namespace std ; int main (){ int n ; string s ; cin >> n ; cin >> s [ 1 ] >> s [ 2 ...
  • 第二节

    #include < bits / stdc ++. h > using namespace std ; void getnext ( char str []){ int l = strlen ( str ), i , j , k , temp (); k = l - 2 ; while ...
  • 数组

    数组的定义与使用 数组的定义与使用