林北在写日记1
林北在写日记1
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
林北在写日记1的博客
全部文章
(共4篇)
题解 |I题是个签到题
判断时候注意分类清楚 #include <stdio.h> int main() { int n, m; scanf("%d %d", &n, &m); int a[13]; // 数组大小根据n的最大值13设定 for (int i = 0; i < n; i...
C
2025-11-12
1
10
题解 | #andy的树被砍了#
我来一个C语言的题解 #include <stdio.h> #include <stdlib.h> int main() { int n; scanf("%d", &n); int* h = (int*)malloc(n * sizeof(int)); int* c ...
C
二分查找
2025-11-08
0
12
题解 | 矩阵和向量的点积
import ast def matrix_vector_dot(): # 读取输入 matrix_str = input().strip() vector_str = input().strip() try: # 解析输入 ma...
2025-10-18
1
18
题解 | #[NOIP2002]选数#
#include <stdio.h> #include <math.h> // 判断素数函数 int isPrime(int num) { if (num <= 1) return 0; if (num == 2) return 1; if (num % 2 == 0)...
深度优先搜索
回溯
2025-10-18
1
17