保护花朵

时限:1000ms 内存限制:10000K  总时限:3000ms

描述:

Farmer John went to cut some wood and left N (2 <= N <= 100,000) cows eating the grass, as usual. When he returned, he found to his horror that the cluster of cows was in his garden eating his beautiful flowers. Wanting to minimize the subsequent damage, FJ decided to take immediate action and transport each cow back to its own barn.
Each cow i is at a location that is Ti minutes (1 <= Ti <= 2,000,000) away from its own barn. Furthermore, while waiting for transport, she destroys Di (1 <= Di <= 100) flowers per minute. No matter how hard he tries, FJ can only transport one cow at a time back to her barn. Moving cow i to its barn requires 2*Ti minutes (Ti to get there and Ti to return). FJ starts at the flower patch, transports the cow to its barn, and then walks back to the flowers, taking no extra time to get to the next cow that needs transport.
Write a program to determine the order in which FJ should pick up the cows so that the total number of flowers destroyed is minimized.

输入:

Line 1: A single integer N
Lines 2..N+1: Each line contains two space-separated integers, Ti and Di, that describe a single cow's characteristics

输出:

Line 1: A single integer that is the minimum number of destroyed flowers

输入样例:

6
3 1
2 5
2 3
3 2
4 1
1 6

输出样例:

86

提示:

FJ returns the cows in the following order: 6, 2, 3, 4, 1, 5. While he is transporting cow 6 to the barn, the others destroy 24 flowers; next he will take cow 2, losing 28 more of his beautiful flora. For the cows 3, 4, 1 he loses 16, 12, and 6 flowers respectively. When he picks cow 5 there are no more cows damaging the flowers, so the loss for that cow is zero. The total flowers lost this way is 24 + 28 + 16 + 12 + 6 = 86.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
题目:二月兰的生态学意义和保护措施 摘要: 二月兰是一种生长在亚热带和热带地区的珍贵草本植物,因其花期在二月份而得名。二月兰不仅有极高的生态学意义,还是一种重要的药用和观赏植物。但由于人类活动和自然因素的影响,二月兰的数量和分布范围正在逐渐减少。本文将从二月兰的生态学特征、药用和观赏价值以及保护现状和措施等方面,对二月兰进行分析和探讨,旨在唤起人们对二月兰的保护意识,促进其合理利用和持续发展。 关键词:二月兰;生态学意义;药用和观赏价值;保护现状和措施 Abstract: February orchid is a precious herbaceous plant growing in subtropical and tropical regions, named after its flowering period in February. February orchid has high ecological significance and is also an important medicinal and ornamental plant. However, due to human activities and natural factors, the number and distribution range of February orchids are gradually decreasing. This paper will analyze and discuss February orchids from the aspects of ecological characteristics, medicinal and ornamental value, protection status and measures, aiming to arouse people's awareness of the protection of February orchids, promote their reasonable use and sustainable development. Keywords: February orchid; ecological significance; medicinal and ornamental value; protection status and measures 一、二月兰的生态学特征 二月兰(Scientific name:Dendrobium officinale Kimura et Migo)属于兰科,是一种常绿多年生草本植物,生长在亚热带和热带地区的山地或岩地上。二月兰的根茎粗壮,具有坚韧的纤维质根,能够快速吸收和储存水分和养分。二月兰的叶片线形或匙形,坚韧有弹性,能够适应大风和雨水的冲刷。二月兰的花序生长在茎的顶端,花色鲜艳,形态各异,有的花朵呈喇叭状,有的花朵呈圆盘状,还有的花朵呈钟状。二月兰的花期一般在二月份,因此得名。 二月兰是一种典型的石生兰花,其根系发达,在石缝、树皮上生长,能够有效地利用水分和养分。二月兰的生长适温在15℃-30℃之间,适宜的湿度为60%-80%。二月兰对光照的要求较高,一般生长在光照充足的环境中。此外,二月兰还具有很强的适应性和抗逆性,能够适应不同的土壤、气候和环境条件。 二、二月兰的药用和观赏价值 二月兰是一种重要的药用植物,被誉为“中药之王”,有着广泛的医疗价值。二月兰的主要药用部位为其根茎,其所含的有效成分包括多糖、生物碱、黄酮类、鞣质等。二月兰具有清热解毒、滋阴润燥、生津止渴、养心安神等功效,可用于治疗口渴、口干、咳嗽、咳痰、热病、神经衰弱等多种疾病。此外,二月兰还具有抗肿瘤、抗氧化、降血糖、降血脂等作用,对人体健康有着极为重要的保健作用。 二月兰还是一种重要的观赏植物,由于其花色鲜艳、形态各异,极具艺术价值。二月兰的花色主要有白色、黄色、粉红色、紫色等,花朵形态有喇叭状、圆盘状、钟状等。二月兰的观赏价值不仅在于其花朵,还在于其生长环境和特殊形态。在自然环境中,二月兰往往生长在峭壁、悬崖、岩石上,形成了独特的景观。此外,二月兰还具有良好的适应性和可塑性,能够通过人工培育和繁殖,形成不同的品种和花型。 三、二月兰的保护现状和措施 由于人类活动和自然因素的影响,二月兰的数量和分布范围正在逐渐减少。目前,二月兰已经被列为国家二级保护植物,需要加强保护和管理。二月兰的保护主要包括以下几个方面: (1)加强对二月兰生态环境的保护。二月兰生长的环境对其生长和繁殖至关重要,需要保持生境的原始性和完整性,防止采挖和破坏。 (2)加强对二月兰资源的管理和利用。二月兰具有重要的药用和观赏价值,需要加强对其资源的管理和利用,防止过度采收和浪费。 (3)加强对二月兰繁殖和培育的科研和技术支持。二月兰的繁殖和培育是保护和利用的关键,需要加强相关科研和技术支持,促进其良性发展。 (4)加强对二月兰产业的发展和规范管理。二月兰产业是一个重要的产业,需要加强对其发展和规范管理,保护二月兰的生态环境和资源,促进产业可持续发展。 四、结论 二月兰是一种珍贵的草本植物,具有极高的生态学意义和药用、观赏价值。由于人类活动和自然因素的影响,二月兰的数量和分布范围正在逐渐减少,需要加强保护和管理。二月兰的保护主要包括加强对其生态环境的保护、对其资源的管理和利用、对其繁殖和培育的科研和技术支持、以及对其产业的发展和规范管理等方面。只有在加强保护的基础上,才能实现二月兰的可持续利用和发展,保护其生态环境和资源,促进人与自然的和谐共生。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值