https://www.acmicpc.net/problem/17266 package BOJ;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class BOJ_17266 { static int[] lights; static int N, M; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readLine()); ..