shadow the dog and
[Algorithm] Compare two Binary tree are the same in both value and shape
export default function compare( a: BinaryNode<number> | null, b: BinaryNode<number> | null, ): boolean { if (a null && b null) { return true; } if (a ......
QOJ875 Arrange The Piranhas
题意:大小为 $1 \times n$ 的棋盘上有一些棋子,一次可以选择一个空的位置,将左边第一个棋子往该位置拉一格,右边第一个往这拉一格,操作完这个位置也必须是空的(也就是左右至少得有一格的空隙),问能不能把所有棋子变成目标状态。 将棋子位置的前缀和 $s_i$ 求出,每次操作相当于将一个 $s_ ......
##英语中哪些地名前必须加the?
##英语中哪些地名前必须加the? 在写作中总是分不清什么时候加the,直到最近看到一篇贴子。https://www.englishcurrent.com/grammar/definite-article-place-names-geography/ 把它翻译总结出来: **1. 大陆前不加the, ......
difference between store procedures and functions
Functions can't modify anything and must have at least one parameter. They also have to return a result. Stored procedures don't need a parameter, may ......
论文解读(APCA)《Adaptive prototype and consistency alignment for semi-supervised domain adaptation》
[ Wechat:Y466551 | 付费咨询,非诚勿扰 ] 论文信息 论文标题:Adaptive prototype and consistency alignment for semi-supervised domain adaptation论文作者:Jihong Ouyang、Zhengjie ......
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add
system.webServer 内加 <handlers> <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl. ......
服务器执行hbase shell报错: ipc.AbstractRpcClient: SASL authentication failed. The most likely cause is missing or invalid credentials. Consider 'kinit'.
2023-08-01 21:02:09,923 FATAL [main] ipc.AbstractRpcClient: SASL authentication failed. The most likely cause is missing or invalid credentials. Consi ......
Vika and Her Friends
Smiling & Weeping 早知道思念那么浓烈,不分手就好了 题目链接:Problem - A - Codeforces 题目大意:有n个Vika的朋友在一个n*m的方格中去捉Vika,给出Vika和她朋友的初始位置(坐标),求出Vika能否逃出朋友的追捕。 思路:怎么说╮(╯▽╰)╭ 你知 ......
POJ 1466 Girls and Boys
## [$POJ$ $1466$ $Girls$ $and$ $Boys$](http://poj.org/problem?id=1466) ### 一、题目描述 大意就是有$n$个人,每个人与其他的某几个人有关系,这个关系且称为 **浪漫关系**,然后最后求一个最大的集合,使得 **集合中所有的人 ......
The 10th Shandong Provincial Collegiate Programming Contest
The 10th Shandong Provincial Collegiate Programming Contest K - Happy Equation 思路:a,x的奇偶性相同(因为都对偶数取模),且打表得出a为奇数时,答案为1。(¿) a为偶数时,令 a=t1*2q → ax=t1x*2qx ......
Practice on Codeforces and Atcoder in July
## [$1844E$](https://codeforces.com/problemset/problem/1844/E) 题意: 定义一个矩形 $a$ 是好的,当且仅当其满足以下条件: 1. 矩形中每一个元素 $x$ 都为 $A,B,C$ 其中之一 2. 每一个 $2\times 2$ 的子矩形 ......
Practice on Codeforces and Atcoder in June
# $Practice$ $on$ $codeforces$ $in$ $June$ wk,误删了4个题,但我不想补了 ## [$CF1839D$](https://codeforces.com/contest/1839/problem/D) 题意:给一个正整数序列 $a$,给定 $k$ 个 0,将 ......
Practice on Codeforces and Atcoder in May
# CF补题题解2023.5 说明:CF题直接去luogu看翻译,AT题会附上简要题意 ## [CF1821E](https://codeforces.com/contest/1821/problem/E) 先考虑如何高速计算权值 一个显而易见的贪心是尽量在右边取括号消除,设右括号为 1,左括号为 ......
Removing the remembered login and password list in SQL Server Management Studio
Removing the remembered login and password list in SQL Server Management Studio This works for SQL Server Management Studio v18.0 The file "SqlStudio. ......
关于调用Web API时出现的错误“The underlying connection was closed: An unexpected error occurred on a send”
客户需求,要求调用他们的API来添加,查找,删除数据。 前些时候写了一个测试程序,调用API是OK的,但是今天突然就出现了"The underlying connection was closed: An unexpected error occurred on a send."的错误。当时的第一反 ......
发电站乐队歌词全中译 / The Comprehensive Chinese Translation of Kraftwerk Lyrics
# 发电站乐队歌词全中译 / The Comprehensive Chinese Translation of Kraftwerk Lyrics 发电站所有英文版录音室专辑的歌词中文翻译。《The Mix》和《Minimum-Maximum》为重混(remix)或演唱会专辑,故《Expo 2000》 ......
Custom Elements 和 Shadow DOM了解一下?
### Why 在最近参与的一个项目中,有使用 Vue 创建 Custom Elements的代码,与传统的单 Vue 实例 render 到 DOM 节点有很大不同。所以有了本文。 ### Custom Elements 首先我们来看看怎么创建一个自定义元素,假如我们要实现一个抽屉元素: ```j ......
《Universal and Transferable Adversarial Attacks on Aligned Language Models》论文学习
一、Abstract 尽管“开箱即用”的大型语言模型(例如ChatGPT)能够生成出色的处理令人反感的内容,人们在规避针对LLM的攻击(针对LLM的所谓“越狱”)方面取得了一些成功,但在不断地攻防实践中这些防御手段却很脆弱,研究员在自动对抗性提示(prompt)生成方面也取得了一些突破。 在本文中, ......
2023牛客暑期多校5 I The Yakumo Family
# 题意 Ran feels boring at home and wants to propose a math problem with Yukari and Chen! So, here's The Yakumo Family Problem: Given an integer array a ......
JDK 版本异常导致 flutter doctor --android-licenses 出错 (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 52.0
flutter doctor --android-licenses Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.U ......
Name Mangling and extern “C” in C++
Since C++ supports function overloading, additional information has to be added to function names (called Name mangling) to avoid conflicts in binary ......
在多表联合查询中,使用“join”连接与使用“where and”语句的区别
在多表联合查询中,使用“join”连接通常比使用“where and”语句效率更高。 使用“join”连接时,数据库可以根据表之间的关系进行优化,执行更有效的查询计划。数据库引擎可以有效地使用索引和其他优化技术来加快查询速度。此外,使用“join”连接可以更清晰地表达查询的意图,提高代码的可读性和可 ......
Efficient and Accurate Diagnostic Tool
Diagnostic tools play a crucial role in the automotive industry, allowing technicians to accurately identify and troubleshoot vehicle issues. Among th ......
The difference between Chrome and Firefox
The difference about digital certificates. # Firefox See the alarm info. 之Field/Order/Continuity + Dedkind分割
Number Theory: The set of Real实数系构造 实数公理化(R, +, ×, ≥)之Field/Order/Continuity F(域):定义 +, ×, ≥: +: 加法的 交换律、结合律、0单位元、负元 ×: 乘法的 交换律、结合律、1单位元、逆元、乘法×对加法+的分配 ......
【每日一题】Problem 653B. Bear and Compressing
[原题](https://codeforces.com/contest/653/problem/B) #### 解决思路 根据当前字符串的首字符进行深度递归即可 ##### 误区 字符串是从头开始匹配的,因此只需要对首字符进行替换 ```C++ #include int dfs(std::map> ......
Python报错 | ImportError: To be able to use evaluate-metric/seqeval, you need to install the following dependencies['seqeval'] using 'pip install seqeval' for instance'
**报错信息** 使用`metric = evaluate.load("seqeval")`的时候,报如下错误: ```python ImportError: To be able to use evaluate-metric/seqeval, you need to install the fol ......
Angular:error TS2717: Subsequent property declarations must have the same type. Property 'contentRect' mu st be of type 'DOMRectReadOnly', but here has type 'DOMRectReadOnly'.
# 解决方案 在`tsconfig.json`的`compilerOptions`选项中添加如下内容`"skipLibCheck": true`。 如下图所示  首先我们需要用kmp的fail建树,然后需要利用到欧拉反演。 $$n=\sum_{d|n} \varphi(d)$$ 对于这题来说 $$(i,j)=\sum_{d|(i ......
3.分支结构and习题
# 3.分支结构and习题 ## 一.语法 ### 1. if 语句 格式: ```python if 条件: 条件成立执行的语句 ``` ```python if 6>3: print("条件成立") ``` ### 2. if - else 语句 格式: ```python if 条件: 条件成 ......