majority 134c arc the

javascript: The Best Guided Tour Plugin

Best Tour Plugins To Guide Visitors Through Your Apphttps://yonkov.github.io/post/display-shepherd-only-once/https://www.jqueryscript.net/blog/best-gu ......
javascript Guided Plugin Best Tour

Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable)

版本:ubuntu 22.04 Cannot initiate the connection to cn.archive.ubuntu.com:80 (2403:2c80:5::6). - connect (101: Network is unreachable) 嗯,被墙了。找到 /etc/apt ......

The 2021 China Collegiate Programming Contest (Harbin) JBEID

The 2021 China Collegiate Programming Contest (Harbin) JBEID J. Local Minimum 模拟 题意:一个数当且仅当它是当前列最小值同时也是当且行的最小值它才算入贡献。 思路:直接\(for\),预处理出每一行每一列的最小值,然后去\ ......
Programming Collegiate Contest Harbin China

题解 ARC141D【Non-divisible Set】

这个题不是网络流。 problem 我们说一个集合 \(D\) 是一个好的集合,当不存在集合中的两个不同元素 \(a,b\) 使得 \(a\) 是 \(b\) 的约数。 给定 \(N\) 个整数的一个集合 \(S\),值域均落在 \([1, 2*M]\) 内。 对 \(S\) 中的每个元素 \(A_ ......
题解 Non-divisible divisible 141D ARC

org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java

项目场景:项目中执行clean,再执行install时报错,错误如下 org/springframework/boot/maven/RepackageMojo has been compiled by a more recent version of the Java Runtime (class ......

nuxt 项目 certificate has expired 或 nuxt unable to verify the first certificate

plugins/axios.js const https = require('https') export default function ({ $axios}){ $axios.create({ httpsAgent: new https.Agent({ rejectUnauthorized: ......
certificate nuxt expired 项目 unable

How to print a string with a variable by using the echo command in the shell script All In One

How to print a string with a variable by using the echo command in the shell script All In One Node.js & nvm ......
the variable command string script

使用 sudo apt-get update 命令时出现 Certificate verification failed: The certificate is NOT trusted.

命令: sudo apt-get update 问题:Certificate verification failed: The certificate is NOT trusted. Try installing ca-certificates. 忽略:1 https://professional- ......

arc165F

arc165F 题目描述: 给定 \(n\) 和一个长度为 \(2n\) 的序列 \(a\),满足 \([1,n]\) 每个数恰好出现两次。 每一次操作可以交换相邻的两个数,询问最少多少次操作可以使得序列 \(a\) 满足 \(\forall i\in[1,n]\ a_{2\times i}=a_{ ......
165F arc 165

springBoot 启动报错: If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.

原因 其实这个异常在SpringBoot中是一个比较常见的异常,一般是因为SpringBoot自动配置时,检测到我们添加了MySQL、Oracle、Mybatis等和数据库相关的依赖包,结果我们的配置文件中却没有添加数据库相关的配置,比如: spring: datasource: driver-cl ......

ARC165

D - Substring Comparison simple 的好题捏! 只考虑每两个串的第一个位置,假设这两个位置不同,那么可以定出一个大小关系。将所有大小关系建成一张图,如果这张图是个 DAG,那么就可以成立了,如果有环,说明环上的点都是一样的,因此可以将这些数缩成一个点,然后把对应的串往后移 ......
ARC 165

CF1869C Fill in the Matrix

Link 首先想一下,如果又一列的 \(MEX\) 是 \(n\) 会有什么样的要求?需要这一样有 \(0~n-1\) 的所有数字并且没有\(n\) 当我们知道这一点以后问题就很好解决了. 我们应该构造数列的时候,满足第一行的\(MEX\)为 \(0\) ,第 \(i\) 行的 \(MEX\) 为\ ......
Matrix 1869C 1869 Fill the

题解 [ARC165C] Social Distance on Graph

赛时:看不懂题,啊这! 赛后:就这? 题目描述 有一个简单相连的无向图,其顶点数为 \(n\),编号为 \(1\) 至 \(n\)。图中有 \(m\) 条加权边,第 \(i\) 条边连接顶点 \(a_i\) 和 \(b_i\),权重为 \(w_i\)。此外,连接两个顶点的简单路径的权重是简单路径中包 ......
题解 Distance Social Graph 165C

The 2023 ICPC Asia Regionals Online Contest (1)

Preface 这场打的还行,因为学长们都没发挥好被我们队偷了,但感觉发挥的也一般 前期开题顺序有点问题导致罚时很高,不过中期写题还是很顺的基本都是一遍过 只不过在3h的时候过完F到达8题后就开始坐牢了,虽然这场有两个字符串但徐神把H想复杂了,B可以说前面的建SAM和反串的AC自动机都想到了,也转化 ......
Regionals Contest Online 2023 ICPC

nginx启动报错:(1113: No mapping for the Unicode character exists in the target multi-byte code page)

转自:https://blog.csdn.net/qq_19309473/article/details/96477863 使用windows版本的nginx启动时遇到:(1113: No mapping for the Unicode character exists in the target ......
multi-byte character the mapping Unicode

【题解】ARC165F Make Adjacent

题目描述: 给定 \(n\) 和一个长度为 \(2n\) 的序列 \(a\),满足 \([1,n]\) 每个数恰好出现两次。 每一次操作可以交换相邻的两个数,询问最少多少次操作可以使得序列 \(a\) 满足 \(\forall i\in[1,n] \quad a_{2i} = a_{2i-1}\)。 ......
题解 Adjacent 165F Make ARC

The Second

前端开发工程师学习路线 前言:就业形势严峻,但稳扎稳打的知识终会带来不一样的结果。前端开发工程师未来发展将会更加迅速,有互联网的地方,就必然存在着着前端,而为了最终的用户体验,前端也在不断优化进步。目前较为流行的前端开发在移动端应用较为广泛,希望我能通过不断的学习,最终能够独立进行PC端、移动端、小 ......
Second The

ARC165

ARC165 A 猜的结论,质因数\(\ge2\) 感觉证明不难 #include<bits/stdc++.h> using namespace std; int t; int n; int main() { // freopen("date.in","r",stdin); // freopen(" ......
ARC 165

Ubuntu22.04运行Splash Docker镜像报错,cloud not load the Qt platform xcb in even though it was found

Ubuntu 22.04 运行Splash Docker镜像报错,cloud not load the Qt platform xcb in even though it was found 重新执行同样的语句,即恢复正常。 ......
platform 镜像 Ubuntu Splash Docker

Road To Reality(The roots of science)

Road To Reality(The roots of science) The Good, the True, and the Beautiful ......
Reality science roots Road The

ScannerException: while scanning for the next token found character ‘@‘ 问题

1.今天运行程序,突然报错,显示 ScannerException: while scanning for the next token found character ‘@‘ 问题,上网搜索,有好多原因,最简单的解决方法是刷新maven,后来就好使了。其他原因可参考博客:ScannerExcept ......

Roads in the North POJ - 2631 - 树的直径/树形dp

题意:给出一棵无向树,求树的直径,即树上两点之间的最长距离 分析:两种解法 解法1:先任取一个点,找到距离该点最远的点u,再找到距离u最远的点v,那么u和v之间的路径就是一条直径。 证明:只要找到了树的直径的一个端点,再从该点找到最远点就一定是直径的另一个端点。所以只需要证明第一次找到的最远点u就是 ......
树形 直径 Roads North 2631

AT_arc165_d 题解

AT_arc165_d [ARC165D] Substring Comparison 题解 Links 洛谷 AtCoder Description 给定正整数 \(n,m\) 和 \(m\) 个形如 \((A_{i},B_{i},C_{i},D_{i})\) 的限制条件。 判断是否存在一个长度为 ......
题解 AT_arc 165 arc AT

AT_arc165_b 题解

AT_arc165_b [ARC165B] Sliding Window Sort 2 题解 Links 洛谷 AtCoder Description 给定正整数 \(n,k\) 和一个长度为 \(n\) 的整数 \(P\),你需要选择一个长度为 \(k\) 的区间 \([l,l + k - 1]\ ......
题解 AT_arc 165 arc AT

题解 [ARC165A] Sum equals LCM

前天的晚上打这道题,和同学一起想出了思路,开心。 题意描述 给你一个数 \(N\),问你存不存在一个数列 \(A_1,A_2,\ldots,A_n(2 \le n)\) ,使得 \(\sum_{i=1}^n A_i=N\) 并且 \(\operatorname{lcm}(A_1,A_2,\ldots ......
题解 equals 165A ARC 165

[ARC052D] 9

题意翻译是假的,骗了我十分钟(恼)。 题目大意 给定两个正整数 \(k\) 和 \(m\),需要求出有多少个正整数 \(n\) 满足 \(1 \leq n \leq m\) 且 \(n \equiv S_n(\operatorname{mod} k)\)。 (\(1 \leq m \leq 10^{ ......
052D ARC 052

《The 13th Shandong ICPC Provincial Collegiate Programming Contest》 vp

简介 挂个 Link 先。 队伍配置:ddl,beiwen 和我 先%%%主力 ddl+关键先生 beiwen,我属于小躺一把。 赛时 放个结果 ......

The 2023 ICPC Asia Regionals Online Contest (1) ADI

The 2023 ICPC Asia Regionals Online Contest (1) A Qualifiers Ranking Rules 思路:按位次为第一关键字,场次为第二关键字排序即可。 // AC one more times // nndbk #include <bits/std ......
Regionals Contest Online 2023 ICPC

ARC165F Make Adjacent

D1a5y。 记录 \(x(1\le x\le n)\) 出现位置分别为 \(l_x,r_x(l_x< r_x)\),讨论一下发现当两个数 \(x,y\) 满足 \(l_x<l_y,r_x<r_y\) 时操作后 \(x\) 一定出现在 \(y\) 前面,不然可以交换位置以达到更优步数。否则发现无论怎 ......
Adjacent 165F Make ARC 165

Request body too large. The max request body size is 30000000 bytes.

调用 .Net Core 6.0 Web API 报错:Request body too large. The max request body size is 30000000 bytes. Startup.cs增加如下内容: services.Configure<KestrelServerOpt ......
body 30000000 Request request large