摘要: https://www.cnblogs.com/HDUjackyan/https://www.cnblogs.com/RabbitHu/p/FFT.html 阅读全文
posted @ 2020-09-04 21:14 wwwsfff 阅读(136) 评论(0) 推荐(0)
摘要: 题面 背包,排序后显然和时间没有关系 记f[i]为深度为i的点的最大耐饿时间,很容易推出式子 Warning:边界问题,每次转移要保证奶牛还活着(即f[i]>=t) #include<bits/stdc++.h> using namespace std; const int N=1e5+5; str 阅读全文
posted @ 2020-09-04 20:39 wwwsfff 阅读(178) 评论(0) 推荐(0)