随笔分类 -  stl

Uva10474 - Where is the Marble?
摘要:两种解法: 1.计数排序 //计数排序#include#include#include#includeusing namespace std;const int maxn=10001;int v[maxn], s[maxn];int main() { int N, Q; int Kase=0; while(cin>>N>>Q && N && Q) { ... 阅读全文

posted @ 2014-06-10 16:46 katago 阅读(154) 评论(0) 推荐(0) 编辑

stl lower_bound upper_bound binary_search equal_range
摘要:自己按照stl实现了一个: http://www.cplusplus.com/reference/algorithm/binary_search/ 这里有个注释,如何判断两个元素相同: Two elements, a and bare considered equivalent if (!(a bool binary_search (ForwardIterator first, For... 阅读全文

posted @ 2014-03-24 14:59 katago 阅读(220) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示