diff --git "a/0224LJH/202511/05 BOJ \353\251\200\355\213\260\355\203\255 \354\212\244\354\274\200\354\244\204\353\247\201.md" "b/0224LJH/202511/05 BOJ \353\251\200\355\213\260\355\203\255 \354\212\244\354\274\200\354\244\204\353\247\201.md" new file mode 100644 index 00000000..c41dd72c --- /dev/null +++ "b/0224LJH/202511/05 BOJ \353\251\200\355\213\260\355\203\255 \354\212\244\354\274\200\354\244\204\353\247\201.md" @@ -0,0 +1,81 @@ +```java +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.util.Arrays; +import java.util.HashSet; +import java.util.StringTokenizer; + +public class Main { + + static int size,totalLen,count; + static int[] arr; + static HashSet set = new HashSet<>(); + + public static void main(String[] args) throws IOException { + init(); + process(); + print(); + } + + private static void init() throws IOException{ + BufferedReader br = new BufferedReader(new InputStreamReader(System.in));; + StringTokenizer st = new StringTokenizer(br.readLine()); + //이거 그냥 lfd 라는 페이지 교체 알고리즘을 쓰면 된다! + size = Integer.parseInt(st.nextToken()); + totalLen = Integer.parseInt(st.nextToken()); + arr = new int[totalLen]; + + st = new StringTokenizer(br.readLine()); + for (int i = 0; i