4thirteen2one
4thirteen2one
全部文章
题解
归档
标签
去牛客网
登录
/
注册
4thirteen2one的博客
全部文章
/ 题解
(共23篇)
题解 | #HJ80 整型数组合并#
#include <stdio.h> #include <stdlib.h> #include <string.h> int cmpfunc(const void* a, const void* b) { return (*(int*)a - *(int*...
C
2022-06-19
0
330
题解 | #HJ84 统计大写字母个数#
C语言版本 #include <stdio.h> int main() { char s[251]; scanf("%[^\n]", s); int count = 0; for (int i = 0; i < strlen(s); i++) { ...
C
Python3
2022-06-19
0
532
题解 | #HJ81 字符串字符匹配#
C语言版本 #include <stdio.h> #include <stdbool.h> int main() { char S[201]; char T[201]; scanf("%s", S); scanf("%s", T); ...
C
Python3
2022-06-19
0
476
题解 | #HJ105 记负均正II#
#include <stdio.h> int main() { int num; int negativeCount = 0, nonNegativeSum = 0, nonNegativeCount = 0; double nonNegativeMean =...
C
2022-06-19
0
357
题解 | #HJ86 求最大连续bit数#
C语言版本 #include <stdio.h> int main() { int n, rangeMax, rangeCur; while(scanf("%d", &n) != EOF) { rangeMax = 0, rangeCur = 0...
C
Python3
2022-06-19
0
447
题解 | #HJ73 计算日期到天数转换#
#include <stdio.h> int main() { int daysPerMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; int y, m, d, s; while (scanf...
C
2022-06-19
0
351
题解 | #HJ53 杨辉三角的变形#
#include <stdio.h> int main() { int n, pos; while(scanf("%d", &n) != EOF) { if (n==1 || n==2) { pos = -1; ...
C
2022-06-18
0
358
题解 | #HJ62 查找输入整数二进制中1的个数#
#include <stdio.h> int countOnes(int x) { int ones = 0; while (x > 0) { x &= (x - 1); ones++; } return o...
C
2022-06-18
0
353
题解 | #HJ48 从单向链表中删除指定值的节点#
#include <stdio.h> #include <stdlib.h> typedef struct tLinkNode { int data; struct tLinkNode *next; } LinkNode; int main() { ...
C
2022-06-17
2
458
题解 | #AB9 【模板】链表#
C语言版本 #include <stdio.h> #include <stdlib.h> #include <stdbool.h> typedef struct tLinkNode { int data; struct tLinkNode *ne...
C
链表
2022-05-30
3
762
首页
上一页
1
2
3
下一页
末页