![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Template
ACM
_LWJ
这个作者很懒,什么都没留下…
展开
-
位运算(公式 + 技巧)
1. & 1 + 1 = 1 2. | 3. ~ 4. ^ 5. << 6. >>原创 2021-08-18 17:38:31 · 956 阅读 · 1 评论 -
STL(Standrd Template Library)
引用 Reference // 节省空间,增强代码可读性 const int & p = f[0]; // 函数传参(传地址) void _swap(int & a, int & b) { // _swap 与 swap 区分 a ^= b ^= a ^= b; } 结构体 Struct struct _class { int num; }原创 2021-08-18 15:34:04 · 74 阅读 · 0 评论 -
常用代码模板 + 函数
#include<bits/stdc++.h> using namespace std; using ll = long long; using pll = pair<int, int>;原创 2021-08-18 16:19:35 · 70 阅读 · 0 评论 -
常用数字+常用操作
1e9 12! = 39916800原创 2021-08-19 18:49:33 · 70 阅读 · 0 评论 -
常用基础算法
目录快速幂二分高精度 快速幂 typedef long long ll; // 常规快速幂 ll qp(ll a, ll b) { ll ans = 1; while (b) { if (b & 1) ans *= a; a *= a; b >>= 1; } return ans; } // 模下快速幂 ll qp(ll a, ll b, ll p) { ll ans = 1 % p; while (b) { if (b & 1) ans = ans原创 2021-09-04 19:43:42 · 57 阅读 · 0 评论