monocarp and set the

this.$set的使用方法

//对象的属性sex的值更新为"男" let obj = {name:"六四",age:18,sex:"女"} this.$set(obj,"sex","男") //第一个参数是对象,第二个参数是更新的属性名称,第三个参数是新的内容 //更新之后的obj是 {name:"六四",age:18,sex ......
使用方法 方法 this set

CF1060E Sergey and Subway

### 题目大意 给定一棵树,每两个有边直接相连的点之间距离为 $1$。现在我们要给所有原来距离为 $2$ 的城市之间修一条长度为 $1$ 的道路。 记 $\operatorname{dis}(a,b)$ 表示 $a,b$ 之间的最短距离,求 $$\sum_{i=1}^n\sum^{n}_{j=i+ ......
Sergey Subway 1060E 1060 and

CF1101F Trucks and Cities

### 题目大意 有 $n$ 个城市坐落在一条数轴上,第 $i$ 个城市位于位置 $a_i$。 城市之间有 $m$ 辆卡车穿行。每辆卡车有四个参数:$s_i$ 为起点编号,$f_i$ 为终点编号,$c_i$ 表示每行驶 $1$ 个单位长度需要消耗的油量,$r_i$ 表示可以在路途中加油的次数。 当卡 ......
Trucks Cities 1101F 1101 and

Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range

在使用浏览器内置API btoa() 编码base64时: 报错Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range 报错信息解释: ......
39 characters contains execute encoded

哪篇论文宣布了 HTAP 数据库的诞生? StoneDB带您解读《A Common Database Approach for OLTP and OLAP..》

