|
|
back to boardRestricted function.Python import numpy n,m=input().split() a=[] for i in range(int(m)): a.append(int(input())) b=numpy.zeros(int(n)) for i in range(int(n)): b[i]=a.count(i+1)/int(m)*100 print('%.2f' % b[i]+'%') Answer from system:Restricted function |
|
|