Skip to content

Commit

Permalink
fix(misc/mo-algo.md): 将压行代码添加clang-format off (OI-wiki#6057)
Browse files Browse the repository at this point in the history
* fix(misc/mo-algo.md): 将压行代码添加clang-format off
source:OI-wiki#841

* Update mo-algo.md
  • Loading branch information
ZnPdCo authored Dec 11, 2024
1 parent 5a5eeb0 commit 8d911aa
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/misc/mo-algo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
};
```
Expand Down

0 comments on commit 8d911aa

Please sign in to comment.