1453: 蓝桥杯历届试题-翻硬币 摘要:```````cpp #include #include #include #include using namespace std; int step; char g[110]…… 题解列表 2022年02月24日 0 点赞 0 评论 345 浏览 评分: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 评论 368 浏览 评分:9.9
编写题解 1234: 检查一个数是否为质数 摘要:解题思路:通过循环进行判断注意事项:参考代码:#include<iostream> using namespace std; int main() { int a; cin>…… 题解列表 2022年02月24日 0 点赞 0 评论 240 浏览 评分:0.0
分糖果(C++代码)简洁明了 摘要:解题思路:上代码注意事项:参考代码:#include<iostream> #include <vector> using namespace std; bool isequal(vector<i…… 题解列表 2022年02月24日 0 点赞 0 评论 702 浏览 评分:9.9
C++ 将头朝向转化为数组 简便思路 摘要:解题思路:可以将蚂蚁左或右转向再向前移动转化为:蚂蚁移动到上下左右四个方向上.关键是 上 可以转化为数组dir={左,上,右,下};即dir={0,1,2,3} …… 题解列表 2022年02月24日 0 点赞 0 评论 250 浏览 评分:0.0
2581: 蓝桥杯2020年第十一届省赛真题-字符串编码C++ 摘要:解题思路:STL大法好,用string存储字符串,利用贪心的思路,每次尽量让输出的字母字典排序更高。首先用string类存储字符串。每次输出前先判断字符串前两位数字是否在[1,26]的区间中(1)不在…… 题解列表 2022年02月23日 0 点赞 1 评论 746 浏览 评分:6.0
题解 1434: 蓝桥杯历届试题-回文数字 摘要:解题思路:看注释注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin >>n; if(n>54…… 题解列表 2022年02月23日 0 点赞 0 评论 318 浏览 评分:0.0
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 409 浏览 评分:9.9
数的划分c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>#include<cstring>…… 题解列表 2022年02月23日 0 点赞 0 评论 427 浏览 评分:0.0
优质题解 蓝桥杯历届试题-小朋友排队【树状数组 C++ 详解】 摘要:**题目分析**: 表面上看,这是一道排序题,但实际上,这道题目不仅仅要求简单的排序,因为题目要求的是小朋友从低到高排序后,他们的不高兴程度之和的最小值,也就是求逆序对数的题目。 …… 题解列表 2022年02月23日 0 点赞 0 评论 1427 浏览 评分:9.8