atcoder-abc medicine atcoder abc

AtCoder Beginner Contest 281 Ex Alchemy

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc281_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc281/tasks/abc281_h "AtCoder 传送门") 考虑设 $f_i$ ......
Beginner AtCoder Alchemy Contest 281

[ABC208E] Digit Products 题解

[Digit Products](https://www.luogu.com.cn/problem/AT_abc208_e) ### 题目大意 求有多少个不大于 $n$ 的正整数,使得该正整数各位乘积不大于 $k$。 ### 思路分析 观察数据范围,首先考虑数位 DP。 考虑设计记忆化搜索函数 `d ......
题解 Products Digit 208E ABC

[ABC207E] Mod i 题解

[Mod i](https://www.luogu.com.cn/problem/AT_abc207_e) ### 题目大意 给定一个序列 $a$,问将其划分成若干段,满足第 $i$ 段的和是 $i$ 的倍数的划分方案的个数。 ### 思路分析 考虑 DP,设 $f_{i,j}$ 表示将序列中前 $ ......
题解 207E ABC 207 Mod

[ABC202E] Count Descendants 题解

[Count Descendants](https://www.luogu.com.cn/problem/AT_abc202_e) ### 题目大意 给定一颗以 $1$ 为根的树,多次询问求某点的子树中深度为给定值的点的个数。 ### 思路分析 对于每个深度开一个 `vector`,从大到小存下这个 ......
题解 Descendants Count 202E ABC

[ABC201E] Xor Distances 题解

[Xor Distances](https://www.luogu.com.cn/problem/AT_abc201_e) ### 题目大意 给定一颗带边权无根树,定义 $\text{dis}(i,j)$ 表示 $i,j$ 两点在树上的最短路径的边权的异或和。求: $$\sum_{i=1}^n\su ......
题解 Distances 201E ABC 201

[ABC204E] Rush Hour 2 题解

[Rush Hour 2](https://www.luogu.com.cn/problem/AT_abc204_e) ### 题目大意 给定一张无向图,边带两个参数 $c_i,d_i$,在 $t$ 时间时经过第 $i$ 条边所需的时间是 $c_i+\lfloor\frac{d_i}{t+1}\rf ......
题解 204E Rush Hour ABC

[ABC205F] Grid and Tokens 题解

[Grid and Tokens](https://www.luogu.com.cn/problem/AT_abc205_f) ### 题目大意 给定 $n$ 个点和一个 $H\times W$ 的网格,每个点可以放置在 $(A_i,B_i)$ 到 $(C_i,D_i)$ 的矩形中或不放,每一行或一 ......
题解 Tokens 205F Grid ABC

[ABC205E] White and Black Balls 题解

[White and Black Balls](https://www.luogu.com.cn/problem/AT_abc205_e) ### 题目大意 将 $n$ 个白球,$m$ 个黑球排成一列,要求满足 $\forall i\in[1,n+m],w_i\le b_i+k$,问存在多少种排法。 ......
题解 White Black Balls 205E

[ABC201D] Game in Momotetsu World 题解

[Game in Momotetsu World](https://www.luogu.com.cn/problem/AT_abc201_d) ### 题目大意 在一个 $n\times m$ 的网格中,存在红色和蓝色两种格子,红色格子用 `-` 表示,蓝色格子用 `+` 表示。 现在 Takaha ......
题解 Momotetsu World 201D Game

AtCoder Beginner Contest 287 G Balance Update Query

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc287_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc287/tasks/abc287_g "AtCoder 传送门") 线段树上二分入门题 ......
Beginner AtCoder Balance Contest Update

AtCoder Beginner Contest 258 G Grid Card Game

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc259_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc259/tasks/abc259_g "AtCoder 传送门") 记 $b_i = ......
Beginner AtCoder Contest Card Grid

AtCoder Regular Contest 145

### [A](https://atcoder.jp/contests/arc145/tasks/arc145_a) 答案为 `Yes` 当且仅当 $s[1] \ne $ `A` 或 $s[n] \ne $ `B`。 注意判 $n = 2$。 ### [B](https://atcoder.jp/c ......
AtCoder Regular Contest 145

【题解】[ABC304F] Shift Table(容斥)

# 【题解】[ABC304F] Shift Table ## 题目链接 [ABC304F](https://atcoder.jp/contests/abc304/tasks/abc304_f) ## 题意概述 Takahashi 和 Aoki 将在接下来的 $N$ 天里兼职工作。 Takahashi ......
题解 Shift Table 304F ABC

AtCoder Beginner Contest 304 ABCDE

[AtCoder Beginner Contest 304](https://atcoder.jp/contests/abc304) ![image](https://img2023.cnblogs.com/blog/2458891/202306/2458891-20230604120319565- ......
Beginner AtCoder Contest ABCDE 304

ABC304

## T1:[First Player](https://atcoder.jp/contests/abc304/tasks/abc304_a "First Player") 模拟 代码实现 ``` #include #define rep(i, n) for (int i = 0; i > n; v ......
ABC 304

AtCoder Beginner Contest 304

## [A - First Player (abc304 a)](https://atcoder.jp/contests/abc304/tasks/abc304_a) ### 题目大意 依次给定每个人的姓名和年龄,排成一圈。从年龄最小的人依次输出姓名。 ### 解题思路 找到年龄最小的,依次输出就好 ......
Beginner AtCoder Contest 304

ABC302Ex Ball Collector 题解

注意到当有那些 $(a_i,b_i)$ 是确定的时,答案就是将 $(a_i,b_i)$ 连边后每个连通块的 $\min(|V|,|E|)$ 之和。 那么这个东西用可撤销并查集维护即可。 ```cpp #include #include using namespace std; const int N ......
题解 Collector Ball ABC 302

ABC215E 题解

## 前言 [题目传送门!](https://www.luogu.com.cn/problem/AT_abc215_e) [更好的阅读体验?](https://www.cnblogs.com/liangbowen/p/17454445.html) 萌萌 DP 题。 ## 思路 题目就是在说从 $a$ ......
题解 215E ABC 215

v2r[abc]ayA

# Debian/Ubuntu v2r[abc]ayA 的功能依赖于 V2R[abc]ay 内核,因此需要安装内核 ## 安装 V2R[abc]ay 内核 ### 方法一 V2R[abc]ay 的官方脚本 V2R[abc]ay 安装参考:https://github.com/v2fly/fhs-in ......
v2r abc ayA v2 2r

[ABC303E]

# [[ABC303E] A Gift From the Stars](https://www.luogu.com.cn/problem/AT_abc303_e) 每次合并都是合并入度为 $1$ 的点,所以合并的一定不是中心,且被合并后入度是 $2$。因此如果某个节点的入度 $\ge 3$,那么这个 ......
303E ABC 303

AtCoder Beginner Contest 214 H Collecting

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc214_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc214/tasks/abc214_h "AtCoder 传送门") 好毒瘤啊…… 首先 ......
Collecting Beginner AtCoder Contest 214

[ABC270Ex] add 1

Problem StatementYou are given a tuple of $N$ non-negative integers $A=(A_1,A_2,\ldots,A_N)$ such that $A_1=0$ and $A_N>0$. Takahashi has $N$ counters ......
ABC 270 add Ex

abc275_f Erase Subarrays 题解

# [Erase Subarrays](https://vjudge.csgrandeur.cn/problem/AtCoder-abc275_f) ## 题意 有一个长度为 $n$ 的整数序列 $a$,你可以执行以下操作若干次(可以不执行): - 选择序列的一个子段,将子段中的每个数变为 $0$。 ......
题解 Subarrays Erase abc 275

AtCoder Beginner Contest 286(G)

# AtCoder Beginner Contest 286(G) ## G(欧拉路径) [G](https://atcoder.jp/contests/abc286/tasks/abc286_g) 题意大致为$n$个点,$m$个边的图,然后给出$k$条边的编号,问我们这$k$条边可不可以在一条路径 ......
Beginner AtCoder Contest 286

AtCoder Beginner Contest 287(C,D,E,F)

# AtCoder Beginner Contest 287(C,D,E,F) ## C (图) [C](https://atcoder.jp/contests/abc287/tasks/abc287_c) 题目大意为$n$个点,$m$条边,问是否这个图是一条长度为$n$的链 这个就直接判断每个点的 ......
Beginner AtCoder Contest 287

Java多线程 有ABC 3 个线程,线程C需要等待线程AB执行完成才能执行的实现方式

https://blog.csdn.net/qq_42337969/article/details/118073089?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EB ......
线程 方式 Java ABC

AtCoder Beginner Contest 214 G Three Permutations

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc214_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc214/tasks/abc214_g "AtCoder 传送门") 比较平凡的一个容斥 ......
Permutations Beginner AtCoder Contest Three

AtCoder Beginner Contest 247 Ex Rearranging Problem

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc247_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc247/tasks/abc247_h "AtCoder 传送门") 考虑我们如何判定一 ......
Rearranging Beginner AtCoder Contest Problem

AtCoder Beginner Contest 303

# **A - Similar String** ```cpp #include using namespace std; #define int long long int32_t main() { int n; string s , t; cin >> n >> s >> t; for( int ......
Beginner AtCoder Contest 303

AtCoder Beginner Contest 213 H Stroll

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc213_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc213/tasks/abc213_h "AtCoder 传送门") 考虑一个朴素 dp ......
Beginner AtCoder Contest Stroll 213