Problem LSwap SpaceTime limit: 6 secondsYou administer a large cluster的中文翻譯

Problem LSwap SpaceTime limit: 6 se

Problem L
Swap Space
Time limit: 6 seconds
You administer a large cluster of computers with hard drives that use various file system types to store
data. You recently decided to unify the file systems to the same type. That is quite a challenge since all
the drives are currently in use, all of them are filled with important data to the limits of their capacities,
and you cannot afford to lose any of the data. Moreover, reformatting a drive to use a new file system
may significantly change the drive’s capacity. To make the reformat possible, you will have to buy an
extra hard drive. Obviously, you want to save money by minimizing the size of such extra storage.
You can reformat the drives in any order. Prior to reformatting a drive, you must move all data from that
drive to one or more other drives, splitting the data if necessary. After a drive is reformatted, you can
immediately start using it to store data from other drives. It is not necessary to put all the data on the
same drives they originally started on – in fact, this might even be impossible if some of the drives have
smaller capacity with the new file system. It is also allowed for some data to end up on the extra drive.
As an example, suppose you have four drives A, B, C, and D with drive capacities 6, 1, 3, and 3 GB.
Under the new file system, the capacities become 6, 7, 5, and 5 GB, respectively. If you buy only 1 GB
of extra space, you can move the data from drive B there and then reformat drive B. Now you have 7
GB free on drive B, so you can move the 6 GB from drive A there and reformat drive A. Finally, you
move the six total gigabytes from drives C and D to drive A, and reformat C and D.
Input
The input begins with a line containing one integer n (1 ≤ n ≤ 106
), which is the number of drives in
your cluster. Following this are n lines, each describing a drive as two integers a and b, where a is the
capacity with the old file system and b is the capacity with the new file system.
All capacities are given in gigabytes and satisfy 1 ≤ a, b ≤ 109
. (One thousand petabytes should be
enough for everyone, right?)
Output
Display the total extra capacity in gigabytes you must buy to reformat the drives.
0/5000
原始語言: -
目標語言: -
結果 (中文) 1: [復制]
復制成功!
问题 L交换空间时间限制︰ 6 秒您管理的计算机的硬盘,使用各种文件系统类型来存储大型的群集数据。你最近决定统一为同一类型的文件系统。这是相当大的挑战,因为所有驱动器当前正在使用中,他们都充满了对自己的能力,限制重要数据和你不能失去任何的数据。此外,重新格式化驱动器使用一个新的文件系统可能会显著更改驱动器的容量。要重新格式化可能,你将不得不购买额外的硬盘。显然,你想要存钱,通过最小化这种额外的存储空间的大小。您可以重新格式化的驱动器中的任何命令。在重新格式化驱动器之前,你必须将所有数据都移动从那为一个或多个其他驱动器,分割数据,如果必要的驱动器。重新格式化驱动器后,您可以立即开始使用它来存储数据从其他驱动器。它是不需要将所有数据都放在相同的驱动器他们最初开始 — — 事实上,这甚至可能是不可能的如果某些驱动器有用新的文件系统的容量较小。它也可以用于一些最终额外的驱动器上的数据。作为一个例子,假设你有四个驱动器 A、 B、 C 和 D 驱动器能力 6、 1、 3 和 3 gb。新的文件系统下, 能力分别变成 6、 7、 5 和 5 GB。如果你买只有 1 GB多余的空间,你可以移动驱动器 B.从驱动器 B,然后重新格式化的数据现在你有 7GB 驱动器 B 上免费,所以您可以移动 6 GB 从开车并重新格式化驱动器 A.最后,你将六个总容量从驱动器 C 和 D 移动到驱动器 A 中,并重新格式化,C 和 d。输入输入的起始行包含一个整数 n (1 ≤ n ≤ 106),这是中的驱动器数量您的群集。以下这是 n 行,每个描述驱动器作为两个整数和 b,在那里是与旧的文件系统和 b 的能力是与新的文件系统容量。所有能力给出了千兆字节并满足 1 ≤ a、 b ≤ 109.(一千字节应能满足每个人,对吗?)输出显示总计千兆字节的额外容量您必须购买重新格式化的驱动器。
正在翻譯中..
結果 (中文) 2:[復制]
復制成功!
Problem L
Swap Space
Time limit: 6 seconds
You administer a large cluster of computers with hard drives that use various file system types to store
data. You recently decided to unify the file systems to the same type. That is quite a challenge since all
the drives are currently in use, all of them are filled with important data to the limits of their capacities,
and you cannot afford to lose any of the data. Moreover, reformatting a drive to use a new file system
may significantly change the drive’s capacity. To make the reformat possible, you will have to buy an
extra hard drive. Obviously, you want to save money by minimizing the size of such extra storage.
You can reformat the drives in any order. Prior to reformatting a drive, you must move all data from that
drive to one or more other drives, splitting the data if necessary. After a drive is reformatted, you can
immediately start using it to store data from other drives. It is not necessary to put all the data on the
same drives they originally started on – in fact, this might even be impossible if some of the drives have
smaller capacity with the new file system. It is also allowed for some data to end up on the extra drive.
As an example, suppose you have four drives A, B, C, and D with drive capacities 6, 1, 3, and 3 GB.
Under the new file system, the capacities become 6, 7, 5, and 5 GB, respectively. If you buy only 1 GB
of extra space, you can move the data from drive B there and then reformat drive B. Now you have 7
GB free on drive B, so you can move the 6 GB from drive A there and reformat drive A. Finally, you
move the six total gigabytes from drives C and D to drive A, and reformat C and D.
Input
The input begins with a line containing one integer n (1 ≤ n ≤ 106
), which is the number of drives in
your cluster. Following this are n lines, each describing a drive as two integers a and b, where a is the
capacity with the old file system and b is the capacity with the new file system.
All capacities are given in gigabytes and satisfy 1 ≤ a, b ≤ 109
. (One thousand petabytes should be
enough for everyone, right?)
Output
Display the total extra capacity in gigabytes you must buy to reformat the drives.
正在翻譯中..
結果 (中文) 3:[復制]
復制成功!
问题1交换空间时间限制:6秒您管理使用不同的文件系统类型存储的硬盘驱动器的大型计算机集群数据。最近,您决定将文件系统统一到同一类型。这是一个很大的挑战,因为所有驱动器目前正在使用中,所有的驱动器都充满了重要的数据,他们的能力的限制,而且你不能失去任何数据。此外,格式化的驱动器使用一个新的文件系统可能显着改变驱动器的容量。使格式化的可能,你需要买一个额外硬盘驱动器。很明显,你想通过减少这种额外的存储的大小来省钱。你可以重新格式化驱动器的任何命令。要格式化的驱动器之前,你必须把所有的数据从驱动到一个或多个其他驱动器,如果必要的话分裂数据。开车后被重新格式化,你可以立即开始使用它来存储从其他驱动器的数据。没有必要把所有的数据他们最初开始的相同的驱动器,事实上,这可能甚至是不可能的,如果一些驱动器较小的容量与新的文件系统。它也允许一些数据,最终在额外的驱动器。作为一个例子,假设你有四个驱动器A,B,C,和D与驱动能力6,1,3,和3。在新的文件系统下,容量将分别为6、7、5和5。如果你只买1个国标额外的空间,您可以将数据从驱动器B那里然后重新格式化驱动器现在你有7对驱动B免费,所以你可以移动6 GB的驱动器有格式化驱动器A。最后,你从驱动器C和D共六GB的驱动,并重新格式化C和D.输入输入的第一行是一个包含一个整数N(1≤N≤106),这是驱动器的数目你的集群。下面这是N行,每个描述一个驱动器作为两个整数A和B,其中A是旧的文件系统的容量和B是新的文件系统的容量。所有的能力给出了千兆字节和满足1≤A、B≤109。(一千字节应够了,对每个人,对吗?输出显示总的额外容量千兆字节必须购买重新格式化驱动器。
正在翻譯中..
 
其它語言
本翻譯工具支援: 世界語, 中文, 丹麥文, 亞塞拜然文, 亞美尼亞文, 伊博文, 俄文, 保加利亞文, 信德文, 偵測語言, 優魯巴文, 克林貢語, 克羅埃西亞文, 冰島文, 加泰羅尼亞文, 加里西亞文, 匈牙利文, 南非柯薩文, 南非祖魯文, 卡納達文, 印尼巽他文, 印尼文, 印度古哈拉地文, 印度文, 吉爾吉斯文, 哈薩克文, 喬治亞文, 土庫曼文, 土耳其文, 塔吉克文, 塞爾維亞文, 夏威夷文, 奇切瓦文, 威爾斯文, 孟加拉文, 宿霧文, 寮文, 尼泊爾文, 巴斯克文, 布爾文, 希伯來文, 希臘文, 帕施圖文, 庫德文, 弗利然文, 德文, 意第緒文, 愛沙尼亞文, 愛爾蘭文, 拉丁文, 拉脫維亞文, 挪威文, 捷克文, 斯洛伐克文, 斯洛維尼亞文, 斯瓦希里文, 旁遮普文, 日文, 歐利亞文 (奧里雅文), 毛利文, 法文, 波士尼亞文, 波斯文, 波蘭文, 泰文, 泰盧固文, 泰米爾文, 海地克里奧文, 烏克蘭文, 烏爾都文, 烏茲別克文, 爪哇文, 瑞典文, 瑟索托文, 白俄羅斯文, 盧安達文, 盧森堡文, 科西嘉文, 立陶宛文, 索馬里文, 紹納文, 維吾爾文, 緬甸文, 繁體中文, 羅馬尼亞文, 義大利文, 芬蘭文, 苗文, 英文, 荷蘭文, 菲律賓文, 葡萄牙文, 蒙古文, 薩摩亞文, 蘇格蘭的蓋爾文, 西班牙文, 豪沙文, 越南文, 錫蘭文, 阿姆哈拉文, 阿拉伯文, 阿爾巴尼亞文, 韃靼文, 韓文, 馬來文, 馬其頓文, 馬拉加斯文, 馬拉地文, 馬拉雅拉姆文, 馬耳他文, 高棉文, 等語言的翻譯.

Copyright ©2024 I Love Translation. All reserved.

E-mail: