stl
你的目光看海
这个作者很懒,什么都没留下…
展开
-
hdu 1238
链接:http://acm.hdu.edu.cn/showproblem.php?pid=1238 很简单的一道字符串操作,我第一次用string 写题,就贴上来留到以后看。#include <iostream> #include <algorithm> #include <string> #include <cstdio> #include <cstring> #include <cstdlib原创 2017-03-02 14:33:23 · 308 阅读 · 0 评论 -
pat 天梯团体赛练习-l2-019 悄悄关注
这道题本身没有什么难度,主要是熟悉下stl的用法。原来map#include <iostream> #include <algorithm> #include <set> #include <map> #include <string> #include <stdio.h> #include <stdlib.h> #include <string.h> using namespace std; co原创 2017-03-26 17:03:56 · 499 阅读 · 0 评论 -
UVA 12124
链接 题意:组装电脑 , 每个组件都要一个。 并在价格允许的情况下使得最差质量的质量尽量高。 分析: 贪心+二分写一下就好了 , 这道题是熟悉STL的好题!#include <bits/stdc++.h> #define sc scanf #define pr printf using namespace std; struct note { long long price; l原创 2017-07-23 14:38:09 · 312 阅读 · 0 评论