백준알고리즘 2902번 KMP는 왜 KMP일까?
백준알고리즘 https://www.acmicpc.net/problem/2902 짜기 귀찮으신 분들은 Ctrl + C, Ctrl + V 하십쇼import java.util.Scanner; public class Main { public static void main(String args[]) throws Exception { Scanner scan = new Scanner(System.in); String input = scan.nextLine().trim(); String[] strArray = input.split("-"); StringBuffer sb = new StringBuffer(); for(int i=0; i