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:
ac = 0
wa = 0
tle = 0
re = 0

n = int(input())
for i in range(n):
  x = input()
  if x=='AC':
    ac = ac+1
  elif x=='WA':
    wa = wa+1
  elif x=='TLE':
    tle = tle+1
  else:
    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:
n = int(input())
ac,wa,tle,re = 0,0,0,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 × "+str(ac))
print("WA × "+str(wa))
print("TLE × "+str(tle))
print("RE × "+str(re))

Submission status: Wrong Answer

Solution code:
n=int(input())
a=[0]*4
b=""
for i in range(n):
    b=input()
    if b=="AC":
        a[0]+=1
    elif b=="WA":
        a[1]+=1
    elif b=="TLE":
        a[2]+=1
    elif b==1:
        a[3]+=1

print("AC","x",a[0])
print("WA","x",a[1])
print("TLE","x",a[2])
print("RE","x",a[3])

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for _ in range(n)]
ac = s.count('AC')
print('AC × '+str(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:
from collections import Counter

N = int(input())


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

C = Counter(S)

print("AC × {}".format(C["AC"]))
print("WA × {}".format(C["WA"]))
print("TLE × {}".format(C["TLE"]))
print("RE × {}".format(C["RE"]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
a=0
b=0
c=0
d=0
for i in range(n):
  w=input()
  if w=="AC":
    a=a+1
  elif w=="TLE":
    b=b+1
  elif w=="WA":
    c=c+1
  else:
    d=d+1
print("AC "+"x "+str(a))
print("WA "+"x "+str(c))
print("TLE "+"x "+str(b))
print("TL "+"x "+str(d))

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 = ac + 1
  elif s == 'WA':
    wa = wa + 1
  elif s == 'TLE':
    tle = tle + 1
  elif s == 'RE':
    ren = 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:
n = input()
n = int(n)
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
    wk = input()
    if wk == "AC":
        ac +=1
    elif wk == "WA":
        wa += 1
    elif wk == "TLE":
        tle += 1
    else :
        re += 1
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())
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
    else:
        re+=1
print("AC ×",ac)
print("WA ×",wa)
print("TLE ×",tle)
print("RE ×",re)

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
  elif S == 'RE':
    re += 1
  else:
    break

print('AC ×',ac)
print('WA ×',ac)
print('TLE ×',ac)
print('RE ×',ac)

Submission status: Wrong Answer

Solution code:
n=int(input())
C0=0
C1=0
C2=0
C3=0
for i in range(n):
    s=input()

    if s=='AC':
       C0+=1
    if s=='WA':
       C1+=1
    if s=='TLE':
       C2+=1
    if s=='RE':
       C3+=1
print('AC × '+str(C0))
print('WA × '+str(C1))
print('TLE × '+str(C2))
print('RE × '+str(C3))

Submission status: Wrong Answer

Solution code:
N=int(input())
AC=0
WA=0
TLE=0
RE=0
for i in range(N):
    result=input()
    if result=="AC":
        AC+=1
    elif result == "WA":
        WA+=1
    elif result == "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: Wrong Answer

Solution code:
dic=dict()
n=int(input())
for i in range(n):
    s=input()
    if s in dic:
        dic[s]+=1
    else:
        dic[s]=1
if "AC" in dic:
    print("AC *",dic["AC"])
else:
    print("AC * 0")
if "WA" in dic:
    print("WA *",dic["WA"])
else:
    print("WA * 0")
if "TLE" in dic:
    print("TLE *",dic["TLE"])
else:
    print("TLE * 0")
if "RE" in dic:
    print("RE *",dic["RE"])
else:
    print("RE * 0")

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for i in range(n)]
print('AC * %d' % (s.count('AC')))
print('WA * %d' % (s.count('WA')))
print('TLE * %d' % (s.count('TLE')))
print('RE * %d' % (s.count('RE')))

Submission status: Wrong Answer

Solution code:
from sys import stdin,stdout
def INPUT():return list(int(i) for i in stdin.readline().split())
import math
def inp():return stdin.readline()
def out(x):return stdout.write(x)
import math as M
#####################################

n=int(input())
D=[0]*4
for i in  range(n):
    s=input()
    if s=="AC":
        D[0]+=1
    elif s=="WA":
        D[1]+=1
    elif s=="TLE":
        D[2]+=1
    else:
        D[3]+=1
print("AC X",D[0])
print("WA X",D[1])
print("TLE X",D[2])
print("RE X",D[3])

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]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

d = {"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
  c = input()
  d[c]=d[c]+1 
print("AC X "+str(d["AC"]))
print("WA X "+str(d["WA"]))
print("TLE X "+str(d["TLE"]))
print("RE X "+str(d["RE"]), end='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
import math
from collections import deque
from collections import defaultdict
from copy import deepcopy
from itertools import accumulate #リストを与えると累積和を返す
def input(): return sys.stdin.readline().rstrip()
from functools import lru_cache #メモ化

def main():
    n = int(input())
    s = [input() for _ in range(n)]
    print('AC × {:}'.format(s.count('AC')))
    print('WA × {:}'.format(s.count('WA')))
    print('TLE × {:}'.format(s.count('TLE')))
    print('RE × {:}'.format(s.count('RE')))
    return 0

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [0 for i in range(4)]
for i in range(n):
    t = input()
    if t == "AC":
        s[0] += 1
    elif t == "WA":
        s[1] += 1
    elif t == "TLE":
        s[2] += 1
    elif t == "RE":
        s[3] += 1

for i in s:
    print("AC x",i)

Submission status: Wrong Answer

Solution code:
N = int(input())
AC =[]
WA =[]
TLE =[]
RE =[]

for i in range(N):
    s = str(input())
    if s == "AC":
        AC.append(s)
    elif s == "WA":
        WA.append(s)
    elif s == "TLE":
        TLE.append(s)
    elif s =="RE":
        RE.append(s)
print("AC × "+str(len(AC)))
print("WA × "+str(len(WA)))
print("TLE × "+str(len(TLE)))
print("RE × "+str(len(RE)))

Submission status: Wrong Answer

Solution code:
from collections import Counter
n = int(input().strip())
L = [input().strip() for _ in range(n)]


cnt=Counter(L)
for x in ["AC", "WA", "TLE", "RE"]:
    print(x+" x　"+str(cnt[x]))

Submission status: Wrong Answer

Solution code:
n=int(input())
c=[0 for i in range(4)]
for i in range(n):
  s=input()
  if s=="AC":
    c[0]+=1
  if s=="WA":
    c[1]+=1
  if s=="TLE":
    c[2]+=1
  if s=="RE":
    c[3]+=1

print("AC x ",c[0])
print("WA x ",c[1])
print("TLEW x ",c[2])
print("RE x ",c[3])

Submission status: Wrong Answer

Solution code:
ans = [0 for i in range (4)]
num = int(input())
for i in range (num):
    inp = input()
    if inp == 'AC':
        ans[0] += 1
    elif inp =='WA':
        ans[1] +=1
    elif inp == 'TLE':
        ans[2] += 1
    elif inp == 'RE':
        ans[3] += 1
    print(ans)
print ('AC x {}'.format(ans[0]))
print ('WA x {}'.format(ans[1]))
print ('TLE x {}'.format(ans[2]))
print ('RE x {}'.format(ans[3]))

Submission status: Wrong Answer

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

ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
print('AC x',ac)
print('WA x',wa)
print('TLE x',tle)
print('Re x',re)

Submission status: Wrong Answer

Solution code:
from collections import Counter
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())
c1,c2,c3,c4=0,0,0,0
for i in range(n):
  s=input()
  if(s=='AC'):
    c1+=1
  elif(s=='WA'):
    c2+=1
  elif(s=='TLE'):
    c3+=1
  else:
    c4+=1
print('AC X'+str(c1))
print('WA X'+str(c2))
print('TLE X'+str(c3))
print('RE X'+str(c4))

Submission status: Wrong Answer

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

ac=0
wa=0
tle=0
re=0
for i in li:
    if i=="AC":
        ac+=1
    elif i =="TLE":
        tle+=1
    elif i=="wa":
        wa+=1
    else:
        re+=1
print("AC × {}".format(ac))
print("WA × {}".format(wa))
print("TLE × {}".format(tle))
print("RE × {}".format(re))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = [input() for i in range(N)]
count_AC, count_WA, count_TLE, count_RE = 0, 0, 0, 0
for s in S:
    if s == 'AC':
        count_AC+=1
    elif s == 'WA':
        count_WA+=1
    elif s == 'TLE':
        count_TLE+=1
    else:
        count_RE+=1

print('AC × '+str(count_AC))
print('WA × '+str(count_WA))
print('TLE × '+str(count_TLE))
print('RE × '+str(count_RE))

Submission status: Wrong Answer

Solution code:
N=int(input())
a=[]
d=dict(AC=0, WA=0, TLE=0, RE=0)
for _ in range(N):
  a=input()
  d[a]+=1
for k, v in d.items():
  ans=k+" × "+str(v)
  print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#B
n = int(input())
cnt_ac = 0
cnt_wa = 0
cnt_tle = 0
cnt_re = 0
for _ in range(n):
    s = input()
    if s == 'AC':
        cnt_ac += 1
    elif s == 'TLE':
        cnt_tle += 1
    elif s == 'WA':
        cnt_wa += 1
    else:
        cnt_re += 1

print('AC × {}'.format(cnt_ac))
print('WA × {}'.format(cnt_wa))
print('TLE × {}'.format(cnt_tle))
print('RE × {}'.format(cnt_re))

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 1000 == 0:
    print("0")
else:
    print(((n // 1000) + 1) * 1000 - n)

Submission status: Wrong Answer

Solution code:
import sys


def main():
    readline = sys.stdin.readline
    N = int(input())
    AC = 0
    WA = 0
    TLE = 0
    RE = 0
    for _ in range(N):
        a = readline()
        if a == "AC":
            AC += 1
        elif a == "WA":
            WA += 1
        elif a == "TLE":
            TLE += 1
        else:
            RE += 1
    print("AC x", AC)
    print("WA x", WA)
    print("TLE x", TLE)
    print("RE x", RE)


if __name__ == "__main__":
    main()

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:
from collections import Counter
N = int(input())
d = {'AC':0,
     'WA':0,
     'TLE':0,
     'RE:':0}
for key,value in Counter([input() for _ in range(N)]).items():
    d[key]=value

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
list=[input() for i in range(n)]
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(0,n):
    if list[i] == 'AC':
        AC = AC + 1
    if list[i] == 'WA':
        WA = WA + 1
    if list[i] == 'TLE':
        TLE = TLE + 1
    if list[i] == 'RE':
        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:
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
d = {}
for i in range(N):
  x = input()
  if x in d.keys():
    d[x]+=1 
  else:
    d[x] = 1
for j in d.keys():
  print(j + " " + "x" + " " + str(d[j]))
  print("\n")

Submission status: Wrong Answer

Solution code:
def resolve():
    N = int(input())
    ans = [0,0,0,0]
    for i in range(N):
        S = input()
        if S == 'AC':
            ans[0] += 1
        if S == 'WA':
            ans[1] += 1
        if S == 'TLE':
            ans[2] += 1
        if S == 'RE':
            ans[3] += 1
    print( 'AC × ' + str(ans[0]) )
    print( 'WA × ' + str(ans[1]) )
    print( 'TLE × ' + str(ans[2]) )
    print( 'RE × ' + str(ans[3]) )
resolve()

Submission status: Wrong Answer

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

ans = [0] * 4

for i in s:
  if i == "AC":
    ans[0] += 1
  elif i == "WA":
    ans[1] += 1
  elif i == "TLE":
    ans[2] += 1
  else:
    ans[3] == "RE"
    
print("AC x",ans[0])
print("WA x",ans[1])
print("TLE x",ans[2])
print("RE x",ans[3])

Submission status: Wrong Answer

Solution code:
t=int(input())
f=[]
for i in range(t):
    s=input()
    f.append(s)
print("AC"+''+'*'+''+str((f.count("AC"))))
print("WA"+''+'*'+''+str((f.count("WA"))))
print("TLE"+''+'*'+''+str((f.count("TLE"))))
print("RE"+''+'*'+''+str((f.count("RE"))))

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

print("AC x",d["AC"])
print("WA x 0",d["WA"] )
print("TLE x 0",d["TLE"])
print("RE x 0",d["RE"])

Submission status: Wrong Answer

Solution code:
import collections
n=int(input())
data=[]
for i in range(n):
    num=input()
    data.append(num)
data=collections.Counter(data)
print("AC × {}".format(data["AC"]))
print("WA × {}".format(data["WA"]))
print("TLE × {}".format(data["TLE"]))
print("RE × {}".format(data["RE"]))

Submission status: Wrong Answer

Solution code:
from collections import defaultdict
def main():
    N = int(input())
    c = defaultdict(int)

    for i in range(N):
        c[input()] += 1

    print("AC × {}".format(c["AC"]))
    print("WA × {}".format(c["WA"]))
    print("TLE × {}".format(c["TLE"]))
    print("RE × {}".format(c["RE"]))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
from collections import Counter
from math import sqrt
import math

n = int(input())
a = []
b = ["AC" , "TLE" , "WA" , "RE"]
for i in range(n):
    a.append(input())
c = Counter(a)
for i in b:
    print(i , " x ",  c[i])

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
Ss = [input() for _ in range(N)]

import collections

c = collections.Counter(Ss)
print(c)
print("AC x " + str(c["AC"]))
print("WA x " + str(c["WA"]))
print("TLE x " + str(c["TLE"]))
print("RE x " + str(c["RE"]))

Submission status: Wrong Answer

Solution code:
from collections import Counter
n = int(input().strip())
L = [input().strip() for _ in range(n)]


cnt=Counter(L)
for x in ["AC", "WA", "TLE", "RE"]:
    print(x+" ×　"+str(cnt[x]))

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 ×', ac)
print('WA ×', wa)
print('TLE ×', tle)
print('RE ×', re)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())

cnt_AC = 0
cnt_WA = 0
cnt_TLE = 0
cnt_RE = 0

for n in range(N):
    tmp = input()
    if(tmp == 'AC'):
        cnt_AC += 1
    elif(tmp == 'WA'):
        cnt_WA += 1
    elif(tmp == 'TLE'):
        cnt_TLE += 1
    elif(tmp == 'RE'):
        cnt_RE += 1

print('AC × ' + str(cnt_AC))
print('WA × ' + str(cnt_WA))
print('TLE × ' + str(cnt_TLE))
print('RE × ' + str(cnt_RE))

Submission status: Wrong Answer

Solution code:
from collections import defaultdict

N = int(input())
d = defaultdict(int)
for _ in range(N):
    d[input()] += 1
for k in ['AC', 'WA', 'TLE', 'RE']:
    v = d[k]
    if v:
        print(f'{k} x {v}')

Submission status: Wrong Answer

Solution code:
n = int(input())
s = []
for i in range(n):
    s.append(input())
#s = list(map(int, input().split()))
a =0
b=0
c=0
d=0
for i in range(n):
    if s[i] == "AC":
        a += 1
    elif s[i] == "WA":
        b += 1
    elif s[i] == "TLE":
        c += 1
    elif s[i] == "RE":
        d += 1

print("AC ×", a)
print("WA ×", b)
print("TLE ×", c)
print("RE ×", d)

Submission status: Wrong Answer

Solution code:
N = int(input())
S = [input() for _ in range(N)]
ls = ["AC","WA","TLE","RE"]
for i in range(4):
  print("{} × {}".format(ls[i],S.count(ls[i])))

Submission status: Wrong Answer

Solution code:
n = int(input())
s = list(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:
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('RA x ',S.count('RA'))

Submission status: Wrong Answer

Solution code:
num = (int)(input())
ans = [0, 0, 0, 0]
for i in range(num):
  temp = input()
  if temp == "AC":
    ans[0] += 1
  elif temp == "WA":
    ans[1] += 1
  elif temp == "TLE":
    ans[2] += 1
  else:
    ans[3] += 1
print("AC × " + (str)(ans[0]))
print("WA × " + (str)(ans[1]))
print("TLE × " + (str)(ans[2]))
print("RE × " + (str)(ans[3]))

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
    elif s=='RE':
        re+=1

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=[0,0,0,0]
for i in range(n):
  a=str(input())
  if a=="AC":
    ans[0]+=1
  elif a=="WA":
    ans[1]+=1
  elif a=="TLE":
    ans[2]+=1
  else:
    ans[3]+=0

print("AC x "+str(ans[0]))
print("WA x "+str(ans[1]))
print("TLE x "+str(ans[2]))
print("RE x "+str(ans[3]))

Submission status: Wrong Answer

Solution code:
N=int(input())

C0=0
C1=0
C2=0
C3=0

for n 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"+str(C0))
print("WA x"+str(C1))
print("TLE x"+str(C2))
print("RE x"+str(C3))

Submission status: Wrong Answer

Solution code:
N = int(input())
List = [str(input()) for i in range(N)]
c0=0
c1=0
c2=0
c3=0
for i in List:
    if i=='AC':
        c0+=1
    elif i=='WA':
        c1+=1
    elif i=='TLE':
        c2+=1
    elif i=='RE':
        c3+=1
print('AC × {}'.format(c0))
print('WA × {}'.format(c1))
print('TLE × {}'.format(c2))
print('RE × {}'.format(c3))

Submission status: Wrong Answer

Solution code:
N = int(input())

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

for _ in range(N):
    w = input()
    dic[w] += 1

print('AC ×', dic['AC'])
print('WA ×', dic['WA'])
print('TLE ×', dic['TLE'])
print('RE ×', dic['RE'])

Submission status: Wrong Answer

Solution code:
n=int(input())

a=0
w=0
t=0
r=0

for i in range(n):
  s=str(input())
  if s=="AC":
    a+=1
  elif s=="WA":
    w+=1
  elif s=="TLE":
    t+=1
  else:
    r+=1


print("AC ×",a)
print("WA ×",w)
print("TLE ×",t)
print("RE ×",r)

Submission status: Wrong Answer

Solution code:
N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(N):
    temp = input()
    if temp == "AC":
        AC = AC + 1
    if temp == "WA":
        WA = WA + 1
    if temp == "TLE":
        TLE = TLE + 1
    if temp == RE:
        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:
    
from collections import Counter

n = int(input())

l = [input() for _ in range(n)]

c = Counter(l)

for i in ['AC','WA','TLE','RE']:
    print(f'{i} × {c[i]}')

Submission status: Wrong Answer

Solution code:
def getN():
    return int(input())
def getNM():
    return map(int, input().split())
def getList():
    return list(map(int, input().split()))
def getArray(intn):
    return [int(input()) for i in range(intn)]
def input():
    return sys.stdin.readline().rstrip()
def rand_N(ran1, ran2):
    return random.randint(ran1, ran2)
def rand_List(ran1, ran2, rantime):
    return [random.randint(ran1, ran2) for i in range(rantime)]
def rand_ints_nodup(ran1, ran2, rantime):
  ns = []
  while len(ns) < rantime:
    n = random.randint(ran1, ran2)
    if not n in ns:
      ns.append(n)
  return sorted(ns)

def rand_query(ran1, ran2, rantime):
  r_query = []
  while len(r_query) < rantime:
    n_q = rand_ints_nodup(ran1, ran2, 2)
    if not n_q in r_query:
      r_query.append(n_q)
  return sorted(r_query)

from collections import defaultdict, deque, Counter
from sys import exit
from decimal import *
import heapq
import math
from fractions import gcd
import random
import string
import copy
from itertools import combinations, permutations, product
from operator import mul
from functools import reduce
from bisect import bisect_left, bisect_right

import sys
sys.setrecursionlimit(1000000000)
mod = 10 ** 9 + 7


#############
# Main Code #
#############

N = getN()
S = defaultdict(int)
for i in range(N):
    s = input()
    S[s] += 1

print('AC x ' + str(S["AC"]))
print('WA x ' + str(S["WA"]))
print('TLE x ' + str(S["TLE"]))
print('RE x ' + str(S["Re"]))

Submission status: Wrong Answer

Solution code:
n=int(input())
la=[]
for i in range(n):
    la+=[input()]
print("AC","×",la.count("AC"))
print("WA","×",la.count("WA"))
print("TLE","×",la.count("TLE"))
print("RE","×",la.count("RE"))

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = [0,0,0,0]
for _ in range(N):
    a = input()
    if a == 'AC':
        ans[0] += 1
    elif a == 'WA':
        ans[1] += 1
    elif a == 'TLE':
        ans[2] += 1
    elif a == 'RE':
        ans[3] += 1
print('AC ×',ans[0])
print('WA ×',ans[1])
print('TLE ×',ans[2])
print('RE ×',ans[3])

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
# import sys;input = lambda : sys.stdin.readline()
import collections
d=collections.defaultdict(lambda:0)
for _ in range(int(input())):
    s=input()
    d[s]+=1
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:
ans = [0 for i in range (4)]
num = int(input())
for i in range (num):
    inp = input()
    if inp == 'AC':
        ans[0] += 1
    elif inp =='WA':
        ans[1] +=1
    elif inp == 'TLE':
        ans[2] += 1
    elif inp == 'RE':
        ans[3] += 3
print ('AC x {}'.format(ans[0]))
print ('WA x {}'.format(ans[1]))
print ('TLE x {}'.format(ans[2]))
print ('RE x {}'.format(ans[3]))

Submission status: Wrong Answer

Solution code:
n=int(input())
s=[]
for i in range(n):
  s.append(input())
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:
n = int(input())
ac = []
wa = []
tle = []
re = []
for _ in range(n):
    i = input()
    if i == "WA":
        wa.append(i)
    elif i == "AC":
        ac.append(i)
    elif i == "TLE":
        tle.append(i)
    else:
        re.append(i)

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

Submission status: Wrong Answer

Solution code:
t=int(input())
f=[]
for i in range(t):
    s=input()
    f.append(s)
print("AC"+' '+'*'+' '+str((f.count("AC"))))
print("WA"+' '+'*'+' '+str((f.count("WA"))))
print("TLE"+' '+'*'+' '+str((f.count("TLE"))))
print("RE"+' '+'*'+' '+str((f.count("RE"))))

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 *",ac)
print("WA *",wa)
print("TLE *",tle)
print("RE *",re)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

for i in range(n):
    s = input()
    res[s] += 1

for s in res:
    print(s + " X " + str(res[s]))

Submission status: Wrong Answer

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+=1

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

Submission status: Wrong Answer

Solution code:
'''
    Auther: ghoshashis545 Ashis Ghosh
    College: jalpaiguri Govt Enggineering College

'''
from os import path
import sys
from functools import cmp_to_key as ctk
from collections import deque,defaultdict as dd 
from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
from itertools import permutations
from datetime import datetime
from math import ceil,sqrt,log,gcd
def ii():return int(input())
def si():return input()
def mi():return map(int,input().split())
def li():return list(mi())
abc='abcdefghijklmnopqrstuvwxyz'
mod=1000000007
#mod=998244353
inf = float("inf")
vow=['a','e','i','o','u']
dx,dy=[-1,1,0,0],[0,0,1,-1]

def bo(i):
    return ord(i)-ord('a')

file = 0

def solve():
    



    # for _ in range(ii()):

    n=ii()
    m={}
    a=["AC","WA","TLE","RE"]
    m['WA']=0
    m['TLE']=0
    m["AC"]=0
    m["RE"]=0
    for i in range(n):
        s=si()
        m[s]+=1
    for i in a:
        print(i,end=" * ")
        print(m[i])












  
















if __name__ =="__main__":

    if(file):

        if path.exists('input1.txt'):
            sys.stdin=open('input1.txt', 'r')
            sys.stdout=open('output1.txt','w')
        else:
            input=sys.stdin.readline
    solve()

Submission status: Wrong Answer

Solution code:
n = int(input())
ans = [0,0,0,0]

for i in range(n):
  tmp = input()
  if tmp == "AC":
    ans[0] += 1
  elif tmp == "WA":
    ans[1] += 1
  elif tmp == "TLE":
    ans[2] += 1
  else:
    ans[3] += 1
    
print("AC ×",ans[0])
print("WA ×",ans[1])
print("TLE ×",ans[2])
print("RE ×",ans[3])

Submission status: Wrong Answer

Solution code:
N = int(input())
S = []

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

print(S)
print(S.count('AC'))

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

Solution code:
import sys

import math
import itertools
import random
n = int(input())
li = [0] * 4  #ac,wa,tle,re
for i in range(n):
    tmp = input()
    if (tmp == "AC"):
        li[0] += 1
    elif (tmp == "WA"):
        li[1] += 1
    elif (tmp == "TLE"):
        li[2] += 1
    else:
        li[3] += 1
print("AC × " + str(li[0]))
print("WA × " + str(li[1]))
print("TLE × " + str(li[2]))
print("RE × "+str(li[3]))

Submission status: Wrong Answer

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