随笔分类 -  数据结构_基础

cf519D . A and B and Interesting Substrings 数据结构map
摘要:题意:已知26个小写字母有各自的权值(正,负,或0)现在给出一个字符串,长度#include #include #include #include #include #include #define LL long long#define fir first#define sec secondusi... 阅读全文
posted @ 2015-12-18 01:51 _fukua 阅读(449) 评论(0) 推荐(1)
hdu 5444 Elven Postman 二叉树
摘要:Time Limit: 1500/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Others)Problem DescriptionElves are very peculiar creatures. As we all know,... 阅读全文
posted @ 2015-09-14 17:03 _fukua 阅读(263) 评论(0) 推荐(0)
hdu 5437 Alisha’s Party 模拟 优先队列
摘要:Problem DescriptionPrincess Alisha invites her friends to come to her birthday party. Each of her friends will bring a gift of some valuev, and all of... 阅读全文
posted @ 2015-09-13 20:11 _fukua 阅读(265) 评论(0) 推荐(0)
POJ 3494 Largest Submatrix of All 1's 栈的运用 好题
摘要:Language:Largest Submatrix of All 1’sTime Limit:5000MSMemory Limit:131072KTotal Submissions:5185Accepted:1950Case Time Limit:2000MSDescriptionGiven am... 阅读全文
posted @ 2015-05-30 10:55 _fukua 阅读(842) 评论(0) 推荐(0)
HDU 1022 Train Problem I stack 基础题
摘要:题意:有一个火车站,只有一个口同时用于进入和出去,但不能有2辆或以上同时进出。给出一个n代表有n辆火车(n 2 #include 3 #include 4 using namespace std; 5 char in[12]; 6 char out[12]; 7 int ans[24]; 8 int... 阅读全文
posted @ 2015-04-05 12:47 _fukua 阅读(262) 评论(0) 推荐(0)