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: Wrong Answer

Solution code:
from collections import Counter


def main():

    N = int(input())
    lst = []

    for _ in range(N):
        lst.extend(input().split())

    c = dict(Counter(lst))


    for i in ["AC", "WA", "TLE", "RE"]:
        c.setdefault(i, 0)
        print(f"{i} × {c[i]}")


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
J = [0, 0, 0, 0]
for i in range(N):
    S = input()
    if S == 'AC':
        J[0] += 1
    elif S == 'WA':
        J[1] += 1
    elif S == 'TLE':
        J[2] += 1
    else:
        J[3] += 1

print('AC' + ' × ' + str(J[0]))
print('WA' + ' × ' + str(J[1]))
print('TLE' + ' × ' + str(J[2]))
print('RE' + ' × ' + str(J[3]))

Submission status: Wrong Answer

Solution code:
nn = int(input())
ss = [input() for _ in range(nn)]

nac, nwa, nte, nre = 0, 0, 0, 0

for si in ss:
    if si == 'AC':
        nac += 1
    elif si == 'WA':
        nwa += 1
    elif si == 'TLE':
        nte += 1
    elif si == 'WA':
        nwa += 1
    else:
        pass

print('AC x ', nac)
print('WA x ', nwa)
print('TLE x ', nte)
print('RE x ', nre)

Submission status: Wrong Answer

Solution code:
N = int(input())
x = ""
S = []
for i in range(N):
    x = input()
    S.append(x)
ans = [0]*4
for i in range(N):
    if S[i] == "AC":
        ans[0] += 1
    elif S[i] == "WA":
        ans[1] += 1
    elif S[i] == "TLE":
        ans[2] += 1
    elif S[i] == "RE":
        ans[3] += 1
print('AC × ',end='')
print(ans[0])
print('WA × ',end='')
print(ans[1])
print('TLE × ',end='')
print(ans[2])
print('RE × ',end='')
print(ans[3])

Submission status: Wrong Answer

