문제
https://school.programmers.co.kr/learn/courses/30/lessons/181917
프로그래머스
SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프
programmers.co.kr
코드(Java)
class Solution {
public boolean solution(boolean x1, boolean x2, boolean x3, boolean x4) {
return (x1 || x2) && (x3 || x4);
}
}
코드(Python)
def solution(x1, x2, x3, x4):
return (x1 or x2) and (x3 or x4)
728x90