From 8d911aa528b20354b0933e0e06d5a6e8eddafa73 Mon Sep 17 00:00:00 2001 From: ZnPdCo <66149312+ZnPdCo@users.noreply.github.com> Date: Wed, 11 Dec 2024 22:04:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(misc/mo-algo.md):=20=E5=B0=86=E5=8E=8B?= =?UTF-8?q?=E8=A1=8C=E4=BB=A3=E7=A0=81=E6=B7=BB=E5=8A=A0clang-format=20off?= =?UTF-8?q?=20(#6057)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(misc/mo-algo.md): 将压行代码添加clang-format off source:#841 * Update mo-algo.md --- docs/misc/mo-algo.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/misc/mo-algo.md b/docs/misc/mo-algo.md index 5bd033955844c..f2722d0dbe519 100644 --- a/docs/misc/mo-algo.md +++ b/docs/misc/mo-algo.md @@ -182,16 +182,13 @@ void solve() { === "压行" ```cpp + // clang-format off // 这里有个小细节等下会讲 - int unit; // 块的大小 - + int unit; // 块的大小 struct node { int l, r, id; - - bool operator<(const node &x) const { - return l / unit == x.l / unit - ? (r == x.r ? 0 : ((l / unit) & 1) ^ (r < x.r)) - : l < x.l; + bool operator < (const node &x) const { + return l / unit == x.l / unit ? (r == x.r ? 0 : ((l / unit) & 1) ^ (r < x.r)) : l < x.l; } }; ```