Solution code:
import collections
N = int(input())
S = [input() for i in range(N)]
c = collections.Counter(S)
print("AC","×",str(c["AC"]))
print("WA","×",str(c["WA"]))
print("TLE","×",str(c["TLE"]))
print("RE","×",str(c["RE"]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import collections
N=int(input())
S=['a']*N
for i in range(0,N):
    S[i]=input()
J=collections.Counter(S)
print('AC',J['AC'],sep=' × ')
print('WA',J['WA'],sep=' × ')
print('TLE',J['TLE'],sep=' × ')
print('RE',J['RE'],sep=' × ')

Submission status: Wrong Answer

Solution code:
n = int(input())
s_i = []
for i in range(n):
  s = input()
  s_i.append(s)

ac = s_i.count('AC')
wa = s_i.count('WA')
tle = s_i.count('TLE')
re = s_i.count('RE')

print("AC × {0}".format(ac))
print("WA × {0}".format(wa))
print("TLE × {0}".format(tle))
print("RE × {0}".format(re))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
b=0
c=0
d=0
for i in range(n):
    s=input()
    a+=s.count('AC')
    b+=s.count('WA')
    c+=s.count('TLE')
    d+=s.count('RE')
print('AC × '+str(a))
print('WA × '+str(b))
print('TLE × '+str(c))
print('RE × '+str(d))

Submission status: Wrong Answer

Solution code:
word_list = str.split(input())
ac = word_list.count('AC')
wa = word_list.count('WA')
tle = word_list.count('TLE')
re = word_list.count('RE')

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

Submission status: Wrong Answer

Solution code:
N = int(input())
cn = [0]*4 #AC, WA, TLE, RE
for i in range(N):
  x = input()
  if x == "AC":
    cn[0] += 1
  elif x == "WA":
    cn[1] += 1
  elif x == "TLE":
    cn[2] += 1
  elif x == "RE":
    cn[3] += 1
print("AC ×",cn[0])
print("WA ×",cn[1])
print("TLE ×",cn[2])
print("RE ×",cn[3])

Submission status: Wrong Answer

Solution code:
n = int(input())
a= [input() for i in range(n)]

ca=a.count('AC')
cw=a.count('WA')
ct=a.count('TLE')
cr=a.count('RE')
print('AC x',ca)
print('WA x',cw)
print('TEL x',ct)
print('RE x',cr)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
L = [0,0,0,0]
S = N*[0]
for i in range(N):
    S[i] = input()
    if S[i]=="AC":
        L[0]+=1
    elif S[i]=="WA":
        L[1]+=1
    elif S[i]=="TLE":
        L[2]+=1
    else:
        L[3]+=1
print(f"AC × {L[0]}")
print(f"WA × {L[1]}")
print(f"TLE × {L[2]}")
print(f"RE × {L[3]}")

Submission status: Wrong Answer

Solution code:
N = int(input())

ac, wa, tle, re = 0, 0, 0, 0

for i in range(N):
  pass



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

Submission status: Wrong Answer

Solution code:
N = int(input())

s_list = {"AC": 0, "TLE": 0, "WA": 0, "RE": 0}

# a, t, w, r = 0, 0, 0, 0

for i in range(N):
  s = input()
  if s == "AC":
    s_list["AC"] += 1
  elif s == "TLE":
    s_list["TLE"] += 1
  elif s == "WA":
    s_list["WA"] += 1
  else:
    s_list["RE"] += 1
    

print("AC × {}\nTLE × {}\nWA × {}\nRE × {}".format(s_list["AC"], s_list["TLE"], s_list["WA"], s_list["RE"]))

Submission status: Wrong Answer

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
input = sys.stdin.readline
from math import floor, sqrt, factorial, hypot, log  # log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter, defaultdict, deque
from itertools import accumulate, permutations, combinations, product, combinations_with_replacement
from bisect import bisect_left, bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint


def ceil(a, b): return (a + b - 1) // b


inf = float('inf')
mod = 10 ** 9 + 7


def pprint(*A):
    for a in A:     print(*a, sep='\n')


def INT_(n): return int(n) - 1


def MI(): return map(int, input().split())


def MF(): return map(float, input().split())


def MI_(): return map(INT_, input().split())


def LI(): return list(MI())


def LI_(): return [int(x) - 1 for x in input().split()]


def LF(): return list(MF())


def LIN(n: int): return [I() for _ in range(n)]


def LLIN(n: int): return [LI() for _ in range(n)]


def LLIN_(n: int): return [LI_() for _ in range(n)]


def LLI(): return [list(map(int, l.split())) for l in input()]


def I(): return int(input())


def F(): return float(input())


def ST(): return input().replace('\n', '')


def main():
    N = I()
    AC = 0
    WA = 0
    TLE = 0
    RE = 0
    for _ in range(N):
        S = input()
        if "AC" in S:
            AC += 1
        elif "WA" in S:
            WA += 1
        elif "TLE" in S:
            TLE += 1
        else:
            RE += 1
    print("AC", "×", AC)
    print("WA", "×", WA)
    print("TLE", "×", TLE)
    print("RE", "×", RE)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
result = []
for _ in range(int(input())):
  result.append(input())
print("AC X {}".format(result.count("AC")))
print("WA X {}".format(result.count("WA")))
print("TLE X {}".format(result.count("TLE")))
print("RE X {}".format(result.count("RE")))

Submission status: Wrong Answer

Solution code:
n = int(input())
abc = []
for i in range(n):
    s = str(input())
    abc.append(s)

print('AC × {}'.format(abc.count('AC')))
print('WA × {}'.format(abc.count('WA')))
print('TLE × {}'.format(abc.count('TLE')))
print('RE × {}'.format(abc.count('RE')))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for _ in range(n)]
#print(s)

print('AC × ' + str(s.count('AC')))
print('WA × ' + str(s.count('WA')))
print('TLE × ' + str(s.count('TLE')))
print('RE × ' + str(s.count('RE')))

Submission status: Wrong Answer

Solution code:
li = [0] * 4
N = int(input())
for i in range(N):
    result = input()
    if result == "AC":
        li[0] += 1
    if result == "WA":
        li[1] += 1 
    if result == "TLE":
        li[2] += 1
    if result == "RE":
        li[3] += 1
line = "AC × {0}\nWA × {1}\nTLE × {2}\nRE × {3}".format(li[0], li[1], li[2], li[3])
print(line)

Submission status: Wrong Answer

Solution code:
N = int(input())

ac, wa, tle, re = 0, 0, 0, 0



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

Submission status: Wrong Answer

Solution code:
n = int(input())

d = {}
lst = ['AC', 'WA', 'TLE', 'RE']
for i in range(n):
    s = input()
    if s in d:
        d[s] += 1
    else:
        d[s] = 1

for key, val in d.items():
    if key in lst:
        print(key, 'x', val)
        lst.remove(key)
for i in lst:
    print(i, 'x 0')

Submission status: Wrong Answer

Solution code:
n = int(input())
s = []
c1 = 0 
c2 = 0
c3 = 0
c4 = 0
for i in range(n):
    s.append(input()) 
    if s[i] == 'AC':
        c1 += 1
    elif s[i] == 'WA':
        c2 += 1
    elif s[i] == 'TLE':
        c3 += 1
    elif s[i] == 'RE':
        c4 += 1

print('AC ×',c1)
print('WA ×',c2)
print('TLE ×',c3)
print('RE ×',c4)

Submission status: Wrong Answer

Solution code:
ac,wa,tle,re = 0,0,0,0
N=int(input())
for _ 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 ×　"+str(ac)+"\n")
print("WA ×　"+str(wa)+"\n")
print("TLE ×　"+str(tle)+"\n")
print("RE ×　"+str(re)+"\n")

Submission status: Wrong Answer

Solution code:
import sys
input = sys.stdin.readline

N = int(input())
S_list = [input() for _ in range(N)]

AC_c = 0
WA_c = 0
TLE_c = 0
RE_c = 0
print(S_list)
for S in S_list:
    if S == "AC\n":
        AC_c += 1
    elif S == "WA\n":
        WA_c += 1
    elif S == "TLE\n":
        TLE_c += 1
    else:
        RE_c += 1
print("AC x " + str(AC_c))
print("WA x " + str(WA_c))
print("TLE x " + str(TLE_c))
print("RE x " + str(RE_c))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = list(str(input()) for _ in range(N))

print(S)

AC = 0
WA = 0
TLE = 0
RE = 0
for s in S:
    if s =='AC':
        AC +=1
    elif s == 'WA':
        WA +=1
    elif s == 'TLE':
        TLE += 1
    elif s == 'RE':
        RE  +=1

print('AC x {}'.format(AC))
print('WA x {}'.format(WA))
print('TLE x {}'.format(TLE))
print('RE x {}'.format(RE))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = []
for _ in range(N):
    S.append(input()) 
a = S.count('AC')
b = S.count('WA')
c = S.count('TLE')
d = S.count('RE')
print ('AC ×' +' ' + str(a))
print('WA ×' + ' '+ str(b))
print('TLE ×' +' ' + str(c))
print('RE ×' +' '+ str(d))

Submission status: Wrong Answer

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

AC=S.count("AC")
WA=S.count("WA")
TLE=S.count("TLE")
RE=S.count("RE")

print(f"AC × {AC}")
print(f"WA × {WA}")
print(f"TLE × {TLE}")
print(f"RE × {RE}")

Submission status: Wrong Answer

Solution code:
word_list = str.splitlines(input())
ac = word_list.count('AC')
wa = word_list.count('WA')
tle = word_list.count('TLE')
re = word_list.count('RE')

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a= [input() for i in range(n)]

ca=a.count('AC')
cw=a.count('WA')
ct=a.count('TLE')
cr=a.count('RE')
print('AC X',ca)
print('WA X',cw)
print('TEL X',ct)
print('RE X',cr)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from collections import Counter
n = int(input())
s = [input() for _ in range(n)]
print("AC × ",s.count('AC'))
print("WA × ",s.count('WA'))
print("TLE × ",s.count('TLE'))
print("RE × ",s.count('RE'))

Submission status: Wrong Answer

Solution code:
a=int(input())

b=0
c=0
d=0
e=0

for i in range(a):
  name=input()

  if name=='AC':
    b+=1
  elif name=='WA':
    c+=1
  elif name=='TLE':
    d+=1
  elif name=='RE':
    e+=1

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

Submission status: Wrong Answer

Solution code:
N = int(input())
L = [0,0,0,0]
S = N*[0]
for i in range(N):
    S[i] = input()
    if S[i]=="AC":
        L[0]+=1
    elif S[i]=="WA":
        L[1]+=1
    elif S[i]=="TLE":
        L[2]+=1
    else:
        L[3]+=1
print(f"AC×{L[0]}")
print(f"WA×{L[1]}")
print(f"TLE×{L[2]}")
print(f"RE×{L[3]}")

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())

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

