package org.example.알고리즘.두원사이의정수쌍; import java.text.MessageFormat; public class Solution { public static void main(String[] args) { Solution solution = new Solution(); System.out.println(solution.solution(2, 3)); } public long solution(int r1, int r2) { if (!(1
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.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.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..
package org.example.퇴사; import java.io.BufferedReader; import java.io.InputStreamReader; import java.text.MessageFormat; import java.util.Arrays; import java.util.Objects; public class Main { public static void main(String[] args) { try ( BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ) { int N = Integer.parseInt(br.readLine()); if (!(1