[๋ฐฑ์ค-2822] ์ ์ ๊ณ์ฐ / Python
๐ Problem Solving/Baekjoon
https://www.acmicpc.net/problem/2822
score = []
for i in range(8):
score.append(int(input()))
temp = []
answer = 0
for i in range(5):
answer += max(score)
temp.append(score.index(max(score)) + 1)
score[score.index(max(score))] = -1
temp.sort()
print(answer)
print(*temp)
ํด์ค
๊ฐ๋จํ ์ ๋ ฌ ๋ฌธ์ ์๋ค!
'๐ Problem Solving > Baekjoon' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค-2776] ์๊ธฐ์ / Python (0) | 2021.05.18 |
---|---|
[๋ฐฑ์ค-2343] ๊ธฐํ ๋ ์จ / Python (0) | 2021.05.18 |
[๋ฐฑ์ค-11728] ๋ฐฐ์ด ํฉ์น๊ธฐ / Python (0) | 2021.05.18 |
[๋ฐฑ์ค-11656] ์ ๋ฏธ์ฌ ๋ฐฐ์ด / Python (0) | 2021.05.18 |
[๋ฐฑ์ค-10825] ๊ตญ์์ / Python (0) | 2021.05.17 |