自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 问答 (1)
  • 收藏
  • 关注

原创 Jupyter Notebook

目录hot key模式切换hot key模式切换两个模式:command mode 和 cell modecell 模式下:Enter -> command modecommand 模式下:Esc -> cell mode

2021-09-16 10:45:42 94

原创 常用基础算法

目录快速幂二分高精度快速幂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 58

原创 树状数组(BIT)

树状数组基本操作单点修改 + 区间查询struct BIT{ int len; int e[N]; BIT(int n, int *a) { len = n; memset(e, 0, sizeof e); rep(i, 1, n) { cin >> a[i]; add(i, a[i]); } } int lowbit(int x) { return x & (-x); } // 单点修改 void add(int x, int v

2021-08-30 14:12:41 103

原创 常用数字+常用操作

1e9 12! = 39916800

2021-08-19 18:49:33 71

原创 Codeforces Round #739 (Div. 3)

文章目录ABCDEAPolycarp doesn’t like integers that are divisible by 3 or end with the digit 3 in their decimal representation.t (1≤t≤100) k (1≤k≤1000)题意: 找出第 k 个既不是 3 的倍数,也不是以 3 结尾的正整数。思路: 打表 找出符合条件的前 1000 个数#include<bits/stdc++.h>using namespace s

2021-08-19 09:29:17 123

原创 位运算(公式 + 技巧)

1. &1 + 1 = 12. |3. ~4. ^5. <<6. >>

2021-08-18 17:38:31 959 1

原创 常用代码模板 + 函数

#include<bits/stdc++.h>using namespace std;using ll = long long;using pll = pair<int, int>;

2021-08-18 16:19:35 70

原创 STL(Standrd Template Library)

引用 Reference// 节省空间,增强代码可读性const int & p = f[0]; // 函数传参(传地址)void _swap(int & a, int & b) { // _swap 与 swap 区分 a ^= b ^= a ^= b;}结构体 Structstruct _class { int num; }

2021-08-18 15:34:04 74

原创 并查集 DSU(Disjoint Set Union)

- 并查集 DSUstruct DSU { vector<int> f, siz; DSU(int n) : f(n), siz(n, 1) { iota(f.begin(), f.end(), 0); } int leader(int x) { while (x != f[x]) x = f[x] = f[f[x]]; return x; } bool same(int x, int y) { return leader

2021-08-17 19:17:02 131

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除