Mountains

CCO 2023 Day1 Real Mountains

题面 题意简述:给定一个长度为 \(n\) 的高度数列 \(h\),可以选定 \(i < j < k\) 且 \(h_i > h_j < h_k\),付出 \(h_i + h_j + h_k\) 的代价使 \(h_j\) 增高 \(1\)。问使 \(h\) 满足 \(\exist p \in [1, ......
Mountains 2023 Day1 Real CCO

G. Vlad and the Mountains

G. Vlad and the Mountains 题意:给你每个点的高度,从a到b需要消耗h[b]-h[a]的体力值(所以说下坡时体力值可以增加),询问一开始你有e的体力值,问是否可以从u->v点 分析: 1.a->b最终消耗的体力值一定为h[b]-h[a],如果一开始的体力值都达不到肯定无法过 ......
Mountains Vlad and the

Codeforces Round 888 (Div. 3)G. Vlad and the Mountains(数据结构,图论)

题目链接:https://codeforces.com/contest/1851/problem/G 大致题意: 给出n个点m条边的无向图,每个点有点权h【i】。从点 i 到 点 j会消耗 h【j】 - h【i】 的能量,如果小于0,那么就是恢复对应绝对值的能量。 进行q次询问,每次询问包含起点s, ......

G. Vlad and the Mountains

G. Vlad and the Mountains Vlad decided to go on a trip to the mountains. He plans to move between $n$ mountains, some of which are connected by roads. ......
Mountains Vlad and the
共4篇  :1/1页 首页上一页1下一页尾页