즐거운 단어
-
[BOJ - Gold IV] 즐거운 단어 / ❌Algorithm/BOJ 2024. 8. 22. 16:32
즐거운 단어1. 제출 코드 (2시간 32분 46초 / DFS)import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Main { static String input; static long answer = 0; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); input = br.readLine(); dfs(0, 0, 0, false, 1)..