Coreputer
면접 대비시간 제한0.5초메모리 제한1024 MB
검사를 한 번 돌릴 때마다 고른 부분집합과 나머지 중 어느 쪽 결함 코어가 더 많은지 알려줄 때, 결함 코어를 모두 찾아낸다.
문제
Coreputer, the brand new computing machine has cores numbered from to . Recent maintenance revealed that some of the cores are malfunctioning. It is unknown which specific cores are malfunctioning, but there is at least one malfunctioning core.
To find the malfunctioning cores, Coreputer can run diagnostic scans. In each scan, the user tags a (possibly empty) group of distinct cores for some . The rest of the cores are untagged. Coreputer then benchmarks the tagged cores and the untagged ones. Finally, it reports which of the two groups contains a greater number of malfunctioning cores, or that the two groups contain an equal number of malfunctioning cores. Note that an empty group contains 0 malfunctioning cores.
Your task is to find the malfunctioning cores by running diagnostic scans on Coreputer.
제한
예제
이 문제는 공개된 예제가 없습니다.