跳到正文

Anby_

728401

安比重度依賴患者

这是 2026年10月20日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

「大战前重新整装待发。嗯,是很经典的电影桥段。」「大战前重新整装待发。嗯,是很经典的电影桥段。」

「汉堡是非常伟大的食物,并不单单只是因为我喜欢。」
「丰富的营养组合,便携的造型设计,更别提各种五花八门的创意搭配在其身上都能统统成立。」
「我相信,汉堡不会因为不能被放进火锅里,就失去这些价值。」

「还是说…汉堡其实放在火锅里也会很好吃呢?」

 /l、
(゚、 。 7
 l、 ~ヽ
 じしf_, )ノ


快去做数据结构
vjudge Con

OI 模拟器 | 教练模拟器 | 八中模拟器
I’m not a robot | ad-hoc 小网站 | 猫国

VScode Here
https://cnoi.mrpython.top

多做题,少说话。

为什么放在最前面? —因为太重要了!
墓志铭:千万不要用嘴尝试实验室里的任何试剂!即使它没有异味!

恋人:AndySama
效力于:Andy AK IOI!!!


What is it? —It is Hxyf.
異議あり! は?? 安比はとても可愛いですね!
怎么能打赛比时敲题解捏,@monkeyinGD

缺省源

-std=c++14 -O2 -static

C++
#include<bits/stdc++.h>
#define x first
#define y second
using namespace std;
const int N=2e6+10,mod=998244353;
typedef pair<int,int> pii;
typedef long long ll;
/*

*/
int C,T=1;
void mian(){
	return;
}
int main(){
	ios::sync_with_stdio(0); cin.tie(0);
	cin>>C>>T;
	while(T--) mian();
	return 0;
}

链式前向星

C++
#include<bits/stdc++.h>
#define x first
#define y second
using namespace std;
const int N=2e6+10,mod=998244353;
typedef pair<int,int> pii;
typedef long long ll;
/*

*/
struct Graph{
	int head[N*2],edge[N*2],last[N*2],ind[N*2],W[N*2],idx;
	inline void add(int u,int v,int w=1){
		ind[v]++,W[++idx]=w,edge[idx]=v; 
		last[idx]=head[u],head[u]=idx;
	}
	inline void init(int n)
		{idx=0; for(int i=1;i<=n;i++) head[i]=0;}
};
int C,T=1;
void mian(){
	return;
}
int main(){
	ios::sync_with_stdio(0); cin.tie(0);
	cin>>C>>T;
	while(T--) mian();
	return 0;
}

快速读入

C++
namespace FastIO{
	inline int read(){
		int s=0,f=1;char t=getchar();
		while('0'>t||t>'9'){if(t=='-')f=-1;t=getchar();}
		while('0'<=t&&t<='9'){s=(s<<1)+(s<<3)+t-'0';t=getchar();}
		return s*f;
	}
}
using FastIO::read;

Matrix 乘法

C++
template<int MOD> struct mmat {using u64 = unsigned long long; int n, m; std::vector<u64> a;
	mmat(int n=0, int m=0, char c='0'): n(n), m(m), a(n*m,0) {if(c=='E') for(int i=0; i<n&&i<m; i++) a[i*m+i]=1; }
	mmat operator * (const mmat &b) const {mmat res(n, b.m); u64 aik;
		for(int i=0; i<n; i++) {std::vector<__int128> tmp(b.m, 0);
			for(int k=0; k<m; k++) if(aik=a[i*m+k]) for(int j=0; j<b.m; j++) tmp[j] += (__int128)aik * b.a[k*b.m+j];
			for(int j=0; j<b.m; j++) res.a[i*b.m+j] = tmp[j]%MOD; } return res; }	
	mmat& operator *=(const mmat &b) {return *this = *this*b; } u64* operator [](int i) {return a.data()+i*m; }
	mmat pow(u64 k) const {mmat res(n,n,'E'), A=*this; for(; k; k>>=1, A*=A) if(k&1) res*=A; return res; }
};

Dong Huiling 积分

∫0∞sin⁡xn dx=1nΓ(1n)sin⁡(π2n)\begin{aligned} \boxed{\int_0^\infin{\sin{x^n}\,dx}=\frac{1}{n}\Gamma\left(\frac{1}{n}\right)\sin\left(\frac{\pi}{2n}\right)} \end{aligned}

广义 Dong Huiling 积分

∫0∞xpsin⁡xq dx=1qΓ(p+1q)sin⁡[(p+1)π2q]\begin{aligned} \boxed{\int_0^\infin{x^p\sin{x^q}\,dx}=\frac{1}{q}\Gamma\left(\frac{p+1}{q}\right)\sin\left[\frac{(p+1)\pi}{2q}\right]} \end{aligned}

忏悔录/日常记录

写在前面,世界上最唐的错误:

  • 没有取模!!
  • 链式前向星没有开双倍空间
  • 多测不清空,不按题意输出
  • 盲目开 longlong 导致MLE
  • 用并查集/Floyd不初始化
  • 线段树 44 倍空间
  • 不写 freopen 和 stdin 写了 freopen
  • 最大值不够大
  • 比赛结束前最后十分钟才发现 f题
  • 交错代码
  • 多测 memset
  • 时间复杂度分析错误
  • 测试代码忘删
  • 直到比赛结束后在发现 G 题。
  • 可持久化 30 倍
  • mod=998244353\text{mod}=998244353 写 mod=109+7\text{mod}=10^9+7

