![[Backtracking] 백준 15650번 : N과M (2)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FbtK7DT%2FbtsMwAtyhL0%2FAAAAAAAAAAAAAAAAAAAAAJB_f9dK0sVsPujxzqJT49BfmCxOmO9J8BVAuHgklQsm%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DtmpowA5%252FHvsnt2ip38JW5%252Bx20eU%253D)
2025/2/25(화)https://www.acmicpc.net/problem/15650 🔑 풀이import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;public class 백준_N과M_2 { private static boolean[] used; private static int N, M; private static StringBuilder sb; public static void main(String[] args) throws IOException { BufferedReader br = new Buf..
![[Backtracking] 백준 15649번 : N과 M (1)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FboiktI%2FbtsMx9u0Twe%2FAAAAAAAAAAAAAAAAAAAAACOPy1ROnuAqX3jltdxU1RZ0EisjwYHcKxcIZgstYYdN%2Fimg.png%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DNaC325JUkMaM%252BA3w1%252BiGX3OcHuY%253D)
2025/2/25(화)https://www.acmicpc.net/problem/15649 🔑 풀이 import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.StringTokenizer;// 실버 3public class Main { private static boolean[] used; private static int N, M; private static StringBuilder sb; public static void main(String[] args) throws IOException { BufferedReader br = ..