致爱丽丝
致爱丽丝
全部文章
题解
归档
标签
去牛客网
登录
/
注册
致爱丽丝的博客
全部文章
/ 题解
(共5篇)
题解 | #记票统计#
快速排序+二分查找 快速排序的时候排序指向字符串的指针 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct ...
C
字符串
2021-11-16
0
484
题解 | #从单向链表中删除指定值的节点#
插入值没有插在头节点之前的,注意删除值的时候可能会删掉头节点。 #include <stdio.h> #include <stdlib.h> typedef struct node{  ...
C
链表
2021-11-10
0
465
题解 | #查找组成一个偶数最接近的两个素数#
先求得SIZE内的所有素数,再查表即可 查表从输入的偶数的半值开始向下查找,当两个值都是素数时即满足。 #include <stdio.h> #define SIZE 1000 int prime[SIZE+1]; void&nbs...
C
数学
2021-11-09
0
464
题解 | #自守数#
先求出SIZE内所有的自守数,再查表寻找即可 #include <stdio.h> #include <string.h> #define SIZE 10000 int arr[100]; &nbs...
C
数学
枚举
数组
2021-11-08
0
501
题解 | #配置文件恢复#
题意先匹配第一关键字再匹配第二关键字容易误导,一起匹配就好了。 先判断第二关键字是否为空 #include <stdio.h> #include <string.h> #define SIZE 20 const c...
C
字符串
2021-11-08
0
486