- 博客(6)
- 收藏
- 关注
原创 vim 代码段整体左右移动
1. 设置shift间移动间距 sudo vim /etc/vim/vimrc在文件末尾中添加如下一行设置参数,修改shift移动距离为4个字符间距 set shiftwidth=42.方法1(快捷方法) : 按 Esc :1,10, < 1至10行左移4个字符间距 :1,10, > 右移 按 enter3.方法22.1用vim编辑器打开想要修改的文件 ...
2022-02-01 14:36:13
3903
原创 【蓝桥杯】2017年第八届真题-合根植物
#include<iostream>#include<vector>#include<utility>#include<unordered_set>using namespace std;class Plants{ vector<int> pre;public: Plants(){ pre.resize(1000001); } int getNum(){ int m,n.
2021-10-09 09:53:13
172
原创 【蓝桥杯】历届试题——国王的烦恼
#include<iostream>#include<vector>#include<algorithm>using namespace std;static bool cmp(vector<int>&m,vector<int>&n){ return m[2]>n[2]; } class Protest { vector<int> pre;public: int .
2021-10-09 09:10:01
161
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人