We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a330871 commit 065549dCopy full SHA for 065549d
learntosurf/BruteForce/2024-11-05-[BOJ]-#2309-일곱난쟁이.py
@@ -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