count_map = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}

for s in S:
    count_map[s] += 1
    print(count_map)

for count_key, count in count_map.items():
    print(count_key + " x " + str(count))

Submission status: Wrong Answer

Solution code:
import collections
N = int(input())
S = [input() for i in range(N)]
c = collections.Counter(S)
print("AC　" + "×　" + str(c["AC"]))
print("WA　" + "×　" + str(c["WA"]))
print("TLE　" + "×　" + str(c["TLE"]))
print("RE　" + "×　" + str(c["RE"]))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = list(str(input()) for _ in range(N))

print(S)

AC = 0
WA = 0
TLE = 0
RE = 0
for s in S:
    if s =='AX':
        AC +=1
    elif s == 'WA':
        WA +=1
    elif s == 'TLE':
        TLE += 1
    elif s == 'RE':
        RE  +=1

print('AC x {}'.format(AC))
print('WA x {}'.format(WA))
print('TLE x {}'.format(TLE))
print('RE x {}'.format(RE))

Submission status: Wrong Answer

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

print('AC ×', A.count('AC'))
print('WA ×', A.count('WA'))
print('TLE ×', A.count('TLE'))
print('RE ×', A.count('RE'))

Submission status: Wrong Answer

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

count_AC = 0
count_WA = 0
count_TLE = 0
count_RE = 0

