STL
文章平均质量分 80
傲慢的么么forever
待到学有所成时,我会找到人生的意义。
展开
-
双向队列
C++ Double Ended Queues(双向队列)双向队列和向量很相似,但是它允许在容器头部快速插入和删除(就像在尾部一样)。Constructors创建一个新双向队列Operators比较和赋值双向队列assign()设置双向队列的值at()返回指定的元素原创 2015-05-08 21:17:31 · 709 阅读 · 0 评论 -
poj 1862 Stripies
StripiesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 13278 Accepted: 6255DescriptionOur chemical biologists have invented a new very useful form of life called stripies (in fact原创 2015-06-14 19:03:59 · 400 阅读 · 0 评论 -
POJ 3190 Stall Reservations
Stall ReservationsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 3660 Accepted: 1313 Special JudgeDescriptionOh those picky N (1 <= N <= 50,000) cows! They are so picky that each原创 2015-06-10 15:41:37 · 493 阅读 · 0 评论 -
POJ 3050 Hopscotch
HopscotchTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 2419 Accepted: 1728DescriptionThe cows play the child's game of hopscotch in a non-traditional way. Instead of a linear set原创 2015-05-19 12:27:25 · 433 阅读 · 0 评论 -
POJ 3253 Fence Repair
Fence RepairTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 30189 Accepted: 9748DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures原创 2015-06-03 18:47:59 · 367 阅读 · 0 评论 -
Aoj 0525 Osenbei
pilot系列之最基础的穷竭搜索(初级篇)C题意:药药!切克闹! 煎饼果子来一套!有一个烤饼器可以烤r行c列的煎饼,煎饼可以正面朝上(用1表示)也可以背面朝上(用0表示)。一次可将同一行或同一列的煎饼全部翻转。现在需要把尽可能多的煎饼翻成正面朝上,问最多能使多少煎饼正面朝上?输入:多组输入,每组第一行为二整数r, c (1 ≤ r ≤ 10, 1 ≤ c ≤ 10 000),剩下r行c列表原创 2015-05-22 10:16:50 · 751 阅读 · 0 评论 -
POJ 3187 Backward Digit Sums
Backward Digit SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 5001 Accepted: 2876DescriptionFJ and his cows enjoy playing a mental game. They write down the numbers from 1 to原创 2015-05-21 15:31:45 · 399 阅读 · 0 评论 -
POJ 2531 Network Saboteur
Network SaboteurTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9706 Accepted: 4633DescriptionA university network is composed of N computers. System administrators gathered inform原创 2015-05-07 17:40:15 · 554 阅读 · 0 评论 -
HDU 1045 Fire Net
Fire NetTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7281 Accepted Submission(s): 4150Problem DescriptionSuppose that we have a sq原创 2015-05-06 15:23:27 · 398 阅读 · 0 评论 -
POJ 1111 Image Perimeters
Image PerimetersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 8178 Accepted: 4903DescriptionTechnicians in a pathology lab analyze digitized images of slides. Objects on a slide原创 2015-05-05 21:02:30 · 346 阅读 · 0 评论 -
POJ 1915 Knight Moves
Knight MovesTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 22794 Accepted: 10654DescriptionBackground Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him原创 2015-05-05 12:03:43 · 356 阅读 · 0 评论 -
POJ 3984 迷宫问题
迷宫问题Time Limit: 1000MS Memory Limit: 65536KTotal Submissions: 9877 Accepted: 5848Description定义一个二维数组: int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1,原创 2015-05-05 16:21:43 · 368 阅读 · 0 评论 -
HDU 1327 Knight Moves
Knight MovesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8010 Accepted Submission(s): 4719Problem DescriptionA friend of you is do原创 2015-05-05 11:10:12 · 451 阅读 · 0 评论 -
POJ 1208 The Blocks Problem
The Blocks ProblemTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4914 Accepted: 2090DescriptionMany areas of Computer Science use simple, abstract domains for both analytical and原创 2015-05-03 12:15:05 · 414 阅读 · 0 评论 -
POJ 3121 The SetStack Computer
The SetStack ComputerTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 995 Accepted: 206DescriptionBackground from Wikipedia: "Set theory is a branch of mathematics created principal原创 2015-05-03 12:09:52 · 597 阅读 · 0 评论 -
HDU 1387 Team Queue
Team QueueTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1410 Accepted Submission(s): 475Problem DescriptionQueues and Priority Queu原创 2015-05-03 11:43:44 · 388 阅读 · 0 评论 -
POJ 3255 Roadblocks
RoadblocksTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 9479 Accepted: 3369DescriptionBessie has moved to a small farm and sometimes enjoys returning to visit one of her best f原创 2015-07-25 17:01:50 · 429 阅读 · 0 评论