artifactory notes on

Codeforces 280C Game on Tree

设 $p_i$ 为 $i$ 涂色或不涂色,$1$ 为涂,$0$ 为不涂,答案即为 $E[\sum_{i = 1}^n p_i]$ 然后转化一下柿子:$\sum_{i=1}^nE[p_i]$,这就很好求了,单独求每个点 $E[p_i]$ 的值就行了 考虑对于 $u$ 点,$p_u = 1$,即能被涂需 ......
Codeforces 280C Game Tree 280

Elasticsearch专题精讲——Installing Elasticsearch——Elastic Cloud on Kubernetes(ECK)

Installing Elasticsearch —— Elastic Cloud on Kubernetes(ECK) https://www.elastic.co/guide/en/cloud-on-k8s/current/k8s_supported_versions.html 一、Suppor ......

April_Note

tea,xtea,xxtea 在逆向过程中,常常会遇到tea加密,本文将系统地总结一下tea,xtea,xxtea tea 简介 TEA加密算法是一种分组密码算法,其明文密文块为64比特,密钥长度为128比特。TEA算法利用不断增加的Delta(黄金分割率)值作为变化,使得每轮的加密是不同,该加密算 ......
April_Note April Note

[ABC148F] Playing Tag on Tree

2023-03-04 题目 题目传送门 翻译 翻译 难度&重要性(1~10):5 题目来源 AtCoder 题目算法 最短路 解题思路 考虑到 T 想活得久, A 想尽早追上 T ,所以我们就将问题转化为在树上找一条最长链,使得 T 能比 A 先到达这条链。 所以我们就可以在树上跑两遍单源最短路,因 ......
Playing 148F Tree ABC 148

Credit note or Credit memo

A credit note or credit memo is a commercial document issued by a seller to a buyer. Credit notes act as a source document for the sales return journa ......
Credit note memo or

hive on spark报错

Error in query: Detected implicit cartesian product for LEFT OUTER join between logical plansUnion Join condition is missing or trivial.Either: use th ......
spark hive on

Hadoop启动集群报错:Starting namenodes on [hadoop01] hadoop01: root@hadoop01: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).

