Задача A2. ИГРАЮни месец е, дните са дълги, нощите топли и ароматни. К dịch - Задача A2. ИГРАЮни месец е, дните са дълги, нощите топли и ароматни. К Anh làm thế nào để nói

Задача A2. ИГРАЮни месец е, дните с

Задача A2. ИГРА
Юни месец е, дните са дълги, нощите топли и ароматни. Като всяка друга млада
влюбена двойка, Ели и приятелят й прекарват часове наред заедно, попаднали в
обятията на ... компютърните игри. Превъртяли WоW, стигнали 100-тно ниво на Diablo
и изиграли всяка random карта на Heroes, сега те са се захванали с малко по-
нестандартна игра. Всяко ниво от играта може да се представи като неориентиран граф,
всеки връх на който е оцветен в бяло или черно. „Съюз” на върха v е множеството,
съдържащо v и всички върхове с неговия цвят, които могат да бъдат достигнати от v,
през върхове със същия цвят. Операцията „смяна на съюза на v” се състои в смяна на
цвета на всички върхове в съюза на v. На фигурата е показан графи, преди и след
прилагане на операцията върху върха, означен с Х.




Целта на играта за всяко ниво е да се направят всички върхове бели или черни (в
зависимост от нивото). Очевидно това винаги е възможно; за съжаление смяната на
съюза на един връх отнема известно време (на по-сложните нива отнема повече време).
Например, ако за графа вляво на фигурата една смяна на съюза отнема 14 единици
време и искаме да направим целия граф бял, то минималното време за цялото ниво ще е
3 * 14 = 42 единици време. Оптималната игра изисква използване на операцията два
последователни пъти върху бял в началото връх (например, единствения връх с един
съсед) и после използване на операцията върху изолирания черен връх.
Елеонора и приятелят й играят едновременно, като могат да си поделят нивата по
произволен начин (и двамата са еднакво добри), но всяко ниво трябва да се изиграе от
точно един от двамата. Редът, в който играят нивата е без значение.
От вас се иска да напишете програма gaming, която намира минималното време, за
което двамата могат да изиграят всички нива.
Вход
0/5000
Từ: -
Sang: -
Kết quả (Anh) 1: [Sao chép]
Sao chép!
Task A2. GAMEJune is a month, the days are long, the nights warm and aromatic. Like any other youngcouple in love, Ellie and her boyfriend spend hours together, caught up inthe arms of ... computer games. Fucked in WoW, reached the 100-level tandard Diabloand played each random map of Heroes, they are now doing with a little morenon-standard game. Each level of the game can be represented as a rudderless count,each vertex is colored in white or black. "Union" at the top is the set v,containing v and all peaks with its color, which can be reached from v,during the peaks of the same color. "Operation change of v Union" consists in replacing thethe color of all peaks in the Union of v. The figure shows columns before and afterapplication of operation on the top, marked with x.The goal of the game for each level is to make all the peaks (in white or blackDepending on the level). Obviously this is always possible; Unfortunately, the change ofUnion of one peak takes some time (of the more complex levels takes more time).For example, if the column to the left of the figure one shift of the Union takes 14 unitstime and want to make the entire count white, then the minimum time for the whole level will be3 * 14 = 42 units of time. The optimal game requires the use of two operationconsecutive times on the white Peak in the beginning (for example, the only peak with aneighbor) and then using the operation on the isolated black top.Eleonora and her boyfriend play simultaneously, as can share levelsany way (both are equally good), but each level must be played by theexactly either. The order in which the levels play is irrelevant.You are asked to write a program that finds the minimum gaming timeWe both can play all the levels.Login
đang được dịch, vui lòng đợi..
Kết quả (Anh) 2:[Sao chép]
Sao chép!
Task A2. GAME
month of June is the days are long, the nights warm and fragrant. Like any other young
couple in love, Ellie and her boyfriend spent hours together, caught up in
the arms of ... computer games. WoW wagered, they reached 100 versa level of Diablo
and played every random map of Heroes, now they have engaged in a somewhat
unusual game. Each level of the game can be represented as undirected graph,
each vertex of which is colored white or black. "Union" on top v is the set
containing all the vertices v and with its color, which can be reached from v,
through the peaks of the same color. "Operation change union v" is to change
the color of all the peaks in the union of v. The illustration shows graphs before and after
use of the operation on the tip, denoted by X. The game objective for each level is to make all the white or black peaks (in dependence on the level). Obviously it is always possible; Unfortunately the change of the union of one peak takes some time (the more complex levels takes longer). For example, if a column to the left of the figure a substitution of the Union takes 14 units of time and want to do the entire count white, the minimum time all level will be 3 * 14 = 42 units of time. Optimal game requires the use of surgery two consecutive times on white early peak (for example, only peak with a neighbor) and then use the operation on the isolated black tip. Eleanor and her friend play at the same time, they can share levels in an arbitrary manner ( both are equally good), but each level must be played by just one of them. The order in which the playing field is irrelevant. You are required to write a program gaming, which is the minimum time for which they can play all levels. Login

















đ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: