• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

╰☆惔、煙菋

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2011年3月31日

HDU_1159 Common Subsequence

摘要: Common SubsequenceProblem DescriptionA subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = <x1, x2, ..., xm> another sequence Z = <z1, z2, ..., zk> is a subsequence of X if there exists a strictly increasing sequence < 阅读全文

posted @ 2011-03-31 21:24 ╰☆惔、煙菋 阅读(441) 评论(0) 推荐(0)

HDU_1272 小希的迷宫

摘要: 小希的迷宫Problem Description上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度,小希希望任意两个房间有且仅有一条路径可以相通(除非走了回头路)。小希现在把她的设计图给你,让你帮忙判断她的设计图是否符合她的设计思路。比如下面的例子,前两个是符合条件的,但是最后一个却有两种方法从5到达8。 Input输入包含多组数据,每组数据是一个以0 . 阅读全文

posted @ 2011-03-31 19:30 ╰☆惔、煙菋 阅读(1104) 评论(2) 推荐(0)

HDU_1213 How Many Tables

摘要: How Many TablesProblem DescriptionToday is Ignatius' birthday. He invites a lot of friends. Now it's dinner time. Ignatius wants to know how many tables he needs at least. You have to notice that not all the friends know each other, and all the friends do not want to stay with strangers.One 阅读全文

posted @ 2011-03-31 18:53 ╰☆惔、煙菋 阅读(191) 评论(0) 推荐(0)

HDU_1598 find the most comfortable road

摘要: find the most comfortable roadProblem DescriptionXX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提速/降速,痛苦呀 ),但XX星人对时间却没那么多要求。要你找出一条城市间的最舒适的路径。(SARS是双向的)。Input输入包括多个测试实例,. 阅读全文

posted @ 2011-03-31 18:48 ╰☆惔、煙菋 阅读(515) 评论(0) 推荐(0)

HDU_1856 More is better

摘要: More is betterProblem DescriptionMr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course there are certain requirements.Mr Wang selected a room big enough to hold the boys. The boy who are not been chosen has to. 阅读全文

posted @ 2011-03-31 18:37 ╰☆惔、煙菋 阅读(622) 评论(0) 推荐(0)

POJ_2485 Highways

摘要: HighwaysDescriptionThe island nation of Flatopia is perfectly flat. Unfortunately, Flatopia has no public highways. So the traffic is difficult in Flatopia. The Flatopian government is aware of this problem. They're planning to build some highways so that it will be possible to drive between any 阅读全文

posted @ 2011-03-31 18:32 ╰☆惔、煙菋 阅读(598) 评论(0) 推荐(0)

POJ_2524 Ubiquitous Religions

摘要: Ubiquitous ReligionsTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 13737Accepted: 6551DescriptionThere are so many different religions in the world today that it is difficult to keep track of them all. You are interested in finding out how many different religions students in your universi 阅读全文

posted @ 2011-03-31 15:42 ╰☆惔、煙菋 阅读(159) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3