Buggy python submission (verdict: Runtime Error):
a=[]
w=[]
t=[]
r=[]
n = int(input())
s = list(input().split())

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC x ",sum(a))
print("WA x ",sum(w))
print("TLE x ",sum(t))
print("RE x ",sum(r))
  

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input().split())
a=[]
w=[]
t=[]
r=[]

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC x ",sum(a))
print("WA x ",sum(w))
print("TLE x ",sum(t))
print("RE x ",sum(r))
  

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input().split())
a=[]
w=[]
t=[]
r=[]

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC x ",sum(a))
print("WA x ",sum(w))
print("TLE x ",sum(t))
print("RE x ",sum(r))
  

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input().split())
a=[]
w=[]
t=[]
r=[]

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC × ",sum(a))
print("WA × ",sum(w))
print("TLE × ",sum(t))
print("RE × ",sum(r))
  

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(input().split())

if s == "AC":
  a = sum(s)
elif s== "WA":
  w = sum(s)
elif s== "TLE":
  t = sum(s)
else:
  e = sum(s)
  
print("AC × ",a)
print("WA × ",w)
print("TLE × ",t)
print("RE × ",r)
  

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(map(int, input().split()))

  if s == "AC":
    a = sum(s)
  elif s== "WA":
    w = sum(s)
  elif s== "TLE":
    t = sum(s)
  else:
    e = sum(s)
  
  print("AC × ",a)
  print("WA × ",w)
  print("TLE × ",t)
  print("RE × ",r)

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))

Buggy python submission (verdict: Runtime Error):
n = int(input())
s = list(map(int, input().split()))
a = 0
w = 0
t = 0
r = 0

for i in range(n):
  if s == "AC":
    a += 1
  elif s== "WA":
    w += 1
  elif s== "TLE":
    t += 1
  else:
    e += 1
  
  print("AC ×", a)
  print("WA ×", w)
  print("TLE ×", t)
  print("RE ×", r)

Fixed submission:
n = int(input())
s = list(input() for i in range(n))
  
print("AC x ",s.count("AC"))
print("WA x ",s.count("WA"))
print("TLE x ",s.count("TLE"))
print("RE x ",s.count("RE"))