| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 0.2 초 | 1024 MB | 68 | 39 | 14 | 63.636% |
The N-hypercube is an directed acyclical graph with 2N nodes tagged with numbers from 0 to 2N – 1 so that there is an arc from node x to node y if and only if x < y and a non-negative integer p exists such that x ^ y = 2p (^ operator stands for bitwise xor) .
Given N, M and K, three positive integers, you are to compute:
The first line of the input contains three numbers N, M and K, each separated by one space.
The first line of the output must contain a single number, the answer for task a. The second line must contain a single number, the answer for task b. The third line must contain a single number, the answer for task c.
4 3 2
2 7 48