flexibility the enabling focuses

The 2023 ICPC Asia Regionals Online Contest (2) MDIELK

The 2023 ICPC Asia Regionals Online Contest (2) MDIELK M Dirty Work 题意:总共有\(n\)个问题,对于第\(i\)个问题需要\(a_i\)分钟。你可以随便选择一个没过的题去写,写完以后马上交,你有\(p_i\)的概率会错,错了不能跳 ......
Regionals Contest Online MDIELK 2023

The 2nd Universal Cup. Stage 2- SPb

A. Mixed Messages dp[i][j]表示前i位,选择\(j\)个移动到一起的最小花费。 #include<bits/stdc++.h> using namespace std; #define int long long constexpr int inf = 1E9; int32_ ......
Universal Stage The 2nd Cup

The 2023 ICPC Asia Regionals Online Contest (2)

Preface 这场打的有点捞说实话,两个小时出头的时候写完6个题就开始坐牢了 K题由于我习惯性地不写数论就扔给徐神了,徐神也是很有思路写了个看着就很对的东西,但不知道为什么过不去 赛后发现K其实是个很傻逼的题,类似的思路我最近补CF的时候还遇到过,但就是没细想 虽然当时下机的时候和祁神把A题的正解 ......
Regionals Contest Online 2023 ICPC

nginx: The plain HTTP request was sent to HTTPS port

问题描述 The plain HTTP request was sent to HTTPS port 当访问用http时则报错。用https时不报错。 检查配置: server { listen 80 ssl; server_name hngj.zxynyxxx.cn; ssl_certificat ......
request nginx HTTPS plain HTTP

the solution of Mining Your Own Business

the description of problem (我看的是 PDF 里面的原题所以这里描述会和题目不一样,但是大意一致) 给定一个未必连通的无向图,问最少在几个点设置出口,可以保证任意一个点坍塌后,工人们仍然可以从出口逃生,同时问设置最少出口的方案数量。 thoughts & solution ......
solution Business Mining Your the

[CF1810G] The Maximum Prefix

题目描述 You're going to generate an array $ a $ with a length of at most $ n $ , where each $ a_{i} $ equals either $ 1 $ or $ -1 $ . You generate this a ......
Maximum Prefix 1810G 1810 The

CF1801D The way home

原题 翻译 非常好的一个题,有两种做法 方法1:flody+dp 首先我们确定一个最优行走方案:从 \(1\) 号节点赚到足够钱后通过最短路到达 \(x_1\) ,在 \(x_1\) 赚够足够钱后到达 \(x_2\) ,在 \(x_2\) 赚够足够钱后到达 \(x_3\) ,如此往复后到达终点 现在 ......
1801D 1801 home The way

CodeForces 715E Complete the Permutations

洛谷传送门 CF 传送门 最小交换次数等于 \(n - \text{环数}\)。所以题目要我们统计把 \(p, q\) 补全成排列,连边 \(p_i \to q_i\),环数 \(= i\) 的方案数。 考虑把边根据 \(p_i, q_i\) 的是否已知状态分成四类: \(p \to q\) \(p ......
Permutations CodeForces Complete 715E 715

CF1710D Recover the Tree

题目链接 一个比较显然的思路就是:我们按照右端点从小到大的顺序(右端点相同按左端点从大到小)去考虑每个好的区间。 由于是连通性问题,不难想到用并查集去实时维护连通性。 根据定义,一个好的区间必定对应了一个连通块;我们考虑的是好的区间,所以当前并查集中的每个连通块必定都是一个区间。而在加入某个点前,这 ......
Recover 1710D 1710 Tree the

git pull代码时提示:Your local changes to the following files would be overwritten by merge

内容来自对 chatgpt 的咨询 这个错误提示意味着你在执行git pull命令时,Git发现你当前工作目录中的一些文件与远程仓库的变更产生了冲突。这可能是因为你在本地修改了一些文件,而远程仓库也有更新。Git不允许在有未提交的本地修改时直接执行git pull,以防止可能的冲突。 要解决这个问题 ......
overwritten following changes 代码 files

UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.解决办法

87iuiu由于ii from torchvision import models # 旧版本的写法,将在未来的torchvision 0.15版本中被Deprecated model_old = models.resnet50(pretrained=True) # deprecated model ......

CF1862G The Great Equalizer

题目链接 先不考虑修改操作。 直接模拟题目意思,可以发现最后留下的一定是最小的数字(因为相同的数每次会保留第一个)。我当时是顺着这个思路做的题目,现在想想反过来想好像会让问题变得更简单,即认为每次保留最后一个相同的数字。 那么现在每次留下的就是最后一个数字,显然每次操作会让这个数字加一,只需要考虑一 ......
Equalizer 1862G Great 1862 The

CF842A Kirill And The Game

如果考虑 \([x,y]\) 中什么位置能乘到 \([l,r]\) 就比较麻烦,简单的做法是考虑 \(l\) 和 \(r\) 对应到 \([x,y]\) 中的位置。左边界至少是 \(\frac{l-1}{k}+1\),右边界至多是 \(\frac{r}{k}\),判断一下与 \([x,y]\) 是否 ......
Kirill 842A Game 842 And

How to use a shell script to check whether a command had been installed in the Linux server All In One

How to use a shell script to check whether a command had been installed in the Linux server All In One shell script error [: :需要整数表达式 / [: -eq:需要一元表达... ......
installed command whether script server

模型转onnx遇到问题,报错 1. _thnn_fused_lstm_cell , 2._thnn_fused_gru_cell, 3. Exporting the operator numpy_T to ONNX opset version 11 is not supported.

目录GRULSTMExporting the operator numpy_T to ONNX opset version 11 is not supported RuntimeError: Exporting the operator _thnn_fused_lstm_cell to ONNX o ......

currently, chromedriver 114.0.5735.90 is recommended for chrome 114.*, so it is advised to delete the driver in PATH and retry

报错原因是驱动和浏览器不匹配 解决办法 1.下载低版本的谷歌浏览器 本次使用的是114 下载地址: https://downzen.com/en/windows/google-chrome/download/11405735199/ 2.下载谷歌浏览器的插件 https://registry.npm ......

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

执行docker-compose up -d时出现ERROR: Failed to Setup IP tables: Unable to enable SKIP DNAT rule

执行: service docker restart 解释: 有些东西删除了 docker iptables 条目。如果您重新启动 Docker,它将重新创建它们 ( systemctl restart docker)。您需要禁用任何其他管理 iptables 的功能,以防止将来发生这种情况。即可。 ......
docker-compose compose docker Failed Unable

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

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

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

CF1869C Fill in the Matrix

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

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

The Second

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

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