-Code
n, m, k = map(int, input().split())
download = sorted(list(map(int, input().split())), reverse=True)
s = sum(download)
now = sum(download[:m + k])
res = now / s * 100
print(f"{res:.6f}")
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬] 10347번 Reverse Rot (0) | 2024.01.07 |
---|---|
[백준/파이썬] 26552번 Zero (1) | 2024.01.06 |
[백준/파이썬] 28214번 크림빵 (0) | 2024.01.04 |
[백준/파이썬] 29729번 가변 배열 (1) | 2024.01.03 |
[백준/파이썬] 30792번 gahui and sousenkyo 2 (0) | 2024.01.02 |