摘要: #include <iostream>#include <cstdlib>#include <queue> using namespace std; struct Node{ int x, y; bool operator<(const Node& b) const { return x > b.x; }};int main(){ priority_queue<Node> q; for( int i= 0; i< 10; ++i ) { Node n; n.x = rand(); n.y = ra... 阅读全文
posted @ 2012-04-24 13:25 flowskyac 阅读(133) 评论(0) 推荐(0) 编辑