monocarp and set the

Simple and Convenient Diagnostic Tools: A Comprehensive Review

In today's technologically advanced world, the automotive industry has witnessed significant advancements in diagnostic tools. These tools have become ......

regulator-fixed and regulator-gpio

### 1、regulator-fixed 作用:指定固定的 regulator。一般是一个 GPIO 控制了一路电,只有开(enable) \ 关(disabled)两种操作 **device-tree node** ``` io_vdd_en: regulator-JW5217DFND { co ......

CF1851F - Lisa and the Martians

## 题目描述 Lisa was kidnapped by martians! It okay, because she has watched a lot of TV shows about aliens, so she knows what awaits her. Let's call inte ......
Martians 1851F 1851 Lisa and

How to fix the Tailwind CSS output.css not work All In One

How to fix the Tailwind CSS output.css not work All In One ......
Tailwind output work How CSS

F. Magic Will Save the World

F. Magic Will Save the World 观察之后可以发现,每次蓄力之后释放,等价于蓄力到最后一次性释放。每次蓄力water和fire增长的值的固定的,设最后蓄力cnt次,那么最终water = w * cnt,fire = f * cnt,如果要让蓄力次数尽可能少,容易想到要让wa ......
Magic World Will Save the

CF1586 f1,f2 Korney Korneevich and XOR 思维+dp

## CF1586 f1 f2 Korney Korneevich and XOR 思维+dp ### [题目链接](https://codeforces.com/problemset/problem/1582/F2) ### 题意: 给出长度为n的数组a,对于数组的严格递增子序列,计其异或和为xo ......
Korneevich 思维 Korney 1586 and

E. Kolya and Movie Theatre

观察一下可以发现,d产生的消耗只与最后一次电影的观看位置有关。设1 <= i <= n,那么由d产生的消耗就是i * d。同时能从1 ~ i 中取得的回报是这段区间里最大的m个正数。用一个优先队列维护最大的m个正数,用val维护d产生的消耗与最大的m个正数产生的回报,记录所有位置的最大值,最后判断一 ......
Theatre Kolya Movie and

linux下vi或vim操作Found a swap file by the name的原因及解决方法--九五小庞

在linux下用vi或vim打开Test.java文件时 [root@localhost tmp]# vi Test.java出现了如下信息: E325: ATTENTION Found a swap file by the name ".Test.java.swp" owned by: root ......
原因 方法 linux Found file

Idea 启动报错Error: A JNI error has occurred, please check your installation and try again Exception in thread "main"

idea运行程序的时候,出现Error: A JNI error has occurred, please check your installation and try again这个错误的话,抛出异常: java.lang.NoClassDefFoundError: org/springfram ......
quot installation Exception occurred please

spring boot - 开启异步 @EnableAsync 启动报错 The bean 'xxx' could not be injected because it is a JDK dynamic proxy

解决 注解 @EnableAsync 修改为 @EnableAsync(proxyTargetClass = true) 如 ......
EnableAsync injected because dynamic spring

Codeforces Round 888 (Div. 3)G. Vlad and the Mountains(数据结构,图论)

题目链接:https://codeforces.com/contest/1851/problem/G 大致题意: 给出n个点m条边的无向图,每个点有点权h【i】。从点 i 到 点 j会消耗 h【j】 - h【i】 的能量,如果小于0,那么就是恢复对应绝对值的能量。 进行q次询问,每次询问包含起点s, ......

Codeforces Round 885 (Div. 2)E. Vika and Stone Skipping(数学,质因数分解)

题目链接:https://codeforces.com/problemset/problem/1848/E 大致题意: 打水漂,某人在海岸线以 f (正整数)的力量扔出石头,会在f,f+(f-1),f+(f-1)+(f-2),........,f+(f-1)+.....+2+1,的位置接触水面; 现 ......
质因数 Codeforces Skipping 数学 Round

Codeforces Round 887 (Div. 1)C. Ina of the Mountain(数据结构,反悔贪心)

题目链接:https://codeforces.com/problemset/problem/1852/C 题意: 给定一个长度为n的序列和正整数k; 每次可以选取任意一个区间,将区间内每个数减1; 如果出现一个数变成0,那么那个数变成k; 问至少操作多少次可以使得每个数变成k; 分析: 将每个数值 ......

Educational Codeforces Round 151 (Rated for Div. 2)E. Boxes and Balls(数学,动态规划)

题目链接:https://codeforces.com/contest/1845/problem/E 题意: 给定长度为n且只含0和1的数组,你可以进行以下操作: 交换相邻的0和1; 给正整数k,问经过k次操作后,会有多少种本质不同的结果; 分析: 如果1比0多,我们可以把他们取反(让0比1多,结果 ......
Educational Codeforces 数学 动态 Boxes

用vector或set建立邻接表

# 用vector或set建立邻接表 在一般情况下使用链表建立的邻接表就行,但若对节点下的子树的顺序有要求的话(树和图的搜索),链表显然不方便,他的顺序在输入时就固定了,所以这时就可以使用`vector`或`set`来构建邻接表了 这样也就方便排序了 [P5318 【深基18.例3】查找文献 - 洛 ......
vector set

