szazone
szazone
全部文章
分类
归档
标签
去牛客网
登录
/
注册
szazone的博客
全部文章
(共42篇)
题解 | #公共子串计算#
#include <stdio.h> #include <string.h> int main() { char s[2][151] = {}; int max,i,j,k; int length[2] = {}; char* sL,* sS...
2024-10-03
0
63
题解 | #参数解析#
#include <stdbool.h> #include <stdio.h> #include <string.h> int main() { char s[1001] = {}; int length, i,j, n; bool sy...
2024-10-03
0
87
题解 | #计算日期到天数转换#
#include <stdbool.h> #include <stdio.h> bool isLuner(int year) { if (year%4==0 && year%100!=0) { return true; } e...
2024-10-03
0
79
题解 | #百钱买百鸡问题#
#include <stdio.h> int main() { int a; int i,j,k; while (scanf("%d", &a) != EOF) { // 注意 while 处理多个 case for...
2024-10-03
0
69
题解 | #矩阵乘法计算量估算#
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct __Stack_ts { int row; int col; struct __Stack...
2024-10-03
0
66
题解 | #矩阵乘法#
#include <stdio.h> #include <stdlib.h> int arr[2][100][100] = {}; int result[100][100] = {}; int main() { int x,y,z,i,j,k; int c...
2024-10-03
0
75
题解 | #成绩排序#
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct __LinkedList_ts { char name[20]; int score; s...
2024-10-03
0
63
题解 | #MP3光标位置#
#include <stdio.h> #include <string.h> int main() { int n; char s[101] = {}; int c = 1; int length = 0; int pageh = 1...
2024-10-01
0
64
题解 | #DNA序列#
#include <stdio.h> #include <string.h> int main() { char s[1001] = {}; int n,i,j; int length = 0; int max = 0; int ma...
2024-10-01
0
66
题解 | #查找输入整数二进制中1的个数#
#include <stdio.h> int main() { int n; int mask = 1; int sum = 0; while (scanf("%d", &n) != EOF) { sum =...
2024-10-01
0
46
首页
上一页
1
2
3
4
5
下一页
末页