星

星尘客栈-笔记站

A text-focused Halo theme

  • 首页
  • 标签
  • 分类
  • 关于本站
主页
星尘客栈-笔记站

原码反码和补码

随便记一下,因为过于简单直接复制AI生成的 🟢 1. 原码(sign-magnitude) 规则:最高位是符号位,其余位表示数值的绝对值。 最高位 0 → 正数 最高位 1 → 负数

6天前

数学中的逻辑运算符

10天前 数学

位运算

2025-08-20 技巧

线段树模版

线段树维护区间和 #include<bits/stdc++.h> using namespace std; using ll=long long; vector<ll>tree,lazy; void init(int n){tree.assign(4*n+5,0);lazy.assign(4*n

2025-08-19 数据结构

最近公共祖先

倍增写法 #include<bits/stdc++.h> using namespace std; const int N=1e5+5,LOG=20; int n,m,fa[N][LOG],dep[N]; vector<int> g[N]; void dfs(int u,int f){ f

2025-08-18 图论

快读快写模版

整型 实用版本 比较适合比赛离线环境,虽然也不太好记 template<typename type> inline void read(type &x){ x=0;bool flag(0);char ch=getchar(); while(!isdigit(ch)) flag=ch=

2025-08-17
  • 1

最近更新

  • 原码反码和补码
  • 数学中的逻辑运算符
  • 位运算
  • 线段树模版
  • 最近公共祖先

热门标签

oi 线段树 技巧 树上问题 位运算

©2025 星尘客栈-笔记站. 保留部分权利。

使用 Halo 主题 Chirpy