
ACM-STL的使用
文章平均质量分 81
OFShare
这个作者很懒,什么都没留下…
展开
-
hdu Problem-5702(结构体排序)
Solving OrderTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1306 Accepted Submission(s): 859Problem DescriptionWelcome to HD原创 2017-06-16 17:04:48 · 461 阅读 · 0 评论 -
UVa156(map的使用)
//思路:用map记录重排string后出现的次数,如果为1次,就是我们想要的结果AC源码:#include #include #include #include #include #include using namespace std;map cnt;vector svec;void solve(){ string buf; while(cin>>bu原创 2017-06-11 21:04:22 · 398 阅读 · 0 评论 -
UVa 1592Database(map的妙用)
Peter studies the theory of relational databases. Table in the relational database consists of values that are arranged in rows and columns. There are different normal forms that database may adhere原创 2017-06-21 15:25:01 · 424 阅读 · 0 评论 -
UVa 540(map+queue)
Queues and Priority Queues are data structures which are known to most computer scientists. The Team Queue, however, is not so well known, though it occurs often in everyday life. At lunch time the qu原创 2017-06-20 22:45:49 · 280 阅读 · 0 评论 -
hdu Problem-4277(dfs+set)
USACO ORZTime Limit: 5000/1500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4954 Accepted Submission(s): 1630Problem DescriptionLike everyone, c原创 2017-06-18 09:27:37 · 514 阅读 · 0 评论 -
hdu Problem-1004(map+sort)
Let the Balloon RiseTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 121221 Accepted Submission(s): 47632Problem DescriptionCo原创 2017-06-18 00:32:53 · 336 阅读 · 0 评论 -
UVa136 Ugly Numbers(优先队列+set判重)
//思路:如果x是丑数,那么2*x,3*x,5*x都是丑数,则可以用一个优先队列保存生成的丑数(另外需要判重即相同的丑数不能入队列)AC源码:#include #include #include #include using namespace std;const int A[]={2,3,5};typedef long long LL;int main(){原创 2017-06-17 22:05:09 · 419 阅读 · 0 评论 -
hdu Problem-1896(优先队列+模拟)
StonesTime Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2739 Accepted Submission(s): 1763Problem DescriptionBecause of the wron原创 2017-06-17 13:45:22 · 333 阅读 · 0 评论 -
hdu Problem-1678(priority_queue+模拟)
ShopaholicTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3117 Accepted Submission(s): 1706Problem DescriptionLindsay is a sh原创 2017-06-16 21:38:58 · 358 阅读 · 0 评论 -
UVa10474(排序和查找)
//思路:用vector存储,在sort排序就可以了AC代码:#include #include #include using namespace std;int main(){ int N,Q,kase=0; while(cin>>N>>Q&&N) { cout<<"CASE# "<<(++kase)<<":"<<endl; vector ivec;原创 2017-06-13 00:03:18 · 460 阅读 · 0 评论