题解列表
编写题解 1028: [编程入门]自定义函数求一元二次方程
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>void fun(double a, double b, double c) { double……
编写题解 1029: [编程入门]自定义函数处理素数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a){ for(int i=2;i<=a/2;i++){ if (a%i==0){prin……
结构体,枚举变量,指针
摘要:解题思路:注意事项:参考代码:
#include <stdio.h>
#include <stdlib.h>
typedef enum bee {
d=3,
c,
……
1025: [编程入门]数组插入处理
摘要:解题思路:直接判断数组 内容大小,找到第一个比插入数字大的数组内容时,利用循环将数组中之后的数字后移一位,再将其插入进去。(亦可利用数组下标进行插入)注意事项:注意数组的长度,插入后比插入前多一位。参……
PYthon 1479: 蓝桥杯算法提高VIP-删除数组中的0元素
摘要:解题思路:注意事项:参考代码:times = input()res = list(map(int,input().split(' ')))re = [i for i in res if……
编写题解 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……