-1
I 3 개 맵 배열을 갖고 I 이하의 조건에 기초하여 부울 결과를 산출 할 :이 예에서는, 비트 3과 비트 2된다에서C, 비트 맵 조작
Bit index -----------> 3 2 1 0
______________________________________________________________
1) Bitmap#1: 1 1 1 1 1 ? 1 1 (here, "?" could be 0 or 1)
2) Bitmap#2: 0 0 0 0 1 1 0 0
3) Bitmap#3: 0 0 0 0 1 0 0 0
:
예1) Neighboring even and odd index bits are a pair (the pair relationship will be provided by a bitmap). For example: pair0 = (bit1, bit0); pair1 = (bit3, bit2); etc.
2) For a given bit, if its pair has been already set to 0, then return false; else, return true.
한 쌍 (비트 맵 # 2 참조). bit3에 1을 지정하고 (비트 맵 # 3 참조) 다음을 입력합니다.
1) If bit #2 (the "?") in Bitmap#1 is 0, then return false;
2) If bit #2 (the "?") in Bitmap#1 is 1, then return true;
어떻게 비트 연산을 사용하여 결과를 계산합니까?
감사합니다.
당신은 무엇을 시도? 당신의 시도는 어떻게 작동 했습니까? [좋은 질문을하는 방법에 대해 읽으십시오] (http://stackoverflow.com/help/how-to-ask) 및 [최소한의 완전하고 검증 가능한 예] (http : /stackoverflow.com/help/mcve). –