前序遍历: result = [] st = [root] while st: node = st.pop(-1) if node.right: st.append(node.right) if node.left: st.append(node.left) result.append(node.v ...
分类:
其他好文 时间:
2021-06-28 20:43:55
阅读次数:
0
#include <bits/stdc++.h> using namespace std; using ll = long long ; ll euler(ll n){ ll k=n; for(ll i=2;i*i<=n;i++) if(n%i==0){ k-=k/i; while(n%i==0)n ...
分类:
其他好文 时间:
2021-06-28 20:14:20
阅读次数:
0
Luogu P4926 [1007]倍杀测量者 取对数化除为减。 或者用乘积最短路。 注意图不一定连通。 #include<bits/stdc++.h> using namespace std; #define N 1000005 const double eps = 1e-12; struct g ...
分类:
其他好文 时间:
2021-06-28 19:51:46
阅读次数:
0
select t.type,t.name 表名 from sysobjects t where t.type in ('U','v' ,'TR') and t.name like '%%';select t.type,t.name 表名,f.name 列名 from sysobjects t, sy ...
分类:
数据库 时间:
2021-06-28 18:13:06
阅读次数:
0
EmbeddedChannel 概述 ChannelHandler 是 Netty 程序的关键元素,所以彻底地测试它们应该是你的开发过程中的一个标准部分,EmbeddedChannel 是 Netty 专门为改进针对 ChannelHandler 的单元测试而提供的。Netty 提供了它所谓的 Em ...
分类:
Web程序 时间:
2021-06-28 17:52:05
阅读次数:
0
mysql引擎 create table t_mysql ( id Int32, name String, ) engine = MySQL('127.0.0.1:3306', 'test', 't', 'root', '123456'); mysql进行ddl: alter table t mod ...
分类:
其他好文 时间:
2021-06-25 16:44:37
阅读次数:
0
1、创建磁盘镜像文件 dd if= /dev/zero of=/xxx/xxx.img bs=xxxM count=xxx 2、挂载到dev losetup /dev/loopx(自定义一个loop 如 loop1、loop2) /xxx/xxx.img (刚才那个文件) 3、格式化一下挂载的loo ...
分类:
系统相关 时间:
2021-06-24 18:15:53
阅读次数:
0
原文链接:https://blog.csdn.net/qq_33207292/article/details/102624553 1.关于js js是单线程的,即主线程就只有一个 2.js事件循环 除了广义的同步任务和异步任务,对任务更细致费划分: macro-task(宏任务):包括整体代码 sc ...
分类:
Web程序 时间:
2021-06-23 16:38:08
阅读次数:
0
filezilla 3.7.2 处理事件依赖于一个自己封装的事件处理器。名字叫event_loop类。 这个类在libfillezilla工程种。作为filezilla的一个动态库。因为这个处理器对于filezilla十分重要。所以借此机会学习以下。 event_loop 头文件在 libfilez ...
分类:
其他好文 时间:
2021-06-23 16:26:25
阅读次数:
0
Codeforces Round #726 (Div. 2) A - Arithmetic Array int main() { IOS; for (cin >> _; _; --_) { cin >> n; m = -n; rep (i, 1, n) cin >> k, m += k; cout ...
分类:
其他好文 时间:
2021-06-22 18:41:35
阅读次数:
0