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:

N = int(input())
d = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
 
for _ in range(N):
    s = input().strip()
    d[s]+=1

for s in ['AC', 'WA', 'TLE', 'RE']:
    print(f'{s} X {d[s]}')

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 "+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())
d = {'AC':0, 'WA':0, 'TLE':0, 'RE':0}
 
for _ in range(N):
    d[input()]+=1

for s in ['AC', 'WA', 'TLE', 'RE']:
    print(f'{s} X {d[s]}')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding: utf-8
N=int(input())
L=["AC","WA","TLE","RE"]
cnt=[0,0,0,0]

for i in range(N):
    s=input()
    for j in range(4):
        if s==L[j]:
            cnt[j]+=1

for i in range(4):
    print("{} × {}".format(L[i],cnt[i]))

Submission status: Wrong Answer

Solution code:
# coding: utf-8
N=int(input())
L=["AC","WA","TLE","RE"]
cnt=[0,0,0,0]

for i in range(N):
    s=input()
    for j in range(4):
        if s==L[j]:
            cnt[j]+=1

for i in range(4):
    print("{} ×　{}".format(L[i],cnt[i]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

for s in ans.keys():
    print("{} × {}".format(s, ans[s]))

Submission status: Wrong Answer

Solution code:
count_ac=0
count_wa=0
count_tle=0
count_re=0
n=int(input())
for i in range(n):
    s=input()
    if s == "AC":
        count_ac += 1
    elif s == "WA":
        count_wa += 1
    elif s == "TLE":
        count_tle += 1
    else:
        count_re += 1
print("AC x "+str(count_wa))
print("WA x "+str(count_ac))
print("TLE x "+str(count_tle))
print("RE x "+str(count_re))

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    S = [input() for _ 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
        else:
            RE += 1

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

main()

Submission status: Wrong Answer

Solution code:
num = int(input())

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

for _ in range(num):
    s = input()
    count[s] += 1

print("AC x {}".format(count["AC"]))
print("WA x {}".format(count["WA"]))
print("TLE x {}".format(count["TLE"]))
print("RE {}".format(count["RE"]))

Submission status: Wrong Answer

Solution code:
list = []
N = int(input())
list = [input() for i in range(N)]
print("AC X " + str(list.count("AC")))
print("WA X " + str(list.count("WA"))) 
print("TLE X " + str(list.count("TLE")))
print("RE X " + str(list.count("RE")))

Submission status: Wrong Answer

Solution code:
N = int(input())
list = [input() for i in range(N)]
print("AC X " + str(list.count("AC")))
print("WA X " + str(list.count("WA"))) 
print("TLE X " + str(list.count("TLE")))
print("RE X " + str(list.count("RE")))

Submission status: Wrong Answer

Solution code:
test = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
A = [input() for n in range(test)]

for i in A:
    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 x",WA)
print("TLE x",TLE)
print("RE x",RE)

Submission status: Wrong Answer

Solution code:
test = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
A = [input() for n in range(test)]

for i in A:
    if i == "AC":
        AC += 1
    elif i == "WA":
        WA += 1
    elif i == "TLE":
        TLE += 1
    else :
        RE += 1

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

Submission status: Wrong Answer

Solution code:
test = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
A = [input() for n in range(test)]

for i in A:
    if i == "AC":
        AC += 1
    elif i == "WA":
        WA += 1
    elif i == "TLE":
        TLE += 1
    else :
        RE += 1

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

Submission status: Wrong Answer

Solution code:
list = []
N = int(input())
list = [input() for i in range(N)]
print(list)
print("AC x " +  str(list.count('AC')))
print("WA x  " +  str(list.count("WA")))
print("TLE x  " +  str(list.count("TLE")))
print("RE x  " +  str(list.count("RE")))

Submission status: Wrong Answer

Solution code:
list = []
N = int(input())
list = [i for i in range(N)]
print("AC  x  " +  str(list.count("AC")))
print("WA x  " +  str(list.count("WA")))
print("TLE x  " +  str(list.count("TLE")))
print("RE x  " +  str(list.count("RE")))

Submission status: Wrong Answer

Solution code:
N = int(input())
a, w, t, r = 0, 0, 0, 0
for _ in range(N):
    S = input()
    if S == 'AC':
        a += 1
    elif S == 'WA':
        w += 1
    elif S == 'TLE':
        t += 1
    else:
        r += 1
print('AC × ' + str(a))
print('WA × ' + str(w))
print('TLE × ' + str(t))
print('RE × ' + str(r))

Submission status: Wrong Answer

Solution code:
N = int(input())
a, w, t, r = 0, 0, 0, 0
for i in range(N):
    S = input()
    if S == 'AC':
        a += 1
    elif S == 'WA':
        w += 1
    elif S == 'TLE':
        t += 1
    else:
        r += 1
print('AC × ' + str(a))
print('WA × ' + str(w))
print('SLE × ' + str(t))
print('RE × ' + str(r))

Submission status: Wrong Answer

Solution code:
N = int(input())
a, w, t, r = 0, 0, 0, 0
for i in range(N):
    S = input()
    if S == 'AC':
        a += 1
    elif S == 'WA':
        w += 1
    elif S == 'TLE':
        t += 1
    else:
        r += 1
print('AC * ' + str(a))
print('WA * ' + str(w))
print('SLE * ' + str(t))
print('RE * ' + str(r))

Submission status: Wrong Answer

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

for n in range(N):
  S[n] = input()
  if S[n] == "AC":
    AC += AC
  elif S[n] == "WA":
    WA += WA
  elif S[n] == "TLE":
    TLE += TLE
  elif S[n] == "RE":
    RE += RE
    
print("AC x {}\nWA x {}\nTLE x {}\nRE x {}".format(AC,WA,TLE,RE))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys
rl = sys.stdin.buffer.readline
read = sys.stdin.buffer.read

N = int(rl())
SL = read().split()

A, W, T, R = ord('A'), ord('W'), ord('T'), ord('R')
na, nw, nt, nr = 0, 0, 0, 0
for s in SL:
  print(s[0])
  if s[0] == A:
    na += 1
  elif s[0] == W:
    nw += 1
  elif s[0] == T:
    nt += 1
  elif s[0] == R:
    nr += 1

print('AC x {}\nWA x {}\nTLE x {}\nRE x {}'.format(na, nw, nt, nr))

Submission status: Wrong Answer

Solution code:
x=int(input())
b=0;
lst=[]
acs=0
was=0
res=0
tles=0
while(b<x):
    new=input()
    lst.append(new)
    b+=1
for c in lst:
    if(c=='AC'):
        acs+=1
    if(c=='WA'):
        was+=1
    if(c=='RE'):
        res+=1
    if(c=='TLE'):
        tles+=1
print('AC x '+str(acs))
print('WA x '+ str(was))
print('RE x ' +str(res))  
print('TLE x ' +str(tles))

Submission status: Wrong Answer

Solution code:
x=int(input())
b=0;
lst=[]
acs=0
was=0
res=0
tles=0
while(b<x):
    new=input()
    lst.append(new)
    b+=1
for c in lst:
    if(c=='AC'):
        acs+=1
    if(c=='WA'):
        was+=1
    if(c=='RE'):
        res+=1
    if(c=='TLE'):
        tles+=1
print('AC X '+str(acs))
print('WA X '+ str(was))
print('RE X ' +str(res))  
print('TLE X ' +str(tles))

Submission status: Wrong Answer

Solution code:
lis = []
n = int(input())
for i in range(n):
    p = input()
    lis.append(p)
ac = lis.count("AC")
wa = lis.count("WA")
tle = lis.count("TLE")
re = lis.count("RE")
print("AC ×",ac)
print("WA ×",wa)
print("TLE ×",tle)
print("RE ×",re)

Submission status: Wrong Answer

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

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:
def count_data(s):
    judge_list = ['AC', 'WA', 'TEL', 'RE']
    for judge in judge_list:
        ans = s.count(judge)
        print('{} x {}'.format(judge, ans))

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

count_data(s)

Submission status: Wrong Answer

Solution code:
def count_data(s):
    judge_list = ['AC', 'WA', 'TEL', 'RE']
    for judge in judge_list:
        ans = s.count(judge)
        print('{} x {}'.format(judge, ans))

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

Submission status: Wrong Answer

Solution code:
N = int(input())
C0, C1, C2, C3 = 0, 0, 0, 0

for i in range(N-1):
    S = str(input())
    if S == "AC":
        C0 = C0 + 1
    elif S == "WA":
        C1 = C1 + 1
    elif S == "TLE":
        C2 = C2 + 1
    else:
        C3 = 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())
ans=[0]*4
for i in range(n):
  s=input()
  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 range(4):
  print("AC x "+str(ans[i]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
if __name__ == "__main__":
    N=input()
    N=int(N)
    strs=["AC","WA","TLE","RE"]
    cnt=np.zeros(4,dtype=np.uint8)
    for i in range(N):
        b=input()
        for j,s in enumerate(strs):
            if s==b:
                cnt[j]+=1
    for i,s in enumerate(strs):
        print(s+" x "+str(cnt[i]))

Submission status: Wrong Answer

Solution code:
N = int(input())

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

for i in range(N):
  wrk = input()
  d[wrk] = d[wrk]+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:
class kazoe:

    def __init__(self,b):
        b.sort()
        self.b = b
        print(self.b)

    def sum(self):
        c = [0] *4
        for i in range(len(self.b)):
            if(self.b[i] == "AC"):
                c[0] += 1
            else:
                if(self.b[i] == "TLE"):
                    c[1] += 1
                else:
                    if(self.b[i] == "WA"):
                        c[2] += 1
                    else:
                        c[3] += 1



        print('AC x',c[0])
        print('WA x',c[2])
        print('TLE x',c[1])
        print('RE x',c[3])


a = int(input())
b =[]
for i in range(a):
    b.append(input())

ans = kazoe(b)
ans.sum()

Submission status: Wrong Answer

Solution code:
class kazoe:

    def __init__(self,b):
        b.sort()
        self.b = b
        print(self.b)

    def sum(self):
        c = [0] *4
        for i in range(len(self.b)):
            if(self.b[i] == "AC"):
                c[0] += 1
            else:
                if(self.b[i] == "TLE"):
                    c[1] += 1
                else:
                    if(self.b[i] == "WA"):
                        c[2] += 1
                    else:
                        c[3] += 1



        print('AC x ',c[0])
        print('WA x ',c[2])
        print('TLE x ',c[1])
        print('RE x ',c[3])


a = int(input())
b =[]
for i in range(a):
    b.append(input())

ans = kazoe(b)
ans.sum()

Submission status: Wrong Answer

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

for key in n_apperances:
    print('{} × {}'.format(key, n_apperances[key]))

Submission status: Wrong Answer

Solution code:
from collections import Counter
 
a = int(input())
b = Counter([input() for _ in range(a)])
for k,v in b.items():
  print(f"{k} x {v}")

Submission status: Wrong Answer

Solution code:
num = int(input())
count = {"AC":0, "WA":0, "TLE":0, "RE":0}
 
for i in range(num):
  word = input()
  for (key , n) in count.items():
    if word == key:
      count[key] += 1
 
for (key , n) in count.items():
  print(key + " × " + str(n))

Submission status: Wrong Answer

Solution code:
import math

def main():

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

    n = int(input())
    for _ in range(n):
        s = input()
        mp[s]+=1

    for key in mp.keys():
        print(key, "x", mp[key])
main()

Submission status: Wrong Answer

Solution code:
N = int(input())
S = []
for i 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:
from collections import defaultdict

def b173(n, slist):

    countdict = defaultdict(int)

    for s in slist:
        countdict[s] += 1

    return countdict

def main():
    tlist = ["AC", "WA", "TLE", "RE"]
    n = int(input())
    slist = [str(input())for i in range(n)]
    countdict = b173(n, slist)

    for t in tlist:
        print(t + " × " + str(countdict.get(t, 0)))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
G0, G1, G2, G3 = 0, 0, 0, 0
for i in range(N):
    Si = input()
    if Si == 'AG':
        G0 += 1
 
    elif Si == 'WA':
        G1  += 1
 
    elif Si == 'TLE':
        G2 += 1
 
    else:
        G3 += 1
 
print('AG x ' + str(G0))
print('WA x ' + str(G1))
print('TLE x ' + str(G2))
print('RE x ' + str(G3))

Submission status: Wrong Answer

Solution code:
N = int(input())
G0, G1, G2, G3 = 0, 0, 0, 0
for i in range(N):
    Si=input()
    if Si == 'AC':
        G0 += 1

    elif Si=='WA':
        G1 += 1

    elif Si=='TLE':
        G2 += 1
    
    else:
        G3 += 1
 
print('AC x' +str(G0))
print('WA x' +str(G1))
print('TLE x'+str(G2))
print('RE x' +str(G3))

Submission status: Wrong Answer

Solution code:
N = int(input())
G0, G1, G2, G3 = 0, 0, 0, 0
for i in range(N):
    Si=input()
    if Si == 'AC':
        G0 = G0+1

    elif Si=='WA':
        G1 = G1+1

    elif Si=='TLE':
        G2 = G2+1
    
    else:
        G3 = G3+1
 
print('AC x' +str(G0))
print('WA x' +str(G1))
print('TLE x'+str(G2))
print('RE x' +str(G3))

Submission status: Wrong Answer

Solution code:
N = int(input())
G0,G1,G2,G3=0,0,0,0
for i in range(N):
    Si=input()
    if Si == 'AC':
        G0 = G0+1

    elif Si=='WA':
        G1=G1+1

    elif Si=='TLE':
        G2=G2+1
    
    else:
        G3=G3+1
 
print('AC G' +str(G0))
print('WA G' +str(G1))
print('TLE G'+str(G2))
print('RE G' +str(G3))

Submission status: Wrong Answer

Solution code:
N = int(input())
X0,X1,X2,X3=0,0,0,0
for i in range(N):
    Si=input()
    if Si == 'AC':
        X0 = X0+1

    elif Si=='WA':
        X1=X1+1

    elif Si=='TLE':
        X2=X2+1
    
    else:
        X3=X3+1
 
print('AC x' +str(X0))
print('WA x' +str(X1))
print('TLE x'+str(X2))
print('RE x' +str(X3))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())
x0,x1,x2,x3=0,0,0,0
 
for i in range(N):
      Si=input()
      if Si == 'AC':
          x0 = x0+1
    
      elif Si=='WA':
            x1=x1+1
    
      elif Si=='TLE':
            x2=x2+1
    
      else:
            x3=x3+1
 
print('AC x' +str(x0))
print('WA x' +str(x1))
print('TLE x'+str(x2))
print('RE x' +str(x3))

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())
lis = [input() for _ in range(n)]
dic = {"AC":0, "WA":0, "TLE":0, "RE":0}

for x in lis:
  dic[x] += 1

for y in dic.keys():
  print(y, "×", dic[y])

Submission status: Wrong Answer

Solution code:
# Judge Status Summary

N = int(input())
stringList = [input() for i in range(N)]

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


for j in range(N):
    if stringList[j] == 'AC':
        c0 = c0 + 1
    if stringList[j] == 'WA':
        c1 = c1 + 1
    if stringList[j] == 'TLE':
        c2 = c2 + 1
    if stringList[j] == 'RE':
        c3 = c3 + 1

print('AC × '+ str(c0))
print('WA × '+ str(c1))
print('TLE × '+str(c2))
print('RE × '+ str(c3))

Submission status: Wrong Answer

Solution code:
# Judge Status Summary

N = int(input())
stringList = [input() for i in range(N)]

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


for j in range(N):
    if stringList[j] == 'AC':
        c0 = c0 + 1
    if stringList[j] == 'WA':
        c1 = c1 + 1
    if stringList[j] == 'TLE':
        c2 = c2 + 1
    if stringList[j] == 'RE':
        c3 = 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())
S = []
for i in range(N):
    S.append((input()))

ac = str(S.count('AC'))
wa = str(S.count('WA'))
tle = str(S.count('TLE'))
re = str(S.count('TLE'))


ans = 'AC x'+' '+ ac + "\n"+'WA x'+' '+ wa + "\n"+'TLE x' +' '+ tle +"\n" + 'RE x'+' '+re
print(ans)

Submission status: Wrong Answer

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

AC = 0
WA = 0
TLE = 0
RE = 0

for s in X:
    print(s)
    if s == 'AC':
        AC += 1
    elif s == 'WA':
        WA += 1
    elif s == 'TLE':
        TLE += 1
    elif s == '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:
n = int(input())
word_dict = {}
for _ in range(n):
  word = str(input())
  if word in word_dict:
    word_dict[word] += 1
  else:
    word_dict[word] = 1
for k, v in word_dict.items():
  print(k, 'x', v)

Submission status: Wrong Answer

Solution code:
N=int(input())
ac=0
wa=0
tre=0
re=0
for i in range(N):
  str=input()
  if str=="AC":
    ac=ac+1
  elif str=="WA":
    wa=wa+1
  elif str=="TRE":
    tre=tre+1
  else:
    re=re+1
print("AC x ", ac)
print("WA x ", wa)
print("TRE x ", tre)
print("RE x ", re)

Submission status: Wrong Answer

Solution code:
a = int(input())
list1 = []
dict1 = {}
for x in range(a):
    b = input()
    list1.append(b)

for x in list1:
    if x not in dict1:
        dict1[x] = 1
    else:
        dict1[x] += 1

for x in dict1:
    print(f'{x} x {dict1[x]}')

Submission status: Wrong Answer

Solution code:
n = int(input(""))

dic = dict()
lst = list()

for i in range(n) : 
    op = input("")
    lst.append(op)


for word in lst:
    dic[word] = dic.get(word,0) + 1

for words in dic:
    print(words, "X",dic[words])

Submission status: Wrong Answer

Solution code:
ans = {"AC": 0, "WA": 0, "TLE": 0, "RE":0}
N = int(input())
for i in range(N):
  inpt = input()
  if(inpt == "AC"):
    ans["AC"] += 1
  elif(inpt == "WA"):
    ans["WA"] += 1
  elif(inpt == "TLE"):
    ans["TLE"] += 1
  else:
    ans["RE"] += 1
for key, value in ans.items():
  print("{0} × {1}".format(key, value))

Submission status: Wrong Answer

Solution code:
N = int(input())
count_AC = 0
count_WA = 0
count_TLE = 0
count_RE = 0


for i in range(N):
    x = input()
    if x == "AC":
        count_AC += 1
    elif x == "WA":
        count_WA += 1
    elif x == "TLE":
        count_TLE += 1
    elif x ==  "RE":
        count_RE += 0

print("AC", "x", count_AC)
print("WA", "x", count_WA)
print("TLE", "x", count_TLE)
print("RE", "x", count_RE)

Submission status: Wrong Answer

Solution code:
N = int(input())
count_AC = 0
count_WA = 0
count_TLE = 0
count_RE = 0


for i in range(N):
    x = input()
    if x == "AC":
        count_AC += 1
    elif x == "WA":
        count_WA += 1
    elif x == "TLE":
        count_TLE += 1
    elif x ==  "count_RE":
        count_RE += 0

print("AC", "x", count_AC)
print("WA", "x", count_WA)
print("TLE", "x", count_TLE)
print("RE", "x", count_RE)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
AC = 0
WA = 0
TLE =0
RE = 0
i = 0
while(i<N):
  S = input()
  if S == "AC":
    AC +=1
  elif S == "WA":
    WA += 1
  elif S == "TLE":
    TLE += 1
  elif S == "RE":
  	RE += 1
  i +=1
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())

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

