Problem:


Score : 200 points

Problem Statement

Takahashi is participating in a programming contest called AXC002, and he has just submitted his code to Problem A.

The problem has N test cases.

For each test case i (1\leq i \leq N), you are given a string S_i representing the verdict for that test case. Find the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively.

See the Output section for the output format.

Constraints

1 \leq N \leq 10^5

S_i is AC, WA, TLE, or RE.

Input

Input is given from Standard Input in the following format:

N
S_1
\vdots
S_N

Output

Let C_0, C_1, C_2, and C_3 be the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively. Print the following:

AC x C_0
WA x C_1
TLE x C_2
RE x C_3

Sample Input 1

6
AC
TLE
AC
AC
WA
TLE

Sample Output 1

AC x 3
WA x 1
TLE x 2
RE x 0

We have 3, 1, 2, and 0 test case(s) for which the verdict is AC, WA, TLE, and RE, respectively.

Sample Input 2

10
AC
AC
AC
AC
AC
AC
AC
AC
AC
AC

Sample Output 2

AC x 10
WA x 0
TLE x 0
RE x 0



Sample input:
6
AC
TLE
AC
AC
WA
TLE


Sample output:
AC x 3
WA x 1
TLE x 2
RE x 0

Submission status: Runtime Error

Solution code:
count = {'AC' : 0,'WA' : 0,'TLE': 0,'RE' : 0 }
n = int(input)
for i in range(0,n):
  count[input()]+=1
ptrint('AC x '+count['AC'])
ptrint('WA x '+count['WA'])
ptrint('TLE x '+count['TLE'])  
ptrint('RE x '+count['RE'])

Submission status: Runtime Error

Solution code:
'AC x',str(count_AC)\n'WA x',str(count_WA)\n'TLE x',str(count_TLE)\n'RE x',str(count_RE)

Submission status: Runtime Error

Solution code:
N=int(input())

for i in range(N):
	word = input()
    if word =="AC":
      AC+=1
    if word =="WA":
      WA+=1
    if word =="TLE":
      TLE+=1
    if word =="RE":
      RE+=1

print("AC x " +AC)
print("WA x " +WA)
print("TLE x " +TLE)
print("RE x " +RE)

Submission status: Runtime Error

Solution code:
N = int(input())
array = []
for _ in range(N):
  array.append(int(input()))
AC = 0
WA = 0
TLE = 0
RE = 0
for test in array:
  if 'AC' == test:
    AC += 1
  elif 'WA' == test:
    WA += 1
  elif 'TLE' == test:
    TLE += 1
  elif 'RE' == test:
    RE += 1
print(f'AC x {AC}')
print(f'WA x {WA}')
print(f'TLE x {TLE}')
print(f'RE x {RE}')

Submission status: Runtime Error

Solution code:
n=int(input())
d={'AC':0,"WA":0,'TLE':0,'RE':0}
for i in range(n):
    s=str(input())
    if(s=='AC'):
        d['AC']=d['AC']+1
    elif(s=='WA'):
        d['WA']=d['WA']+1
    elif(s=='RE'):
        d['RE']=d['RE']+1
    elif(s=='TLE'):
        d['TLE']=d['TLE']+1
print('AC'+" "+"*"+" "+str(d['AC']))
print('WA'+" "+"*"+" "+d['WA'])
print('TLE'+" "+"*"+" "+d['TLE'])
print('RE'+" "+"*"+" "+d['RE'])

Submission status: Runtime Error

Solution code:
import collections
# python template for atcoder
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline

n = int(input())
arr = list(map(int, input().split()))
dic = collections.Counter(arr)

for s in ('AC', 'WA', 'TLE', 'RE'):
  print(s + ' x ' + str(dic[s]))

Submission status: Runtime Error

Solution code:
x=int(input(''))
y=[0]*x
for i in range(x):
  y[i]=input('')
a=0
w=0
t=0
r=0
for i in range(x):
  if y[i]==AC:
    a=a+1
  elif y[i]==WA:
    w=w+1
  elif y[i]==TLE:
    t=t+1
  else:
    r=r+1
print('AC x {0}\nWA x {1}\nTLE x {2}\nRE x {r}'.format(a,w,t,r))

Submission status: Runtime Error

Solution code:
n = int(input())
    
