package org.example.생태학; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.SortedMap; import java.util.TreeMap; public class Main { public static void main(String[] args) { try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new Outp..
package org.example.알고리즘.주사위놀이하는함수; import java.io.*; import java.text.MessageFormat; import java.util.Arrays; import java.util.Objects; import java.util.stream.Collectors; /** * packageName : org.example.알고리즘.주사위놀이하는함수 * fileName : Main * author : ipeac * date : 2023-09-22 * description : * =========================================================== * DATE AUTHOR NOTE * ------------------------..
package org.example.회전하는큐; import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.MessageFormat; import java.util.*; /** * packageName : org.example.회전하는큐 * fileName : Main * author : ipeac * date : 2023-09-10 * description : * =========================================================== * DATE AUTHOR NOTE * ----------------------------------------------------------- * ..
import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.MessageFormat; import java.util.Arrays; import java.util.Objects; /** * packageName : org.example.fourSquares * fileName : Main * author : ipeac * date : 2023-09-06 * description : * =========================================================== * DATE AUTHOR NOTE * ----------------------------------------------------..
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Objects; /** * packageName : org.example.병사배치하기 * fileName : Main * author : ipeac * date : 2023-08-31 * description : * =========================================================== * DATE AUTHOR NOTE * ----------..
import java.io.*; import java.text.MessageFormat; import java.util.*; /* *** * * * * * * */ public class Main { static int n; public static void main(String[] args) { try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)))) { n = Integer.parseInt(br.readLine()); // 이미 배열의 길이가 정해져있다. Li..