约 201,000 个结果
在新选项卡中打开链接
  1. E - Snowflake Tree - atcoder.jp

    Consider deleting zero or more vertices of T T and the edges adjacent to them so that the remaining graph becomes a single Snowflake Tree. Find the minimum number of vertices that …

  2. Editorial - UNIQUE VISION Programming Contest 2024 Christmas (AtCoder ...

    Here, N- (1+x+xy) N −(1 +x+xy) vertices need to be removed. The problem can be solved by iterating through u u and x x exhaustively, counting the number of vertices to be removed, and …

  3. Atcoder Beginner Contest (ABC) 385 | ABCD solved - YouTube

    101 views • Dec 21, 2024 • #competitiveprogramming #codeforces #atcoder

  4. AtCoder Beginner Contest 385 - iwantdaydayup.github.io

    Fix a vertex u u to become the center, and the number of first-layer vertices x x. If vertices v_1, v_2, ..., v_x v1,v2,...,vx are chosen for the first layer, the maximum value that can be chosen …

  5. GitHub - risal-shefin/ProblemSolving: Codeforces & Atcoder

    Codeforces & Atcoder Solutions. Contribute to risal-shefin/ProblemSolving development by creating an account on GitHub.

  6. AtCoder Beginner Contest 385(A~F)题解 - CSDN博客

    先写上A~E的题解,后续补题会将F补上去思路:由题可知最多只能分成三组,我们只需要判断是否三个数都相等,或者两个数相加等于另外一个数即可。

  7. AtCoder ABC 385 E - Snowflake Tree (1D, 水色, 450 点)

    頂点数 N N の木が与えられ、いくつかの頂点を削除して「ユ木」にしたい。 削除する頂点の個数の最小値を求めよ。 与えられた木において、どの頂点を「ユ木の中心」にするかで場合 …

  8. [题解]AtCoder Beginner Contest 385 (ABC385) A~F - 博客园

    E - Snowflake Tree 可以发现,确定中心点 u u 以及 x x 后,此时雪花树的顶点个数也就确定了,为 (min v deg (v)) × x + 1 (vmindeg(v))×x+1,其中 v v 是与 u u 邻接的点。

  9. 【ABC385】AtCoder Beginner Contest 385【C++】 - Zenn

    cout << "Yes" << endl; return 0; } if(a + b == c || a + c == b || b + c == a){ . cout << "No" << endl; return 0; } 解法. cin >> h >> w >> x >> y; . x --; . y --; . vector <vector <char>> S(h, …

  10. Atcoder Beginner Contest 385 - 知乎

    省流:EF全挂 A 题意 是否能将三个数分成大于1组,使得每组总和相同 做法 直接判断 代码