此帖还在更新,别急, 本地节点搭建 我的环境清单: OS: WSL2(Ubuntu 22.04 LTS) Shell: Bash(Default) IDE: Antigravity 1. 安装依赖:build-essential、 pkg-config、 libudev-dev、 llvm、 libclang-dev、 protobuf-compiler、 libssl-dev `bash apt-get update apt-get install -y build-essential pkg-config l...
mathjax: true title: templates date: 2025-07-25 09:54:04 tags: [TOC] __builtin __builtin_clz(a) std::hypotl 计算 $(x, y)$ 平方和开平方根 std::hypotl(x, y) list `cpp std::list list; list.push_front(0); std::vector::iterator> it(N); i...
abc423 E - Sum of Subarrays 题意:求 $\sum_{L \le l \le r \le R} a_i$。 通过贡献法,转化为 $\sum_{L \le l \le i \le r \le R} {a_i} = \sum_{i \in[L, R]}{a_i} \times \sum_{L \le l \le r \le R}{[l \le i \le r]}$。 分析一下, $\sum_{i \in [L, R]}a_{i} \times [i - L + 1] \times [R - i + 1]$,整理得到: $$ (-1) \sum{a_i...