https://www.acmicpc.net/problem/4344
4344λ²: νκ· μ λκ² μ§
λνμ μλ΄κΈ°λ€μ 90%λ μμ μ΄ λ°μμ νκ· μ λλλ€κ³ μκ°νλ€. λΉμ μ κ·Έλ€μκ² μ¬ν μ§μ€μ μλ €μ€μΌ νλ€.
www.acmicpc.net
n=int(input())
for i in range(n):
s=list(map(int,input().split()))
avg=sum(s[1:])/s[0]
cnt=0
for i in s[1:]:
if i>avg:
cnt+=1
print(f"{cnt/s[0]*100:.3f}%")
'π€ > λ°±μ€' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
λ°±μ€ 1065: νμ (Python) (0) | 2021.08.24 |
---|---|
λ°±μ€ 4673: μ ν λλ² (Python) (0) | 2021.08.24 |
λ°±μ€ 3052: λλ¨Έμ§ (Python) (0) | 2021.08.24 |
λ°±μ€ 2577: μ«μμ κ°μ (Python) (0) | 2021.08.24 |
λ°±μ€ 2562: μ΅λκ° (Python) (0) | 2021.08.24 |