Skip to content

Commit 065549d

Browse files
committed
[BOJ] #2309.일곱난쟁이 / 브론즈1 / 20분(∆)
1 parent a330871 commit 065549d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import sys
2+
input = sys.stdin.readline
3+
4+
# 9개의 정수를 한번에 받는다
5+
heights = [int(input()) for _ in range(9)]
6+
7+
# 9개의 정수 중 7개를 뽑는다
8+
for i in range(9):
9+
for j in range(i+1, 9):
10+
if sum(heights) - heights[i] - heights[j] == 100:
11+
heights.remove(heights[i])
12+
heights.remove(heights[j])
13+
14+
heights.sort()
15+
print(*heights, sep='\n')

0 commit comments

Comments
 (0)