1、查询Student表中的所有记录的Sname、Ssex和Class列。 SELECT sname,ssex,class from student 2、 查询教师所有的单位即不重复的Depart列。 备注:不去重查到的教师所有depart select depart FROM teacher 去重 ...
分类:
数据库 时间:
2021-06-28 18:35:45
阅读次数:
0
搬个官方题解 class Solution { bool valid(const string& str) {//验证是否合法 int balance = 0; for (char c : str) { if (c == '(') { ++balance; } else { --balance; } ...
分类:
其他好文 时间:
2021-06-28 18:28:25
阅读次数:
0
最近跟着技术胖学习了vue3 和 typescript 记录一下自己的学习过程 现在写一个简单的菜单选择功能 1 <template> 2 <div class="hello"> 3 <div> 4 <h2>欢迎光临呱呱的小店</h2> 5 <div>请选择你喜欢的服务员</div> 6 </div ...
分类:
其他好文 时间:
2021-06-28 18:26:24
阅读次数:
0
1、Cannot find module 'babel-preset-es2015' 配置.babelrc之后,npm run serve无法启动 "presets": [["es2015", { "modules": false }]], "plugins": [ [ "component", { ...
分类:
其他好文 时间:
2021-06-28 18:24:11
阅读次数:
0
unit DataStructUnit; interface type txmlvulrd =record sname:string; svul:string; end; txmlbasedDataStruct = class private Fifissubitem: Boolean; funct ...
分类:
其他好文 时间:
2021-06-28 18:17:02
阅读次数:
0
新建文件后缀名为.java 编写代码 public class Hello{ public static void main(String[] args) { System.out.print("Hello,world!"); } } 通过javac编译 java文件,生成一个同名class文件 运 ...
分类:
编程语言 时间:
2021-06-28 18:02:14
阅读次数:
0
zkClient操作 基本增删改查代码如下 public class createSession { public static void main(String[] args) { ZkClient zkClient = new ZkClient("119.45.52.68:2181"); Sys ...
分类:
其他好文 时间:
2021-06-28 18:01:05
阅读次数:
0
sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backu ...
分类:
其他好文 时间:
2021-06-28 17:56:12
阅读次数:
0
两种写法,主要是复杂度的证明上比较有趣 1. 并查集+BFS 对于每个点,最多只会进入队列一次,这部分的复杂度是O(n) 每个点最多会在 for (int i = find(1); i <= n; i = find(i + 1))这段话中被访问 \(edge[i].size() + 1\) 次,因为 ...
分类:
其他好文 时间:
2021-06-28 17:55:38
阅读次数:
0
给定 \(n\) 个点的树,要求一种树剖方案使得"代价"尽可能小。 \(n\le 10^5\)。 设 \(f_u\) 表示只考虑 \(u\) 的子树时的代价,枚举重链 \((u,v)\),其中 \(v\) 是叶子。 代价有两部分,一部分是重链连出的子树的 \(f+siz\) 之和,还有一部分是重链的 ...
分类:
其他好文 时间:
2021-06-28 17:52:23
阅读次数:
0