
[SWEA|파이썬] 1208. [S/W 문제해결 기본] 1일차 - Flatten (D3)
·
Problem Solving/SWEA
문제 https://tinyurl.com/2h9tsjeu SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 🐍파이썬 T = 10 for test_case in range(1, T + 1): dump = int(input()) height = list(map(int, input().split())) for i in range(dump): #min과 max값이 동일하다면 수행종료 if height[height.index(min(height))] == height[height.index(max(height))]: break height[height.index(min(height))] += 1#height의 min값의 ..