计算行列式-题解(C++代码) 摘要:解题思路:先将行列式转化为三角形行列式参考代码:#include<iostream> using namespace std; const int N = 7; double arr[N][…… 题解列表 2022年02月25日 0 点赞 0 评论 622 浏览 评分:0.0
蓝桥杯算法提高VIP-Torry的困惑(提高型)——枚举 摘要:``` #include #include using namespace std; const int mod=5e4; bool prime(int x) { for (in…… 题解列表 2022年02月25日 1 点赞 0 评论 465 浏览 评分:0.0
[编程入门]密码破译 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;const int N = 100;char A[N];in…… 题解列表 2022年02月25日 0 点赞 0 评论 1508 浏览 评分:9.9
矩阵快速幂——模板 摘要:·· ``` #include #include using namespace std; const int N=30; int n,k; struct mat { …… 题解列表 2022年02月24日 0 点赞 0 评论 473 浏览 评分:0.0
1205_题解_字符串的修改-最长公共子序列_dp 摘要:需要改动的次数为,目标字符串长度 - 两字符串最大公共子序列的长度#include<iostream> #include<cstring> using namespace std; const…… 题解列表 2022年02月24日 0 点赞 0 评论 426 浏览 评分:0.0
C++String类题解 摘要:解题思路:没啥思路,一步步来,我的代码应该还是很简单的注意事项:注意第一步要插入到a1前面而不是后面,删除操作需要从后往前遍历参考代码:#include<bits/stdc++.h>using nam…… 题解列表 2022年02月24日 0 点赞 0 评论 529 浏览 评分:9.9
最长回文字符串(动态规划) 自用笔记 摘要:解题思路: 动态规划注意事项:如图所示,dp[0][3]的意思是cabb,不是指c和b。以对角线为分割,从左往右一列一列的填参考代码:#include<iostream> #include<ioma…… 题解列表 2022年02月24日 0 点赞 0 评论 493 浏览 评分:0.0
1453: 蓝桥杯历届试题-翻硬币 摘要:```````cpp #include #include #include #include using namespace std; int step; char g[110]…… 题解列表 2022年02月24日 0 点赞 0 评论 536 浏览 评分:4.9
1882: 蓝桥杯2017年第八届真题-k倍区间 摘要:解题思路:注意事项:1、数据比较多(n=1e5),建议用scanf读入2、最坏的情况前缀和是10万的平方,1e10,int最多2x10^9,开long long,ans也是3、时间复杂度->o(n^2…… 题解列表 2022年02月24日 0 点赞 0 评论 523 浏览 评分:9.9
编写题解 1234: 检查一个数是否为质数 摘要:解题思路:通过循环进行判断注意事项:参考代码:#include<iostream> using namespace std; int main() { int a; cin>…… 题解列表 2022年02月24日 0 点赞 0 评论 419 浏览 评分:0.0