ergodicity liouville theorem and

题解 Cow and Snacks

被黄题创死了2333 [题目链接](https://www.luogu.com.cn/problem/CF1209D) 首先肯定有一个贪心的想法:尽量使得人们拿的花重复,即尽量使得每个人都拿一束花。当然第一个人必须拿两束。 接着思考:如何找出有几个人是必须拿两束花的。 其实很简单,当 $A,B$ 两 ......
题解 Snacks Cow and

20230818 CHAPTER 6 Functions and the Stack 函数和栈

x31 arm SP寄存器 16byte对齐 调用函数,必须保存当前位置以便函数调用完成后返回,the link register (LR) which is X30, branch with link (BL) bl 与b 类似,不同的是 bl 在跳转前把下一条指令的地址保存在LR寄存器中,这样b ......
函数 Functions 20230818 CHAPTER Stack

WPF开发快速入门【7】WPF的拖放功能(Drag and Drop)

概述 本文描述WPF的拖放功能(Drag and Drop)。 拖放功能涉及到两个功能,一个就是拖,一个是放。拖放可以发生在两个控件之间,也可以在一个控件自己内部拖放。假设界面上有两个控件,一个TreeView,一个ListView,那么可能发生的拖动有以下几种情况: 1、TreeView -> L ......
WPF 功能 Drag Drop and

Mike and strings 题解

[题目传送门](https://www.luogu.com.cn/problem/CF798B) 一道字符串题。 由于 $n$ 非常小,可以暴力枚举字符串。我们可以枚举其中一个字符串 $s_i$,然后让其他的字符串变成 $s_i$,最后记录一下次数,取一个最小值即可。 在枚举第二个字符串的时候可以将 ......
题解 strings Mike and

npm加参数--host启动报错 Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling解决方法

参考:https://blog.csdn.net/qq_41664096/article/details/118961381 使用以下命令启动npm只能本机访问 ``` npm run dev ``` 如果需要网络访问则需要加参数--host ``` npm run dev --host 0.0.0 ......

Failed to start LVS and VRRP High Availability Monitor.-keepalived--九五小庞

Keepalive启动报错,Fail to start LVS and VRRP High Availability Monitor. 输入:systemctl status keepalived,显示信息如下: [root@m2 keepalived]# service keepalived st ......
Availability keepalived Monitor Failed start

[AGC001D] Arrays and Palindrome 题解

一道比较神秘的构造题。 ### 思路 考虑如何通过回文串的性质将所有字符连接起来。 容易发现本题需要使用通过回文串类似连边的方式将所有字符变为一整个连通块。 考虑三种情况。 1. 偶数连偶数 前面的偶数将最后一个字符与后面的偶数前 $len-1$ 个字符组成一个回文串。 2. 偶数连奇数 前面的偶数 ......
题解 Palindrome Arrays 001D AGC

SP31972 ADAPOWER - Ada and Power

[题目链接](https://www.luogu.com.cn/problem/SP31972) ## 题目大意 给定 $1$ 个大小为 $n \times n$ 的矩阵 $a$,每次进行如下 $2$ 种操作的其中一种: 1. 将 $a_{i,j}(i \in[1,x],j \in[1,y])$ 的 ......
ADAPOWER 31972 Power Ada and

CF276C Little Girl and Maximum Sum 题解

[题目链接](https://www.luogu.com.cn/problem/CF276C) ## 题目大意 通过修改序列 $a$ 中的数的顺序,使 $$ \sum_{i=1}^q\sum_{j=l}^ra[j] $$ 最大,并输出它的值。 ## 思路 一道简单贪心 $+$ 差分,通过差分的优秀的 ......
题解 Maximum Little 276C Girl

HMMs and MRF and CRF

HMMs and MRF and CRF HMMs(隐马尔科夫模型): 状态序列不能直接被观测到(hidden); 每一个观测被认为是状态序列的随机函数; 状态转移矩阵是随机函数,根据转移概率矩阵来改变状态。 HMMs与MRF的区别是只包含标号场变量,不包括观测场变量。 MRF(马尔科夫随机场) 有 ......
and HMMs CRF MRF

AND (NVL(VP1.C_DV_PARAMS_VALUE,' ') <> '是' OR NVL(VP2.C_PARAMS,' ') <> '是')

SELECT A.C_PA_CODE FROM T_FINANCIAL_VAL A LEFT JOIN VB_AO_PARAMS VP1 ON VP1.C_PORT_CODE = A.C_PORT_CODE AND VP1.C_DSP_CODE = 'AO_QT_IFRS9_001' LEFT JO ......
39 PARAMS C_DV_PARAMS_VALUE NVL C_PARAMS

Flink and Kafka Streams: a Comparison and Guideline for Users

This blog post is written jointly by Stephan Ewen, CTO of data Artisans, and Neha Narkhede, CTO of Confluent. Stephan Ewen is PMC member of Apache Fli ......
Comparison and Guideline Streams Flink

CF1305F Kuroni and the Punishment

# CF1305F Kuroni and the Punishment 不难发现答案上界为 $n$。 考虑我们能做什么?我们可以对一个 gcd 快速求出最少操作次数。 这启发我们将 gcd 确定在某个范围后暴力对每个 gcd 做上面的操作。 gcd 怎么来?从 $a$ 中来。如果确定 $a_i$ 的 ......
Punishment Kuroni 1305F 1305 and

[CF1730D] Prefixes and Suffixes 题解

首先发现后缀和前缀比较不好看,所以翻转第二个字符串,记为 $T'$。 这样就变成了操作两个字符串的前缀。 观察发现,操作 $k$ 等价于交换 $S[1\sim k]$ 和 $T'[1\sim k]$,然后翻转 $S[1\sim k]$ 和 $T'[1\sim k]$。 结论 1:同一个下标上的字符对 ......
题解 Prefixes Suffixes 1730D 1730

D. Trees and Segments

D. Trees and Segments The teachers of the Summer Informatics School decided to plant $n$ trees in a row, and it was decided to plant only oaks and fir ......
Segments Trees and

C++ Constructor And Destructor

if you have problems with constructors and destructors, you can insert such print statements in constructors for your real classes to see that they wo ......
Constructor Destructor And

C++ Cast And Go Cast

## C++ * A static_cast can be used to explicitly convert between related pointer types, such as void* and double* * reinterpret_cast can cast between ......
Cast And Go

springmvc 开启异步请求报错 Java code using the Servlet API or by adding "true" to servlet and filter declarations in web.xml.

报错内容: java.lang.IllegalStateException: Async support must be enabled on a servlet and for all filters involved in async request processing. This is do ......
quot declarations springmvc Servlet servlet

CF437C The Child and Toy

### 题目大意 $n$ 个带权点,$m$ 条无向边,删除一个点就要付出所有与之连接且没有被删除的点的点权之和的代价。 求删除所有点的最小代价。 ### 思路 考虑点的贡献异常麻烦,我们可以把点的贡献转化为边的贡献。 对于一条边,我们有如下几点: 1. 伴随着所有的点被删掉,所有的边也会被删掉; 2 ......
Child 437C 437 The and

CF1060E Sergey and Subway 题解

[题面](https://codeforces.com/problemset/problem/1060/E) 由题意可知,在原图中经过边数为 $2$ 的一对点,在新图中经过边数为 $1$。所以每对点在新图中的距离为: $$ \begin{aligned} \lceil \frac{dis(i,j)} ......
题解 Sergey Subway 1060E 1060

【转载】The Dog and the Shadow

## Article Format Source ChatGPT ## Main Content Source Title: The City Mouse and the Country Mouse Source: https://www.zhihu.com/question/263840407/a ......
Shadow The Dog and the

AGC064C Erase and Divide Game

[题面传送门](https://atcoder.jp/contests/agc064/tasks/agc064_c) 首先考虑你只插入若干个数怎么做:按位从低到高插入一棵 Trie,问题就变成:在 Trie 上每次可以往左儿子走或者往右儿子走,如果当某个人操作的时候为空节点那么这个人就输了。 如果我 ......
Divide Erase 064C Game AGC

NetSuite: Get specific Custom Record Types and related sub Custom Fields

背景 以前当使用search.create({})来获取数据时,我们需要制定特定的数据返回列;例如:search.createColumn(options) 而query可以使用 SELECT * FROM 来动态返回所有的数据列(这在有的时候是一个优点),那么如何让search也动态返回所有的数据 ......
Custom NetSuite specific related Fields

CodeForces 1858D Trees and Segments

[洛谷传送门](https://www.luogu.com.cn/problem/CF1858D "洛谷传送门") [CF 传送门](https://codeforces.com/problemset/problem/1858/D "CF 传送门") 美丽度的式子可以写成 $(a - 1) \tim ......
CodeForces Segments 1858D Trees 1858

[Typescript] Don't compare generic function, instead compare function arguments and return type

Typescript has its problem that when you try to compare generic function to a function signature, you will run into issue. Because for one function, i ......

Unveiling the Power of Diagnostic Tools: Cat Caterpillar ET, Volvo Vocom II Interface, JLR DoIP VCI, WABCO Diagnostic Kit, and GM Tech 2

In the realm of automotive diagnostics, the right tools can make all the difference. Whether you're a professional mechanic or an avid car enthusiast, ......

card,swallow-and-electron-cloud

贺卡,燕子和电子云 Created: 2023-07-16T17:52+08:00 Published: 2023-08-15T17:36+08:00 Categories: Fragment [toc] # 贺卡 翻日记,看到高三时候班级举行过随机互赠贺卡的活动,对于这件事我只有一点点模糊的印象, ......

CF1513D GCD and MST 题解

## 题面 对于一个序列,若有 $(i,j)(i typedef long long valueType; typedef std::vector ValueVector; typedef std::pair ValuePair; typedef std::vector PairVector; ty ......
题解 1513D 1513 GCD and

CF1859D Andrey and Escape from Capygrad 题解

## 思路 思考贪心,容易得出我们只有不断往右跳跃才能走得更远。 所以,对于一个线段 $[l, r]$ 可以轻易到达 $[a, b]$,那么只对 $[l, b]$ 有用,这些点都可以跳到 $b$,$[b + 1, r]$ 这一部分不能往回跳,所以不用考虑。 那么我们就可以把这些线段都当成 $[l, ......
题解 Capygrad Andrey Escape 1859D

Go - Keywords, Operators and punctuation

Keywords The following keywords are reserved and may not be used as identifiers. break default func interface select case defer go map struct chan els ......
punctuation Operators Keywords and Go