for i in range(N):
	if a[i] == 'AC':
		count_AC += 1
	if a[i] == 'WA':
		count_WA += 1
	if a[i] == 'TLE':
		count_TLE += 1
	if a[i] == 'RE':
		count_RE += 1

print('AC × ', end='')
print(count_AC)
print('WA × ', end='')
print(count_WA)
print('TLE × ', end='')
print(count_TLE)
print('RE × ', end='')
print(count_RE)

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for i in range(n)]
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')

print('AC × '+str(ac))
print('WA × '+str(wa))
print('TLE × '+str(tle))
print('RE × '+str(re))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for _ in range(n)]
ac, wa, tle, re = 0, 0, 0, 0

for i in range(n):
    if "AC" in s[i]:
        ac += 1
    elif "WA" in s[i]:
        wa += 1
    elif "TLE" in s[i]:
        tle += 1
    elif "RE" in s[i]:
        re += 1
print("AC × ",ac)
print("WA × ",wa)
print("TLE × ",tle)
print("RE × ",re)

Submission status: Wrong Answer

Solution code:
n=int(input())

countAC=0
countWA=0
countTLE=0
countRE=0

for i in range(n):
    s=input()
    if s=="AC":
        countAC += 1
    elif s=="WA":
        countWA += 1
    elif s=="TLE":
        countTLE += 1
    else:
        countRE += 1

print("AC × " + str(countAC))
print("WA × " + str(countWA))
print("TLE × " + str(countTLE))
print("RE × " + str(countRE))

Submission status: Wrong Answer

Solution code:
n = int(input())
l = []

for i in range(n):
    s = input()
    l.append(s)
    
print('AC' + ' ' + '×' + ' ' + str(l.count('AC')))
print('WA' + ' ' + '×' + ' ' + str(l.count('WA')))
print('TLE' + ' ' + '×' + ' ' + str(l.count('TLE')))
print('RE' + ' ' + '×' + ' ' + str(l.count('RE')))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for i in range(n)]
AC = 0
WA = 0
TLE = 0
RE = 0
for j in range(n):
  if s[j] == 'AC':
    AC += 1
  elif s[j] == 'WA':
    WA += 1
  elif s[j] == 'TLE':
    TLE += 1
  else:
    RE += 1
print('AC ×', AC)
print('WA ×', WA)
print('TLE ×', TLE)
print('RE ×', RE)

Submission status: Wrong Answer

Solution code:
n = int(input())

wa = 0
ac = 0
tle = 0
re = 0

for i in range(n):
  x = input()
  if x == "RE": re+=1
  if x == "TLE": tle+=1
  if x == "AC": ac+=1
  if x == "WA": wa+=1

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

Submission status: Wrong Answer

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

AC = []
WA = []
TLE = []
RE = []

for i in range(N):
    if S[i] == "AC":
        AC.append(i)
    elif S[i] == "WA":
        WA.append(i)
    elif S[i] == "TLE":
        TLE.append(i)
    else:
        RE.append(i)
print("AC",  "×",  len(AC))
print("WA",  "×",  len(WA))
print("TLE",  "×",  len(TLE))
print("RE",  "×",  len(RE))

Submission status: Wrong Answer

Solution code:

n=int(input())

s = [input() for i in range(n)]