搭建三个hadoop集群的时候,master没有启动namenode和datanode, 报错: Starting namenodes on [hadoop01]hadoop01: root@hadoop01: Permission denied (publickey,gssapi-keyex,gs ......

论文阅读笔记《Residual Physics Learning and System Identification for Sim to real Transfer of Policies on Buoyancy Assisted Legged Robots》

Residual Physics Learning and System Identification for Sim to real Transfer of Policies on Buoyancy Assisted Legged Robots 发表于2023年。论文较新,未找到发表期刊。 基于浮 ......

User installations are disabled via policy on the machine. 安装python

User installations are disabled via policy on the machine. 解决办法 1、在运行里输入gpedit.msc;(group policy)组策略 2、计算机配置管理>>管理模板>>windows组件>>windows Installer>>禁止 ......
installations disabled machine policy python

ZGCTF_note

这是一道很简单的的题,甚至都说不出来它有什么考点,如果非要说的话,可能需要对ida、gdb、栈不那么陌生吧。 ......
ZGCTF_note ZGCTF note

[INS-42017] The Grid home is inconsistent on the following nodes: [11grac2]

1、一套11.2.0.4 RAC的测试环境,集群被捣鼓坏了,打算deconfig后,运行config.sh脚本重新配置集群。 2、运行config.sh脚本,在检测环境时,遇到如下故障: [INS-42017] The Grid home is inconsistent on the followi ......
inconsistent following 42017 grac2 nodes

Codeforces Round 847 (Div. 3) G.Tokens on Graph (构造)

传送门 题目大意 ** 给定一个无向图,我们定义图中有四种点,一种是黑色的点表示终点,并且黑色的点始终是1号点,一种是红色的点,一种是灰色的点,最后一种就是没有颜色的点。** ** 游戏规则:我们必须移动任意一个灰色的点到相邻的点上,如果灰色的点移动到了红色的点上,那么我们可以移动其他灰色的点继续上 ......
Codeforces Tokens Round Graph 847

git_note

git常用操作命令: 1.创建本地仓库,首先点进一个仓库文件夹,右键 Git Bash Here 2. git init 进入初始化,自动创建 .git隐藏文件夹 3. git add . 意思是将文件夹里的所有文件放入暂存区 4. git commit -m"阿巴阿巴" 意思是进行提交,引号里的部 ......
git_note note git

join on(内连接)

内连接:join on,取得是交集 语法格式:select (字段) from (表1) join (表2) on (关联字段) grade表 student表 join on举例: 1.两张表相连,取交集 id=1006在另一个表没有对应的数据所以不显示 2.自连接 查询部门的上一级 同一张表进行 ......
join

Vue3---error xx should be on a new line

ESLint: ':render-header' should be on a new line.(vue/max-attributes-per-line) 此问题是由于.eslintrc.js文件中的vue/max-attributes-per-line配置错误产生的 "vue/max-attri ......
should error Vue3 line Vue

10 iozone Examples for Disk I/O Performance Measurement on Linux

https://www.thegeekstuff.com/2011/05/iozone-examples/ As we discussed in our Linux performance monitoring introduction article, measuring IO subsystem ......

迁移学习(MEnsA)《MEnsA: Mix-up Ensemble Average for Unsupervised Multi Target Domain Adaptation on 3D Point Clouds》

论文信息 论文标题:MEnsA: Mix-up Ensemble Average for Unsupervised Multi Target Domain Adaptation on 3D Point Clouds论文作者:Ashish Sinha, Jonghyun Choi论文来源:2023 C ......

some basic operations on mysql8

it's my first time using version 8. keep a note just for practice. $ sudo docker images | grep mysql mysql latest 8189e588b0e8 6 days ago 564MB $ sudo ......
operations mysql8 basic mysql some

Numerical Approximation Chapter 6 Notes

Weierstrass theorem approximation之间也有高低,所以我们在compact subset里面会有best approximation. 但是以polynomial interpolation为例,随着不断选更多的Chebyshev interpolation point ......
Approximation Numerical Chapter Notes

Codeforces Round 689 (Div. 2, based on Zed Code Competition)D.Divide and Summarize

题意: 我们给定包含n个正整数的数组,我们可以对这个数组执行一些操作之后,可以让数组内元素的和成为我们想要的数。 我们对数组的执行操作一共分为三个步骤,第一个步骤是我们首先计算出数组的中间值mid。这里mid的定义不是中位数也不是均值,而是最大值和最小值的均值。也就是mid = (min + max ......

Hive On Spark调优

第1章 集群环境概述 1.1 集群配置概述 本课程所用集群由5台节点构成 其中2台为master节点: 用于部署HDFS的NameNode Yarn的ResourceManager 另外3台为worker节点,用于部署HDFS的DataNode、Yarn的NodeManager等角色。 Master ......
Spark Hive On

AtCoder Regular Contest 114 D Moving Pieces on Line

洛谷传送门 AtCoder 传送门 挺有意思的题。 首先显然地,一个棋子不会走回头路。于是一个棋子沿着边走的效果就是区间异或。 更进一步,设 $s_i$ 为 $i-1 \to i$ 的边颜色与 $i \to i+1$ 的边颜色是否相同(差分),相当于对于每个 $i$ 都选择 $s_{a_i}$ 和 ......
AtCoder Regular Contest Moving Pieces

xv6 labs Copy-On-Write fork

虚拟内存提供了一个中间层:内核可以通过将PTE标记为invalid或者read-only来拦截内存引用,这会导致page fault,此时,你可以通过修改PTE来改变地址的含义。在计算机系统中有一种说法,任何系统问题都可以通过中间层解决。lazy allocation实验提供了一个例子,本次实验将探 ......
Copy-On-Write Write labs Copy fork

mysql使用group by 异常on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

临时解决 SET @@global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'; ......

03-v-on的事件修饰符

title: 03-v-on的事件修饰符 publish: true v-on的事件修饰符 v-on的常见事件修饰符 v-on 提供了很多事件修饰符来辅助实现一些功能。事件修饰符有如下: .stop 阻止冒泡。本质是调用 event.stopPropagation()。 .prevent 阻止默认事 ......
事件 v-on 03 on

【题解】[ABC248G] GCD cost on the tree

「八云紫」无数次痛苦地询问,为什么我们还活着? ……而「古明地恋」从不会回答。 恋恋闭上了觉之眼。 思路 容斥 + dp. $\gcd$ 相关,考虑 $\mu$ 反演或者 $\varphi$ 反演。 本质上都和容斥差不多,不如直接一步到位考虑容斥。 把权值拆成 $\gcd$ 和对应的方案数两部分,考 ......
题解 248G cost tree ABC

Uva--122 Trees on the level(二叉树的层次遍历)

记录 23:27 2023-4-20 https://onlinejudge.org/external/1/122.pdf reference:《算法竞赛入门经典第二版》例题6-7 二叉树的层次遍历,这里是直接复制了作者的代码。(之前在我的数据结构学习里面手写过树、二叉树、AVL树(说是手写,其实也 ......
层次 Trees level Uva 122

Cause: java.sql.SQLException: Error setting driver on UnpooledDataSource. Cause: java.lang.ClassNot

(1)一开始的时候看到 Cause: java.sql.SQLException: 觉得是sql语句写错了,经过检查sql并没有错误 (2)再次看了下报错,后面还有半句话 Error setting driver on UnpooledDataSource.Cause: java.lang.Clas ......

Oracle“ORA-38104: 无法更新ON子句中引用的列”解决方式

参考: MERGE INTO QLIK_CONFIG_MAPPING_REPORT USING dual ON (CONFIG_ID=2 AND REPORT_ID=6) WHEN MATCHED THEN UPDATE SET "CONFIG_ID" = 2,"REPORT_ID"=6 WHEN ......
子句 方式 Oracle 38104 ORA

Install .NET on Windows

https://learn.microsoft.com/en-us/dotnet/core/install/windows?tabs=net60#dependencies https://blog.csdn.net/weixin_43596442/article/details/119801821 ......
Install Windows NET on