hong kong programming the

allowedOrigins cannot contain the special value "*"

Spring Boot的版本高于 2.4以后 ,原来的配置已经不适合目前的版本 将代码中的`allowedOrigins`改为`allowedOriginPatterns` ```java @Configuration public class WebConfig implements WebMvc ......
quot allowedOrigins contain special cannot

The 2022 ICPC Asia Regionals Online Contest (I)CDH

# **The 2022 ICPC Asia Regionals Online Contest (I)** ## **C Delete the Tree** 题意:想要删掉一棵树,你可以做以下两种操作: 1. 删除:删除一个点以及和它连的边 2. 收缩:选择一个点$x$它直接连有$2$个点$u,v$ ......
Regionals Contest Online 2022 ICPC

The 2022 ICPC Asia Regionals Online Contest (II)ABEFJ

# The 2022 ICPC Asia Regionals Online Contest (II) ## **A Yet Another Remainder** **题意:**给你一个正整数$x$,但是这个数被隐藏起来了。你问了电脑$min(100,n)$个问题,第$i$轮,的第$j$个问题:$O ......
Regionals Contest Online ABEFJ 2022

Programming abstractions in C阅读笔记:p123-p126

《Programming Abstractions In C》学习第50天,p123-p126,总结如下: # 一、技术总结 ## 1.notaion 这也是一个在计算机相关书籍中出现的词,但有时却不是那么好理解,因为它可以指代很多对象,这里做一个记录。示例:p124。 In C, you can ......
abstractions Programming 笔记 123 126

本地nacos启动报错: Please set the JAVA_HOME variable in your environment, We need java(x64)! jdk8 or later is better!

编辑startup.cmd文件 将模式从cluster改为standalone 插入一行指定你的JAVA_HOME路径set JAVA_HOME="C:\dev_files\jdk17" 然后启动nacos即可~ ......
environment JAVA_HOME variable Please better

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

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

Programming abstractions in C阅读笔记: p118-p122

《Programming Abstractions In C》学习第49天,p118-p122,总结如下: # 一、技术总结 ## 1.随机数 (1)seed p119,"The initial value--the value that is used to get the entire proc ......
abstractions Programming 笔记 118 122

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

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

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

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

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

20230818 CHAPTER 4 Controlling Program Flow 程序流程控制

Unconditional Branch The simplest branch instruction is B label 无条件分支跳转 有符号数为负则设置N标志,否则clear 结果为0 设置此标志,否则clear 加法中溢出了则设置此标志,减法不需要借也就是结果不为负则设置,移位中保存最后 ......
Controlling 20230818 流程 CHAPTER Program

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

容器化部署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攻击中的利用及示例代码论证。 ......

UVA10684 The jackpot 题解

[题目链接](https://www.luogu.com.cn/problem/UVA10684) ## 思路 一道简单模拟题。 用循环模拟每次的处理。对于每次输入的数 $N$,先判断 $N$ 的值,如果为 $0$,直接结束程序,避免死循环。否则就依次输入每次赢或输的钱数,再进行集中判断,获取连胜获 ......
题解 jackpot 10684 UVA The

UVA10678 The Grazing Cow 题解

[题目链接](https://www.luogu.com.cn/problem/UVA10678) ## 思路 一道简单模拟题。 经过模拟,我们不难发现,牛的活动轨迹是一个椭圆。根据椭圆形面积公式得到 $S = \pi a b$。其中,牛可以到的最左边或最右边时 $a = \frac{l}{2}$, ......
题解 Grazing 10678 UVA The

UVA10812 Beat the Spread! 题解

[题目链接](https://www.luogu.com.cn/problem/UVA10812) ## 思路 大家应该都知道绝对值是什么吧? 那么,我们不妨直接设 $a\gt b$,这样就省去了一次分类讨论的麻烦,大大降低了程序的复杂度。即可得到此二元一次含参方程组: $$ \begin{case ......
题解 Spread 10812 Beat UVA

CF1787E The Harmonization of XOR 题解

# CF1787E The Harmonization of XOR ## 题目大意 给定 $n$ 个数 $[1, 2, 3, \cdots, n]$ 和两个正整数 $k$ 和 $x$。 将这些数分成恰好 $k$ 组使得每组的异或和都是 $x$。 ($1 \le k \le n \le 2 \cdo ......
题解 Harmonization 1787E 1787 The

CF1787E The Harmonization of XOR 题解

## 题面 将集合 $\left\{1, 2, \cdots, n\right\}$ 划分为 $k$ 个非空不交子集,使得每个子集的异或和均为 $x$。 ($1 \le n,k \le 2 \times 10^5$)。 ## 题解 首先显而易见的判断一下无解的情况,记 $sum = \bigoplu ......
题解 Harmonization 1787E 1787 The

【题解】#373. 「USACO1.1」Friday the Thirteenth 题解(2023-07-19更新)

# #373. 「USACO1.1」Friday the Thirteenth 题解 **本文章的访问次数为![](https://counter.likepoems.com/get/@cnblogs17638596?theme=gelbooru)次**。 ## Part 1 提示 ### **[题 ......
题解 Thirteenth USACO1 Friday USACO

CF98C Help Greg the Dwarf 题解

# CF98C Help Greg the Dwarf 题解 ~~为什么不三分~~? 首先我们考虑如何求出答案。 如图,考虑设夹角为 $\theta$,那么可以得到表达式: $$ [\cfrac a {\tan \theta} - (l \cos \theta - b)] \sin \theta $ ......
题解 Dwarf Help Greg 98C