print("AC ×",s.count('AC'))
print("WA ×",s.count('WA'))
print("TLE ×",s.count('TLE'))
print("RE  ×",s.count('RE'))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for _ in range(n)]
a = 0
w = 0
t = 0
r = 0
for i in range(n):
    if s[i]  == "AC":
        a += 1
    elif s[i] == "WA":
        w += 1
    elif s[i] == "TLE":
        t += 1
    else:
        r += 1
print("AC x" +str(a))
print("WA x" +str(w))
print("TLE x" +str(t))
print("RE x" +str(r))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = []
for _ in range(N):
    S.append(input()) 
a = S.count('AC')
b = S.count('WA')
c = S.count('TLE')
d = S.count('RE')
print ('AC ×' + str(a))
print('WA ×' + str(b))
print('TLE ×' + str(c))
print('RE ×' + str(d))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import os

N = int(input())
S = [0] * N

for i in range(0, N):
    S[i] = input()

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
    elif i == "RE":
        RE+=1

print("AC x",AC)
print("WA x",WA)
print("TLE ×",TLE)
print("RE ×",RE)

Submission status: Wrong Answer

Solution code:
N = int(input())

c0 = 0
c1 = 0
c2 = 0
c3 = 0

for _ in range(N):
  c = input()
  if c == 'AC':
    c0 += 1
  elif c == 'WA':
    c1 += 1
  elif c == 'LTE':
    c2 += 1
  elif c == 'RE':
    c3 += 1
    
print('AC x ' + str(c0))
print('WA x ' + str(c1))
print('LTE x ' + str(c2))
print('RE x ' + str(c3))

Submission status: Wrong Answer

Solution code:
a=int(input())

b=0
c=0
d=0
e=0

for i in range(a):
  name=input()

  if name=='AC':
    b+=1
  elif name=='WA':
    c+=1
  elif name=='TLE':
    d+=1
  elif name=='RE':
    e+=1

print('AC × '+str(b))
print('WA × '+str(c))
print('TLE × '+str(d))
print('RE × '+str(e))

Submission status: Wrong Answer

Solution code:
n = int(input())
p = []
for i in range(n):
    a = input()
    p.append(a)
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
    if p[i] == 'AC':
        ac += 1
    elif p[i] == 'WA':
        wa += 1
    elif p[i] == 'TLE':
        tle += 1
    else:
        re += 1
ans = 'AC X'
print(ans,str(ac), sep = ' ',)
ans = 'WA X'
print(ans,str(wa), sep = ' ')
ans = 'TLE X'
print(ans,str(tle), sep = ' ')
ans = 'RE X'
print(ans,str(re), sep = ' ')

Submission status: Wrong Answer

Solution code:
N=int(input())
a=0
b=0
c=0
d=0
for i in range(N):
    A=input()
    if A=="AC":
        a+=1
    elif A=="WA":
        b+=1
    elif A=="TLE":
        c+=1
    else:
        d+=1
print("AC ×",a)
print("WA ×",b)
print("TLE ×",c)
print("RE ×",d)

Submission status: Wrong Answer

Solution code:
n = int(input())

d = {}

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

for key, val in d.items():
    print(key, 'x', val)

if 'AC' not in d:
    print('AC x 0')
if ('WA' not in d):
    print('WA x 0')
if('TLE' not in d):
    print('TLE x 0')
if 'RE' not in d:
    print('RE x 0')

Submission status: Wrong Answer

Solution code:

n=int(input())

s = [input() for i in range(n)]

print("AC *",s.count('AC'))
print("WA *",s.count('WA'))
print("TLE *",s.count('TLE'))
print("RE  *",s.count('RE'))

Submission status: Wrong Answer

Solution code:
N=int(input())
A=[]
for i in range(0,N):
    A.append(input())
print('AC','×',A.count('AC'))
print('WA','×',A.count('WA'))
print('TLE','×',A.count('TLE'))
print('RE','×',A.count('RE'))

Submission status: Wrong Answer

Solution code:
N=int(input())
l=[]
for i in range(N):
  a=input()
  l.append(a)
AC_num=l.count("AC")
WA_num=l.count("WA")
TLE_num=l.count("TLE")
RE_num=l.count("RE")
print("AC ×",AC_num)
print("WA ×",WA_num)
print("TLE ×",TLE_num)
print("RE ×",RE_num)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for i, j in T.items():
    print("{0}　×　{1}".format(i ,j))