theme: condensed-night-purple 开启掘金成长之旅!这是我参与「掘金日新计划 · 12 月更文挑战」的第4天,[点击查看活动详情](https://juejin.cn/post/7167294154827890702 "https://juejin.cn/post/7167 ......
Approach Database StoneDB 数据库 数据

Set Theory: Cardinality + Infinity comparation

Infinity Counting + Comparation: https://brilliant.org/courses/infinity/introduction-87/how-to-count-to-infinity/ Cardinality VS Tagging: Review and R ......
Cardinality comparation Infinity Theory Set

The 2023 ICPC China Shaanxi Provincial Programming Contest

链接:[https://qoj.ac/contest/1290](https://qoj.ac/contest/1290) ## A 表达式板子。 $O(|s|)$。 ```cpp #include "bits/stdc++.h" using namespace std; using i64 = l ......
Programming Provincial Contest Shaanxi China

CCPC 2023 网络赛 J. Find the gap 另(不可行)解

### 题面 $n$ 个三维点 $(x_i,y_i,z_i)$,求两个距离最近的平行平面夹住所有点。输出距离。精度 $10^{-9}$。 $1\le n\le 50, 1\le x_i,y_i,z_i\le 10^4$。 ### 原题可行解 两种 case: - 答案平面平行于一个三点定平面; - ......
网络 CCPC 2023 Find the

Google classic interview questions, throwing eggs the least number of times All In One

Google classic interview questions, throwing eggs the least number of times All In One 谷歌经典面试题, 扔鸡蛋最少次数 你在一栋 100 层的大楼里工作,你得到 2 个相同的鸡蛋。 你需要计算出鸡蛋可以掉落到最高... ......
interview questions throwing classic Google

「TAOI-2」Break Through the Barrier 题解

前言:比赛前去做牙齿矫正,回来晚了 10 分钟……做比赛的运气全用在了一路绿灯上了(无语)。第二题切了两个半小时。决定写篇题解来抒发一下再记得~~愤怒~~愉悦之情。 AC 的想法很简单,就是表示出每一串连续的 $\texttt{T}$,其长度分别为 $l_1 \lim l_m$。明显的,对于任何一个 ......
题解 Barrier Through Break TAOI

Number of Beautiful Integers in the Range

Number of Beautiful Integers in the Range You are given positive integers low, high, and k. A number is beautiful if it meets both of the following co ......
Beautiful Integers Number Range the

a build cache key that uniquely defines the task’s outputs based on its inputs

Build Cache https://docs.gradle.org/current/userguide/build_cache.html The Gradle build cache is a cache mechanism that aims to save time by reusing o ......
uniquely defines outputs inputs build

题解 Cow and Snacks

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

Gym103687D The Profiteer:回滚莫队信息双指针可以做到线性对数

## 标题写得好 所谓的回滚莫队信息意思是,设信息保存在两个大小分别为 $a, b$ 的结构上,将这两个信息进行合并得到大小为 $a + b$ 的信息需要的时间为 $\Omega(\min\{a, b\}\cdot f(n))$;而给定一个大小为 $1$ 的信息,可以在 $\mathrm O(f(n ......
对数 线性 指针 Profiteer 103687D

python+playwright 学习-74 set_extra_http_headers设置浏览器请求头部

# 前言 大部分网站保存登录状态是用cookies,也有个别网站是在请求头部添加token实现保存登录。 playwright 可以使用set_extra_http_headers() 方法设置浏览器请求头部参数 # set_extra_http_headers() 方法 设置头部参数headers ......

Spring set 注入不同类型的参数

### **案例** - 建立复杂的数据类型 Student类 ```java public class Student { private String name; private Address address; private List books; private Map card; pri ......
参数 类型 Spring set

k8s推送代码至gitlab报错error: RPC failed; result=22, HTTP code = 413 fatal: The remote end hung up unexpectedly

``` # git push -u origin main Username for 'http://gitlab.wjl.net': root Password for 'http://root@gitlab.wjl.net': Counting objects: 1032, done. Delt ......
unexpectedly 代码 gitlab failed result

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

20230818 CHAPTER 5 Thanks for the Memories arm64汇编内存使用

.data 段的内存引用实例 十进制数不要以0开头,否则会被认为是8进制数 一个数前面可以加-负号或者~取反符号; 申请一个内存块; 重复! 转义字符! 内存对齐 The offset from the PC has 19 bits in the instruction, which gives a ......
20230818 Memories 内存 CHAPTER Thanks

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 ......

The 2022 ICPC Asia Regionals Online Contest (II) EJFB

# [The 2022 ICPC Asia Regionals Online Contest (II)](https://pintia.cn/market/item/1571156622976593920) ## E An Interesting Sequence 232323232323 3232 ......
Regionals Contest Online 2022 ICPC

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

容器化部署nacos 1.4.6报错caused: The specified key byte array is 0 bits which is not secure enough for any JWT

### nacos2.0+ 与nacos 1.x区别 nacos在2.0+版本开始使用grpc与客户端通信,并且通过非8848端口通信 主要是有两个端口 | 端口 | 与主端口的偏移量 | 描述 | | | | | | 9848 | 1000 | 客户端gRPC请求服务端端口,用于客户端向服务端发起 ......
容器 specified caused enough secure

解决小程序报错 getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json

一、unipp项目 打开uniapp项目的配置文件manifest.json,选择“源码视图”。 /* 小程序特有相关 */ "mp-weixin": { "appid": "你的开发者id", "setting": { "urlCheck": true, "es6": true, "postcss ......

带你读论文丨S&P21 Survivalism: Living-Off-The-Land 经典离地攻击

这篇文章属于系统分析类的文章,通过详细的实验分析了离地攻击(Living-Off-The-Land)的威胁性和流行度,包括APT攻击中的利用及示例代码论证。 ......

【校招VIP】java语言类和对象之map、set集合

考点介绍:map、set集合相关内容是校招面试的高频考点之一。 map和set是一种专门用来进行搜索的容器或者数据结构,其搜索效率与其具体的实例化子类有关系。 一、考点题目1、HashMap 为什么线程不安全? 解答:并发赋值被覆盖: 在 createEntry 方法中,新添加的元素直接放在头部,使 ......
对象 语言 java VIP map

[AGC001D] Arrays and Palindrome 题解

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