随笔分类 -  stl

C++STL 优先队列priority_queue使用
摘要:头文件:#include <queue> 一.申明方式 struct cmp { bool operator ()(int x, int y) { return x > y; // 小的优先级高 } }; priority_queue<int, vector<int>, cmp> q; 3.友元函数 阅读全文

posted @ 2018-08-07 12:20 一零七 阅读(1369) 评论(0) 推荐(0)

B - Queries about less or equal elements CodeForces - 600B (STL 水题)
摘要:B - Queries about less or equal elements CodeForces - 600B You are given two arrays of integers a and b. For each element of the secon... 阅读全文

posted @ 2018-07-25 16:24 一零七 阅读(126) 评论(0) 推荐(0)

导航