ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1263. Elections

I have some mistakes, help me find it!!!
Posted by Sergey Volodin 7 Jan 2018 17:36
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