【题解】洛谷P2827[NOIP2016]蚯蚓 优先队列+模拟

题目链接 最开始敲了个85的模拟……想想也没那么简单。 学习了大佬题解,其中单调性很关键。 #include<cstdio> #include<queue> #include<cmath> #include<algorithm> #define re register using namespace std; template<class T>inline void read(T&x) { x
相关文章
相关标签/搜索