diff --git "a/suyeun84/202507/17 BOJ G5 \353\221\220 \352\260\234\354\235\230 \355\203\221.md" "b/suyeun84/202507/17 BOJ G5 \353\221\220 \352\260\234\354\235\230 \355\203\221.md" new file mode 100644 index 00000000..52e771e3 --- /dev/null +++ "b/suyeun84/202507/17 BOJ G5 \353\221\220 \352\260\234\354\235\230 \355\203\221.md" @@ -0,0 +1,41 @@ +```java +import java.util.*; +import java.io.*; + +public class boj2118 { + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static StringTokenizer st; + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + + public static void main(String[] args) throws Exception { + nextLine(); + int N = nextInt(); + int sum = 0; + int[] dist = new int[N+1]; + + for(int i=0;i