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