题解列表
编写题解 1050: [编程入门]结构体之成绩记录(指针)
摘要:#include <stdio.h> // 引入标准输入输出头文件 // 定义学生结构体 struct Student { char number[10]; // 学号 char ……
编写题解 1050: [编程入门]结构体之成绩记录
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{char number[10];char name[10];int score[3];};int main……
oliv_排除法暴力循环
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum = 0, arr[4]; for(int i=0; i<4; i++) ……
1192: 十->二进制转换
摘要:```cpp
#include
#include
using namespace std;
//进制转换并输出函数不考虑特殊情况
void transport(int x)
{
……
蓝桥杯2024年第十五届省赛真题-团建
摘要:解题思路:dfs,也就是深度优先搜索注意事项:有一个测试样例是错的,输入内容如下:4 2
49868141 62921933 1 1
49868141 62921933
1 2
3 1
1 ……
[蓝桥杯算法提高VIP-种树] - 我搜搜搜搜搜
摘要:# 思路
搜索:排除等效冗余+特判
```cpp
#include
#define ULL unsigned long long
#define LL long long
#define ……
1644:最长字符串(使用结构体存储,扩展解法)
摘要:```cpp
#include
#include
#include
using namespace std;
struct word {
string w;
in……
3209: 蓝桥杯2024年第十五届省赛真题-好数
摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:……