摘要: c++ set用法详解 c++ stack用法详解 stackstack常用操作例题 stack 栈是基本的数据结构之一,特点是先进后出,就如开进死胡同的车队,先进去的只能最后出来. 在c++ 中,stack的头文件是#include<stack> stack常用操作 stack<int> q; / 阅读全文
posted @ 2021-07-30 16:27 斯文~ 阅读(930) 评论(0) 推荐(0)
摘要: c++ stack用法详解 c++ set用法详解 setset常用操作set单元素应用set多元素应用(结构体)例题 set set就是集合,STL的set用二叉树实现,集合中的每个元素只出现一次(参照数学中集合的互斥性),并且是排好序的(默认按键值升序排列) 访问元素的时间复杂度是 O ( lo 阅读全文
posted @ 2021-07-30 15:35 斯文~ 阅读(1865) 评论(0) 推荐(1)
摘要: https://vjudge.net/problem/HDU-2159 #include#include#include#defin... 阅读全文
posted @ 2021-07-30 11:28 斯文~ 阅读(17) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/HDU-2191 有条件限制的多重背包,转换成01背包来做 #include#... 阅读全文
posted @ 2021-07-30 10:58 斯文~ 阅读(19) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/51Nod-2649 模板题 #include#include#include... 阅读全文
posted @ 2021-07-30 10:49 斯文~ 阅读(24) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/51Nod-1086 多重背包模板题 #include#include#inc... 阅读全文
posted @ 2021-07-30 10:43 斯文~ 阅读(13) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/51Nod-1085 01背包模板题 #include#include#inc... 阅读全文
posted @ 2021-07-30 10:39 斯文~ 阅读(13) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/HDU-2602 01背包模板题 #include#include#inclu... 阅读全文
posted @ 2021-07-30 10:18 斯文~ 阅读(19) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/POJ-2533 DP #include #include using nam... 阅读全文
posted @ 2021-07-30 10:08 斯文~ 阅读(18) 评论(0) 推荐(0)
摘要: https://vjudge.net/problem/OpenJ_Bailian-2760 从下往上 #include#includ... 阅读全文
posted @ 2021-07-30 09:42 斯文~ 阅读(26) 评论(0) 推荐(0)

你好!