U689359 存

题目背景

![](https://cdn.luogu.com.cn/upload/image_hosting/z8q6h0ks.png) ::::success[宣] [宣](https://www.luogu.com.cn/training/1012313)。 [宣宣](https://www.luogu.com.cn/article/r1d9tbjm),求赞/收藏。 ::::

题目描述

### 小工具 ::::success[好用的]{open} [题解规范器](https://tj.imken.dev/#/) [洛谷版↑](https://wudream813.github.io/luogu-markdown-editor/) [还有第三关](https://www.luogu.ac.cn/solution/fix) [画图(好用,不好看)](https://www.netpad.net.cn/svg.html) [画图(手绘版)](https://excalidraw.com/) [画图(一般般)](https://www.tldraw.com/) [LaTeX 数学公式大全](https://www.luogu.com.cn/article/1gxob6zc) [投票](https://www.saobby.com/create_vote) [PPT](https://cnoi.mrpython.top/) :::: ### 玩 ::::success[这个有很多东西] [有(hao)用(wan)的](https://www.luogu.com.cn/article/hepuiakz) [狼人杀任务表](https://www.luogu.me/article/6ow0ztlt) :::: ### 文章 ::::success[神秘] [喵](https://www.luogu.com.cn/article/pwj0xozz) [神了](https://www.luogu.com.cn/article/j0y0wla8) [刀文](https://www.luogu.me/article/gocos3a2) [你谷大世界](https://www.luogu.me/article/ljgj94jt) [种子?](https://www.luogu.me/article/ou8zbv42) [好文 正在更 没看完](https://www.luogu.me/article/e2kyxtt0) [互动文章?](https://www.luogu.me/article/vbz8vcv2) ::::

输入格式

### 学习资料 ::::success[看!] [Trick 合集](https://www.luogu.com.cn/article/cqhi72t6) [后缀自动机](https://tiger2005.top/posts/sam/) [peng-my 的博客园(有好东西)](https://www.cnblogs.com/peng-ym) [串串](https://www.luogu.com.cn/article/5ql9tuu6) [Top Tree -领先®-](https://www.luogu.com.cn/article/5z1y962a) :::: ### 好的提单 ::::success[做!] [这个无敌了,一定要做!](https://www.luogu.com.cn/training/9391) [数学提单](https://www.luogu.com.cn/training/81332#information) ::::

输出格式

### 模拟器 ::::success[模拟器] [高考模拟器?](https://leoooooooooisme.github.io/oier-gaokao-recovery-simulator/) [whk班主任模拟器](https://paperzym.github.io/whk/) [做干净的奥赛](https://joshuaurora.github.io/CCF/DZD_Simulator.html) [OI重开困难版](https://seve42.github.io/OItrainer/start.html) [OI重开简单版](https://little09qwq.github.io/oi-remake-game/) [OJ运营模拟器](https://chenzheaya.github.io/OnlineJudgeMaintainerSimulator/) ::::

说明/提示

### 放一些图吧~ ::::success[图图] ![很神圣啊](https://cdn.luogu.com.cn/upload/image_hosting/jthrh5x7.png) ![区完了](https://cdn.luogu.com.cn/upload/image_hosting/v4a34ujg.png) ![zy的ls?](https://cdn.luogu.com.cn/upload/image_hosting/jynrlc9u.png) ![芙芙](https://cdn.luogu.com.cn/upload/image_hosting/f5loicbj.png) ![尼姑爆炸](https://s21.ax1x.com/2024/03/09/pFsoduF.png) :::: ### 缺省源得改 ::::success[拉完了] ``` #include using namespace std; #pragma GCC("Ofast") #pragma target("avx512f") namespace FastIO { #define int long long #define cin FastIO::fin #define cout FastIO::fout #define db long double #define fi first #define se second #define rep(i,a,b) for(register int i = (a);i = (b);i --) #define repp(i,a,b) for(register int i = (a);i*i >=__builtin_ctzll(b); while(a) { a>>=__builtin_ctzll(a); if(a (string &x) {getstr(x);return *this;} inline input &operator >> (db &x) {getdb(x);return *this;} }fin; class output { char buf[1