Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

codeforces problem 200B

# codeforces problem 200B solution in python. hope you've tried enough
n = int(input())
p = list(map(int, input().split()))[:n]
x = 100 / n
percentage = 0
for i in p:
    if i != 0:
        percentage += x / (100 / i)
print('%.12f' %percentage)
Comment

PREVIOUS NEXT
Code Example
Python :: Python NumPy asarray_chkfinite Function Example Raises Value Error 
Python :: Python NumPy require Function Example without requirements attribute 
Python :: Python NumPy block Function Example by using simple array 
Python :: Python NumPy dstack Function Example 01 
Python :: python solve how to find only real values 
Python :: making dividers in tkinter 
Python :: Python NumPy insert Function Example Using insertion at different points 
Python :: tf idf vectorizer regression -logistic 
Python :: torch mean of tensor 
Python :: __sub__ 
Python :: django ejemplo de un formulario crud 
Python :: hide ticks without hiding grid 
Python :: python fft 
Python :: NumPy left_shift Code When inputs and bit shift are an arrays 
Python :: tikzplotlib set figure 
Python :: flatten a list using numpy and itertools 
Python :: Python PEP (class) 
Python :: Demonstration of Python range() 
Python :: knn compute_distances_two_loop 
Python :: combination in python without itertools 
Python :: function multiply(a b) 
Python :: decoding to str: need a bytes-like object, list found 
Python :: how to show type of a variable 
Python :: python logical operators code in grepper 
Python :: dataframe get missing and zero values 
Python :: ring For in Loop 
Python :: ring get a list of functions names written in the Ring language 
Python :: how to dynamically append value in a list in python 
Python :: element wise mean and std 
Python :: Python 2.7 to 3.x Linux 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =