|
|
вернуться в форумI have some mistakes, help me find it!!! a=input().split() t=0 for i in range(len(a)): c=a[t] v=int(c) a[t]=v t=t+1 e=[0] s=[0] z=[0] q=[0] y=1 for i in range(a[1]): d=int(input()) s.append(d) s.remove(s[0]) for i in range(0,a[0]): w=s.count(y) z.append(w) w=0 y=y+1 z.remove(z[0]) t=0 for i in range(len(z)): c=z[t] v=int(c) z[t]=v t=t+1 t=0 c=0 for i in range(len(z)): c=z[t]/a[1] c=c*100 q.append(c) t=t+1 q.remove(q[0]) t=0 c=0 for i in range (len(q)): c=round(q[t],2) e.append(c) t=t+1 e.remove(e[0]) t=0 for i in range (len(e)): print(e[t],"%") t=t+1 |
|
|