题解列表
1415:挚爱C语言(动态开辟二维数组空间C/C++解决问题)
摘要:c++语言动态开辟二维数组空间
```cpp
char** p = new char* [n];
for (int i = 0; i < n; i++)
{
p[i] = n……
蓝桥杯2024年第十五届省赛真题-成绩统计
摘要:**注意:**
本题的方差计算公式疑似有误。应为$$\sigma^2 = \frac{\sum (X-\mu)^2}{N}$$。其他的没什么好说的,这题就是模拟。
**代码:**
```cp……
3209: 蓝桥杯2024年第十五届省赛真题-好数
摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:……
1644:最长字符串(使用结构体存储,扩展解法)
摘要:```cpp
#include
#include
#include
using namespace std;
struct word {
string w;
in……
[蓝桥杯算法提高VIP-种树] - 我搜搜搜搜搜
摘要:# 思路
搜索:排除等效冗余+特判
```cpp
#include
#define ULL unsigned long long
#define LL long long
#define ……
蓝桥杯2024年第十五届省赛真题-团建
摘要:解题思路:dfs,也就是深度优先搜索注意事项:有一个测试样例是错的,输入内容如下:4 2
49868141 62921933 1 1
49868141 62921933
1 2
3 1
1 ……
1192: 十->二进制转换
摘要:```cpp
#include
#include
using namespace std;
//进制转换并输出函数不考虑特殊情况
void transport(int x)
{
……
如何方便又快捷,switch给你答案
摘要:#include <stdio.h>//完成利润计算int main(){ double i1 = 0, i2 = 0, i3 = 0, i4 = 0, i5 = 0, i6 = 0; ……
oliv_排除法暴力循环
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum = 0, arr[4]; for(int i=0; i<4; i++) ……