Radio-frequency identification (RFID) useselectromagnetic fields to au dịch - Radio-frequency identification (RFID) useselectromagnetic fields to au Việt làm thế nào để nói

Radio-frequency identification (RFI

Radio-frequency identification (RFID) uses
electromagnetic fields to automatically identify and
track tags attached to objects. With RFID, we can
manage items in wareho use easily and efficiently.
Instead of checking each item manually with
traditionally methods, such as barcode or QR code, we
can use an RFID scanner to automatically detect the
IDs of all items in a warehouse.
Intelligent Corporation of Production and Commerce
(ICPC) has a sequence of N warehouses, organized as a row in HiTech Park. The i
th warehouse
contains wi items.
ICPC intends to re-organize all items in warehouses so that ICPC can have available space for
its new business. As each item is attached an RFID tag, there is no need to manually check out
an item from a warehouse or check in an item to a new warehouse.
A robot is used to move all items from a warehouse to either its previous or next adjacent
warehouse. Only when that warehouse is empty can a robot begin its task to empty another
warehouse. On average, it takes 1 second to move 1 item from a warehouse to its adjacent
warehouse.
Compute the minimum time required to move items between warehouses so that finally at
most M warehouses contain items (other warehouses are all empty).
Input
The first line of input contains two integers N and M, separated by a space. (1 ≤ N ≤ 1500, 1 ≤
M ≤ 100)
The second line contains N positive integers that are the number of items in each warehouse.
The number of item in a warehouse is no more than 210. Initially, there is no empty warehouse.
Output
Display a single positive integer that is the minimum time required (in seconds) so that at most
M warehouses contain items.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Radio-frequency identification (RFID) useselectromagnetic fields to automatically identify andtrack tags attached to objects. With RFID, we canmanage items in wareho use easily and efficiently.Instead of checking each item manually withtraditionally methods, such as barcode or QR code, wecan use an RFID scanner to automatically detect theIDs of all items in a warehouse.Intelligent Corporation of Production and Commerce(ICPC) has a sequence of N warehouses, organized as a row in HiTech Park. The ith warehousecontains wi items.ICPC intends to re-organize all items in warehouses so that ICPC can have available space forits new business. As each item is attached an RFID tag, there is no need to manually check outan item from a warehouse or check in an item to a new warehouse.A robot is used to move all items from a warehouse to either its previous or next adjacentwarehouse. Only when that warehouse is empty can a robot begin its task to empty anotherwarehouse. On average, it takes 1 second to move 1 item from a warehouse to its adjacentwarehouse.Compute the minimum time required to move items between warehouses so that finally atmost M warehouses contain items (other warehouses are all empty).InputThe first line of input contains two integers N and M, separated by a space. (1 ≤ N ≤ 1500, 1 ≤M ≤ 100)The second line contains N positive integers that are the number of items in each warehouse.The number of item in a warehouse is no more than 210. Initially, there is no empty warehouse.OutputDisplay a single positive integer that is the minimum time required (in seconds) so that at mostM warehouses contain items.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: