목록2024/12/01 (2)
걸음마부터 달리기
import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw= new BufferedWriter(new OutputStreamWriter(System.out)); StringTokenizer st = new StringTokenizer(br.readLine()); int n =Integer.parseInt(st.nextToken()); int[] arr..
Arrays.sort하면 끝나긴 하지만 머지소트로 구현해봤다.import java.util.*;import java.io.*;public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); String n = st.nextToken(); char[] arr = n.toCharArray(); int[] numArr = new int[arr.length]..