szazone
szazone
全部文章
分类
归档
标签
去牛客网
登录
/
注册
szazone的博客
全部文章
(共42篇)
题解 | 两个队列实现栈
#include <stdbool.h> #include <stdlib.h> #include <string.h> typedef struct __StackList_ts { int value; struct __StackList_t...
2025-05-07
0
10
题解 | 每日温度
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 每日温度 * @param dailyTemperatures int整型一维数组 * @param dailyTemperaturesLen int dailyTemperatures数组长度...
2025-05-05
0
10
题解 | 小红的合数寻找
#include <stdbool.h> #include <stdio.h> #include <math.h> bool isPrime(int num) { if (num <= 1) { return false; ...
2025-04-30
0
12
题解 | #表示数字#
#include <stdio.h> #include <string.h> int main() { char s[301] = {}; int length = 0; while (scanf("%s", s) != EOF...
2024-10-09
0
49
题解 | #密码强度等级#
#include <stdbool.h> #include <stdio.h> #include <string.h> int main() { int score = 0; int length = 0; bool upper,lowe...
2024-10-09
0
54
题解 | #求最大连续bit数#
#include <stdio.h> int main() { int n; int mask = 1; int max = 0; int tempLen = 0; while (scanf("%d", &n) !=...
2024-10-09
0
46
题解 | #最长回文子串#
#include <stdio.h> #include <string.h> void findLong(char* s, int* len) { int length = 0; int i,j; int tempLen = 0; *len...
2024-10-09
0
53
题解 | #统计大写字母个数#
#include <stdio.h> #include <string.h> int main() { char s[251] = {}; int sum = 0; int length = 0; scanf("%[^\n]*c&...
2024-10-09
0
56
题解 | #二维数组操作#
#include <stdio.h> int main() { int m, n; int x,y,x1,y1,x2,y2,x0,y0; int flag = 0; while(scanf("%d %d\n%d %d %d %d\n%d\...
2024-10-08
0
62
题解 | #整型数组合并#
#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct __LinkedList_ts { int value; struct __LinkedList_...
2024-10-03
0
81
首页
上一页
1
2
3
4
5
下一页
末页