atcoder-abc medicine atcoder abc

Atcoder Grand Contest 062 D - Walk Around Neighborhood

csy/bx wjz/bx 首先将 $a$ 排序,如果 $\sum\limits_{i=1}^{n-1}a_id$ 的元素 $x$,满足 $\le d$ 的元素之和 $\ge x-d$,那我们肯定可以先走到 $(x-d,0)$ 然后一步走到 $(-d,0)$,否则可以证明是不行的。 从全局的角度考虑 ......
Neighborhood Atcoder Contest Around Grand

ABC268G 题解

## 前言 [题目传送门!](https://www.luogu.com.cn/problem/AT_abc268_g) [更好的阅读体验?](https://www.cnblogs.com/liangbowen/p/17435701.html) 很牛逼的题目,这题是要从定义出发,而非 DP,但是想 ......
题解 268G ABC 268

ABC261F 题解

## 前言 [题目传送门!](https://www.luogu.com.cn/problem/AT_abc261_f) [更好的阅读体验?](https://www.cnblogs.com/liangbowen/p/17435683.html) 非常好的数据结构优化题。 ## 思路 对于第 $x$ ......
题解 261F ABC 261

[abc279 G] At Most 2 Colors

# [G - At Most 2 Colors (atcoder.jp)](https://atcoder.jp/contests/abc279/tasks/abc279_g) > 重点讲解方法三,因为~~方法三是蒟蒻都能想出来的~~方法一和方法二都可以借助方法三的思想推出 ## 方法一 这是最简单 ......
Colors Most abc 279 At

AtCoder Regular Contest 139 E Wazir

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc139_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc139/tasks/arc139_e "AtCoder 传送门") 好题。 这种题一般 ......
AtCoder Regular Contest Wazir 139

AtCoder做题记录

## AtCoder做题记录 #### [[ARC082F] Sandglass](https://www.luogu.com.cn/problem/AT_arc082_d) 题意:有一个沙漏,每秒会有1g沙子从上面落下来,有$k$个时刻$r_1,r_2\cdots r_k$,每到$r_i$沙漏就会 ......
AtCoder

【atcoder begin 302】【e题 Isolation 】JAVA的快速输入输出

import java.io.*; import java.util.HashSet; import java.util.Set; /** * @author fishcanfly */ public class Main { public static void main(String[] arg ......
Isolation atcoder begin JAVA 302

AT_abc271_c 总结

题目:AT_abc271_c 链接:[洛谷](https://www.luogu.com.cn/problem/AT_abc271_c), [AT](https://atcoder.jp/contests/abc271/tasks/abc271_c),[vjudge](https://vjudge. ......
AT_abc 271 abc AT

AtCoder Beginner Contest 300(E,F)

# AtCoder Beginner Contest 300(E,F) ## E (概率dp) [E](https://atcoder.jp/contests/abc300/tasks/abc300_e) 这个题意大致就是一开始有一个初始数$x$为$1$,然后我们有一个骰子,最后得到的点数概率一样, ......
Beginner AtCoder Contest 300

[ABC287D] Match or Not 题解

## Description 翻译给的很明白了,就是让你判断 $S$ 串的前 $x(0 \leq x \leq |T|)$ 个字符和后 $|T|-x$ 个字符组成的字符串和 $T$ 串是否相等,其中问号能代替所有字母。 ## Solution 很有意思的一道题。 首先我们可以知道,如果前 $i-1$ ......
题解 Match 287D ABC 287

[ABC294G] Distance Queries on a Tree 题解

## Description 有一个节点数为 $N$ 的树。边 $i$ 连接 $u_i$ 和 $v_i$,边的权值为 $w_i$。 $Q$ 次询问,询问一共有两种。 ```1 i w``` :改变第 $i$ 条边的权值为 $w$。 ```2 u v``` :输出 $u$ 到 $v$ 的路径距离。 数 ......
题解 Distance Queries 294G Tree

AtCoder Beginner Contest 302

# A - Attack ```cpp #include using namespace std; #define int long long int32_t main() { int a , b; cin >> a >> b; cout using namespace std; #define i ......
Beginner AtCoder Contest 302

AtCoder Regular Contest 146 D >=<

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc146_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc146/tasks/arc146_d "AtCoder 传送门") 考虑直接增量构造。 ......
AtCoder Regular Contest 146 gt

AtCoder Beginner Contest 193 F Zebraness

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc193_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc193/tasks/abc193_f "AtCoder 传送门") 复习一下最小割。 ......
Zebraness Beginner AtCoder Contest 193

AtCoder Regular Contest 146 C Even XOR

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc146_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc146/tasks/arc146_c "AtCoder 传送门") 好可爱的题啊。 没 ......
AtCoder Regular Contest Even 146

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

AtCoder Beginner Contest 267 Ex Odd Sum

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc267_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc267/tasks/abc267_h "AtCoder 传送门") 直接暴力跑背包的复 ......
Beginner AtCoder Contest 267 Odd

AtCoder Beginner Contest 302(E,F,G)

# AtCoder Beginner Contest 302(E,F,G) ## E(图,set) [E](https://atcoder.jp/contests/abc302/tasks/abc302_e) 这个题意大致为一开始给出$n$个点,没有一条边,后面陆续会有$q$次操作,以下两种方式 $ ......
Beginner AtCoder Contest 302

AtCoder Regular Contest 139 D Priority Queue 2

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc139_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc139/tasks/arc139_d "AtCoder 传送门") 看成方案数想了 1 ......
Priority AtCoder Regular Contest Queue

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

AT_abc_272_e 总结

# 题意 - 给定长度为 $n$ 的数组 $a_i$。执行操作 $m$ 次,每次操作将 $a_i$ 加上 $i$,对于每操作求出,最小的非负整数,使得 $A$ 不包含它。 - 数据范围:$1 \le n \le 2 \times 10^5, 1 \le a_i \le 10^9$。 # 思路 - 首 ......
AT_abc 272 abc AT

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

AT_abc_271_f 总结

题目:AT_abc_271_f 链接:[洛谷](https://www.luogu.com.cn/problem/AT_abc271_f),[AT](https://atcoder.jp/contests/abc271/tasks/abc271_f),[vjudge](https://vjudge. ......
AT_abc 271 abc AT

AT_abc271_e 总结

题目:AT_abc271_e 链接:[洛谷](https://www.luogu.com.cn/problem/AT_abc271_e),[AT](https://atcoder.jp/contests/abc271/tasks/abc271_e),[vjudge](https://vjudge.c ......
AT_abc 271 abc AT

abc273_e Notebook 题解

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

AtCoder Regular Contest 132 E Paw

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_e "AtCoder 传送门") 感觉挺 educa ......
AtCoder Regular Contest 132 Paw

AtCoder Regular Contest 132 F Takahashi The Strongest

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc132_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc132/tasks/arc132_f "AtCoder 传送门") 没见过这种在新运算 ......
Takahashi Strongest AtCoder Regular Contest

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

[ABC143E] Travel by Car

[Travel by Car 的 传送门](https://www.luogu.com.cn/problem/AT_abc143_e) > $n\le300$ 可~~凭感觉~~进行一遍 Floyd。 然后选两个点 $i,j$,如果 $i,j$ 间的距离小于等于 $l$,则将 $i,j$ 连一条代价为 ......
Travel 143E ABC 143 Car

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