1304: 阶乘后K位 摘要:```cpp #include using namespace std; int main() { long long pro=1; int i,j,n,k; c…… 题解列表 2023年04月22日 0 点赞 0 评论 488 浏览 评分:9.9
1303: 统计数字 摘要:```cpp #include using namespace std; int a[500001],n,ans=1; void qs(int l,int r) { int m=a…… 题解列表 2023年04月22日 0 点赞 0 评论 449 浏览 评分:9.9
1302: 棋盘覆盖 摘要:```cpp #include #include int n,m,x[4]={0,0,1,-1},y[4]={-1,1,0,0},link[10201],head[10201],cnt; bo…… 题解列表 2023年04月22日 0 点赞 0 评论 481 浏览 评分:9.9
1301: 尼克的任务 摘要:```cpp #include #include using namespace std; long n,k,sum[10001],num=1,f[10001]; struct ren {…… 题解列表 2023年04月22日 0 点赞 0 评论 498 浏览 评分:9.9
1300: 悠闲的漫步 摘要:```cpp #include using namespace std; struct Node { int id,l,r; Node() { …… 题解列表 2023年04月22日 0 点赞 0 评论 462 浏览 评分:9.9
1896: 蓝桥杯算法提高VIP-矩阵乘法 摘要: ##### 个人认为还是先记住那个矩阵连乘的公式比较好,关键就在那个公式取子问题能不能理解 *min(dp[i][j], dp[i][k]+dp[k+1][j]+p[i-1]*p[k]*p[j])…… 题解列表 2023年04月21日 0 点赞 0 评论 471 浏览 评分:9.9
简单的暴力求解 摘要:解题思路:遍历数组,选出其中最小值进行计算,然后删除该最小值。重复以上步骤到只剩下一个数为止。注意事项:参考代码:#include<iostream>#include<cstring>#include…… 题解列表 2023年04月21日 1 点赞 0 评论 386 浏览 评分:0.0
2864: 单词替换 摘要:解题思路:1.读入一行字符串s、待替换单词a和替换单词b。2.使用stringstream将字符串s分割成单词,并依次判断每个单词是否为待替换单词a,若是,则输出替换单词b;否则输出原单词。3.输出替…… 题解列表 2023年04月21日 0 点赞 0 评论 355 浏览 评分:10.0
2863: 删除单词后缀 摘要:解题思路:1.读入一个字符串2.循环判断是否以er、ly、ing结尾3.如果是则使用erase()函数进行删除即可注意事项:参考代码:#include <iostream> #include <cs…… 题解列表 2023年04月21日 0 点赞 0 评论 423 浏览 评分:0.0
2862: 字符串移位包含问题 摘要:解题思路: 核心思路时解决唯一问题,在这里采用了把比较长的字符串增加一倍的方法来解决位移问题,如:样例s1=AABCD s2=CDAA两个s1即 AABCDAABCD,如果s2在这个字符串中,即输出t…… 题解列表 2023年04月20日 0 点赞 0 评论 381 浏览 评分:0.0