Docker|--E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but one of them is required for this operation

### 错误 ```bash apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C E: gnupg, gnupg2 and gnupg1 do not seem to be installed, but ......
gnupg installed operation required Docker

Codeforces Round 885 (Div. 2) F. Vika and Wiki(数学,倍增)

题目链接:https://codeforces.com/problemset/problem/1848/F 大致题意: 长度为n(n是2的幂次),每轮让a【i】 = a【i】^a【i%n + 1】,(^为异或)问需要操作多少次后可以使得每个数为0; 解题思路: 我们来观察: 第一次相当于:a【i】 ......
Codeforces 数学 Round Vika Wiki

Educational Codeforces Round 152 (Rated for Div. 2)E. Max to the Right of Min(数据结构,分治)

题目链接:https://codeforces.com/problemset/problem/1849/E 大致题意: 长度为n的序列,求有多少个区间满足区间最大值在区间最小值的右边? 解题思路: (此题有使用线段树等其他做法,本处使用的是单调栈做法) 我们先求出每个a【i】 的左边的比他小的LMI ......

The 2022 ICPC Asia Xian Regional Contest

链接 C.Clone Ranran 题意:一个人要准备一场比赛,需要出c道题,他现在可以选择两种操作:1.花费a分钟自我复制一次。(复制的自己也可以接着复制)2.花费b分钟出一道题。问最短要多少分钟可以准备c道题。 思路:枚举自我复制的次数,挨个判断就行。 #include<bits/stdc++. ......
Regional Contest 2022 ICPC Asia

Infinity: Set Theory is the true study of Infinity

AN INTRODUCTION TO SET THEORY - Professor William A. R. Weiss, October 2, 2008 Infinity -> Set Theory -> Mathematics Set Theory is the true study of I ......
Infinity Theory study true Set

Set(集合)

Set(集合) set中的值是不能重复的 并且这个集合是无序的 向set集合中加入值使用add方法 127.0.0.1:6379> sadd myset hello(integer) 1127.0.0.1:6379> sadd myset world(integer) 1127.0.0.1:6379 ......
Set

Long-read error correction: a survey and qualitative comparison (长读错误纠正:一项调查和定性比较)

Basic Information: Title: Long-read error correction: a survey and qualitative comparison (长读错误纠正:一项调查和定性比较) Authors: Pierre Morisse, Thierry Lecroq, ......

UE4.27, Packaging failed, "is found in memory and is an export but does not have all load flags"

打包时发生如下错误 "is found in memory and is an export but does not have all load flags" 通过查阅论坛,问题原因出在,某类的构造函数里包含xxx->SetChildActorClass(ActualOne) 整理到的解决办法并未 ......
quot Packaging failed export memory

CF1862G The Great Equalizer

## 思路 对于一个数组,每次操作会缩短排序后的数组的相邻两个数的差距,所以总共会执行 $k$ 次操作,其中,$k$ 为排序后的数组的相邻两个数的最大差距。 因为每次操作都会对最大数加 $1$,所以答案就是 $\text{数组中的最大数} + \text{排序后的数组的相邻两个数的最大差距}$。 因 ......
Equalizer 1862G Great 1862 The

CF1862F Magic Will Save the World

## 思路 假设总共耗时是 $s$ 秒,那么最多可以消灭的总生命值是 $s\times(w+f)$。 所以我们可以先求出所有怪物的生命值之和 $sum$,那么,至少需要时间 $t=\lfloor \frac{sum}{w+f} \rfloor$。 然后我们可以算出用这些时间最多可以用水魔法消灭的生命 ......
1862F Magic World 1862 Will

CF979D Kuro and GCD and XOR and SUM

### 题目大意 初始有一个空的集合,和 $Q$ 个操作。对于每个操作,有两种类型,分别用如下的两种形式表示: `1 u`:加入 $u$ 到集合 `2 x k s`:求一个最大的 $v$,使得: 1. $v+x \leq s$ 2. $k \mid \gcd(v,x)$ 3. $x \oplus v ......
and 979D Kuro 979 GCD

The 2022 ICPC Asia Nanjing Regional Contest(A.Stop, Yesterday Please No More)

模拟边界(不是袋鼠)移动,通过二维差分维护左上角和右下角,同时注意排除重复的点 #include<bits/stdc++.h> using namespace std; #define endl "\n" typedef long long ll; const int N = 1e3 + 5; in ......
Yesterday Regional Contest Nanjing Please

The 2022 ICPC Asia Nanjing Regional Contest (G. Inscryption)

Problem - G - Codeforces 反悔贪心 #include<bits/stdc++.h> using namespace std; typedef long long ll; #define endl "\n" const int N = 1e6 + 5; inline int g ......
Inscryption Regional Contest Nanjing 2022

typedef and define

# `typedef` vs. `#define` - `#define` is a preprocessor token: the compiler itself will never see it. - `typedef` is a compiler token: the preprocesso ......
typedef define and

typedef struct and struct

# `typedef struct` and `struct` > status: 更新中 > > warning: 初学者写的内容,可能有内容上的错误 > https://stackoverflow.com/questions/252780/why-should-we-typedef-a-stru ......
struct typedef and