ด้้้้้็้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้้้็็็็็้้้้้็็็็็้้้้啊啊啊啊啊啊啊啊!!!
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在文章《P12252 [蓝桥杯 2024 国 Java B] 七边形 题解》发表评论:
防抄工具(其实是手残打错了)
[题目传送门](https://www.luogu.com.cn/problem/P12252) ~~其实很简单啊~~ 不难发现,每一张图的蓝色部分就是每次要加的地方。 而第 $i$ 张图的每个蓝色部分可以分为 $5$ 条 $(i - 1)$ 的边外加上一个~~孤零零的~~点,所以第 $i$ 张图的蓝色部分有 $5 \…
在讨论《TLE60分求助!!》回复:
```cpp #include using namespace std; typedef long long ll; ll a, b, p; ll ksm(ll a, ll b, ll p) { ll ans = 1; while (b) { if (b & 1) ans = ans * a % p; a = a *…
在讨论《DFS 70分,哪位大佬帮忙优化一下QAQ》回复:
[数据详情](https://www.luogu.com.cn/record/120634630)
在讨论《DFS 70分,哪位大佬帮忙优化一下QAQ》回复:
a[]是解 c[]是列
在讨论《DFS 70分,哪位大佬帮忙优化一下QAQ》回复:
f[]是副对角线,用行 + 列编号 z[]是主对角线,用行 - 列 + n编号
```cpp #include using namespace std; int n, cnt = 0; bool q[15][15], a[15], f[30], z[30], c[15]; void DFS(int x) { if (x > n) { cnt++; return ; } for (int i = 1…
在讨论《WA on #10 QAQ》回复:
谢谢大佬!
```cpp #include #include #include using namespace std; int f[5005][1005], n; void StoBIG(string s, int a[]) { int len = s.size(); for (int i = 1; i = 1; i--) co…
```cpp #include using namespace std; typedef pair pii; int n, m, a, b, dis[1005][1005], dx[] = {-1, 1, 0, 0}, dy[] = {0, 0, -1, 1}; queue q; void bfs() { memset…
在讨论《求助!!!》回复:
谢谢!AC了
```cpp #include using namespace std; int n, m, cnt = 0, dx[] = {0, 0, -1, 1}, dy[] = {1, -1, 0, 0}; bool vis[105][105], g[105][105]; void dfs(int x, int y) { vi…