문제 유형누적합 알고리즘문제 접근답살아남은 건물 개수주어지는 정보Map 최대 크기 1,000,000(N*M)건물에 대한 명령 개수 최대 250,000(K)후보완전 탐색불가능건물 1개마다 모든 명령을 적용하면 1,000,000*250,000으로 시간 초과누적합가능함모든 명령을 적용한 Command 배열을 만듦해당 배열을 최종 배열에 적용하면 시간 복잡도 N*M + K코드class Solution { int N,M; int[][] command; public void setCommand(int[][] board, int[][] skill){ command = new int[N+1][M+1]; for(int i = 0; i 0){ ..