结构体,枚举变量,指针 摘要:解题思路:注意事项:参考代码: #include <stdio.h> #include <stdlib.h> typedef enum bee { d=3, c, …… 题解列表 2024年09月30日 0 点赞 0 评论 176 浏览 评分:0.0
1025: [编程入门]数组插入处理 摘要:解题思路:直接判断数组 内容大小,找到第一个比插入数字大的数组内容时,利用循环将数组中之后的数字后移一位,再将其插入进去。(亦可利用数组下标进行插入)注意事项:注意数组的长度,插入后比插入前多一位。参…… 题解列表 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 评论 242 浏览 评分:0.0
无聊的星期六 摘要:解题思路:#include <stdio.h> int isprime(int); int main() { int n, m,sum=0; scanf("%d %d",…… 题解列表 2024年10月02日 1 点赞 0 评论 689 浏览 评分:0.0
无聊的星期六 摘要:解题思路:#include <stdio.h> int main() { int i=0,a,b,num[100] = { 0 }; scanf("%d %d", &a…… 题解列表 2024年10月02日 0 点赞 0 评论 393 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录(指针) 摘要:#include <stdio.h> // 引入标准输入输出头文件 // 定义学生结构体 struct Student { char number[10]; // 学号 char …… 题解列表 2024年10月02日 0 点赞 0 评论 318 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct Student{char number[10];char name[10];int score[3];};int main…… 题解列表 2024年10月02日 0 点赞 0 评论 352 浏览 评分: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 评论 433 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:…… 题解列表 2024年10月04日 1 点赞 0 评论 478 浏览 评分:0.0
循环的方式求和Sn 摘要:解题思路:注意到22=2*10+2;222=22*10+2;因而可用双层for循环。注意事项:int sum 要定义到外层循环内部,保证每次循环时sum的初始值都是2.参考代码:#include<st…… 题解列表 2024年10月05日 0 点赞 0 评论 208 浏览 评分:0.0