웅재의 코딩세상

[프로그래머스] 간단한 논리 연산 본문

코딩테스트/프로그래머스 - LV 0

[프로그래머스] 간단한 논리 연산

웅드 2024. 1. 30. 13:46

 

 

  • 풀이
#include <string>
#include <vector>

using namespace std;

bool solution(bool x1, bool x2, bool x3, bool x4) {
    if((x1 || x2) && (x3 || x4)) return true;
    else return false;
    
}
반응형