摘要:
250 c++ include include include include include using namespace std; struct Pair { int val, p; Pair() { } Pair(int _, int __) { val = _, p = __; } boo 阅读全文
摘要:
250 给一个字符串 要求从一种形式换成另一形式 500 一道惊险刺激的好题 可惜就是数据小了点 所以直接枚举答案就能过 这套比赛Div.1的600分题就是它的加强版. c++ class NarrowPassage2Easy { public: int count(vector size, int 阅读全文
摘要:
Description Flute 很喜欢柠檬。它准备了一串用树枝串起来的贝壳,打算用一种魔法把贝壳变成柠檬。贝壳一共有 N (1 ≤ N ≤ 100,000) 只,按顺序串在树枝上。为了方便,我们从左到右给贝壳编号 1..N。每只贝壳的大小不一定相同, 贝壳 i 的大小为 si(1 ≤ si ≤1 阅读全文
摘要:
Description Alice and Bob have a tree (undirected acyclic connected graph). There are $a_{i}$ chocolates waiting to be picked up in the $i th$ vertex 阅读全文