蓝桥杯2022年第十三届决赛真题-最大公约数(简单解法74分,剩余答案错误) 摘要:#include<iostream> using namespace std; int gcd(long long int x, long long int y) { long long…… 文章列表 2024年03月22日 0 点赞 0 评论 262 浏览 评分:0.0
求反码 不是到为什么有错 摘要: https://www.dotcpp.com/run/16048103 #include #include int main() { …… 文章列表 2024年03月27日 0 点赞 0 评论 266 浏览 评分:0.0
N以内累加求和 摘要:题目来源:[N以内累加求和](http://www.dotcpp.com/oj/problem2544.html "N以内累加求和") 注意!!! 教程中的代码有问题!!! 教程代码: ```…… 文章列表 2024年03月27日 0 点赞 0 评论 176 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-求和(简单解法91分,时间超限) 摘要:#include<iostream> using namespace std; int main() { int n, i, j; long long int s = 0; …… 文章列表 2024年03月28日 0 点赞 0 评论 211 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-选数异或(简单解法64分,时间超限) 摘要:#include<iostream> using namespace std; int main() { int n, m, l, r; long long int x; i…… 文章列表 2024年03月28日 0 点赞 0 评论 239 浏览 评分:0.0
2667: 蓝桥杯2022年-青蛙过河(二分法查找)记录题目思路 摘要:**大佬代码:**用区间长度去测试能否满足条件,不能就再加,能就减,看能不能更小 ```cpp #include using namespace std; const int N = 1e…… 文章列表 2024年03月28日 0 点赞 0 评论 247 浏览 评分:0.0
555555555555java 摘要:import java.util.Scanner;import java.util. //vectorclass CPU{ public int speed; CPU(int i)…… 文章列表 2024年03月29日 0 点赞 0 评论 196 浏览 评分:0.0
递归 + DFS 练习记录(一) 摘要: ##1.递归实现指数级枚举 **例:从 1∼n 这 n 个整数中随机选取任意多个,输出所有可能的选择方案。** https://www.acwing.com/problem/content/s…… 文章列表 2024年04月01日 0 点赞 0 评论 633 浏览 评分:0.0
递归 + DFS 练习记录(二) 摘要:##P2089 烤鸡 **链接:**https://www.luogu.com.cn/problem/P2089 **思路:** 依次枚举每一位,如果当前位置上调料的总质量为i(1 weig…… 文章列表 2024年04月01日 0 点赞 0 评论 223 浏览 评分:0.0
2606: 蓝桥杯2021年真题-左孩子右兄弟 摘要:**难题记录思路** **注意:** vector很适合向** 第j个数中 **添加** i个不同的数 **时使用,标记j与i之间的关系 对**每一层数据都重复相同的操作**,即递归 `…… 文章列表 2024年04月02日 0 点赞 0 评论 258 浏览 评分:0.0