结构体,枚举变量,指针 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <stdlib.h> typedef enum bee { d=3, c, …… 题解列表 2024年09月30日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 1560: 蓝桥杯算法提高VIP-计算器 摘要:#### 思路 - 将每个数字对应的二极管开关情况存储在arr数组中 - 遍历每个数字,建立每两个数字之间变换所需要改变的二极管数目的一个二维表 - 直接查表计数 #### 代码 ```…… 题解列表 2024年09月30日 0 点赞 0 评论 205 浏览 评分:9.9
dfs(深搜)+剪枝优化 摘要:###看到有多少种方案,基本上不是爆搜就是DP,很显然这道题爆搜很好解决(~~其实就是不会DP,看不出来,哈哈哈~~) ###### 爆搜都是一颗搜索树,基本搜索过程就是这样: 注意事项:注意数组的长度,插入后比插入前多一位。参…… 题解列表 2024年10月01日 0 点赞 0 评论 313 浏览 评分:0.0
PYthon 1479: 蓝桥杯算法提高VIP-删除数组中的0元素 摘要:解题思路:注意事项:参考代码:times = input()res = list(map(int,input().split(' ')))re = [i for i in res if…… 题解列表 2024年10月01日 0 点赞 0 评论 243 浏览 评分:0.0
无聊的星期六 摘要:解题思路:#include <stdio.h> int isprime(int); int main() { int n, m,sum=0; scanf("%d %d",…… 题解列表 2024年10月02日 1 点赞 0 评论 690 浏览 评分:0.0
无聊的星期六 摘要:解题思路:#include <stdio.h> int main() { int i=0,a,b,num[100] = { 0 }; scanf("%d %d", &a…… 题解列表 2024年10月02日 0 点赞 0 评论 394 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录(指针) 摘要:#include <stdio.h> // 引入标准输入输出头文件 // 定义学生结构体 struct Student { char number[10]; // 学号 char …… 题解列表 2024年10月02日 0 点赞 0 评论 320 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{char number[10];char name[10];int score[3];};int main…… 题解列表 2024年10月02日 0 点赞 0 评论 354 浏览 评分:0.0
oliv_排除法暴力循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum = 0, arr[4]; for(int i=0; i<4; i++) …… 题解列表 2024年10月03日 0 点赞 0 评论 435 浏览 评分:0.0