自由下落的距离计算, 摘要:解题思路:我们把每次弹起来看做一次终点,每段即为M+M/2注意事项:注意最后一次并没有弹起来所以需要减去一个M;参考代码:自由下落的距离计算#include<bits/stdc++.h>using n…… 题解列表 2023年03月15日 0 点赞 0 评论 487 浏览 评分:0.0
c++题解 1034: [编程入门]自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int check(int a){ int gewei = a%10; int …… 题解列表 2023年03月15日 0 点赞 0 评论 545 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 #include#include#include#include#include#include#includeusingnamespacestd;intmain(){intn;boolflag=false;cin>>n;for(inti=100;i 题解列表 2023年03月15日 0 点赞 0 评论 630 浏览 评分:0.0
编写题解 1458: 蓝桥杯2013年第四届真题-错误票据 #include#include#include#include#include#include#includeusingnamespacestd;intmain(){intn,i=0;cin>>n;intarr[100005];while(n--){while(cin>>arr[i]){i++;if 题解列表 2023年03月15日 0 点赞 0 评论 359 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-完全二叉树的权值(双指针) ####解题思路完全二叉树特点:完全二叉树第i层至多有2^(i-1)个节点。可以记录每一层的权值之和,再判断哪一层的权值之和最大。####参考代码```cpp#include#include#include#includeusingnamespacestd;//开longlong若是有1e5数值, 题解列表 2023年03月15日 0 点赞 0 评论 784 浏览 评分:9.9
自定义函数之字符串拷贝 摘要:解题思路:直接通过string字符串拷贝赋值函数就行了注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int n…… 题解列表 2023年03月15日 0 点赞 0 评论 456 浏览 评分:0.0
偷了个懒直接调用c++的库函数reverse了 摘要:解题思路:直接偷懒了注意事项:个人建议如果用c写尽量注意char *的结束标志,char []没有结束标志参考代码:#include<bits/stdc++.h> using namespace st…… 题解列表 2023年03月15日 0 点赞 0 评论 451 浏览 评分:0.0
字符串分类统计--个人题解 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { string str; getline(c…… 题解列表 2023年03月15日 0 点赞 0 评论 489 浏览 评分:0.0
分考场—深度优先搜索 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; #define inf 0x3f3f3f3f //定义一个最…… 题解列表 2023年03月15日 0 点赞 0 评论 793 浏览 评分:0.0
编写题解 1442: 蓝桥杯2013年第四届真题-打印十字图 纯暴力破解找到所有顶点的位置,然后画边一开始理解错了,n=3时是外包三层,我理解成了两层,所以后面的n换成了(n+1)#include#include#include#include#include#include#includeusingnamespacestd;intmain(){charmap[ 题解列表 2023年03月15日 0 点赞 0 评论 702 浏览 评分:0.0