11.2清北test4T1优先队列模拟

思路 每次要让pos最小,且val最小的猫吃鱼 用小根堆维护 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<queue> #include<cmath> #include<cstdlib> #include<ctime> using namespace std; typedef
相关文章
相关标签/搜索