365cent
365cent
全部文章
分类
归档
标签
去牛客网
登录
/
注册
🐮客博客
一句话介绍不了自己
全部文章
(共8篇)
C题解 | 小欧皇 | TOp
#include <stdio.h> #include <stdbool.h> int *to, *nxt, *head; // global adjacency arrays int idx; static inline int find(int x, int p[]...
2025-11-08
0
11
C题解非精度8ms | 绝命沙虫
#include <unistd.h> #include <string.h> #define IN_BUF (1 << 20) #define OUT_BUF (1 << 20) static inline int compute_exp(in...
2025-11-07
1
11
C题解 | 挡住洪水 Top 1
#include <stdio.h> int a, b; // dimensions: a rows, b columns char *map; #define MAP(i, j) map[(i) * b + (j)] void dfs(int x, int y) { if...
2025-11-03
1
11
C题解 | 牛牛的加法 Top 1
#include <stdio.h> #include <stdlib.h> #include <string.h> int main() { char *A=NULL,*B=NULL,*rev; size_t n=0,m=0; size...
2025-10-31
1
17
C题解 | 送分题 Top 1
#include <stdio.h> int main() { long n; scanf("%ld", &n); if(n > 20180000) n = 20180000; printf("%ld"...
2025-10-28
0
22
C题解 | 计算某字符出现次数
#include <stdio.h> #include <stdlib.h> int main() { char *s = NULL, c, p; int len = 0, buff = 0, count = 0; // p is pair to c ...
2025-10-27
0
19
C题解 | 字符串最后一个单词的长度 反向扫描
#include <stdio.h> #include <stdlib.h> #include <ctype.h> int main() { char *s = 0; size_t n = 0; int c = 0; int l = getli...
2025-10-23
0
22
C题解 | 仰望水面的歪
#include <stdio.h> static long long gcd(long long a, long long b) { if (a < 0) a = -a; if (b < 0) b = -b; while (b) { ...
2025-10-22
0
24