https://www.acmicpc.net/problem/10815 ์ด์งํ์์ ์ฌ์ฉํ์ง ์๊ณ ๋ฐฐ์ด์ ์ผ์ผ์ด ๋น๊ตํ๋ฉด ์๊ฐ์ด๊ณผ๊ฐ ๋ฌ๋ค.์ด์งํ์(Binary Search)๋ฅผ ์ฌ์ฉํด์ ํ์ด์ผ ํ๋ ๋ฌธ์ (https://marginata.tistory.com/150)ํ์ด 1์ System.out.print() ๋ฅผ ์ด์ฉํ์ฌ ์ผ์ผ์ด ์ถ๋ ฅ์ ํ๊ณ , ํ์ด 2๋ StringBuilder๋ฅผ ์ฌ์ฉํ์ฌ ์ถ๋ ฅ์ ํ๋ค. ์ฑ๋ฅ๋ฉด์์ StringBuilder๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ํจ์ฌ ๋ ๋น ๋ฅด๋ค. ํ์ด 1 import java.io.*;import java.util.*;public class Main{ static int[] arr; public static void main(String[] args) throws IOExc..