累计没取模挂分通量(2026.7.14 - 至今):52′52'。

2024 赛季

2024.5.31 vjudge比赛两题没开 long long 全炸了。
2024.6.11 校比赛忘记回溯导致虚空调试半小时。
2024.6.12 不要把 m 写成 n!!!!!!!!!!!!
2024.6.14 同 2024.5.312024.5.31。
2024.6.19 千万不要把 ii 打成 11!!!!!!!!!!!
2024.6.23 玩原神玩太多导致的。
2024.6.28 一定要初始化!!!!!!!!!!
2024.7.6 atcoder 比赛 B 题就挂了,还是 B 组同学教会的
2024.7.8 千万不要把换行写成空格。
2024.7.13 atcoder 比赛 D 题 dijsktra 模板题,没有开无向图。
2024.8.3 atcoder 比赛 D 题 没打去看奥运会了,掉了4分。
2024.8.17 刚刚打完模拟赛没调整好状态就去打 atcoder 了,做情绪的主人。
2024.8.25 十年 ** 一场空?不开 ** 见祖宗?
2024.8.29 艾博士《开了longlong MLE》
2024.8.31 dp 不要预处理已知条件!!!
2024.9.6 floyed 千万不要将自己到自己的距离初始化成无穷!!!
2024.9.12 校模拟赛数组开小了。
2024.9.20 今天不忏悔了,CSP2024 rp++!!

2025 赛季

2024.9.21

  • 格雷码是什么?
  • 什么是次短路???
  • 真的不会爆栈马????

2024.9.28 atcoder比赛无向图开双倍空间!!!!!
2024.10.5 atcoder比赛 E 题二分答案 check 函数打错了
2024.10.10 校模拟赛 只有满足条件后才能 —
2024.10.12 atcoder 比赛 F 题最大值不够大!挂了一发
2024.10.20 校模拟赛一定要看好题目再打!!!!爆零两行泪!!!
2024.10.22 校模拟赛无向图一定要开双倍空间!!!
2024.11.3 血与泪的教训++,ll MLE辣!
2024.11.4 反转了,要开 long long。
2024.11.9 atcoder翻译没读懂其实可以看英文的。
2024.11.10 你要不要看看longlong 够不够?
2024.12.2 毫瓦!1ll<<64 炸 longlong!
2024.12.11 ii 打成 jj 后爆零。
2024.12.18 memset 不是 O(n)O(n)!!!!!
2024.12.22 次短路 vis 要么开两个,要么不要开!!!!!!
2025.1.2 双倍空间。
2025.1.25 把 A 题代码交到 B 题上。
2025.2.22 链式前向新双倍空间。
2025.3.3 盲目自信 O(nq)O(nq) 能过掉 2×105×5×1042\times10^5\times5\times10^4
2025.3.4 唐oj 要开c++17
2025.3.7 背包炸值域
2025.3.9 链式前向新双倍空间
2025.3.10 最大值不够大
2025.3.17 并查集 merge 不判 x!=y
2025.3.27 5×1055\times10^5 RE
2025.4.5 过度依赖 at better 的答辩翻译导致没有没读懂题
2025.4.19 1×1061\times10^6 开 5×1055\times10^5
2025.4.22 测试代码不删
2025.5.11 直到比赛结束后在发现 G 题。
2025.5.24 测试代码没删。
2025.6.8 简单题试图推一行公式但是挂了。
2025.7.6 不要手写 π\pi,请使用 4*atan(1)。
2025.7.18 线段树 44 倍空间。
2025.7.27 位运算于加减同级。
2025.9.2 数位 DP 空间小了。
2025.9.6 模数写错。
2025.9.19 今天不忏悔了,CSP2025 rp++!!

2026 赛季

2025.9.25 把《日常》补完了,好作品看一部少一部。
2025.10.31 不要放弃任何一点部分分,S T4 8 分的部分分就 1= 了。
2025.11.25 两个端点都是割点的边不一定是割边。
2025.11.30 忘记判边界条件导致 NOIP T1 挂了。
2026.3.13 多测不清空
2026.3.16 没开 long long
2026.3.17 依旧 n,mn,m 不分。
2026.3.31 没开 long long
2026.4.2 初始化
2026.4.10 忘记取模
2026.4.16 非 void 类型不返回。
2026.5.26 对 int 取模不乘 1ll。
2026.6.2 没赋初值(卡了一个下午,红温了)。 2026.7.9 数组开小,好事。

题解集

我大题目 GDNB
我大题单 HT
是给我大 给PEAKY的

模板题集 Peakyの模板题集。
c96c0d9103d538bf0380dd68a28fb1be342422fb.jpg

Mathematics

Polylogarithm
Anby loves gamma constant!!!
http://10.166.182.199:8081/xxas.HTM

197293072

欸??云朵☁️?,哒↘哒↗哒↘哒↗哒↘,好想玩原神?,云☁️原神?,当当当当当?,看精彩纷纷???,云☁️原神?,呜呜呜呜呜,好想玩原神???云☁️原神,朋友已就位???,一起玩原神,云☁️原神!啊啊啊啊啊?,好想玩原神?云☁️原神,哈哈哈哈哈???,一起玩原神,云☁️原神,好好好想,?想玩玩玩原神?网页云端,低功耗不失真?, WiFi网线?,都可以60帧?,来来来来?,进入云☁️原神