for i in range(1,N+1):
  S = str(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())

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

for i in range(1,N+1):
  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))
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(1,N+1):
  S = str(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())

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

for i in range(1,N+1):
  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))
print("WA × " + str(wa))
print("TLE × " + str(tle))
print("AC × " + str(re))

Submission status: Wrong Answer

Solution code:
N = int(input())
C = [0]*4
for i in range(N):
    S = input()
    if S == 'AC':
        C[0] += 1
    elif S == 'WA':
        C[1] += 1
    elif S == 'TLE':
        C[2] += 1
    elif S == 'RE':
        C[3] += 1

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

Submission status: Wrong Answer

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

print('AC ×', C[0])
print('WA ×', C[1])
print('TLE ×', C[2])
print('RE ×', C[3])

Submission status: Wrong Answer

Solution code:
N = int(input())
C = [0]*4
for i in range(N):
    S = input()
    if S == 'AC':
        C[0] += 1
    elif S == 'WA':
        C[1] += 1
    elif S == 'TLE':
        C[2] += 1
    elif S == 'RE':
        C[3] += 1

print('AC ×', C[0])
print('WA ×', C[1])
print('TLE ×', C[2])
print('RE ×', C[3])

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [input() for i in range(n)]
ac = 0
wa = 0
tle = 0
re = 0
for s in a:
  if s=='AC':
    ac+=1
  if s=='WA':
    wa+=1
  if s=='TLE':
    tle+=1
  if s=='RE':
    re+=1