Submission status: Wrong Answer

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

for _ in range(loop):
  judge = input()
  if judge == 'AC':
    ac += 1
  elif judge == 'WA':
    wa += 1
  elif judge == 'TLE':
  	tle += 1
  elif judge == 'RE':
    re += 1
    
print('AC × {}'.format(ac))
print('WA × {}'.format(wa))
print('TLE × {}'.format(tle))
print('RE × {}'.format(re))

Submission status: Wrong Answer

Solution code:
import os
import sys
from collections import defaultdict, Counter
from itertools import product, permutations,combinations, accumulate
from operator import itemgetter
from bisect import bisect_left,bisect
from heapq import heappop,heappush,heapify
from math import ceil, floor, sqrt, gcd
from copy import deepcopy
from functools import reduce

def main():
    n = int(input())
    lists = []
    ans = [0]*4
    for i in range(n):
        s = input()
        if not s in lists:
            lists.append(s)

            
        if s == "AC":
            ans[0] += 1
        elif s == "WA" :
            ans[1] += 1
        elif s == "TLE":
            ans[2] += 1
        else:
            ans[3] += 1
    

    for i in ans:
        if i == "AC":
            print("AC x", i)
        elif i == "WA" :
            print("WA x", i)
        elif i == "TLE":
            print("TLE x", i)
        else:
            print("RE x", i)


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
import collections
n = int(input())
s = [input() for _ in range(n)]
c = collections.Counter(s)

for i in c.items():
  print(str(i[0]) + ' x ' + str(i[1]))

Submission status: Wrong Answer

Solution code:
def main():
  num = int(input())
  result = []
  for i in range(num):
    result.append(input())
  print(f'AC X {result.count("AC")}')
  print(f'WA X {result.count("WA")}')
  print(f'TLE X {result.count("TLE")}')
  print(f'RE X {result.count("RE")}')
  return

main()

Submission status: Wrong Answer

Solution code:
N = int(input())
test = {"AC": 0, "WA": 0, "TLE": 0, "RE": 0}

for _ in range(N):
    s = input()
    test[s] += 1

for i, j in test.items():
    print("{} × {}".format(i, j))

Submission status: Wrong Answer

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

for i in x:
    print("{} × ".format(i)+str(s.count(i)))

Submission status: Wrong Answer

Solution code:
n=int(input())
word_list = ['AC','WA','TLE','RE']
A = 0
W = 0
T = 0
R = 0

for i in range(n):
    s = input()
    if s == 'AC':
        A = A + 1
    elif s == 'WA':
        W = W + 1
    elif s == 'TLE':
        T = T + 1
    else:
        R = R + 1
Ans_list = [A,W,T,R]
for i in range(4):
    print(str(word_list[i])+ ' × '+ str(Ans_list[i]))

Submission status: Wrong Answer

Solution code:
n = int(input())
result = ['AC','WA','TLE','RE']
c = [0]*4

for i in range(n):
    str = input()
    for n,r in enumerate(result):
        if str == r:
            c[n] += 1

for i in range(4):
    print(result[i], ' × ', c[i])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
