majority 134c arc the

CF1872B The Corridor or There and Back Again

## 思路 假设第 $0$ 时刻走进有陷阱的房间,那么必须在第 $t_i$ 时刻前返回到这个房间之前,因为出去还需要回来,假设到达这个房间后的第 $k$ 个房间,那么到达需要 $k$ 的时间,回来需要 $k+1$ 的时间,因为陷阱会困住当前在房间里的人,所以我们需要提前回去。 那么如果走到一个有陷阱 ......
Corridor 1872B Again There 1872

ARC152

## ARC152 小偷一个懒🙃 ### A 贪心地放即可 ```cpp #include using namespace std; const int MAXN=2e5+5; int n; int a[MAXN],L; signed main() { // freopen("date.in"," ......
ARC 152

The Power of Diagnostic Kits: Unleashing the Potential of John Deere Service Advisor EDL v2,Interface

In the rapidly evolving world of automotive diagnostics, the importance of reliable and efficient diagnostic tools cannot be overstated. These tools s ......

The 16-th BIT Campus Programming Contest - Onsite Round

链接:[https://codeforces.com/gym/104025](https://codeforces.com/gym/104025) ## A. Gifts in box ```cpp #include "bits/stdc++.h" using namespace std; usin ......
Programming Contest Campus Onsite Round

The 2nd Universal Cup. Stage 1- Qingdao

# A. Live Love 最大值就是把所有的$P$放在一起,最小值是尽可能的均分. ```cpp #include using namespace std; #define int long long void solve() { int n , m , d ; cin >> n >> m , ......
Universal Qingdao Stage The 2nd

Automate the Boring Stuff with Python(读后感)

这里主要就是记录下这本书的主要内容,自己以后想起来的时候可以直接看这个博客 整本书的内容看目录就很清楚了,所以下面就是目录加自己的一点心得体会 ### Python编程基础 基础中的基础,但有个很重要的轮子 `PrettyPrint`:把输出打印的更漂亮 ### 自动化任务 这是重点,一次性肯定记不 ......
读后 读后感 Automate Boring Python

# Codeforces Round 887 E Ina of the Mountain(反悔贪心)

~~被这个题折磨了好久,决定写一篇题解~~ 先考虑没有这个$k$的限制的情况,等价于对原来的$a_i$序列的差分数组$b_i$,每次找到两个位置$1\le x 0$的位置进行$-1$的操作,后面对应的$+1$可以放在$b_ic[i]$,那么$c[i]$减去$k$对答案的贡献就是$0$,因为$d[i] ......
Codeforces Mountain Round 887 Ina

The Road Not Taken

"The Road Not Taken" by Robert Frost Two roads diverged in a yellow wood, And sorry I could not travel both And be one traveler, long I stood And look ......
Taken Road The Not

【杂题乱写】ARC111

## [AtCoder-111A Simple Math 2](https://atcoder.jp/contests/arc111/tasks/arc111_a) $N$ 比较大,考虑倍增处理,设 $f(N)=\left\lfloor\frac{10^N}{M}\right\rfloor\bmod ......
ARC 111

【杂题乱写】ARC110

## [AtCoder-ARC110A Redundant Redundancy](https://atcoder.jp/contests/arc110/tasks/arc110_a) 答案是 $\operatorname{lcm}_{i=1}^n i +1$,只需要在 $p^k$ 位置乘上一个 $ ......
ARC 110

Four in the Morning

BY Wislawa Szymborska The hour from night to day The hour from side to side The hour for those past thirty The hour swept clean to the crowing of cock ......
Morning Four the in

CF1852C Ina of the Mountain

*2400 https://codeforces.com/problemset/problem/1852/C 如果没有 $\mod k$ 的限制的话,我们都会做,因为都是正数,那么 $\sum_i^n d_i>0$,因此,答案即为 $\sum[d_i>0]d_i$。 但是现在多了一个操作,即为区间加 ......
Mountain 1852C 1852 Ina the

题解:【ARC032C】 仕事計画

[题目链接](https://www.luogu.com.cn/problem/AT_arc032_3) 只和区间相对位置有关,先离散化。时间点上倒序贪心,设 $f_i$ 表示第 $i$ 个时间点最多能选几个区间,$g_i$ 表示在最大 $f_i$ 的前提下转移过来最小的字典序标号,可以顺便记录前驱 ......
题解 032C ARC 032

【ICML2022】Understanding The Robustness in Vision Transformers

来自NUS&NVIDIA 文章地址:[2204.12451] Understanding The Robustness in Vision Transformers (arxiv.org) 项目地址:https://github.com/NVlabs/FAN 一、Motivation CNN使用滑动 ......

[ARC105F] Lights Out on Connected Graph

前置芝士:[[ABC213G] Connectivity 2](https://www.cnblogs.com/adam01/p/17681390.html) #### 题目大意 给你一张 $n$ 个点 $m$ 条边的图,求有多少种删边方法使得删完后的图是一张联通二分图。 $n\le 17,m\le ......
Connected Lights Graph 105F ARC

The chromedriver.exe file does not exist in the current directory

The chromedriver.exe file does not exist in the current directory or in a directory on the PATH environment variable. The driver can be downloaded at ......
chromedriver directory current exist does

CF724G Xor-matic Number of the Graph

[题目链接](https://codeforces.com/problemset/problem/724/G) 不妨先看一道更为基础的题:[CF845G](https://codeforces.com/problemset/problem/845/G)以及[它的题解](https://www.cnb ......
Xor-matic Number Graph matic 724G

Codeforces Round 843 (Div. 2) A2. Gardener and the Capybaras (hard version)

有三个字符串 $s_1, s_2, s_3$ ,每个字符串只有 $a, b$ 组成。三个字符串顺序连接在了一起。满足以下条件之一: * $s1 \leq s_2, s_3\leq s_2$ * $s1 \geq s_2, s_3\geq s_2$ 以上为字典序比较。 给出连接的三个字符串,输出一组可 ......
Codeforces Capybaras Gardener version Round

Codeforces Round 874 (Div. 3) B. Restore the Weather

给一个长为 $n$ 的数组 $a$ ,给一个长为 $n$ 的乱序数组 $b$ ,给一个正整数 $k$ 。要求重排 $b$ 使得 $\forall i, |a_i - b_i| \leq k$ 。输出其中一种 $b$ 的排列方式。 一个性质题。(div2 前几题很喜欢有序数组的经典性质) 总结一下有序 ......
Codeforces Restore Weather Round 874

【题解】CF1852C Ina of the Mountain

我们先从题目的一部分入手。 如果说,我们没有当一个数为 $0$ 时,让这个数变成 $k$ 的性质,我们如何求答案呢? 很简单,在图上就是: 绿色线段的长度加起来即为答案(本图中是 $6$) 我们考虑很显然地,将一个数从 $0$ 变为 $k$ 即为将一个数一开始加上 $k$ 我们如果要让第 $i$ 列 ......
题解 Mountain 1852C 1852 Ina

It is strongly discouraged to install anything else in the base envionment

For both mamba and conda, the base environment is meant to hold their dependencies. It is strongly discouraged to install anything else in the base en ......

The Riordan Group and Applications 第1章 笔记

2022年的一本书,只有376页。证明直接去书里面找。 [TOC] # 1 介绍 ## 1.1 啥是RiordanArray ## 1.2 起源和研究动机 ## 1.3 基础的应用 $$ \mathfrak{B}_r=\sum_{n \geq 0} \frac{1}{(r-1) n+1}\left( ......
Applications Riordan 笔记 Group The

Xcode & cocoapods错误:File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a解决方法

问题描述: 引入了一个新的cocoapods依赖之后,启动运行,显示Fail,报错File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/li ......

The 2022 ICPC Asia Hangzhou Regional Programming Contest

The 2022 ICPC Asia Hangzhou Regional Programming Contest No Bug No Game #include<bits/stdc++.h> using namespace std; #define endl "\n" #define int lon ......
Programming Hangzhou Regional Contest 2022

The 2022 ICPC Asia Nanjing Regional Contest

链接:[https://codeforces.com/gym/104128](https://codeforces.com/gym/104128) ## A. Stop, Yesterday Please No More ```cpp #include "bits/stdc++.h" using n ......
Regional Contest Nanjing 2022 ICPC

The 18th Heilongjiang Provincial Collegiate Programming Contest

链接:[https://codeforces.com/gym/104363](https://codeforces.com/gym/104363) ## A. Magic Computer ```cpp #include "bits/stdc++.h" using namespace std; us ......

The 10th Shandong Provincial Collegiate Programming Contest

链接:[https://codeforces.com/gym/104459](https://codeforces.com/gym/104459) ## A ```cpp #include "bits/stdc++.h" using namespace std; using i64 = long l ......

The 17th Chinese Northeast Collegiate Programming Contest

链接:[https://codeforces.com/gym/104366](https://codeforces.com/gym/104366) ## A. Cask Effect ```cpp #include "bits/stdc++.h" using namespace std; using ......

安装cocoapods: Error installing cocoapods: The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1.7.6. Try installing it with `gem install activesupport -v 6.1.7.6`问题解决

问题描述: 在终端命令行安装cocoapods时,可能出现如下问题: Error installing cocoapods: The last version of activesupport (>= 5.0, < 8) to support your Ruby & RubyGems was 6.1 ......

[LeetCode] 2433. Find The Original Array of Prefix Xor

You are given an integer array pref of size n. Find and return the array arr of size n that satisfies: pref[i] = arr[0] ^ arr[1] ^ ... ^ arr[i]. Note ......
LeetCode Original Prefix Array 2433