摘要:
题目传送门 视频讲解 先挖坑待填吧,没有AC /* 要想求出每个点存放最多的是哪种类型的物品,需要求出每个点上存放的每种物品的数量。 朴素做法,对物品的类型进行离散化(最多 M 种不同物品),然后对每个点 x 建立一个计数数组 c[x][1~M]。 依次执行每个发放操作,对 x 到 y 的路径上的每 阅读全文
摘要:
#include <cstdio> #include <cstring> #include <algorithm> #include <iostream> #include <cmath> using namespace std; typedef long long LL; const int N 阅读全文