Written by
java-style
on
on
Arrays.sort(), StringBuilder 18870 좌표압축
Arrays.sort(), StringBuilder 18870 좌표압축
https://www.acmicpc.net/problem/18870
import java.util.*; import java.util.Map.Entry; public class CoordinateCompression_18870_me { public static void main(String [] args){ Scanner sc = new Scanner(System.in); Integer N = sc.nextInt(); Integer [] arr = new Integer[N]; Map orderedMap = new HashMap<>(); for (int i=0; i
from http://nolja98.tistory.com/289 by ccl(A) rewrite - 2021-12-04 03:27:52