내 답안
class Solution {
public boolean solution(boolean x1, boolean x2, boolean x3, boolean x4) {
boolean answer = false;
if((x1 || x2) && (x3 || x4)){
answer = true;
}
return answer;
}
}
Java
복사
다른 사람 풀이법
class Solution {
public boolean solution(boolean x1, boolean x2, boolean x3, boolean x4) {
boolean answer = (x1||x2)&&(x3||x4);
return answer;
}
}
Java
복사