← Back to List

22182번: Круговая диаграмма ↗

Solutions

Python 3
134 B | 134 chars
from math import pi
n, r = map(int,input().split())
l = [*map(int,input().split())]
s = sum(l)

for i in l:
  print(i * (r*r*pi) / s)