szazone
szazone
全部文章
分类
归档
标签
去牛客网
登录
/
注册
szazone的博客
全部文章
(共42篇)
题解 | #查找组成一个偶数最接近的两个素数#
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <math.h> bool isPrime(uint32_t number) { if (number ...
2024-10-01
0
48
题解 | #找出字符串中第一个只出现一次的字符#
#include <stdbool.h> #include <stdio.h> #include <string.h> int main() { char s[1001] = {}; char c; int length = 0; ...
2024-10-01
0
62
题解 | #输入n个整数,输出其中最小的k个#
#include <stdio.h> #include <stdlib.h> typedef struct __LinkedList_ts { int value; struct __LinkedList_ts* next; } LinkedList_ts;...
2024-10-01
0
58
题解 | #高精度整数加法#
#include <stdio.h> #include <string.h> char s[2][10002] = {}; void add(char* s1, char* s2, char* result) { int ov = 0; int leng...
2024-10-01
0
48
题解 | #挑7#
#include <stdio.h> int main() { int n,i,j; int sum = 0; scanf("%d", &n); for (i=1; i<=n; ++i) { if (i...
2024-10-01
0
54
题解 | #从单向链表中删除指定值的节点#
#include <stdio.h> #include <stdlib.h> typedef struct __LinkedList_ts { int value; struct __LinkedList_ts* next; } LinkedList_ts;...
2024-10-01
0
42
题解 | #统计字符#
#include <stdio.h> #include <string.h> int main() { char s[1001] = {}; unsigned int length = 0,i; unsigned int c=0,space=0,nu...
2024-09-17
0
77
题解 | #字符串加密#
#include <stdint.h> #include <stdio.h> #include <string.h> char key[101] = {}; char code[101] = {}; char password[26] = {}; int ma...
2024-09-17
0
74
题解 | #蛇形矩阵#
#include <stdio.h> int main() { unsigned int N = 0; unsigned int result[100][100] = {}; unsigned int i,row,column; scanf("...
2024-09-17
1
82
题解 | #图片整理#
#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> // 定义单向链表 typedef struct __LinkedList_ts { ...
2024-09-16
0
85
首页
上一页
1
2
3
4
5
下一页
末页