ac = 0
wa = 0
tle = 0
re = 0

for _ in range(n):
  s = input()
  if s = 'AC':
    ac += 1
  elif s == 'WA':
    wa += 1
  elif s == 'TLE':
    tle += 1
  else:
    re += re
    
print('AC x {}'.format(ac))
print('WA x {}'.format(wa))
print('TLE x {}'.format(tle))
print('RE x {}'.format(re))

Submission status: Runtime Error

Solution code:
a = int(input())
c['AC'] = c['WA'] = c['TLE'] = c['RE'] = 0
for _ in range(a):
  c[input()]+=1
print('AC x ', en = '')
print(c['AC'])

print('WA x ', en = '')
print(c['WA'])

print('TLE x ', en = '')
print(c['TLE'])

print('RE x ', en = '')
print(c['RE'])

Submission status: Runtime Error

Solution code:
N = int(input())
S = [str(input()) for i in range(N)]

ac = 0
wa = 0
tle = 0
re = 0
for i in S:
    if i=='AC':
        ac+=1
    elif i=='WA':
        wa+=1
    elif i='TLE':
        tle+=1
    else:
        re+=1
print('AC x　'+str(ac))
print('WA x　'+str(wa))
print('TLE x　'+str(tle))
print('RE x　'+str(re))

Submission status: Runtime Error

Solution code:
n = int(input())
ac,wa,tle,re = 0,0,0,0
for i in range(n):
    inp = input()
    if inp == 'AC':
        ac += 1
    elif inp == 'WA':
        wa += 1
    elif inp == 'TLE':
        tle += 1
    else :
        RE += 1



print('AC x {}\nWA x {}\nTLE x {}\nRE x {}'.format(ac,wa,tle,re))

Submission status: Runtime Error

