蓝桥杯2024年第十五届决赛真题-兔子集结 摘要:解题思路:将兔子分为两种(1.它和它的同伴相向而行 2.它和它的同伴不相向而行)。不难发现最后兔子的位置都位于第一种(它和它的同伴相向而行)兔子最后的位置上。所以我们可以首先确定第一种兔子…… 题解列表 2025年02月09日 10 点赞 0 评论 1797 浏览 评分:9.3
编写题解 2946: 数制转换 摘要:```cpp#include using namespace std;typedef long long ll;char s[1000];int a[1000], cnt;in…… 题解列表 2025年02月08日 0 点赞 0 评论 319 浏览 评分:0.0
普通的循环遍历就能实现 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double m; double …… 题解列表 2025年02月07日 1 点赞 0 评论 843 浏览 评分:0.0
编写题解 1835: 蓝桥杯2016年第七届真题-碱基 摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>#include <iostream>#include &l…… 题解列表 2025年02月07日 0 点赞 0 评论 328 浏览 评分:10.0
蓝桥杯2024年第十五届省赛真题-商品库存管理 差分 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;intn,m,l[300…… 题解列表 2025年02月07日 3 点赞 0 评论 874 浏览 评分:0.0
先编写函数求除数本身以外的所有因子,再通过accumulate函数求和,再判断,遍历得出结果。 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;vector<int>qiuyin(int n)…… 题解列表 2025年02月07日 0 点赞 0 评论 706 浏览 评分:0.0
容易理解的C++代码外加两大模版(日期问题) 摘要:解题思路:先导入数据;然后遍历1960~2059的每一天;在遍历时判断是否符合条件;结束时return0;注意事项:这道题可以延伸两大模版:一:万能模版#include<…… 题解列表 2025年02月06日 4 点赞 1 评论 540 浏览 评分:10.0
肺雾解法(规律通过deepseek找到) 摘要:解题思路:我这个代码有问题一点点问题,但是能得满分我也不知道为什么,当输入1的时候,是不会输出A。就是找到规律进行交换,当我看到第一眼的时候,我没找到规律,肺雾了,然后试试了最新的deepseek 帮…… 题解列表 2025年02月05日 0 点赞 0 评论 819 浏览 评分:7.0
编写题解 2975: 1的个数 摘要:**A little easy...****Code****代码:**```cpp#include#includeusing namespace std;int n;v…… 题解列表 2025年02月05日 1 点赞 0 评论 366 浏览 评分:10.0
基础C++解法 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){&…… 题解列表 2025年02月05日 0 点赞 0 评论 416 浏览 评分:0.0