1794

[CF1794E] Labeling the Tree with Distances 题解

# [CF1794E] Labeling the Tree with Distances 题解 ## 题目描述 给你一个树,边权为 $1$。给定 $n-1$ 个数,你需要将这些数分配到 $n-1$ 个节点上。 一个点 $x$ 是好的,当且仅当存在一种分配方案,所有被分配数的点到 $x$ 的最短路径长 ......
题解 Distances Labeling 1794E 1794

P1794 求解好多鱼问题

#include<iostream> #include<vector> #include<algorithm> using namespace std; vector<int>vd; vector<int>vn; int n; int minsize; int maxsize; int main() ......
问题 P1794 1794

CF1794D 题解

一、题目描述: 一个正整数 $m$ 可以被唯一分解成 $p_1^{e_1} \times p_2^{e_2} \times ...\times p_k^{e_k}$ 的形式,其中 $p_1,p_2,...,p_k$为互不相同的质数,$e_1,e_2,...,e_k$ 为正整数。 定义一个可重集 $f ......
题解 1794D 1794 CF
共3篇  :1/1页 首页上一页1下一页尾页