From 8e6fa230a3672b9541922fc2ff4003427a64d4b2 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Mon, 28 Jul 2025 21:40:00 +0900 Subject: [PATCH] 20250728 baekjoon --- code_study/Baekjoon/python/18870.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 code_study/Baekjoon/python/18870.py diff --git a/code_study/Baekjoon/python/18870.py b/code_study/Baekjoon/python/18870.py new file mode 100644 index 0000000..185dc2b --- /dev/null +++ b/code_study/Baekjoon/python/18870.py @@ -0,0 +1,8 @@ +import sys +input = sys.stdin.readline + +N = int(input()) +axis = list(map(int, input().split())) +temp = sorted(list(set(axis))) +hash = {temp[i]: i for i in range(len(temp))} +sys.stdout.write(' '.join(map(str,[hash[axis[i]] for i in range(N)]))) \ No newline at end of file