[python_파이썬]백준_18870번_좌표 압축_풀이
공부하는허딩크 : https://www.youtube.com/live/g4Jrq889Aoc?feature=shared예제를 보고 쉽게 생각해서 아래와 같은 코드를 만들었다. import sysinput = sys.stdin.readlineN = int(input())A = list(map(int, input().split()))temp = max(map(abs, A))for i in A: print(temp - i, end = ' ') 예제를 봤을때 절대값 가장 큰 값을 활용하면 된다고 생각이 들었는데 말도 안되는 생각이었다. import sysinput = sys.stdin.readlineN = int(input())A = list(map(int, input().split()))answer = [..
2024.05.06