parade the

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

本地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

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

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

【解决方法】各类软件启动报错:Failed to create the Java Virtual Machine

# 环境: >工具:小锐云服 PRO ,Windows 命令处理器,Java 环境 系统版本:Windows 10 # 问题描述: >描述:不知名原因导致的 Java 虚拟机创建失败,百度良久后通过修改系统环境变量,完成了对问题的处理。 >提示:若按照教程还是无法完成操作,可以进入右侧的企鹅,找我看 ......
Virtual Machine 方法 Failed create

训练合集-Mind the Gap

# 训练合集-Mind the Gap Member :EdGrass afeng111 xishuiw wirtten by xishuiw [TOC] ## 暑期训练 ### [2022-2023 ACM-ICPC Latin American Regional Programming Cont ......
Mind Gap the

The 13th Northeast Collegiate Programming Contest

## **Problem B. Balanced Diet** 其实就是对每种糖果从大到小的排序后,计算前缀和后再 $O(n)$ 处理,由于最多只有 $n$ 个糖果,所以最大复杂度是 $O(nlogn)$。对于题目给的每种糖果的限制 $limit$ ,就把当前小于 $limit$ 的贡献加到 $ma ......
Programming Collegiate Northeast Contest The

CF1305F Kuroni and the Punishment

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

The 2022 ICPC Asia Regionals Online Contest (I) C L A

# [The 2022 ICPC Asia Regionals Online Contest (I)](https://pintia.cn/market/item/1571156622976593920) ## C 统计度的大小,算贡献,特判 $n = 1$ ```c++ #include usin ......
Regionals Contest Online 2022 ICPC