adjacent 165f make arc

ARC160

## ARC160 ### A 一眼没思路/kk 对于操作$(l1,r1)$,$(l2,r2)$我们是可以直接比较两者之间的大小的 然后用$nth\_element$即可 好像有$O(nlog(n))$做法 就是考虑每个位置的答案是什么,如果确定了前$i-1$个是没变的时候取答案,第$i$位的答案要 ......
ARC 160

题解 ARC104F

## 前言 在这里首先感谢一下题解区的 [FZzzz](https://www.luogu.com.cn/user/174045),本人的题解思路主要是基于他并给出了自己的理解。 如非特殊说明,本题解中的数学符号原则上与题目中一致。 ## 题目分析 需要转化的喵喵题。 我们需要把原问题转化成一个图论 ......
题解 104F ARC 104

windows下使用make命令

要在windows下使用make命令,需要用到PowerShell,本人win7没有PowerShell,需要安装补丁Windows6.1-KB2506143-x64.msu 或 Windows6.1-KB2506143-x86.msu,前者是64位,后者是32位,下载地址:Windows Mana ......
命令 windows make

ARC089B 题解

[problem](https://www.luogu.com.cn/problem/AT_arc089_b) & [blog](https://www.cnblogs.com/liangbowen/p/17599062.html)。 给一个比较暴躁的做法。 若要求 $(x,y)$ 的颜色为 Whi ......
题解 089B ARC 089

ARC157

## ARC157 ### A 简单分讨即可 ```cpp #include using namespace std; int Abs(int x) { return x>0?x:-x; } int n; int A,B,C,D; int main() { scanf("%d %d %d %d %d ......
ARC 157

ARC154

## ARC154 ### A 似乎是均值反着用,直接最大乘最小即可 ```cpp #include using namespace std; const int MOD=998244353; int n; string A,B; int main() { // freopen("date.in", ......
ARC 154

[ARC119F] AtCoder Express 3

有简单做法,但是pb大神讲了自动机做法。 这么有趣的自动机不去做?亏大发。 有两个重要的观察。 当你出现长度大于 $4$ 的连续段时,一定会向后走一次并跳过这一段。 某些时候,当你能用同样的步数走到最后的两个格子,且中一个是 $\rm A$,一个是 $B$ 时,可以看作你处于一个既能是 $\rm A ......
AtCoder Express 119F ARC 119

ARC154 E

非常好题目!!! 求和不好搞的话,我们先把他转成期望!最后再乘上 $(\frac{n(n+1)}{2})^m$。 然后拆贡献,考虑 $i$ 的系数: $$ \sum_{j\lt i}[P_j\gt P_i]-\sum_{j\gt i}[P_j\lt P_i] $$ 然后是特别波特的一步!这个东西对于 ......
ARC 154

ARC 补题笔记 1

## ARC156 ### A. Non-Adjacent Flip >给定长度为 $n\ (3\le n\le 2\times10^5)$ 的 01 串,每次选定 $1\le i,j\le n$ 且 $|i-j|\ge2$,将 $i,j$ 位上的数字 $x$ 变为 $1-x$。求全部数字变为 $1 ......
笔记 ARC

Quantitative Approach of Management Science:(better decision making by using quantitative techniques)

Which is the use of **quantitative techniques to improve decision making**. Also known as _management science_. **Better decision making by using quan ......

AT_arc113_c 题解

[洛谷链接](https://www.luogu.com.cn/problem/AT_arc113_c)&[Atcoder 链接](https://www.luogu.com.cn/remoteJudgeRedirect/atcoder/arc113_c) 本篇题解为此题**较简单做法**及**较少 ......
题解 AT_arc 113 arc AT

正点原子Ubuntu入门013---make工具和makefile工具的引入

一、make工具和Makefile文件的引入 当源码文件较多时,就不适通过直接输入 gcc 命令来编译,这时候就需要一个自动化的编译工具 make:一般说GNU Make ,是一个软件,将源代码文件编译为可执行的二进制文件,make工具主要用于完成自动化编译。make工具编译的时候需要Makefil ......
工具 原子 makefile Ubuntu make

Windows使用make命令

1.下载Msys2 点击跳转 2.打开 3.安装 pacman -S gcc make mingw-w64-i686-gcc mingw-w64-x86_64-gcc vim base-devel pkg-config 4.设置环境变量 MSYS2_PATH_TYPE=inherit 5.重新打开 ......
命令 Windows make

Atcoder ARC060D Digit Sum

看到 $n\le 10^{11}$,考虑按根号分为两部分处理。 对于 $b\le \sqrt{n}$,考虑直接暴力算 $\operatorname{f}(b, n)$ 判断是否等于 $s$,这部分的计算量是 $O(\sqrt{n})$ 级别的。 对于 $\sqrt{n} n$,这个时候 $\oper ......
Atcoder Digit 060D ARC 060

[ARC143B] Counting Grids 题解

[Counting Grids](https://www.luogu.com.cn/problem/AT_arc143_b) ### 题目大意 将 $1\sim n^2$ 填入 $n\times n$ 的网格 $A$ 中,对于每个格子满足以下条件之一: - 该列中存在大于它的数。 - 该行中存在小于 ......
题解 Counting Grids 143B ARC

1798.maximum number of consecutive values you can make

Description 1798.maximum-number-of-consecutive-values-you-can-make Solution Greedy algorithm + dynamic programming First, we sort the array in ascendi ......
consecutive maximum number values 1798

AT_arc041_b 题解

[洛谷链接](https://www.luogu.com.cn/problem/AT_arc041_b)&[Atcoder 链接](https://www.luogu.com.cn/remoteJudgeRedirect/atcoder/arc041_b) 本篇题解为此题较**简单做法**及**较少 ......
题解 AT_arc 041 arc AT

why does razor make form with empty action?

why does razor make form with empty action? I create a form with razor to have specific controller and action with asp-controller and asp-action but a ......
action razor empty does make

AT_arc149_a 题解

[洛谷链接](https://www.luogu.com.cn/problem/AT_arc149_a)&[Atcoder 链接](https://atcoder.jp/contests/arc149/tasks/arc149_a) 本篇题解为此题较**简单做法**及**较少码量**,并且码风优良, ......
题解 AT_arc 149 arc AT

AT_arc154_b 题解

[洛谷链接](https://www.luogu.com.cn/problem/AT_arc154_b)&[Atcoder 链接](https://www.luogu.com.cn/remoteJudgeRedirect/atcoder/arc154_b) 本篇题解为此题较**简单做法**及**较少 ......
题解 AT_arc 154 arc AT

How to make sqlplus output appear in one line

## How to make sqlplus output appear in one line ``` https://dba.stackexchange.com/questions/54149/how-to-make-sqlplus-output-appear-in-one-line # SQL ......
sqlplus appear output make line

AT_arc157_a 题解

## 思路 看数据范围时能发现,这 $N$ 啥用也没有,因为 $A+B+C+D=N-1$。 首先,$B$,$D$ 为 $0$ 且 $A$,$C$ 为 $0$ 的情况是不可能有的,因为既然有 `XX` 和 `YY` 字符串,那么一定会至少组成一个 `XY` 或 `YX`,输出 `No`; 然后,$\l ......
题解 AT_arc 157 arc AT

[ARC150F] Constant Sum Subsequence

Problem StatementWe have a sequence of positive integers of length $N^2$, $A=(A_1,\ A_2,\ \dots,\ A_{N^2})$, and a positive integer $S$. For this sequ ......
Subsequence Constant 150F ARC 150

make

make GNU的工程化编译工具 ## 补充说明 **make命令** 是GNU的工程化编译工具,用于编译众多相互关联的源代码文件,以实现工程化的管理,提高开发效率。 ### 语法 ```shell make(选项)(参数) ``` ### 选项 ```shell -f:指定“makefile”文件 ......
make

Atcoder ARC058E Iroha and Haiku

题目中的式子转化一下即存在一位 $i$ 使得到 $i$ 时的后缀和存在 $X + Y + Z, Y + Z, Z$,再发现 $X + Y + Z\le 17$,考虑状压。 设 $f_{i, j}$ 为填了 $i$ 个数当前后缀和中存在的数的状态为 $j$(只存 $0\sim X + Y + Z$ 的 ......
Atcoder Iroha Haiku 058E ARC

ARC134F Flipping Coins

pb 讲课没讲的题,感觉很牛逼啊!但不是牛逼在多项式,因为多项式大家应该都会。 考虑从前往后扫的过程,只要有正面就翻成反面,所以最后只有可能是当 $p_i #define int long long using namespace std; namespace vbzIO { char ibuf[( ......
Flipping Coins 134F ARC 134

Atcoder ARC058B Iroha and a Grid

考虑从第 $b$ 列与第 $b + 1$ 之间分开这个矩阵,钦定 $(i, b)$ 下一步必须走到 $(i, b + 1)$,可以发现这样是不会漏算或算重的。 于是就可以用乘法原理算出这个 $i$ 的贡献:$\binom{(i - 1) + (b - 1)}{i - 1}\times \binom{ ......
Atcoder Iroha 058B Grid ARC

ARC125F Tree Degree Subset Sum

感觉挺不错的一道题,不过课上 pb 好像没有讲。 显然树的具体形态对题目影响不大,那么我们知道 $\sum\limits_{i=1}^nd_i=2n-2$ 即可扔掉树的条件。即: > 给定 $n$ 个 $d_i$,和为 $2n-2$,求 $(x,y)$ 满足 $0\le x\le n$ 且 $\ex ......
Degree Subset 125F Tree ARC

Solution to AT_abc310_f Make 10 Again

## Statement 你有 $N$ 个骰子和一个序列 $A_i$,第 $i$ 个骰子能等概率掷出 $1 \sim A_i$ 的点数。 在同时掷出 $N$ 个骰子后,求下面所述的条件被满足的概率模 $998,244,353$ 的值: > 能够选出这些骰子的一个子集,使得子集内的骰子掷出的点数和为 ......
Solution AT_abc Again Make 310

Classical Management: emphasized rationality and making organizations and workers as efficient as possible

Classical approach: First studies of management, which emphasized: * rationality * making organizations and workers as efficient as possible **Max Web ......