牛客126208132号
牛客126208132号
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
牛客126208132号的博客
全部文章
(共4篇)
题解 | 变化的数组
#include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 1e5 + 10, mod = 1e9 + 7; LL n, m, k; LL ksm(LL x, LL y) { ...
2025-06-26
0
10
题解 | Sudoku
暴力枚举 #include <bits/stdc++.h> using namespace std; int a[10][10]; bool dfs(int n) { if(n >= 81) return true; int x = n / 9, y = n ...
2025-06-25
0
10
题解 | 素数伴侣
#include<bits/stdc++.h> using namespace std; const int N = 110, M = 6e4 + 10; int n, a[N], st[M], primes[M], cnt; bool vis[N]; int match[N], ...
2025-06-25
0
10
题解 | #小红的最大中位数#
选的最大值个数比其他数至少多一个即可 #include <bits/stdc++.h> #define ll long long using namespace std; const int N = 1e5 + 10, mod = 1e9 + 7; int n, maxx; uno...
C++
2025-03-08
0
48