monocarp and set the

How to Set the Default Gateway on Ubuntus

ip route list ip r | grep default sudo ip route add default via 10.10.1.1 sudo ip route add default via 10.10.1.1 dev enp0s3 sudo ip route delete defa ......
Default Gateway Ubuntus How Set

The 2nd Universal Cup. Stage 2: SPb

链接:https://contest.ucup.ac/contest/1356 A. Mixed Messages #include "bits/stdc++.h" using namespace std; using i64 = long long; int main() { ios::sync_ ......
Universal Stage The 2nd Cup

CF1017H The Films

Da 1y3。 今天因为初赛实在是没时间(懒得)写题了www,就放一道之前模拟赛场切的题吧。还有这个 CF 评分是假的,难点在于看懂题。 考虑令 \(c_i\) 表示序列中 \(i\) 元素的出现次数,对于一次询问 \(l,r\),令 \(d_i\) 表示 \(a_l,a_{l+1},\cdots, ......
1017H Films 1017 The CF

论文解读(FixMatch)《FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence》

Note:[ wechat:Y466551 | 可加勿骚扰,付费咨询 ] 论文信息 论文标题:FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence论文作者:论文来源:2020 aRxiv论文地址: ......

CF677D Vanya and Treasure

这题纯大力搞过去的,没用到啥技巧,后面看了下别人的做法发现还是很有意思的 我的做法就很粗暴,考虑令\(f_{i,j}\)表示走到\((i,j)\)的最短路,转移的话不难发现是个分层图DP 但是有一个显然的问题是当相邻两层间的点数很多时,暴力做的话会退化成\(O(n^2\times m^2)\),因此 ......
Treasure Vanya 677D 677 and

变量and输入输出

变量and输出 概念:变量,本质上是一个装东西的盒子,而且只能装一个值 一、 1.变量的命名规则 变量的名字由字母,数字,下划线_组成,不能以数字开头,不能以关键字命名,且区分大小写 变量的定义 格式:变量名 = 值 = 赋值符号 ==等于 a=1 b=2.1 c='hhh' 3.变量的类型 str ......
变量 and

The POM for com.xubo:service_base:jar:0.0.1-SNAPSHOT is missing, no dependency information available

报错信息 [INFO] Scanning for projects... [INFO] [INFO] < com.xubo:service_edu > [INFO] Building service_edu 0.0.1-SNAPSHOT [INFO] [ jar ] [WARNING] The PO ......

E. Split Into Two Sets 建模 + 染色法判奇环

题意 给定$n$ $(2 \leq n \leq 2∗10^5)$个骨牌,第 $n$个骨牌上有 $a_i, b_i$ $(1 \leq {a_i, b_i} \leq n)$ 两个数字。 现在你需要把骨牌分成两堆,使得每一个堆里面都没有重复的数字。问是否可以实现. 题解 首先排除一些情况,一张牌上的 ......
染色法 Split Into Sets Two

GYM104090A Modulo Ruins the Legend - exgcd -

题目链接:https://codeforces.com/gym/104090/problem/A 题解: 转化一下发现只需要求满足下式的解: \[ns+\dfrac{n\times (n+1)}{2}d \equiv C(\bmod m) \]设 \(a=n,b=\dfrac{n(n+1)}{2}, ......
104090A 104090 Modulo Legend Ruins

Deltix Round, Autumn 2021 (open for everyone, rated, Div. 1 + Div. 2) A. Divide and Multiply

有一个长为 \(n\) 的数组,可以执行以下整份操作任意次: 选择任意两个数 \(a_i, a_j\) ,满足 \(2 \mid a_i\) \(a_i = \frac{a_i}{2}\) \(a_j = 2 \cdot a_j\) 请找到经过任意此操作后的最大 \(\sum_{i=1}^{n} a ......
Div Multiply everyone Deltix Autumn

[LeetCode] 1222. Queens That Can Attack the King

On a 0-indexed 8 x 8 chessboard, there can be multiple black queens ad one white king. You are given a 2D integer array queens where queens[i] = [xQue ......
LeetCode Attack Queens 1222 King

CF453C Little Pony and Summer Sun Celebration

如果一个点需要经过奇数次我们称其为奇点,偶数次则称其为偶点。 考虑不合法的情况,有任意两个奇点不连通,因为不经过也是经过偶数次。 那么需要处理的部分就是包含奇点的唯一一个连通块。先随意撸出一棵生成树,然后正常地 DFS 下去。显然有些结点可能不符合要求的奇偶性,对于父亲结点 \(u\) 和儿子结点 ......
Celebration Little Summer 453C Pony

论文阅读: Co-design Hardware and Algorithm for Vector Search

1. Introduction 介绍一下论文背景, 向量检索常用于 搜索引擎,推荐系统,LLM和科学计算等 对应的常用的硬件向量检索方法,IVF-PQ 其中IVF:将多个向量聚类, PQ将向量压缩 而为了最大化IVF-PQ的效果,也会面临很多的挑战 在芯片设计的过程中,会遇到针对六个阶段如何设计合适 ......
Co-design Algorithm Hardware design Vector

debia12报错 perl: warning: Setting locale failed

目录前奏情景复现官方解释解决以防走丢 前奏 该文档是在Debian12上遇到的问题,特别做个记录 情景复现 perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LAN ......
Setting warning locale failed debia

《The 2023 Guangdong Provincial Collegiate Programming Contest》vp记录

队伍配置: \(Shui\_dream\) \(gaosichensb\) 和我这个菜鸡。 膜拜另外两个大佬 赛况: \(PS:\) 看高二的在那边打感觉挺有趣的我们也跑过来打了。 首先我把 \(A\) 签到题给签了,然后去看 \(D\) , \(gsc\) 去看 \(C\) ,这时候 \(lyq\ ......

linux DVWA 文件上传之 Security level set to high

-- 总体步骤 1、生成图片木马 2、上传图片木马 3、通过文件包含执行图片马 一、生成图片木马 1、随便准备一张图片——football.png 2、test.php写入内容: <?php @eval($_GET['x']); ?> 3、生成图片木马,命令行执行: cat football.png ......
Security 文件 linux level DVWA

Replacing gcc and g++ with GNU version in macOS

After we install Xcode Command Line Tools, we will get gcc and g++ in /Library/Developer/CommandLineTools/usr/bin and the same contents in /usr/bin. B ......
Replacing version macOS with GNU

CF1858D Trees and Segments

原题 翻译 这题预期说是\(dp\),不如说是预处理吧233 首先我们同时考虑两维限制是很困难的,如果我们想直接\(dp\)要设很多状态,复杂度爆炸 因此我们考虑暴力枚举一维。具体的,我们枚举把\([l,r]\)内的所有数染成\(0\),我们可以通过前缀和得到操作次数\(t\)(即为区间内\(1\) ......
Segments 1858D Trees 1858 and

解决错误 org.apache.ibatis.type.TypeException: The alias xxx is already mapped to the value xxxxx

具体错误信息如下:其实就是此类名和其他包有冲突 那么解决办法就是声明一个别名就好了:使用注解 解決办法 ......
TypeException 错误 already apache ibatis

Fox and Minimal path 题解

Fox and Minimal path 题目大意 构造一张无向图,使得从 \(1\) 到 \(2\) 的最短路数量为 \(k\)。 思路分析 我们首先可以发现当 \(k = 2^t\) 时的构造方式: 其中只有 \(O(\log k)\) 个点。 当 \(k\not = 2^t\) 时,我们可以将 ......
题解 Minimal path Fox and

The server is temporarily unable to service your request due to maintenance

访问不了 就是这个路径没有通 有几下几点 最重要的就是 看一下你的路径有没有错 主要就是看一下你服务器的端口号是不是变更了 或者就是你的ip、 第二点 就是看一下你的服务器有没有启动 这两点是最主要的 ......

本机hadoop version命令报错--JAVA_HOME is not set问题的解决

问题描述 输入hadoop version命令显示JAVA_HOME没有配置,但是本机的jdk配置正常! 问题解决 编辑hadoop/etc/hadoop目录下的hadoop-env.cmd文件: 将JAVA_HOME的值换成本机的绝对路径; 保存退出,再次尝试: ......
JAVA_HOME 命令 version hadoop 问题

The 2021 ICPC Asia Macau Regional Contest

目录写在前面AKFCGI写在最后 写在前面 比赛地址:https://codeforces.com/gym/104373 当了一场口胡选手。 我是彩笔。 以下按个人向难度排序。 A 随便找条路径,检查路径是否满足条件,满足则直接输出,否则倒序输出。 Code by YRMrSu: #include< ......
Regional Contest Macau 2021 ICPC

How to parse OR AND within text

假设你有一行 String condition = "A or B and C"; 语句,请问怎么做才能变成一行真正的逻辑表达式(能在计算机中运行计算)? Resolution 声明一个List<List<String>>结构; 先分割 or ; 变成 [ A, B and C ] 不包含and的, ......
within parse text How AND

doris建表报错 errCode = 2, detailMessage = Scale of decimal must between 0 and 9. Scale was set to: 10

doris建表报错 问题背景 当我从Mpp库向doris库中导数据时,需要先创建对应的数据表,将Mpp库中表的建表语句略作修改后,在doris服务器上运行 CREATE TABLE opt_connect_box_v8 ( CNT_BOX_ID char(72) NOT NULL, CNT_BOX_ ......
表报 Scale detailMessage decimal between

多主架构:VLDB技术论文《Taurus MM: bringing multi-master to the cloud》解读

华为《Taurus MM: bringing multi-master to the cloud》论文被国际数据库顶会VLDB 2023录用,这篇论文里讲述了符合云原生数据库特点的超燃技术。 ......

(Windows Hadoop环境配置)IDEA:ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path

ERROR util.Shell: Failed to locate the winutils binary in the hadoop binary path 出错原因:还没有在windows上配置hadoop环境变量。 解决:在windows上配置hadoop环境变量 参考:windows下缺少 ......
binary the winutils Windows 环境

[LeetCode] 1352. Product of the Last K Numbers 最后 K 个数的乘积

Design an algorithm that accepts a stream of integers and retrieves the product of the last k integers of the stream. Implement the ProductOfNumbers c ......
乘积 个数 LeetCode Product Numbers

Cisco Nexus 9000 系列交换机系统软件 NX-OS Standalone 10.4(1)F and ACI Mode 16.0(3e) 发布

Cisco Nexus 9000 系列交换机系统软件 NX-OS Standalone 10.4(1)F and ACI Mode 16.0(3e) 发布 Cisco Nexus 9000 Series Switches, NX-OS Standalone 10.4(1)F and ACI Mode ......
交换机 Standalone 系统 Cisco Nexus

Update 1.82.1: The update addresses this security issue.

August 2023 (version 1.82) 更新后显示发行说明 Update 1.82.1: The update addresses this security issue. Welcome to the August 2023 release of Visual Studio Code ......
addresses security Update update issue