![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构 STL
文章平均质量分 72
Albert__s
一直奔跑总会有出头之日。
展开
-
UVa 10474 Where is the Marble? 【STL】【排序与检索-sort和lower_bound】
AC代码:原创 2017-02-07 22:55:40 · 448 阅读 · 0 评论 -
UVa 156 Ananagrams 【STL】【map】
题目链接:map的用法,参考紫书114页AC代码:#include #include #include #include #include #include #include using namespace std;map cnt;vector words;string repr(const string& s)//把每个单词“标准化”{ string原创 2017-02-21 19:12:03 · 1222 阅读 · 0 评论 -
UVa 540 Team Queue 【STL】【queue】
题目链接:点击打开链接参照紫书118页AC代码:#include #include #include #include #include #include #include using namespace std;const int maxn = 1005;int main(){ int t, cou = 0; while(~scanf("%d",&原创 2017-02-21 19:51:15 · 260 阅读 · 0 评论 -
UVa 136 Ugly Numbers 【STL】【priority_queue】
题目链接:点击打开链接参照紫书120页AC代码:#include #include #include #include #include #include #include #include using namespace std;typedef long long LL;const int coeff[3] = {2, 3, 5};int main(){原创 2017-02-21 20:06:06 · 358 阅读 · 0 评论 -
UVa 101 The Blocks Problem 【STL】【vector】【模拟】
题目:点击打开链接紫书110页小技巧:输入的四种指令,找到其共同点会使代码简单多AC代码:#include #include #include #include #include #include using namespace std;const int maxn = 30;int n;vector pile[maxn];void find_block(i原创 2017-02-26 22:56:25 · 279 阅读 · 0 评论 -
UVa 10815 Andy's First Dictionary 【STL】【set】
题目链接:点击打开链接练习set的用法,可参考紫书112页AC代码:#include #include #include #include #include #include #include #include using namespace std;set dict; //string集合int main(){ string s, buf; w原创 2017-02-21 18:42:43 · 401 阅读 · 0 评论 -
UVa 12096 The SetStack Computer 【STL】【stack】
题目链接:点击打开链接紫书116页AC代码:#include #include #include #include #include #include #include #include #include using namespace std;#define ALL(x) x.begin(),x.end()#define INS(x) inserter(x, x原创 2017-02-26 23:44:19 · 462 阅读 · 0 评论