print(f'AC × {ac}')
print(f'WA × {wa}')
print(f'TLE × {tle}')
print(f'RE × {re}')

Submission status: Wrong Answer

Solution code:
n = int(input())
a = [input() for i in range(n)]
ac = 0
wa = 0
tle = 0
re = 0
for s in a:
  if a=='AC':
    ac+=1
  if a=='WA':
    wa+=1
  if a=='TLE':
    tle+=1
  if a=='RE':
    re+=1
print(f'AC × {ac}')
print(f'WA × {wa}')
print(f'TLE × {tle}')
print(f'RE × {re}')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(num):
    judge = input()
    if str(judge) == "AC":
        ac += 1
    elif str(judge) == "WA":
        wa += 1
    elif str(judge) == "TLE":
        tle += 1
    elif str(judge) == "RE":
        re += 1
    else:
        pass
        
        
print("AC × " + str(ac))
print("WA × " + str(wa))
print("TLE × " + str(tle))
print("RE × " + str(re))

Submission status: Wrong Answer

Solution code:
num = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(num):
    judge = input()
    if judge == "AC":
        ac += 1
    elif judge == "WA":
        wa += 1
    elif judge == "TLE":
        tle += 1
    elif judge == "RE":
        re += 1
    else:
        pass
        
        
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())
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'+"x"+str(d['AC']))
print('WA'+"x"+str(d['WA']))
print('TLE'+"x"+str(d['TLE']))
print('RE'+"x"+str(d['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=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'+"*"+str(d['WA']))
print('TLE'+"*"+str(d['TLE']))
print('RE'+"*"+str(d['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=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'+" "+"*"+" "+str(d['WA']))
print('TLE'+" "+"*"+" "+str(d['TLE']))
print('RE'+" "+"*"+" "+str(d['RE']))

Submission status: Wrong Answer

Solution code:
n = int(input())

s = []
for _ in range(n):
  s1 = input()
  s.append(s1)

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:
num = int(input())
word = {"AC":0, "WA":0, "TLE":0, "RE":0}

for i in range(num):
    judge = input()
    if judge in word:
        word[str(judge)] += 1
    else:
        none
        
        
print("AC × " + str(word["AC"]))
print("WA × " + str(word["WA"]))
print("TLE × " + str(word["TLE"]))
print("RE × " + str(word["RE"]))

Submission status: Wrong Answer

Solution code:
#! python3
# coding:utf-8

n = int(input())

s = [input() for _ in range(n)]
print(s)

c0=0
c1=0
c2=0
c3=0
for i in s:
    if i == "AC":
        c0+=1
    elif i == "WA":
        c1+=1
    elif i == "TLE":
        c2+=1
    else:
        c3+=1

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

Submission status: Wrong Answer

Solution code:
N = int(input())
A = 0
W = 0
T = 0
R = 0
for i in range(1, N+1):
  s = str(input())
  if s == "AC":
    A = A + 1
  elif s == "WA":
    W = W + 1
  elif s == "TLE":
    T = T + 1
  elif s == "RE":
    R = 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())
A = 0
W = 0
T = 0
R = 0
for i in range(1, N+1):
  u = str(input())
  if u == "AC":
    A = A + 1
  elif u == "WA":
    W = W + 1
  elif u == "TLE":
    T = T + 1
  elif u == "RE":
  	R = R + 1
  print("AC" + " x " + str(A))
  print("WA" + " x " + str(W))
  print("TLE" + " x " + str(T))
  print("RE" + " x " + str(R))