题解328f abc

abc078d <博弈>

[D - ABS](https://atcoder.jp/contests/abc078/tasks/arc085_b) ``` // https://atcoder.jp/contests/abc078/tasks/arc085_b // // 思路: // 首先注意到两点: // 1. a[n] ......
078d abc 078 lt gt

abc077d <思维 + 最短路 (将构造数字过程视为最短路)>

[D - Small Multiple](https://atcoder.jp/contests/abc077/tasks/arc084_b) ``` // https://atcoder.jp/contests/abc077/tasks/arc084_b // // 参考: // 1. https ......
思维 过程 数字 077d abc

洛谷 P4869 albus就是要第一个出场 题解

[洛谷 P4869 albus就是要第一个出场](https://www.luogu.com.cn/problem/P4869) #### 题意 给定一个长度为 $n$ 的序列 $A$,设**可重**集合 $S=\left\{\operatorname{xor}_{i=1}^nA_ix_i\mid ......
题解 就是 P4869 albus 4869

AT_abc306_h 题解

# AT_abc306_h Balance Scale 题解 ## Links [洛谷](https://www.luogu.com.cn/problem/AT_abc306_h) [AtCoder](https://atcoder.jp/contests/abc306/tasks/abc306_h ......
题解 AT_abc 306 abc AT

CF878E 题解

# CF878E Numbers on the blackboard 题解 ## Links [洛谷](https://www.luogu.com.cn/problem/CF878E) [Codeforces](https://codeforces.com/problemset/problem/87 ......
题解 878E 878 CF

luoguP3403跳楼机 题解【同余最短路】

[题面](https://www.luogu.com.cn/problem/P3403) 题意: 可以发现操作四相当于是每次有了回到起点的机会,那么问题就变成了求满足:$Ax+By+Cz = k,k\leq h$ 所有的 $k$。 考虑忽略 $x$,这样只需要求出所有的通过 $y, z$ 能到达的小 ......
题解 luoguP 3403

abc076d <dp / 贪心>

[D - AtCoder Express](https://atcoder.jp/contests/abc076/tasks/abc076_d) ``` // https://atcoder.jp/contests/abc076/tasks/abc076_d // // dp[i][j] 表示第i秒 ......
076d abc 076 lt dp

acwing -- 3346. 你知道你的ABC吗

简单模拟,最小的两个数字是a, b, 最大的数字时a + b + c #include<iostream> #include<cstdio> #include<algorithm> #include<set> using namespace std; int main() { multiset<in ......
acwing 3346 ABC

abc075d <暴力枚举 / 枚举+离散化+二维前缀和>

[D - Axis-Parallel Rectangle](https://atcoder.jp/contests/abc075/tasks/abc075_d) ``` // https://atcoder.jp/contests/abc075/tasks/abc075_d // // 本代码为完全 ......
前缀 暴力 075d abc 075

2023年7月6日普及组南外集训题解

# A 阿伦 ## 题目描述 Aron要去给朋友买礼物。 前面有$n$个人在排队,其中有一些独自前来的顾客和一些组团前来的顾客。 相邻的穿着一样的衣服的顾客在同一团队里。 一个团队里只要第一个人买了就会离开。 问Aron会在第几个排到 ## 输入格式 第一行一个$n$,表示前面有多少个人 接下来共$ ......
题解 2023

abc074d <Floyed 消除传递边>

[D - Restoring Road Network](https://atcoder.jp/contests/abc074/tasks/arc083_b) ``` // https://atcoder.jp/contests/abc074/tasks/arc083_b // // 1. 跑一边f ......
Floyed 074d abc 074 lt

ABC_DQ:基于MATLAB/Simulink的三相静止坐标系到两相静止坐标系(Clark变换)到两相旋转坐标系变换(Park变

ABC_DQ:基于MATLAB/Simulink的三相静止坐标系到两相静止坐标系(Clark变换)到两相旋转坐标系变换(Park变换)的仿真模型。仿真条件:MATLAB/Simulink R2015bID:2720651503371560 ......
坐标系 坐标 Simulink ABC_DQ MATLAB

Luogu CF633B 【A Trivial Problem】题解

一段理解起来特别容易的代码 (目前来看是最短的) ## 思路 由于末尾0的个数就是阶乘中分解出10的个数,也就是分解出2的个数与5的个数中的最小值; 显然5的个数小于2的个数,即找出分解出的5的个数。 **比较容易推出:当 $n$ 为 $5^{k}$ 的倍数时,其阶乘分解出 $5$ 的个数即为 $n ......
题解 Trivial Problem Luogu 633B

CODE FESTIVAL 2017 Final J 题解

[problem](https://www.luogu.com.cn/problem/AT_cf17_final_j) & [blog](https://www.cnblogs.com/liangbowen/p/17542298.html)。 萌萌点分治,积累个 trick /qq。 > 对于完全图 ......
题解 FESTIVAL Final CODE 2017

Atcoder ABC308H Make Q

考虑枚举唯一一个度数为 $3$ 的点 $u$,即既在环上又与非环上一点相连的那个点。 接下来考虑先处理环,那可以先把 $u$ 从图上删掉,环的最短距离便是与 $u$ 有连边的 $2$ 个点在图上最短路长度加上 $2$ 个点与 $u$ 连边的长度,即 $\min\{w_{u, i} + w_{u, j ......
Atcoder 308H Make ABC 308

AT-abc214-g题解

title: AT_abc214_g题解 date: 2023-05-30 21:12:20 tags: 题解 cover: https://i.imgloc.com/2023/05/30/Vt18Rz.jpeg # 题目描述 给定两个排列 $p, q$,要求统计满足 $\forall i, r_i ......
题解 AT-abc 214 abc AT

P2886题解

title: P2886题解 date: 2023-05-15 16:18:46 tags: 题解 cover: https://d-sketon.top/img/backimg/bg9.jpg # 题目大意 给定起点 $S$ 和终点 $T$,求从起点到终点**恰好**经过 $N$ ($N$ 给定) ......
题解 P2886 2886

P4016题解

title: P4016题解 date: 2023-05-22 14:05:46 tags: 题解 cover: https://d-sketon.top/img/backimg/bg23.jpg 本题是一个比较经典的问题(环形均分纸牌问题),我也不知道为什么它在网络流 24 题里面出现。但是作为一 ......
题解 P4016 4016

P3599题解

title: P3599题解 date: 2023-05-29 10:58:58 tags: 题解 cover: https://img.paulzzh.com/touhou/konachan/jpeg/068aa04808f99c146d186a4b1006ffef.jpg 本题是一道比较典的构造 ......
题解 P3599 3599

CF1421E题解

title: CF1421E题解 date: 2023-05-25 21:06:45 tags: 题解 cover: https://img.paulzzh.com/touhou/konachan/image/5558d2c6085f80d3cfeade810d7aa417.jpg [题目链接](h ......
题解 1421E 1421 CF

NOIP2013-2023题解

title: NOIP2013-2023题解 date: 2023-06-12 21:24:37 tags: 题解 cover: https://img.paulzzh.com/touhou/konachan/jpeg/9f3e2443fc9d396c24bff395564565db.jpg ~~本 ......
题解 NOIP 2013 2023

CF1545D-题解

title: CF1545D 题解 date: 2023-06-05 19:36:13 tags: 题解 cover: https://img.paulzzh.com/touhou/konachan/image/bdf79fcf8026aae582a32911c942c8b0.jpg [题目链接]( ......
题解 1545 CF

Largest-Smallest-Cyclic-Shift题解

title: Largest Smallest Cyclic Shift题解 date: 2023-06-05 11:22:16 tags: 题解 cover: https://img.paulzzh.com/touhou/konachan/image/f7e83305150ed53be7ccf88 ......

abc073d <Floyed + 枚举排列>

[D - joisino's travel](https://atcoder.jp/contests/abc073/tasks/abc073_d) ``` // https://atcoder.jp/contests/abc073/tasks/abc073_d // Floyed + 枚举排列 #i ......
Floyed 073d abc 073 lt

CF1827D 题解

[problem](https://www.luogu.com.cn/problem/CF1827D) & [blog](https://www.cnblogs.com/liangbowen/p/17541713.html)。 很好的题。用到一些关于重心的 trick。 不妨认为只有一个重心 $\t ......
题解 1827D 1827 CF

abc072d <贪心>

[D - Derangement](https://atcoder.jp/contests/abc072/tasks/arc082_b) ``` // https://atcoder.jp/contests/abc072/tasks/arc082_b // // 令0表示p[i]!=i, 1表示p[ ......
072d abc 072 lt gt

P1672 [USACO05FEB] Feed Accounting S 题解

给 $c$ 个区间表示牛吃草的时间段,每头牛每天吃 $1$ 千克,问距今天(即运来饲料 $f_2$ 千克的时间)最近的送饲料 $f_1$ 千克的时间是什么时候? ......
题解 Accounting P1672 USACO 1672

abc071d <递推>

[D - Coloring Dominoes](https://atcoder.jp/contests/abc071/tasks/arc081_b) ``` // https://atcoder.jp/contests/abc071/tasks/arc081_b // #include #inclu ......
071d abc 071 lt gt

abc070d <简单树上dfs>

[D - Transit Tree Path](https://atcoder.jp/contests/abc070/tasks/abc070_d) ``` // https://atcoder.jp/contests/abc070/tasks/abc070_d // #include #inclu ......
070d abc 070 dfs lt

abc069d <构造>

[D - Grid Coloring](https://atcoder.jp/contests/abc069/tasks/arc080_b) ``` // https://atcoder.jp/contests/abc069/tasks/arc080_b // #include #include # ......
069d abc 069 lt gt