S=[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
  elif i=="RE":
    re+=1
print("AC ×"+" "+str(ac))
print("WA ×"+" "+str(wa))
print("TLE ×"+" "+str(tle))
print("RE ×"+" "+str(re))

Submission status: Wrong Answer

Solution code:
import collections

judgement = []
while True:
  try:
    judgement.append(input())
  except:
    break

counter = collections.Counter(judgement)

n_ac = counter.get('AC', 0)
n_ma = counter.get('MA', 0)
n_tle = counter.get('TLE', 0)
n_re = counter.get('RE', 0)

print('AC x {}'.format(n_ac))
print('MA x {}'.format(n_ma))
print('TLE x {}'.format(n_tle))
print('RE x {}'.format(n_re))

Submission status: Wrong Answer

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
    elif tmp=='WA':
        WA+=1
    elif tmp=='TLE':
        TLE+=1
    elif tmp=='RE':
        RE+=1



ans="AC × "+str(AC)+"\n"+"WA ×"+str(WA)+"\n"+"TLE × "+str(TLE)+"\n"+"RE × "+str(RE)+"\n"
print("{}".format(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())

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

for i in range(n):
    s = input()
    L[s] += 1
for i in L:
    print('{} × {}'.format(i, L[i]))

Submission status: Wrong Answer

Solution code:
n=int(input())
ac=0
wa=0
tle=0
re=0
for i in range(n):
  c=input()
  if c=='AC':
    ac+=1
  elif c=='WA':
    wa+=1
  elif c=='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: Wrong Answer

Solution code:
n = int(input())
s = [input() for i in range(n)]

AC = s.count("AC")
WA = s.count("WA")
TLE = s.count("TLE")
RE = s.count("RE")

print("AC × " + str(AC))
print("WA × " + str(WA))
print("TLE × " + str(TLE))
print("RE × " + str(RE))

Submission status: Wrong Answer

Solution code:
import collections,sys
def I(): return int(sys.stdin.readline().rstrip())
def S(): return sys.stdin.readline().rstrip()
N = I()
S = [S() for _ in range(N)]
counter_S = collections.defaultdict(int)
for s in S:
    counter_S[s] += 1
print(counter_S)
for ans in ['AC','WA','TLE','RE']:
    print('{0} x {1}'.format(ans,counter_S[ans]))
print()

Submission status: Wrong Answer

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
  else:
    re+=1
print("AC x %s"%ac)
print("WA x %s"%wa)
print("TLE x %s"%tle)
print("RE x %s"%re)

Submission status: Wrong Answer

Solution code:
n = int(input())
ac = "AC"
wa = "WA"
tle = "TLE"
re = "RE"

ans = [0, 0, 0, 0]
for _ in range(n):
    a = input()
    if (a == ac):
        ans[0] += 1
    if (a == wa):
        ans[1] += 1
    if (a == tle):
        ans[2] += 1
    if (a == re):
        ans[3] += 1

print("AC x ",ans[0])
print("WA x ",ans[1])
print("TLC x ",ans[2])
print("RE x ",ans[3])

Submission status: Wrong Answer

Solution code:
N = int(input())
S = [input() for i in range(N)]
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N) :
    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' + str(AC) )
print('WA' + 'x' + str(WA) )
print('TLE' + 'x' + str(TLE) )
print('RE' + 'x' + str(RE) )

Submission status: Wrong Answer

Solution code:
import os

N = int(input())
S = [0] * N

for i in range(0, N):
    S[i] = input()

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
    elif i == "RE":
        RE+=1

print("AC × ",AC)
print("WA × ",WA)
print("TLE × ",TLE)
print("RE × ",RE)

Submission status: Wrong Answer

Solution code:
n = int(input())

j = list()
for _ in range(n):
    string = input()
    j.append(string)

ac = j.count("AC")
wa = j.count("WA")
tel = j.count("TEL")
re = j.count("RE")
print("AC x " + str(ac))
print("WA x " + str(wa))
print("TLE x " + str(tel))
print("RE x " + str(re))

Submission status: Wrong Answer

Solution code:
a=int(input())
AC=[]
WA=[]
TLE=[]
RE=[]
for i in range(a):
  s=(input())
  if s=='AC':
     AC.append(s)
  if s=='TLE':
     TLE.append(s)   
  if s=='WA':
     WA.append(s)
  if s=='RE':
     RE.append(s)
print('AC', '×',len(AC))
print('WA','×',len(WA))
print('TLE','×',len(TLE))
print('RE','×',len(RE))

Submission status: Wrong Answer

Solution code:
import collections
N = int(input())
S = [input() for i in range(N)]
c = collections.Counter(S)
print("AC " + "× " + str(c["AC"]))
print("WA " + "× " + str(c["WA"]))
print("TLE " + "× " + str(c["TLE"]))
print("RE " + "× " + str(c["RE"]))

Submission status: Wrong Answer

Solution code:
N = int(input())

c0 = 0
c1 = 0
c2 = 0
c3 = 0

for _ in range(N):
  c = input()
  if c == 'AC':
    c0 += 1
  elif c == 'WA':
    c1 += 1
  elif c == 'LTE':
    c2 += 1
  elif c == 'RE':
    c3 += 1

    
print('AC x ' + str(c0))
print('WA x ' + str(c1))
print('LTE x ' + str(c2))
print('RE x ' + str(c3))

Submission status: Wrong Answer

Solution code:
N=int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(N):
  S=input();
  if S[0] == "A":
    a+=1
  elif S[0] == "W":
    w+=1
  elif S[0] == "T":
    t+=1
  else:
    r+=1
print("AC x",a)
print("WC x",w)
print("TLE x",t)
print("RE x",r)