Solution code:
N = int(input())
s = [input() for v in range(N)]
for v in ["AC", "WA", "TLE", "RE"]
    print("{0} x {1}".format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
  tmp = input()
  if(tmp == "AC"):
    AC += 1
  if(tmp == "WA"):
    WA += 1
  if(tmp == "TLE"):
    TLE += 1
  if(tmp == "RE")
    RE += 1
print("AC x "+str(AC))
print("WA x " +str(WA))
print("TLE x " +str(TLE))
print("RE x " +str(RE))

Submission status: Runtime Error

Solution code:
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
  tmp = input()
  if(tmp == "AC"):
    AC += 1
  if(tmp == "WA"):
    WA += 1
  if(tmp == "TLE"):
    TLE += 1
  else:
    RE += 1
print(AC x str(AC))
print(WA x str(WA))
print(TLE x str(TLE))
print(RE x str(RE))

Submission status: Runtime Error

Solution code:
N = int(input())
for i in range(N):
    S.append(int(input()))

ac = 0
wa = 0
tle = 0
re = 0
for s in S:
    if s == "AC":
        ac += 1
    if s == "WA":
        wa += 1
    if s == "TLE":
        tle += 1
    if s == "RE":
        re += 1
    
print(f"AC x {ac}")
print(f"WA x {wa}")
print(f"TLE x {tle}")
print(f"RE x {re}")

Submission status: Runtime Error

Solution code:
##B
N = int(input())
S = list(input() for i in range(N))
a=0
b=0
c=0
d=0
for i in S:
    if i =="AC":
        a +=1
    elif i =="WA":
        b +=1
    elif i =="TLE":
        c +=1
    elif i =="RE":
        d +=1
print("AC x "+ str(a))
print("WA x "+ str(b))
print("TLE x "+ str(c))
print("RE x "+ str(d))
AC x 3
WA x 1
TLE x 2
RE x 0

Submission status: Runtime Error

Solution code:
N = int(input())
S = []
for i in range(N):
    S.append(int(input()))

ac = 0
wa = 0
tle = 0
re = 0
for s in S:
    if s == "AC":
        ac += 1
    if s == "WA":
        wa += 1
    if s == "TLE":
        tle += 1
    if s == "RE":
        re += 1
    
print(f"AC x {ac}")
print(f"WA x {wa}")
print(f"TLE x {tle}")
print(f"RE x {re}")

Submission status: Runtime Error

Solution code:
AC = 0
WA = 0
TLE = 0
RE = 0
count = int(input())
for i in range count:
  out = input()
  if out == 'AC':
    AC += 1
  elif out == 'WA':
    WA += 1
  elif out == 'TLE':
    TLE += 1
  else:
    RE += 1
print('AC x '+ str(AC))
print('WA x '+ str(WA))
print('TLE x '+ str(TLE))
print('RE x '+ str(RE))

Submission status: Runtime Error

Solution code:
n=int(input())
s=[input() for in range(n)]
for v in ['AC', 'WA', 'TLE', 'RE']:
    print('{0} x {1}'.format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
  s = input()
  if (s == "AC"):
    ac += 1
  elif (s == "WA"):
    wa += 1
  elif (s == "TLE"):
    tle += 1
  elif(s == "RE"):
    re += 1
    
print("AC x "+ac)
print("WA x "+wa)
print("TLE x "+tle)
print("RE x "+re)

Submission status: Runtime Error

Solution code:
from math import floor,ceil,sqrt,factorial,log
from collections import Counter, deque
from functools import reduce
import numpy as np
import itertools
def S(): return input()
def I(): return int(input())
def MS(): return map(str,input().split())
def MI(): return map(int,input().split())
def FLI(): return [int(i) for i in input().split()]
def LS(): return list(MS())
def LI(): return list(MI())
def LLS(): return [list(map(str, l.split() )) for l in input()]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def LLSN(n: int): return [LS() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]

N = I()
c0, c1, c2, c3 = 0,0,0,0
for i in range(N):
    if S() == "AC":
        c0 += 1
    elif S() == "WA":
        c1 += 1
    elif S() == "TLE":
        c2 += 1
    elif S() == "RE":
        c3 += 1

print("AC x " + c0)
print("WA x " + c1)
print("TLE x " + c2)
print("RE x " + c3)

Submission status: Runtime Error

Solution code:
from collections import Counter

n = int(input())
s = [input() for _ in range(n)]
counter = Counter(s)
#output = ['AC', 'WA', 'TLE', 'RE']

for key in output:
    print(f'{key} x {counter[key]}')

Submission status: Runtime Error

Solution code:
from collections import Counter

n = int(input())
s = [input() for _ in range(n)]
counter = Counter(s)


for key in output:
  print(f'{key} x {counter[key]}')

Submission status: Runtime Error

Solution code:
n=int(input())
dic={"AC":0,"WA":0,"TLE":0,"RE":0}
for _ in range(n):
  s=input()
  dic[s]+=1
for k,v in dic.items():
  print("{0} x {1}".format(k,v)

Submission status: Runtime Error

Solution code:
import pandas as pd
n_entradas = int(input())
contador = 0
vetor=[]
while (contador<n_entradas):
    situacao = str(input())
    vetor.append(situacao)
    contador=contador+1    
print('AC x',vetor.count('AC'))
print('WA x',vetor.count('WA'))
print('TLE x',vetor.count('TLE'))
print('RE x',vetor.count('RE'))

Submission status: Runtime Error

Solution code:
cnt = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
for i in range(int(input()):
               s = input()
               cnt[s] += 1
for i in ['AC','WA','TLE','RE']:
               print(f'{i} x {cnt[i]}'

Submission status: Runtime Error

Solution code:
from collections import defaultdict
n = int(input())
d = defaultdict(int)
d['AC'] = 0
d['RE'] = 0
d['TLE'] = 0
d['WA'] = 0
for _ in range(t):
  s = input()
  d[s] += 1
for x in d:
  print(x, 'X', d[x])

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = []
for i in range(0,N):
  S[i] = input()
for i in range(0,N):
  
  if S[i] == 'WA':
    w+=1
        
  if S[i] == 'TLE':
    T+=1
    
  if S[i] == 'RE':  
    R+=1
print("AC x {}".format(A))
print("WA x {}".format(W))
print("TLE x {}".format(T))
print("RE x {}".format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = []
for i in range(0,N):
  S[i] = input()
for i in range(0,N):
  
  if S[i] == 'WA':
    w+=1
        
  if S[i] == 'TLE':
    T+=1
    
  if S[i] == 'RE':  
    R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = []
for i in range(0,N):
  S[i] = input()
for i in range(0,N):
    if S[i] == 'WA':
        w+=1
        
    if S[i] == 'TLE':
        T+=1
    if S[i] == 'RE':
        
        R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = []
for i in range(N):
  S[i] = int(input())
for i in range(0,N):
  
  if S[i] == 'WA':
    w+=1
        
  if S[i] == 'TLE':
    T+=1
  if S[i] == 'RE':
    R+=1
  
  
    
  
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = []
for i in range(N):
    S[i] = int(input())
for i in range(0,N):
    if S[i] == 'AC':
        A+=1
    if S[i] == 'WA':
        W+=1
    if S[i] == 'TLE':
        T+=1
    if S[i] == 'RE':
        R+=1
  
  
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = list()
for i in range(N):
    S[i] = int(input())
for i in range(0,N):
    if S[i] == 'AC':
        A+=1
    if S[i] == 'WA':
        W+=1
    if S[i] == 'TLE':
        T+=1
    if S[i] == 'RE':
        R+=1
  
  
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = list()
for i in range(N):
  S[i] = int(input())
for i in range(0,N):
  if S[i] == 'AC':
    A+=1
  if S[i] == 'WA':
    W+=1
  if S[i] == 'TLE':
    T+=1
  if S[i] == 'RE':
    R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
S = list()
for i in range(0,N):
  S[i] = int(input())
for i in range(0,N):
  if S[i] == 'AC':
    A+=1
  if S[i] == 'WA':
    W+=1
  if S[i] == 'TLE':
    T+=1
  if S[i] == 'RE':
    R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0+
for i in range(0,N):
  S[i] = int(input())
for i in range(0,N):
  if S[i] == 'AC':
    A+=1
  if S[i] == 'WA':
    W+=1
  if S[i] == 'TLE':
    T+=1
  if S[i] == 'RE':
    R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
for i in range(0,N):
  S[i] = int(input())
for i in range(0,N):
  if S[i] == 'AC':
    A+=1
  else if S[i] == 'WA':
    W+=1
  else if S[i] == 'TLE':
    T+=1
  else:
    R+=1
print("AC x {}",format(A))
print("WA x {}",format(W))
print("TLE x {}",format(T))
print("RE x {}",format(R))

Submission status: Runtime Error

Solution code:
count = input()
a = 0
b = 0
c = 0
d = 0
while count:
    val = input()
    if val == 'AC':
        a += 1
    elif val == 'WA':
        b += 1
    elif val == 'TLE':
        c +=1
    elif val == 'RE':
        d+=1
    count -= 1

print('AC x ' + str(a))
print('WA x ' + str(b))
print('TLE x ' + str(c))
print('RE x ' + str(d))

Submission status: Runtime Error

Solution code:
count = input()
a = 0
b = 0
c = 0
d = 0
while count:
    val = input()
    if val == 'AC':
        a += 1
    elif val == 'WA':
        b += 1
    elif val == 'TLE':
        c +=1
    elif val == 'RE':
        d+=1

print('AC x ' + str(a))
print('WA x ' + str(b))
print('TLE x ' + str(c))
print('RE x ' + str(d))

Submission status: Runtime Error

Solution code:
n = int(input())
a,b,c,d =0
for i in range(n):
  e = input()
  if e == 'AC':
    a+=1
  elif e == 'WA':
    b +=1
  elif e == 'TLE':
    c+=1
  else:
    d+=1

print('AC ×'+str(a)+'\n'+'WA ×' +str(b) + '\n'
      +'TLE ×'+str(c) +'\n' + 'RE ×'+str(d))

Submission status: Runtime Error

Solution code:
n=int(input("Test cases"))
d=dict()
for i in range(n):
  x=input("Enter result")
  if not x in d:
    d[x] = 1
  else:
    d[x]=d[x]+1
for k,v in d.items()
	print(k,"x",v)

Submission status: Runtime Error

Solution code:
n = int(intput())
a = []
for i in range(n):
  a.append(input())
print('AC x ' + str(a.count('AC')))
print('WA x ' + str(a.count('WA')))
print('TLE x ' + str(a.count('TLE')))
print('RE x ' + str(a.count('RE')))

Submission status: Runtime Error

Solution code:
n = int(input())
stat2id = {
  "AC": 0,
  "WA": 1,
  "TLE": 2,
  "RE": 3,
}
id2stat = {i:s for s,i in stat2id.items()}
count = [0 for _ in range(4)]

for i in range(n):
  s = input()
  count[s] += 1
for i, c in enumerate(count):
  print(id2stat[i], "x", c)

Submission status: Runtime Error

Solution code:
nums = int(input())

S = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}

for i in nums:
  input_str = input()
  if input_str in S:
    S[input_str] += 1
    
print('AC x %d' % S['AC'])
print('WA x %d' % S['WA'])
print('TLE x %d' % S['TLE'])
print('RE x %d' % S['RE'])

Submission status: Runtime Error

Solution code:
N=int(input())
c_0=0
c_1=0
c_2=0
c_3=0
for i in range(N):
  s_i=input()
  if s_i=="AC":
    c_0=c_0+1
  elif s_i=="WA":
    c_1=c_1+1
  elif s_i=="TLE":
    c_2=c_2+1
  elif s_i=="RE":
    c_3=c_3+1
print("AC x "+c_0)
print("WA x "+c_1)
print("TLE x "+c_2)
print("RE x "+c_3)

Submission status: Runtime Error

Solution code:
N = int(input())
S = [input() for i in range(N)]
for v in ['AC', 'WA', 'TLE', 'RE']:
  print('{0} × {1}'.format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
N = input()

N = N.splitlines()

N_num = int(N[0])

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0

for i in range(N_num):
    #print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    else 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)


print('AC x {}'.format(AC_num))
print('WA x {}'.format(WA_num))
print('TLE x {}'.format(TLE_num))
print('RE x {}'.format(RE_num))

Submission status: Runtime Error

Solution code:
N = input()

N = N.splitlines()

N_num = int(N[0])

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0

for i in range(N_num):
    #print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)


print('AC x {}'.format(AC_num))
print('WA x {}'.format(WA_num))
print('TLE x {}'.format(TLE_num))
print('RE x {}'.format(RE_num))

Submission status: Runtime Error

Solution code:
N = input()

N = N.splitlines()

N_num = int(N[0])

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0

for i in range(N_num):
    
    
    if 'AC' == N[i+1]:
        AC_num += 1
        
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        


print('AC x {}'.format(AC_num))
print('WA x {}'.format(WA_num))
print('TLE x {}'.format(TLE_num))
print('RE x {}'.format(RE_num))

Submission status: Runtime Error

Solution code:
n=int(input())
for i in range(n):
  l.append(input())
a=0
b=0
c=0
d=0
for i in l:
  if i=='AC':
    a+=1
  elif i=='WA':
    b+=1
  elif i=='TLE':
    c+=1
  else:
    d+=1
print('AC x',a)
print('WA x',b)
print('TLE x',c)
print('RE x',d)

Submission status: Runtime Error

Solution code:
n = int(input())
s = [input() for i in range(n)]
print("AC x",s.count("AC"))
print("WA x",a.count("WA"))
print("TLE x",a.count("TLE"

Submission status: Runtime Error

Solution code:
N=int(input())
y=[]
verdict=["AC","WE","TLE","RE"]
for i<N:
  y.append(input())

for i in verdict:
  print(verdict[i] + "x %s" % y.count(verdict[i]))

Submission status: Runtime Error

Solution code:
n = int(input())
import collections
co = collections.Counter()
for i in range(n):
    co[input()] +=1
print(f"AC x {co["AC"]}")
print(f"WA x {co["WA"]}")
print(f"TLE x {co["TLE"]}")
print(f"RE x {co["RE"]}")

Submission status: Runtime Error

Solution code:
import collections
num = int(input())
aaa = [input() for s in range(num)]
b = collections.Counter(aaa)
l = len(b)
for i in range(l):
  print(b[i][0],x,b[i][1])

Submission status: Runtime Error

Solution code:
6
AC
TLE
AC
AC
WA
TLE

Submission status: Runtime Error

Solution code:
N, *s = map(open(0).read().split())
for v in ('AC', 'WA', 'TLE', 'RE'):
    print('{} x {}'.format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
N, *s = map(int, open(0).read().split())
for v in ('AC', 'WA', 'TLE', 'RE'):
    print('{} x {}'.format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
N, *s = map(int, open(0).read().split()
for v in ('AC', 'WA', 'TLE', 'RE'):
    print('{} x {}'.format(v, s.count(v)))

Submission status: Runtime Error

Solution code:
N = int(input())
str_list = [str(input()) for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))

Submission status: Runtime Error

Solution code:
N = int(input())
str_list = [input() for _ in range(N)]
count_ac = 0
count_wa = 0
count_tle = 0
count_re = 0

for s in str_list:
    if s == 'AC':
        count_ac = count_ac + 1
    elif s == 'WA':
        count_wa = count_wa + 1
    elif s == 'TLE':
        count_tle = count_tle + 1
    elif s == 'RE':
        coun_re == count_re + 1

print('AC x ' + str(count_ac))
print('WA x ' + str(count_wa))
print('TLE x ' + str(count_tle))
print('RE x ' + str(count_re))

Submission status: Runtime Error

Solution code:
import sys

N = input()

N = N.splitlines()

N_num = int(N[0])

if N_num < 1 or N_num > 1*10**5:
    #print('error')
    sys.exit()

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0

for i in range(N_num):
    #print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)


print('AC x',AC_num)
print('WA x',WA_num)
print('TLE x',TLE_num)
print('RE x',RE_num)

Submission status: Runtime Error

Solution code:
import sys

N = input()

N = N.splitlines()

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0

N_num = int(N[0])

if N_num < 1 or N_num > 100000:
    print('error')
    sys.exit()


for i in range(N_num):
    #print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)
        
    else:
        print('nun')

print('AC x',AC_num)
print('WA x',WA_num)
print('TLE x',TLE_num)
print('RE x',RE_num)

Submission status: Runtime Error

Solution code:
import sys

N = input()


N = N.splitlines()


AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0


N_num = int(N[0])

if N_num < 1 or N_num > 100000:
    print('error')
    sys.exit()


for i in range(N_num):
    #print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)
        
    else:
        print('nun')

print('AC','x',AC_num)
print('WA','x',WA_num)
print('TLE','x',TLE_num)
print('RE','x',RE_num)

Submission status: Runtime Error

Solution code:
import sys

N = input()


N = N.splitlines()


AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0


N_num = int(N[0])

if N_num < 1 or N_num > 100000:
    print('error')
    sys.exit()


for i in range(N_num):
    print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)
        
    else:
        print('nun')

print('AC','x',AC_num)
print('WA','x',WA_num)
print('TLE','x',TLE_num)
print('RE','x',RE_num)

Submission status: Runtime Error

Solution code:
import sys

N = input()


N = N.split(',')

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0


N_num = int(N[0])

if N_num < 1 or N_num > 100000:
    print('error')
    sys.exit()


for i in range(N_num):
    print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num += 1
        #print(AC_num)
    
    elif 'WA' == N[i+1]:
        WA_num += 1
        #print(WA_num)

    elif 'TLE' == N[i+1]:
        TLE_num += 1
        #print(TLE_num)
    
    elif 'RE' == N[i+1]:
        RE_num += 1
        #print(RE_num)
        
    else:
        print('nun')

print('AC','x',AC_num)
print('WA','x',WA_num)
print('TLE','x',TLE_num)
print('RE','x',RE_num)

Submission status: Runtime Error

Solution code:
N = input()

N = N.split(',')

AC_num = 0
WA_num = 0
TLE_num = 0
RE_num = 0


N_num = int(N[0])

for i in range(N_num):
    print(i+1)
    
    if 'AC' == N[i+1]:
        AC_num =+ 1
    
    elif 'WA' == N[i+1]:
        WA_num =+ 1

    elif 'TLE' == N[i+1]:
        TLE_num =+ 1
    
    elif 'RE' == N[i+1]:
        RE_num =+ 1
        
    else:
        print('nun')

print('AC','x',AC_num)
print('WA','x',WA_num)
print('TLE','x',TLE_num)
print('RE','x',RE_num)

Submission status: Runtime Error

Solution code:
N = int(input())
a = [input() for i in range(N)]
c0 = a.count("AC")
c1 = a.count("WA")
c2 = a.count("TLE")
c3 = a.count("RE")
print("AC × " + c0)
print("WA × " + c1)
print("TLE × " + c2)
print("RE × " + c3)

Submission status: Runtime Error

Solution code:
N = int(input())
S = []
for _ in range(N): S.append(input()))

print('AC x', S.count('AC'))
print('WA x', S.count('WA'))
print('TLE x', S.count('TLE'))
print('RE x', S.count('RE'))

Submission status: Runtime Error

Solution code:
number = int(input())

ac = 0
wa = 0
tle = 0
re = 0
for i in range(number):
  character = input()
  if character == 'AC':
    ac += 1
  if character == 'WA':
    wa += 1
  if character == 'TLE':
    tle += 1
  if character == 'RE':
    re += 1

print("AC x " + ac)
print("WA x " + wa)
print("TLE x " + tle)
print("RE x " + re)

Submission status: Runtime Error

Solution code:
N = []
L=[input() for i in range(N)]

print("AC" + " x "+ str(L.count("AC")))
print("WA" + " x "+ str(L.count("WA")))
print("TLE" + " x "+ str(L.count("TLE")))
print("RE" + " x "+ str(L.count("RE")))

Submission status: Runtime Error

Solution code:
N = []
N.append(input())

print("AC" + " x "+ N.count("AC"))
print("WA" + " x "+ N.count("WA"))
print("TLE" + " x "+ N.count("TLE"))
print("RE" + " x "+ N.count("RE"))

Submission status: Runtime Error

Solution code:
N = []
N.append(input())

print("AC" + " x "+ count("AC"))
print("WA" + " x "+ count("WA"))
print("TLE" + " x "+ count("TLE"))
print("RE" + " x "+ count("RE"))

Submission status: Runtime Error

Solution code:
N = int(input())
AC=0
WA=0
TLE=0
RE=0
for i in range(0,N):
  j = str(input())
  if j = "AC":
    AC+=1
  elif j = "WA":
    WA+=1
  elif j = "TLE":
    TLE+=1
  else:
    RE+=1
print("AC x {}".format(AC))
print("WA x {}".format(WA))
print("TLE x {}".format(TLE))
print("RE x {}".format(RE))

Submission status: Runtime Error

Solution code:
from collectinos import defaultdict
d = defaultdict(int)
N = int(input())
for i in range(N):
  d[input()] += 1
print(f"AC x {d['AC']}")
print(f"WA x {d['WA']}")
print(f"TLE x {d['TLE']}")
print(f"RE x {d['RE']}")

Submission status: Runtime Error

Solution code:
ac, wa,tle,re = 0,0,0,0
for _ in range(int(input()):
	s = input()
    if s == 'AC':
    	ac+=1
    elif s=='WA':
        wa+=1
    elif s=='TLE':
        tle+=1
    else:
        re+=1
print('AC x {}'.format(ac))
print('WA x {}'.format(wa))
print('TLE x {}'.format(tle))
print('RE x {}'.format(re))

Submission status: Runtime Error

Solution code:
import math
import collections


def main():
  N = int(input())
  S = [int(input()) for _ in range(N)]
  
  A = collections.Counter(S)
  
  print('AC × ' + A['AC'])
  print('WA × ' + A['WA'])
  print('TLE × ' + A['TLE'])
  print('RE × ' + A['RE'])
  
  
  
main()

Submission status: Runtime Error

Solution code:
N = input()
result = []
for i in range(0,(N)):
    A = input()
    if A:
        result.append(A)
AC = result.count("AC")
WA = result.count("WA")
TLE = result.count("TLE")
RE = result.count("RE")
print(f"AC x {AC}\nWA x {WA}\nTLE x {TLE}\nRE x {RE}\n")

Submission status: Runtime Error

Solution code:
n=int(input())
ac,wa,tle,re=0,0,0,0
for i in range(n):
  hoge=input()
  if(hoge="AC"):
    ac+=1
  elif(hoge="WA"):
    wa+=1
  elif(hoge="TLE"):
    tle+=1
  elif(hoge="RE"):
    re+=1
    
print("AC x "+ac)
print("WA x "+wa)
print("TLE x "+tle)
print("RE x "+re)

Submission status: Runtime Error

Solution code:
n = int(input())
c0 = c1 = c2 = c3 = 0
for _ in range(n):
  s = input()
  if s == "AC":
    c0 += 1
  elif s == "WA":
    c1 += 1
  elif s == "TLE":
    c2 += 1
  else
  	c3 += 1

print("AC x", c0, sep = " ")
print("WA x", c1, sep = " ")
print("TLE x", c2, sep = " ")
print("RE x", c3, sep = " ")

Submission status: Runtime Error

Solution code:
from collections import Counter

n = int(input())
a = []
for _ in range(n):
  a.append(input())

dct = dict(Counter(a))
for v, num in dct.items():
  print(v + " x " + num)

Submission status: Runtime Error

Solution code:
from collections import Counter

n = int(input())
a = []
for _ in range(n):
  a.append(input())

dct = dict(Counter(a))
for v, num in dct.items():
  print(f"{v} x {num})

Submission status: Runtime Error

Solution code:
ac = 0
wa = 0
tle = 0
re = 0
 
n = int(input())
 
for i in range(n):
  s = str(input())
  if s == 'AC':
    ac += 1
  elif s == 'WA':
    wa += 1
  elif s == 'TLE':
    tle += 1
  elif s == 'RE':
    RE += 1

print('AC','x',ac)
print('WA','x',wa)
print('TLE','x',tle)
print('RE','x',re)

Submission status: Runtime Error

Solution code:
ac = 0
wa = 0
tle = 0
re = 0
 
n = int(input())
 
for i in range(n):
  s = str(input())
  if s == 'AC':
    ac += 1
  elif s == 'WA':
    wa += 1
  elif s == 'TLE':
    tle += 1
  elif s == 'RE':
    RE += 1
 
print('AC','x',ac)
print('WA','x',wa)
print('TLE','x',tle)
print('RE','x',re)

Submission status: Runtime Error

Solution code:
ac = 0
wa = 0
tle = 0
re = 0

n = int(input())

for i in range(n):
  s = input()
  if s = 'AC':
    ac += 1
  elif s = 'WA':
    wa += 1
  elif s = 'TLE':
    tle += 1
  elif s = 'RE':
    RE += 1

print('AC','x',ac)
print('WA','x',wa)
print('TLE','x',tle)
print('RE','x',re)

Submission status: Runtime Error

Solution code:
n = int(input())

d = {}

for _ in range(n):
    s = str(input())
    if s not in d:
        d[s] = 1
    else:
        d[s] += 1

print('AC x {}\nWA x {}\nTLE x {}\nRE x {}\n'.format(d['AC'], d['WA'], d['TLE'], d['RE']))

Submission status: Runtime Error

Solution code:
let N = Int(readLine()!)!
var Ss: [String] = (1...N).map { _ in readLine()! }
["AC", "WA", "TLE", "RE"].forEach { key in
    print("\(key) x \(Ss.filter { $0==key }.count)")
}

Submission status: Runtime Error

Solution code:
n = int(input())
judge = {"AC":0, "WA":0, "TLE":0, "RE":0}
for i in range(n):
  judge[i] += 1

for j in judge:
  print(f"{j} x {judge[j]}")

Submission status: Runtime Error

Solution code:
k = ['AC','WA','TLE','RE']
n=int(input())
ans = {}
for _ in range(n):
  r = input()
  ans[r]=ans.get(r,0)+1
for r in k:
  print(r,'x',ans[r].get(r,0))

Submission status: Runtime Error

Solution code:
AC = 0
WA = 0
TLE = 0
RE = 0
from collections import defaultdict
d = defaultdict(0)
print(d[1])
N = int(input())
for i in range(N):
  s = input()

Submission status: Runtime Error

Solution code:
AC, WA, TLE, RE = 0, 0, 0, 0
N = int(input())
for i in range(N):
  S[i] = input()
  if S[i] == 'AC':
    AC += 1
  elif S[i] == 'WA':
    WA += 1
  elif S[i] == 'TLE':
    TLE += 1
  elif S[i] == 'RE':
    RE += 1
print('AC x ',AC)
print('WA x ',WA)
print('TLE x ',TLE)
print('RE x ',RE)

Submission status: Runtime Error

Solution code:
import collections
n = int(input())
dic = collections.defaultdict(int)
for i in range(n):
  dic[input()] += 1
print("AC x" + dic["AC"])
print("WA x" + dic["WA"])
print("TLE x" + dic["TLE"])
print("RE x" + dic["RE"])