题解列表
循环链表解法(c语言代码)
摘要:我是很不想用链表的,因为每次写完都有一堆bug,因为链表很容易访问到空指针。但是我更不想用数组,数组太费脑子了。
```c
#include
#include
// 定义链表节点结构体……
循环链表解法(c语言代码)
摘要:```c
#include
#include
// 定义链表节点结构体
typedef struct node {
int data; // 节点存……
1160: 出圈 (vector , 公式法)
摘要:解题思路:Vector注意事项:删除元素的位置在末尾的时候,需要注意初始化为0参考代码:#include#include
using namespace std;
int main()
{
……
蓝桥杯2023年第十四届省赛真题-冶炼金属
摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int n; scanf("%d",&n); int max=1000000000,min=……
1159题解(C语言)
摘要:```c
#include
#define MAX 101
void fun(int n, int m) {
int a[MAX]; // 存储生成的数字的数组
int ……
指针/引用练习之交换数字
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int swap(int *a,int *b){ int temp; temp=*a; *a=*b; *b=temp; return ……
1157题解(C语言)
摘要:```c
#include
// 函数 yue_shu 用于计算一个整数 n 的所有真约数(除了它本身)的和
int yue_shu(int n){
int sum = 0; //……
题解 2773: 计算线段长度 math.h头文件
摘要:??解题思路??此题中两点之间存在四种情况:1.两点 X坐标 相同表示为: Xa == Xb解:两点 Y坐标 差值的 绝对值2.两点 Y坐标 相同表示为: Ya == Yb解:两点 X坐标 差值的 绝……