Charlie查理 @ 2022-11-18 09:08:55
做别的题时写线段树,正常是这么写的:
#define ls (i << 1)
#define rs (i << 1 | 1)
然而我当时写错了,发现这样也能AC:
#define ls (mid << 1)
#define rs (mid << 1 | 1)
不是很明白原理,求分析qwq
by Zzzcr @ 2024-01-15 19:23:09
见证查理线段树的诞生!
by liuzimingc @ 2024-07-12 21:08:35
见证查理线段树的诞生。
by lupengheyyds @ 2024-10-31 16:06:27
见证查理线段树的诞生!
by ChenHaoQi @ 2024-12-20 20:29:08
见证查理线段树的诞生!
by Genius_Star @ 2024-12-24 22:52:16
见证查理线段树的诞生!