字符排列,纯基础方法 摘要:解题思路:每次找到一种字符并且计算其数量,找完后将其值变为0,避免下次再访问注意事项:不知道怎么比较两个字符是否相同,所以我把字符强转为int类型来比较。参考代码:#include<iostream>…… 题解列表 2022年02月06日 0 点赞 0 评论 704 浏览 评分:9.9
Hifipsysta-1047-[编程入门]报数问题(C++链表)基于STL的链表实现 摘要:```cpp #include #include using namespace std; list mylist; list::iterator iter; int main()…… 题解列表 2022年02月06日 0 点赞 0 评论 400 浏览 评分:0.0
采药(dp动态规划之 01背包问题) 摘要:```cpp #include #include #include using namespace std; const int MAX = 1001; int T, M;//采药时间,数…… 题解列表 2022年02月05日 0 点赞 0 评论 613 浏览 评分:9.9
简单型背包(DFS深搜) 摘要:```cpp #include #include #include using namespace std; const int MAX=10001; int V,M;//体积,重量 i…… 题解列表 2022年02月05日 0 点赞 0 评论 519 浏览 评分:9.9
编写题解 1931: 蓝桥杯算法提高VIP-逆序排列(C++代码) 摘要:解题思路:就一个数组20行就解决了,根本不用那么麻烦注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a[20],…… 题解列表 2022年02月05日 0 点赞 0 评论 523 浏览 评分:8.0
Hifipsysta-1160题-出圈(C++代码)基于STL的链表实现 摘要:```cpp #include #include using namespace std; list mylist; list::iterator iter; int main()…… 题解列表 2022年02月05日 0 点赞 0 评论 477 浏览 评分:0.0
核电站问题(根据前四个样例摸清楚答案规律) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<cstdio>#include<cstring>using namespace std;int main(){ …… 题解列表 2022年02月05日 0 点赞 0 评论 434 浏览 评分:9.9
杨辉三角(相当于一个矩阵的下三角,利用矩阵的知识就可以了) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int num[30][30] = { 1 }; int main(){ int n;…… 题解列表 2022年02月05日 0 点赞 0 评论 344 浏览 评分:0.0
Hifipsysta-1180-不容易系列(C++代码)递归法 摘要:```cpp #include using namespace std; int a_(int n){ if(n==0){ return 3; } …… 题解列表 2022年02月05日 0 点赞 0 评论 469 浏览 评分:0.0
Hifipsysta-1159-偶数求和(C++代码)最后不足m的要查漏补缺 摘要: ```cpp #include #include #include using namespace std; const int max_len=100; float arr[ma…… 题解列表 2022年02月05日 0 点赞 0 评论 326 浏览 评分:0.0