09 2023 档案
摘要:bash 使用反引号包裹命令可得到命令的输出:var=`command` [ -z string ] 字符串不为空则为真 getopts 内置于 bash 中,用于解析参数,只支持单个字符参数,不支持形如 --help 的长参数
阅读全文
摘要:MIT-Missing-Semester https://missing-semester-cn.github.io/ 1.shell cd - 返回之前的目录 >> 输出重定向为追加而不是覆盖 目录权限:r 查看目录文件列表,w 在目录中重命名、删除、创建文件,x 搜索权限,是否允许进入该目录 t
阅读全文
摘要:## 图论 tarjan 缩强连通分量 ```cpp int dfn[N],low[N],dfscnt; int stack[N],top; int scc[N],scccnt; void tarjan(int u){ dfn[u]=low[u]=++dfscnt; stack[top++]=u;
阅读全文
摘要:## 数据结构 普通堆、可删堆 ```cpp struct Node{ inline int operator 1){ fa=i>>1; if(a[fa]b;} std::priority_queue,int(*)(const int &a,const int &b)>pque(pqueCmp);
阅读全文