题解monocarp 1886d and

JOISC 2021 题解

#### JOISC21 フードコート (Food Court) 首先我们发现我们这个删除实际上可以假删除,我们每次问询时求出这个队列目前被删了几个(维护区间加,区间 $\max(0,A-x)$)就可以把删除操作给弄掉了。 然后我们考虑对商店做扫描线!因为我们现在其实就是对商店的单点问询,我们这个加 ......
题解 JOISC 2021

【题解】Codeforces Round 737 (CF1557)

VP 情况: solve:4/5 rank:431st 评价: VP 了一下,我这个 shaber B 直接 5 发罚时,耽误了二十多分钟,以及被 D 各种细节差点搞死。 ## A.Ezzat and Two Subsequences(*800) ### 题目描述: 给定一个序列,将其分为 $2$ ......
题解 Codeforces Round 1557 737

Codeforces Round 837 (Div. 2) F. Hossam and Range Minimum Query

[传送门](https://codeforces.com/contest/1771/problem/F) 大致题意: ** 给一个n,然后给一个数组a, 有m个询问,询问区间[l, r]出现次数为奇数的最小值,若没有输出0, 每次输入的l,r需要异或上上一个答案,在第一个询问的时候认为上一个答案为0 ......
Codeforces Minimum Hossam Round Range

Distributed System and Application

Assignment 2:Distributed System and ApplicationCloud Computing and Distributed Systems (CLOUDS) LaboratorySchool of Computing and Information SystemsT ......
Distributed Application System and

在本地运行spark程序,出现Scala module 2.13.4 requires Jackson Databind version >= 2.13.0 and < 2.14.0 - Found jackson-databind version 2.12.7

这是jackson多版本题 , 我们需要屏蔽所有hadoop 组件中的Jackson,在pom.xml文件里修改: 添加 <exclusions> <exclusion> <groupId>com.fasterxml.jackson.module</groupId> <artifactId>*</a ......

javascript prototype and class

js中的prototype绝对是js的一个重要知识点,有点像delegate的模式,和oop对象形式还是有些差别的,尽管可以做同样的事情。 简要学习可以参见:https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Objec ......
javascript prototype class and

Pycharm中配置Pyinstaller工具 and 多文件打包

## 一、Pycharm中配置Pyinstaller 首先,要下载个pyinstaller库,用pip install installer等待完成即可 (顺带记录下pip 配置国内镜像的方法: 国内源: - 阿里云 http://mirrors.aliyun.com/pypi/simple/ - 中 ......
Pyinstaller Pycharm 文件 工具 and

【题解】CF1062E Company

[传送门](https://www.luogu.com.cn/problem/CF1062E) 先考虑如何求解区间 LCA ![](https://img2023.cnblogs.com/blog/2751294/202305/2751294-20230525152449076-352315544. ......
题解 Company 1062E 1062 CF

题解(教主的魔法)P2801

## [题目](https://www.luogu.com.cn/problem/P2801) # 教主的魔法 ## 题目描述 教主最近学会了一种神奇的魔法,能够使人长高。于是他准备演示给 XMYZ 信息组每个英雄看。于是 $N$ 个英雄们又一次聚集在了一起,这次他们排成了一列,被编号为 $1, 2 ......
题解 教主 魔法 P2801 2801

「解题报告」CF1179E Alesya and Discrete Math

又到了我最爱的一步都想不出来的环节了! 首先我们有一个分治做法:每次找出所有函数中 $f_k(x_k) = \frac{L}{2}$ 的序列 $\{x_k\}$。我们按照这个进行排序,将函数分为两部分,这样我们就能把问题分为两个子问题: - 定义域为 $[1, x_{\frac{n}{2}}]$,值 ......
Discrete 报告 Alesya 1179E 1179

Oceans on a Shoestring: Shape Representation, Meshing and Shading(低成本的海洋:形状表示、网格划分和着色)-2013年

作者:Huw Bowles 单位:Studio Gobo Introduction(简介):Studio Gobo is a small team of talented developers based in Brighton / UK The Crew(成员):Ben Andrews, Paul ......

AtCoder Beginner Contest 302 H. Ball Collector 题解

[AtCoder Beginner Contest 302 H. Ball Collector](https://atcoder.jp/contests/abc302/tasks/abc302_h) 题意跳过。 可以视作将 $a_i, b_i$ 之间连了一条边,然后 $a_i, b_i$ 之间只能选 ......
题解 Collector Beginner AtCoder Contest

CF1819C The Fox and the Complete Tree Traversal

# [$\color{purple}\text{The Fox and the Complete Tree Traversal}$](https://www.luogu.com.cn/problem/CF1819C) 比较有意思的一题。先考虑一个序列的权值。对长度为 $len$ 的序列排序,价值为 ......
Traversal Complete 1819C 1819 Tree

NOIP2014普及组试题题解

1.珠心算测验 代码: #include<bits/stdc++.h> #define ll long long using namespace std; const int N = 2e4+39+7; int mp[N],n,a[N],ans=0; int main(){ cin>>n; for( ......
题解 试题 NOIP 2014

题解:Code Feat

[题目链接](https://www.luogu.com.cn/problem/UVA11754) 数据范围分治。沿用题目中的变量意义。设 $K = \Pi k_i$,即我们总共有 $K$ 种组合情况,当 $K$ 比较小的时候,直接枚举每个集合得到的余数是哪个,然后做 CRT 记录后排序答案即可。当 ......
题解 Code Feat

abc260_f Find 4-cycle 题解

# [Find 4-cycle](https://vjudge.csgrandeur.cn/problem/AtCoder-abc260_f) ## 题意 有一个 $s + t$ 个点 $m$ 条边的简单无向图 $G$。点标号为 $1 \cdots s + t$,边标号为 $1 \cdots m$。 ......
题解 cycle Find abc 260

关于msyql between and 的边界问题

between 的范围是包含两边的边界值 eg: id between 3 and 7 等价与 id >=3 and id<=7 not between 的范围是不包含边界值 eg:id not between 3 and 7 等价与 id < 3 or id>7 mysql between日期边界 ......
边界 between 问题 msyql and

abc260_e At Least One 题解

# [At Least One](https://vjudge.csgrandeur.cn/problem/AtCoder-abc260_e) ## 题意 给定一个整数 $m$ 和 $n$ 对数 $(a_i, b_i)$,我们定义一个 $f(x)$ 函数表示满足以下要求的整数序列数量: - 整数序列 ......
题解 Least abc 260 One

【cpluscplus教程翻译】友元和继承(Friendship and inheritance)

# 友元函数(Friend functions) 原则上,private和protected成员不能在声明的类外被使用,然而这条规则不适用于友元 友元是用friend关键字声明的函数或者说类 如果一个非成员函数声明成一个类的友元,那么它可以访问private和protected。这可以通过在类里添加 ......

abc273_e Notebook 题解

# [Notebook](https://vjudge.csgrandeur.cn/problem/AtCoder-abc273_e) ## 题意 有 $q$ 次操作。 现在你有一个空序列 $a$ 和一本 $10^9$ 页的笔记本,每页纸上都有一个空序列。 每次操作是以下四种中的一种: - `ADD ......
题解 Notebook abc 273

Game on Paper 题解

[题目传送门](https://www.luogu.com.cn/problem/CF203B) 一道模拟题。 如果每涂一个格子就判断整个矩阵,那时间复杂度显然会炸。 我们每涂一个格子,影响的应该只是以这个格子为中心的 $3 \times 3$ 矩阵,判断以这些点为中心的话会不会涂出 $3 \tim ......
题解 Paper Game on

2023(ICPC)江西省赛I题题解

I. Tree 题意: 两种操作,操作1:将一棵树一条路径上的边权异或上一个数,操作2:或者询问一个点周 围所有边权的异或和。 题解: 首先,异或有一个性质 A ⨁ A = 0 ⇒ A ⨁ B ⨁ A = B 在进行操作一时,对X到Y的简单路径上的每一条边权异或,会是这样的情况 X _ w1_ Z ......
题解 2023 ICPC

abc271_f XOR on Grid Path 题解

# [XOR on Grid Path](https://vjudge.csgrandeur.cn/problem/AtCoder-abc271_f) ## 题意 有一个 $n \times n$ 的整数矩阵,第 $i$ 行 $j$ 列的数字为 $a_{i,j}$。 你站在 $(1,1)$,每次你可 ......
题解 Grid Path abc 271

ABC134F 题解

[$\text{link}$](https://www.luogu.com.cn/problem/AT_abc134_f) 。难想的 $\texttt{dp}$ 。 ![](https://img2023.cnblogs.com/blog/2803184/202305/2803184-2023052 ......
题解 134F ABC 134

UE Build System:Target and Module

Module 是构成 Unreal 的基本元素,每一个 Module 封装和实现了一组功能,并且可以供其他的 Module 使用,整个 Unreal Engine 就是靠各个 Module 组合驱动的,连我们创建的游戏项目本身,都是一个单独的 Module。 那么 UE 又是怎么创建和构建这这些 M ......
System Module Target Build and

2023江西省省赛H、J题题解

##**[原题链接](https://codeforces.com/gym/104385)** #1. H题 ![](https://img2023.cnblogs.com/blog/2725144/202305/2725144-20230523161540199-1097838755.png) # ......
题解 2023

How to Delete a Git Branch Both Locally and Remotely

# TL;DR version ``` https://www.freecodecamp.org/news/how-to-delete-a-git-branch-both-locally-and-remotely/ // delete branch locally git branch -d loc ......
Remotely Locally Delete Branch Both

Myarray and Mystring

### Mystring.cpp ``` #include using namespace std; class Mystring { public: Mystring() : s_(NULL), len_(0), siz_(0) {} //无参构造 Mystring(const char* s); ......
Mystring Myarray and

CF1765C 题解

## 题意 [传送门](https://www.luogu.com.cn/problem/CF1765C) 有 $4$ 种花色的牌,每种牌均为 $n$ 张,则牌的排列一共有 $(4n)!$ 种。 现在你从牌堆种逐张地取出牌,取牌之前你会猜一下这张牌是什么花色。你会根据之前的 $k$ 张牌中出现最少的 ......
题解 1765C 1765 CF

CF1196F K-th Path 题解 floyd

题目链接:[https://codeforces.com/problemset/problem/1196/F](https://codeforces.com/problemset/problem/1196/F) 题目大意: 给定一个包含 $n$ 个节点 $m$ 条边的无向图($n,m \le 2 \ ......
题解 1196F floyd 1196 K-th