摘要: https://www.cnblogs.com/lizhang4/p/7325086.html 复制 prefix [ + vim风格选择复制 新建session tmux new -s name 为session命名 prefix $ 新建window prefix c 切换window pref 阅读全文
posted @ 2019-05-07 17:04 shulin15 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1. 修改默认shell为zsh chsh -s /bin/zsh echo $SHELL$ 2. 下载oh-my-zsh wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh 3. 阅读全文
posted @ 2019-05-07 16:43 shulin15 阅读(241) 评论(0) 推荐(0) 编辑
摘要: lower_bound: [l, r)区间内大于等于val的第一个位置 upper_bound: [l, r)区间内大于val的第一个位置 [l, r)区间内小于等于val的第一个位置:upper_bound(l, r, val) - 1 [l, r)区间内小于val的第一个位置:lower_bou 阅读全文
posted @ 2018-11-17 11:27 shulin15 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 8 using namespace std; 9 int n; 10 const int maxn=1e3+2; 11 char str[maxn]; 12 string rel; 13 void handle(){ 14 int l... 阅读全文
posted @ 2018-06-22 21:44 shulin15 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include using namespace std; int n; string cmd; int now=0; struct node{ int attack; int health; node(int _attack,int _health):attac... 阅读全文
posted @ 2018-06-22 19:58 shulin15 阅读(486) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include using namespace std; const int maxn=1e2+2; char str[maxn]; void line(int l,int r){ int i=l; while(str[i]=='#'||str[i]=='*'||str[i]==' ') i++; ... 阅读全文
posted @ 2018-06-22 17:43 shulin15 阅读(276) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include using namespace std; int n,m; const int maxn=82; char str[maxn]; bool flag; map mp; string handle(string fa){ int len=strlen(str); len--... 阅读全文
posted @ 2018-06-22 17:42 shulin15 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std; 10 int n,m; 11 const int maxn=1e2+2; 12 string rule[maxn],value[max... 阅读全文
posted @ 2018-06-20 14:27 shulin15 阅读(842) 评论(0) 推荐(0) 编辑
摘要: http://hihocoder.com/problemset/problem/1369?sid=1328132 参考 https://blog.csdn.net/a1799342217/article/details/73195243 https://blog.csdn.net/a51978118 阅读全文
posted @ 2018-06-19 20:41 shulin15 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 【AC】 1 #include<iostream> 2 #include<math.h> 3 #include<cstring> 4 5 using namespace std; 6 7 typedef long long LL; 8 9 int N,M; 10 int type,l,r,v; 11 阅读全文
posted @ 2018-06-19 12:40 shulin15 阅读(270) 评论(0) 推荐(0) 编辑