아직 만들고 있는 페이지입니다.

이 페이지는 아직 만드는 중입니다. 보이는 내용은 바뀔 수 있습니다.

Coreputer

면접 대비

시간 제한0.5초메모리 제한1024 MB

요약
검사를 한 번 돌릴 때마다 고른 부분집합과 나머지 중 어느 쪽 결함 코어가 더 많은지 알려줄 때, 결함 코어를 모두 찾아낸다.
난이도

보통10점 중 5점

유형
분할 정복, 구현, 완전 탐색
정답자
아직 제출이 없습니다

문제

Coreputer, the brand new computing machine has NN cores numbered from 00 to N−1N - 1. 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 T\[0],…,T\[l−1]T\[0],\dots ,T\[l - 1] for some 0≤l≤N0 ≤ l ≤ N. 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.

제한

  • 2≤N≤162 ≤ N ≤ 16

예제

이 문제는 공개된 예제가 없습니다.