程序员的表白(c++) 摘要: #include #include #include #include #include #include #include …… 题解列表 2022年02月11日 0 点赞 0 评论 439 浏览 评分:9.9
简单易懂a+b 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b) …… 题解列表 2022年02月11日 0 点赞 0 评论 227 浏览 评分:0.0
简单易懂,看看吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int n){ for (int i = 2; i < n; ++i…… 题解列表 2022年02月11日 0 点赞 0 评论 270 浏览 评分:0.0
1476: 蓝桥杯基础练习VIP-龟兔赛跑预测 摘要:解题思路: 首先乌龟跑完全程的时间(T)是确定的,所以主要就是算出兔子跑完全程的时间(i),如果i> v1 >> v2 >> t >> s >> l; int s1 = 0,s2 = …… 题解列表 2022年02月11日 0 点赞 0 评论 329 浏览 评分:10.0
常规bfs-青蛙跳杯子 摘要:```cpp #include #include #include #include using namespace std; string a,b; int dis[]={1,…… 题解列表 2022年02月11日 0 点赞 0 评论 323 浏览 评分:9.9
2612: 蓝桥杯2021年第十二届省赛真题-最少砝码 摘要:**假设当前的 i 个砝码可称出 (1 ~ n) 之间所有重量,那么再添加一枚重量为 2n + 1 的砝码,就可以覆盖 (n + 1 ~ 3n + 1) 之间的所有重量,使总范围达到 (1 ~ 3n …… 题解列表 2022年02月11日 1 点赞 0 评论 839 浏览 评分:9.0
优质题解 2606: 蓝桥杯2021年第十二届省赛真题-左孩子右兄弟(C++) 摘要:方法一:深搜 对于节点 i,在其子节点中找出:令该节点作为根节点时可以使高度最大的节点 j 令节点 j 作为 i 的子节点中最后一个出现的节点,可使高度达到最大。#include <bit…… 题解列表 2022年02月11日 1 点赞 4 评论 2287 浏览 评分:8.8
2571: 蓝桥杯2020年第十一届省赛真题-回文日期 (C++) 摘要:解题思路:先构造回文日期与ABABBABA形日期,再判断日期是否合法如何构造回文日期:假设输入的日期为 n取 n 的前四位为 x,即 x = n / 10000将 x 反转后接在 x 的后面就构造了一…… 题解列表 2022年02月11日 0 点赞 7 评论 1811 浏览 评分:5.7
Hifipsysta-1229-最小公倍数(C++代码)辗转相除法 摘要:```cpp #include using namespace std; long long GCD(long long a, long long b){ if(b==0){ …… 题解列表 2022年02月11日 0 点赞 0 评论 361 浏览 评分:0.0
Hifipsysta-2080-蓝桥杯基础练习-十六进制转八进制(C++代码) 摘要:```cpp #include #include #include #include using namespace std; long long M2Ten(string mystr…… 题解列表 2022年02月11日 0 点赞 0 评论 263 浏览 评分:0.0