椰程智库 本次搜索耗时 0.107 秒,为您找到 59 个相关结果.
  • 其他

    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 ; const int maxn = 50 ; void getnext ( char str []){ int l = strlen ( str ), i , j , k , temp ; k =...
  • 第三节

    字符串中第一个仅出现一次的字母 一、模拟策略 二、字符处理 三、枚举 判断回文 字符串中第一个仅出现一次的字母 #include < bits / stdc ++. h > using namespace std ; int main (){ int t [ 256 ]; string s ; ...
  • 第三节

    给定两个数组,找出b数组中包含的数 [USACO05FEB] 进击的奶牛 Aggressive Cows G 方阵填数 深搜基础框架 #include < bits / stdc ++. h > using namespace std ; const int SIZE = 100 ; int n , i , j , ...
  • 第二节

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

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

    #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 ...
  • 第一章 模拟

    96 2025-10-04 《CSP专题2025》
    第一章 模拟 1.概念 2.常见题型 3.例题 【GESP202403四级T1】相似字符串 4.作业 【NOIPS2015A】神奇的幻方 第一章 模拟 1.概念 模拟就是用计算机来模拟题目中要求的操作 。 建模 就是把事物进行抽象,根据实际问题来建立对应的数:学模型。 如果把实际问题建模 成数学问题,就会大大地方便...
  • CSP题解

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