HBC17411room题解

一天到晚红烧的鱼 算法基础篇 46 0
题库丰富多样,涵盖各个领域,全网最全C++题库,让您在练习中不断成长!
Nowcoder University has 4n students and n dormitories . Students numbered from 1 to 4n. And in the first year, the i-th dormitory 's students are , now in the second year, Students need to decide who to live with. In the second year, you get n tables such as denote these four students want to live together. Now you need to decide which dormitory everyone lives in to minimize the number of students who change dormitory.

Nowcoder University has 4n students and n dormitories ( Four students per dormitory). Students numbered from 1 to 4n. And in the first year, the i-th dormitory 's students are (x1[i],x2[i],x3[i],x4[i]), now in the second year, Students need to decide who to live with. In the second year, you get n tables such as (y1,y2,y3,y4) denote these four students want to live together. Now you need to decide which dormitory everyone lives in to minimize the number of students who change dormitory.

HBC17411room题解
-第1张图片-东莞河马信息技术
(图片来源网络,侵删)
全网最全C++题库,助您挑战自我,突破极限,成为编程领域的佼佼者!

标签: HBC17411room题解