用vector巧解高精度问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include <vector> using namespace std;vector<int> add(vector <int> …… 题解列表 2022年03月22日 0 点赞 0 评论 386 浏览 评分:0.0
1620: 蓝桥杯算法训练VIP-字符串的展开 摘要:step1:先找出有几个'-' strp2:设置初始指针sta=0,while循环一个一个'-'判断,每次循环从sta开始遍历,若找到'-'(只要找到一次'-',处理完后面的步骤就推出循环),更新s…… 题解列表 2022年03月22日 0 点赞 0 评论 484 浏览 评分:0.0
是个人都能看懂(仅限于《秒杀》本道题)#1026 摘要:解题思路: 由于某些同学实在是看不懂例如:#include<stdio.h> int main() { int a[10],i,k; for(i=0;i<10;i++) …… 题解列表 2022年03月22日 0 点赞 0 评论 459 浏览 评分:9.9
简单的动态规划 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int dp[40][40] = {0}; int n,m…… 题解列表 2022年03月22日 0 点赞 0 评论 456 浏览 评分:9.9
输入输出练习之格式控制 摘要:解题思路:注意事项:左对齐八个字符要用‘-8’来表示,同理其他也一样。参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a…… 题解列表 2022年03月22日 0 点赞 0 评论 2032 浏览 评分:9.4
1510: 蓝桥杯算法提高VIP-士兵排队问题(狗币java + 拓扑) 摘要:[https://www.dotcpp.com/oj/problem1510.html](https://www.dotcpp.com/oj/problem1510.html) - 思路&注意事…… 题解列表 2022年03月22日 0 点赞 0 评论 577 浏览 评分:0.0
python-乘积最大 摘要:解题思路:递归搜索。假设字符串长度为n,下标从0开始。则我们可以在第0~n-2位数后面放”ד号。接下来遍历所有符合条件的位置,每个位置有两种情况,放和不放。求出所有符合条件的结果,即可求出答案。具体…… 题解列表 2022年03月22日 0 点赞 0 评论 608 浏览 评分:6.0
字符串数组做法 摘要:#include<stdio.h>#include<string.h>int main(){ char a[1000]; char b[1000]; char c[1000]; …… 题解列表 2022年03月22日 0 点赞 0 评论 403 浏览 评分:0.0
1045: [编程入门]自定义函数之整数处理 c++ 摘要:解题思路:思路普通,直白,易理解,新手做法。(1)构建两个数组,赋相同值。(2)通过双循环,b数组中的数依次与a数组的每一个数比较大小,通过sum记录值,达到9时,b[j]就是最值。交换b[j]与b[…… 题解列表 2022年03月22日 0 点赞 0 评论 431 浏览 评分:0.0
顺序栈---基本方法 摘要:#include<stdio.h> #include<stdlib.h>#include<malloc.h>#define maxsize 50using namespace std;typedef …… 题解列表 2022年03月22日 0 点赞 0 评论 416 浏览 评分:0.0