信息学奥赛一本通T1290-采药(01背包) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int MAX = 1001;int T, M;int t[MAX], …… 题解列表 2022年07月29日 0 点赞 0 评论 825 浏览 评分:7.3
2054: 单点修改区间查询(树状数组) 摘要:本蒟蒻不太会用线段树,所以用的是树状数组.不会树状树状的同学可以先去学习一下。树状数组简单来说就是查询的时候查的是前缀和AC代码:#includeusing namespace std; int n…… 题解列表 2022年07月29日 0 点赞 0 评论 495 浏览 评分:0.0
使用sort函数和cmp函数截取生日子串 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;string shenfenzheng[101010];bool cmp(strin…… 题解列表 2022年07月29日 0 点赞 0 评论 548 浏览 评分:9.9
sort解法,在cmp函数里截取生日子串判断 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; str…… 题解列表 2022年07月29日 0 点赞 3 评论 509 浏览 评分:9.9
#C++1468——蓝桥杯基础练习VIP-报时助手 摘要:解题思路: 先用字符类的指针数组保存24个小时,分数在24之外的部分可以构造;注意事项: 第一思路,也可用map容器求解,不过大致思路差不多参考代码:#include<iostream> using…… 题解列表 2022年07月29日 0 点赞 0 评论 547 浏览 评分:0.0
1931简单数组 摘要:解题思路:遇0跳出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[250],i=0; while…… 题解列表 2022年07月29日 0 点赞 0 评论 421 浏览 评分:0.0
神奇的fansC++必过题解 摘要:解题思路:排序后判断注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main() { bool d=1; int c=0,i,j,…… 题解列表 2022年07月29日 0 点赞 0 评论 473 浏览 评分:7.3
蓝桥杯2015年第六届真题-切开字符串c++使用string与map进行求解 摘要:解题思路:首先题目要求的是将字符串任意切割成两半(且两半都不能为空,说实话有一半都是空的那其实也没切对吧),然后在前一部分寻找正回文子串(长度为奇数的回文串,注意这里包括1个字符的子串)并统计下来,后…… 题解列表 2022年07月29日 0 点赞 0 评论 727 浏览 评分:9.9
C# 蓝桥杯算法训练VIP-最长字符串-size 摘要:```cpp #include using namespace std; string s,ss; int main() { for(int i=0;i>s; if(…… 题解列表 2022年07月29日 0 点赞 0 评论 336 浏览 评分:0.0
C# 字符串编辑-insert -erase-find 摘要:```cpp #include using namespace std; int main() { int t=0; string s; char n,m,a1,a2; …… 题解列表 2022年07月29日 0 点赞 0 评论 457 浏览 评分:0.0