기둥과 보 설치
programmers.co.kr/learn/courses/30/lessons/60061 p.329 def possible(answer): for x,y,stuff in answer: # 기둥 확인 if stuff == 0: if y==0 or [x-1,y,1] in answer or [x,y,1] in answer or [x,y-1,0] in answer: continue else: return False elif stuff == 1: if [x,y-1,0] in answer or [x+1,y-1,0] in answer or ([x-1,y,1] in answer and [x+1,y,1] in answer): continue else: return False return True def solution(n..
2021. 1. 20.