上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页

ZOJ 3433 Gu Jian Qi Tan

摘要: ZOJ Problem Set - 3433Gu Jian Qi TanTime Limit: 2 Seconds Memory Limit: 65536 KBGu Jian Qi Tan is a very hot Chinese RPG in this summer vacation. SuSu is the most important role in the game. When SuSu first meet the ancient dragon QianYu, he will have a very difficult battle with QianYu. In order... 阅读全文
posted @ 2012-07-09 22:16 江财小子 阅读(663) 评论(0) 推荐(0) 编辑

ZOJ 3410 Layton's Escape

摘要: ZOJ Problem Set - 3410Layton's EscapeTime Limit: 2 Seconds Memory Limit: 65536 KBProfessor Layton is a renowned archaeologist from London's Gressenheller University. He and his apprentice Luke has solved various mysteries in different places.Unfortunately, Layton and Luke are trapped in a py 阅读全文
posted @ 2012-07-09 16:38 江财小子 阅读(209) 评论(0) 推荐(0) 编辑

ZOJ 3230 Solving the Problems

摘要: ZOJ Problem Set - 3230Solving the ProblemsTime Limit: 2 Seconds Memory Limit: 32768 KBProgramming is fun, Aaron is addicted to it. In order to improve his programming skill, he decides to solve one programming problem per day. As you know, different problems have different properties, some proble... 阅读全文
posted @ 2012-07-09 15:38 江财小子 阅读(198) 评论(0) 推荐(0) 编辑

POJ 3253 Fence Repair(哈夫曼)

摘要: Fence RepairTime Limit: 2000MSMemory Limit: 65536KTotal Submissions: 15047Accepted: 4799DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needs N (1 ≤ N ≤ 20,000) planks of wood, each having some integer length Li (1 ≤ Li ≤ 阅读全文
posted @ 2012-07-09 10:21 江财小子 阅读(268) 评论(0) 推荐(0) 编辑

POJ 1862 Stripies(哈夫曼)

摘要: StripiesTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 9301Accepted: 4527DescriptionOur chemical biologists have invented a new very useful form of life called stripies (in fact, they were first called in Russian - polosatiki, but the scientists had to invent an English name to apply for a 阅读全文
posted @ 2012-07-09 09:32 江财小子 阅读(174) 评论(0) 推荐(0) 编辑

HDU 1242 Rescue(BFS)

摘要: RescueTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8065Accepted Submission(s): 2959Problem DescriptionAngel was caught by the MOLIGPY! He was put in prison by Moligpy. The prison is described as a N * M (N, M <= 200) matrix. There are WALLs, 阅读全文
posted @ 2012-07-08 16:53 江财小子 阅读(173) 评论(0) 推荐(0) 编辑

HDU 1896 Stones

摘要: StonesTime Limit: 5000/3000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 374Accepted Submission(s): 217Problem DescriptionBecause of the wrong status of the bicycle, Sempr begin to walk east to west every morning and walk back every evening. Walking may cause a littl 阅读全文
posted @ 2012-07-08 15:21 江财小子 阅读(342) 评论(0) 推荐(0) 编辑

HDU Windows Message Queue

摘要: Windows Message QueueTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1686Accepted Submission(s): 637Problem DescriptionMessage queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something ha 阅读全文
posted @ 2012-07-08 14:40 江财小子 阅读(749) 评论(0) 推荐(0) 编辑

HDU 1873 看病要排队

摘要: 【Hot】关于PAT/ACM培训的报名通知~ 看病要排队Time Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2752Accepted Submission(s): 1101Problem Description看病要排队这个是地球人都知道的常识。不过经过细心的0068的观察,他发现了医院里排队还是有讲究的。0068所去的医院有三个医生(汗,这么少)同时看病。而看病的人病情有轻重,所以不能根据简单的先来先服务的原则。所以医院对每种病情规定了10种不同 阅读全文
posted @ 2012-07-08 12:02 江财小子 阅读(555) 评论(0) 推荐(0) 编辑

求逆序数

摘要: http://acm.nyist.net/JudgeOnline/problem.php?pid=117求逆序数时间限制:2000 ms | 内存限制:65535 KB难度:5描述在一个排列中,如果一对数的前后位置与大小顺序相反,即前面的数大于后面的数,那么它们就称为一个逆序。一个排列中逆序的总数就称为这个排列的逆序数。现在,给你一个N个元素的序列,请你判断出它的逆序数是多少。比如 1 3 2 的逆序数就是1。输入第一行输入一个整数T表示测试数据的组数(1<=T<=5)每组测试数据的每一行是一个整数N表示数列中共有N个元素(2〈=N〈=1000000)随后的一行共有N个整数Ai(0 阅读全文
posted @ 2012-07-08 09:49 江财小子 阅读(250) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 41 下一页