首页 > CHEAP DELIVERIES
头像 __故人__
发表于 2020-10-13 21:59:08
分析 很套路的一道题,但是初始值初始时有点搞心态。主要是考虑到 ,很自然的想到用状压去维护。定义 为当前节点在 ,已经过了的节点状态为 。那么我们的转移也比较简单 。那么我们只需要预处理 即可。 代码 #include<bits/stdc++.h> using namesp 展开全文
头像 Kur1su
发表于 2020-10-03 08:49:05
Description Abu runs a delivery service where he deliver items from one city to another. As with any business, Abu wants to decrease his cost as much 展开全文

等你来战

查看全部