Skip to content

Commit 19503c3

Browse files
committed
[D3] Title: [S/W 문제해결 기본] 1일차 - Flatten, Time: 69 ms, Memory: 52,352 KB -BaekjoonHub
1 parent 76f7857 commit 19503c3

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# [D3] [S/W 문제해결 기본] 1일차 - Flatten - 1208
2+
3+
[문제 링크](https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV139KOaABgCFAYh)
4+
5+
### 성능 요약
6+
7+
메모리: 52,352 KB, 시간: 69 ms, 코드길이: 250 Bytes
8+
9+
### 제출 일자
10+
11+
2025-05-24 12:54
12+
13+
14+
15+
> 출처: SW Expert Academy, https://swexpertacademy.com/main/code/problem/problemList.do
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
for tc in range(1, 11):
2+
dump = int(input())
3+
nums = list(map(int, input().split()))
4+
nums.sort()
5+
6+
for _ in range(dump):
7+
nums[0], nums[-1] = nums[0] + 1, nums[-1] -1
8+
nums.sort()
9+
print(f"#{tc} {max(nums) - min(nums)}")

0 commit comments

Comments
 (0)