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:
def judge_status_summary():
    # 入力
    N = int(input())
    S = [input() for _ in range(N)]
    # 判別処理 
    # リスト初期化
    result_list = ['AC', 'WA', 'TLE', 'RE']
    count_list = [0, 0, 0, 0]
    # 集計
    for i in range(N):
        one_count_up_inxex = result_list.index(S[i])
        count_list[one_count_up_inxex] += 1
    # 表示
    for i in range(4):
        print(result_list[i], '×', count_list[i])

judge_status_summary()

Submission status: Wrong Answer

Solution code:
n = int(input())
s = [input() for _ in range(n)]
l = ["AC","WA","TLE","RE"]
for i in range(4):  print(l[i],"X",s.count(l[i]))

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 += re
    
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())

list = []
for i in range(N):
    list.append(str(input()))
a = list.count("AC")
b = list.count("WA")
c = list.count("TLE")
d = list.count("RE")

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

Submission status: Wrong Answer

Solution code:
N = int(input())

list = []
for i in range(N):
    list.append(str(input()))
    a = list.count("AC")
    b = list.count("WA")
    c = list.count("TLE")
    d = list.count("RE")

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

Submission status: Wrong Answer

Solution code:
n = int(input())

a = 0
b = 0
c = 0
d = 0



for i in range(n):
    s = input() 
    if s == 'AC':
        a += 1
    elif s == 'WA':
        b += 1
    elif s == 'TLE':
        c += 1
    elif s == 'RE':
        d += 1

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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

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


a = list.count("AC")
b = list.count("WA")
c = list.count("TLE")
d = list.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=input()

print(N)

Submission status: Wrong Answer

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

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

for i in s:
    if i == 'AC':
        dic['AC'] += 1
    elif i == 'WA':
        dic['WA'] += 1
    elif i == 'TLE':
        dic['TLE'] += 1
    else:
        dic['RE'] += 1

for i in dic:
    # print(i)
    print("{0} × {1}".format(i, dic[i]))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

    for k, v in di.items():
        print(f"{k} × {v}")


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())  # nは入力回数
m = [input() for _ in range(n)]

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

Submission status: Wrong Answer

Solution code:
n=int(input())

s=[]
for i in range(n):
    a=input()
    s.append(a)
    
for j in ['AC', 'WA', 'TLE', 'RE']:
    print('{0} × {1}'.format(j,s.count(j)))

Submission status: Wrong Answer

Solution code:
n=int(input())

judge_list=[]
for i in range(n):
    a=input()
    judge_list.append(a)
    
ac=judge_list.count('AC')
ac=str(ac)
wa=judge_list.count('WA')
wa=str(wa)
tle=judge_list.count('TLE')
tle=str(tle)
re=judge_list.count('RE')
re=str(re)

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

Submission status: Wrong Answer

Solution code:
n=int(input())

judge_list=[]
for i in range(n):
    a=input()
    judge_list.append(a)
    
ac=judge_list.count('AC')
ac=str(ac)
wa=judge_list.count('WA')
wa=str(wa)
tle=judge_list.count('TLE')
tle=str(tle)
re=judge_list.count('RE')
re=str(re)

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

Submission status: Wrong Answer

Solution code:
n = int(input())
Sn = [input()for i in range(1,n+1)]

C0 = Sn.count('AC')
C1 = Sn.count('WA')
C2 = Sn.count('TLE')
C3 = Sn.count('RE')

print('AC × '+str(C0)+'\n')
print('WA × '+str(C1)+'\n')
print('TLE × '+str(C2)+'\n')
print('RE × '+str(C3)+'\n')

Submission status: Wrong Answer

Solution code:
n = int(input())
Sn = [input()for i in range(1,n+1)]
C0 = Sn.count('AC')
C1 = Sn.count('WA')
C2 = Sn.count('TLE')
C3 = Sn.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())
Sn = [input()for i in range(n)]
C0 = Sn.count('AC')
C1 = Sn.count('WA')
C2 = Sn.count('TLE')
C3 = Sn.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())

ac = wa = tle = re = 0
for i in range(n):
    s = input()
    if s == 'AC':
        ac += 1
    elif s == 'WA':
        wa += 1
    elif s == 'TLE':
        tle += 0
    elif s == '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:
arr=[0]*4
for _ in range(int(input())):
    s=input()
    if s=='AC':
        arr[0]+=1
    elif s=='WA':
        arr[1]+=1
    elif s=='TLE':
        arr[2]+=1
    else:
        arr[3]+=1
print(arr[0])
print(arr[1])
print(arr[2])
print(arr[3])

Submission status: Wrong Answer

Solution code:
arr=[0]*4
for _ in range(int(input())):
    s=input()
    if s=='AC':
        arr[0]+=1
    elif s=='WA':
        arr[1]+=1
    elif s=='TLE':
        arr[2]+=1
    else:
        arr[3]+=1
print("AC *",arr[0])
print("WA *",arr[1])
print("TLE *",arr[2])
print("RE *",arr[3])

Submission status: Wrong Answer

Solution code:
from sys import stdin


n, *s = (x.rstrip() for x in stdin.readlines())

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:
N = int(input())
Si = [input for i in range(N)]

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

for in1 in Si:
    if in1 == "AC":
        C0 +=1
    elif in1 == "WA":
        C1 += 1
    elif in1 == "TLE":
        C2 += 1
    elif in1 == "RE":
        C3 += 1

print("AC x {}".format(C0)) 
print("WA x {}".format(C1)) 
print("TLE x {}".format(C2)) 
print("RE x {}".format(C3))

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
  if(tmp == "WA"):
    WA += 1
  if(tmp == "TLE"):
    TLE += 1
  else:
    RE += 1
print("AC x "+str(AC))
print("WA x " +str(WA))
print("TLE x " +str(TLE))
print("RE x " +str(RE))

Submission status: Wrong Answer

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

for item in ['AC', 'WA', 'TLE', 'RE']:
    print("{} X {}".format(item, S.count(item)))

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

countA = 0
countW = 0
countT = 0
countR = 0
for i in range(n):
  a = input()
  if a == "AC":
    countA += 1
  elif a == "WA":
    countW += 1
  elif a == "TLE":
    countT += 1
  elif a == "RE":
    countR += 1

print("AC × " + str(countA))
print("WA × " + str(countW))
print("TLE × " + str(countT))
print("RE × " + str(countR))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
moji=[]
for i in range(n):
    m=str(input())
    moji.append(m)
cnt_AC =0
cnt_WA =0
cnt_TLE=0
cnt_RE=0
for i in range(n):
    if str('AC') == moji[i]:
        cnt_AC = cnt_AC + 1
    elif str('WA') == moji[i]:
        cnt_WA = cnt_WA + 1
    elif str('TLE') == moji[i]: 
        cnt_TLE = cnt_TLE + 1
    elif str('RE') == moji[i]:
        cnt_RE = cnt_RE + 1

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

Submission status: Wrong Answer

Solution code:
n = int(input())
moji=[]
for i in range(n):
    m=str(input())
    moji.append(m)
cnt_AC =0
cnt_WA =0
cnt_TLE=0
cnt_RE=0
for i in range(n):
    if str('AC') == moji[i]:
        cnt_AC = cnt_AC + 1
    elif str('WA') == moji[i]:
        cnt_WA = cnt_WA + 1
    elif str('TLE') == moji[i]: 
        cnt_TLE = cnt_TLE + 1
    elif str('RE') == moji[i]:
        cnt_RE = cnt_RE + 1

print('AC × ', end='')
print(cnt_AC)
print('WA × ', end='')
print(cnt_WA)
print('TLE × ', end='')
print(cnt_TLE)
print('RE × ', end='')
print(cnt_RE)

Submission status: Wrong Answer

Solution code:
t=int(input())
ac=0
wa=0
tle=0
re=0
for _ in range(t):
  s=input()
  if(s=="AC"):
    ac+=1
  elif(s=="WA"):
    wa+=1
  elif(s=="TLE"):
    tle+=1
  else:
    re+=1
print("AC X",ac)
print("WA X",wa)
print("TLE X",tle)
print("RE X",re)

Submission status: Wrong Answer

Solution code:
t=int(input())
ac=0
wa=0
tle=0
re=0
for _ in range(t):
  s=input()
  if(s=="AC"):
    ac+=1
  elif(s=="WA"):
    wa+=1
  elif(s=="TLE"):
    tle+=1
  else:
    re+=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())
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('RA x ' + str(list.count('RA')))

Submission status: Wrong Answer

Solution code:
import collections
a=int(input())
b=[input() for i in range(a)]

c=collections.Counter(b)
n,m=zip(*c.most_common())
n=list(n)
m=list(m)
result=[0]*4
for i in range(len(n)):
    if n[i]=='AC':
        result[0]=m[i]
    if n[i]=='WA':
        result[1]=m[i]
    if n[i]=='TLE':
        result[2]=m[i]
    if n[i]=='RE':
        result[3]=m[i]
print('AC x',result[0])
print('WA ×',result[1])
print('TLE ×',result[2])
print('RE ×',result[3])

Submission status: Wrong Answer

Solution code:
import collections
a=int(input())
b=[input() for i in range(a)]

c=collections.Counter(b)
n,m=zip(*c.most_common())
n=list(n)
m=list(m)
result=[0]*4
for i in range(len(n)):
    if n[i]=='AC':
        result[0]=m[i]
    if n[i]=='WA':
        result[1]=m[i]
    if n[i]=='TLE':
        result[2]=m[i]
    if n[i]=='RE':
        result[3]=m[i]
print('AC ×',result[0])
print('WA ×',result[1])
print('TLE ×',result[2])
print('RE ×',result[3])

Submission status: Wrong Answer

Solution code:
N = int(input())

result = [input() for _ in range(N)]

C_AC,C_TLE,C_WA,C_RE = [0,0,0,0]

for i in result:
  if i == "AC":
    C_AC += 1
  elif i == "WA":
    C_WA += 1
  elif i == "TLE":
    C_TLE += 1
  elif i == "RE":
    C_RE += 1

print("AC x " + str(C_AC))
print("WA x " + str(C_WA))
print("TLE x " + str(C_TLE))
print("AC x " + str(C_RE))

Submission status: Wrong Answer

Solution code:
N = int(input())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  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 × " +  str(C1))
print("TLE × " +  str(C2))
print("RE × " +  str(C3))

Submission status: Wrong Answer

Solution code:
N = int(input())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  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 × " +  str(C1))
print("TLE × " +  str(C2))
print("RE × " +  str(C3))

Submission status: Wrong Answer

Solution code:
N = int(input())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  S = input()
  if(S == 'AC'):
    C0 += 1
  elif(S == 'WA'):
    C1 += 1
  elif(S == 'TLE'):
    C2 += 1
  else:
    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())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  S = input()
  if(S == 'AC'):
    C0 += 1
  elif(S == 'WA'):
    C1 += 1
  elif(S == 'TLE'):
    C2 += 1
  else:
    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())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  S = input()
  if(S == 'AC'):
    C0 += 1
  elif(S == 'WA'):
    C1 += 1
  elif(S == 'TLE'):
    C2 += 1
  elif(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())
i = 0
C0 = 0
C1 = 0
C2 = 0
C3 = 0
while (i < N):
  i += 1
  S = input()
  if(S == "AC"):
    C0 += 1
  elif(S == "WA"):
    C1 += 1
  elif(S == "TLE"):
    C2 += 1
  elif(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:
tr=int(input())

a=0
w=0
t=0
r=0
i=0
for i in range(1<=tr):
    word=input()
    i+=1
    if word=='AC':
        a+=1
    elif word=='WA':
        w+=1
    elif word=='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:
tr=int(input())
word=input()
a=0
w=0
t=0
r=0
i=0
for i in range(1<=tr<=10*5):
    i+=1
    if word=='AC':
        a+=1
    elif word=='WA':
        w+=1
    elif word=='TLE':
        t+=1
    else:
        r+=1
print('AC*a')
print('WA*w')
print('TLE*t')
print('RE*r')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from sys import stdin,stdout
import math
from collections import Counter,defaultdict
LI=lambda:list(map(int,input().split()))
MAP=lambda:map(int,input().split())
IN=lambda:int(input())
S=lambda:input()

def case():
    a=b=c=d=0
    for i in range(IN()):
        s=S()
        if s=="AC":a+=1
        elif s=="TLE":b+=1
        elif s=="WA":c+=1
        else:d+=1
    print("AC","x",a)
    print("AC","x",c)
    print("AC","x",b)
    print("AC","x",d)
for _ in range(1):
    case()

Submission status: Wrong Answer

Solution code:
N = int(input())
a=b=c=d = 0
for i in range(N):
  char = input()
  if char =='AC':
    a += 1
  if char =='WA':
    b += 1
  if char =='TLE':
    c += 1
  if char =='RE':
    c += 1
print("AC x " +str(a))
print("WA x " +str(b))
print("TLE x " +str(c))
print("RE x " +str(d))

Submission status: Wrong Answer

Solution code:
t = int(input())
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in range(t):
    s = str(input())
    if s == 'AC':
        c0 += 1
    elif s == 'WA':
        c1 += 1
    elif s == 'TLE':
        c2 += 1
    elif s == 'RE':
        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:
import itertools
import math
import fractions
import functools
import copy
from collections import deque
from functools import reduce
from decimal import Decimal


def main():
    n = int(input())
    s = []
    c = [0, 0, 0, 0]
    for _ in range(n):
        s.append(input())
    for result in s:
        if result == "AC":
            c[0] += 1
        if result == "WA":
            c[1] += 1
        if result == "TLE":
            c[2] += 1
        if result == "RE":
            c[3] += 1
    for i in range(4):
        if i == 0:
            print("AC x", c[0])
        if i == 1:
            print("WA x", c[1])
        if i == 0:
            print("TLE x", c[2])
        if i == 0:
            print("RE x", c[3])


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input("Test cases"))
d={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(n):
  x=input()
  d[x]=d[x]+1
for k,v in d.items():
	print(k,"x",v)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

result_set = ['AC','WA','TLE','RE']
for result in result_set:
    ans = result + ' × ' + str(s.count(result))
    print(ans)

Submission status: Wrong Answer

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

result_set = ['AC','WA','TLE','RE']
for result in result_set:
    ans = result + '　×　' + str(s.count(result))
    print(ans)

Submission status: Wrong Answer

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

#n = 6
#s = ['AC','TLE','AC','AC','WA','TLE']

result_set = {'AC','WA','TLE','RE'}
for result in result_set:
    ans = result + '　×　' + str(s.count(result))
    print(ans)

Submission status: Wrong Answer

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

#n = 6
#s = ['AC','TLE','AC','AC','WA','TLE']

result_set = {'AC','WA','TLE','RE'}
for result in result_set:
    ans = result + ' × ' + str(s.count(result))
    print(ans)

Submission status: Wrong Answer

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

#n = 6
#s = ['AC','TLE','AC','AC','WA','TLE']

result_set = {'AC','WA','TLE','RE'}
for result in result_set:
    ans = result + ' * ' + str(s.count(result))
    print(ans)

Submission status: Wrong Answer

Solution code:
import collections
AC=0
WA=0
TLE=0
RE=0
N=int(input())
S=[]
for i in range(N):
  S.append(input())
count=collections.Counter(S)
print("AC x　{}".format(count["AC"]))
print("WA x　{}".format(count["WA"]))
print("TLE x　{}".format(count["TLE"]))
print("RE x　{}".format(count["RE"]))

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    N = int(input())
    res = []
    for _ in range(N):
        res.append(str(input()))
    print('AC x {}'.format(res.count('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())
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 == "WA":
                  tle += 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())
a = 0
w = 0
t = 0
r = 0
for i in range(1, N):
    i = input()
    if i == 'AC':
        a += 1
    elif i == 'WA':
        w += 1
    elif i == '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:
nums = int(input("num:"))

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

for i in range(0, nums):
    input_str = input("input_str:")
    if input_str in S:
        S[input_str] += 1

print('AC x %d' % S['AC'])
print('WA x %d' % S['WA'])
print('TLE x %d' % S['TLE'])
print('RE x %d' % S['RE'])

Submission status: Wrong Answer

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

print(n, s)
ac = s.count('AC')
wa = s.count('WA')
tle = s.count('TLE')
re = s.count('RE')
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())
S = []
for x in range(N):
  S.append(input())

# print(S)
L = 0
K = 0
J = 0
H = 0
for i in range(N):
  if S[i] == "AC":
    L += 1    
  if S[i] == "WA":
    K += 1 
  if S[i] == "TLE":
    J += 1
  if S[i] == "RE":
    H += 0
print("AC x "+str(L))  
print("WA x "+str(K))
print("TLE x "+str(J))
print("RE x "+str(H))

Submission status: Wrong Answer

Solution code:
N = int(input())
a = 0
w = 0
t = 0
r = 0
for i in range(N):
    i = input()
    if i == 'AC':
        a += 1
    elif i == 'WA':
        w += 1
    elif i == '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:
s = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(1,s):
    ch = input()
    if ch == "AC":
        ac += 1
    elif ch == "WA":
        wa += 1
    elif ch == "TLE":
        tle +=1
    elif ch == "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())
status={'AC':0, 'WA':0, 'TLE':0, 'RE':0}
results = [input() for n in range(N)]
for result in results:
     if result in status.keys():
         status[result] += 1
for k, v in status.items():
    print('{} × {}'.format(k, v))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
list1=[]
for i in range(N):
  a = input()
  list1.append(a)  
  
a = list1.count('AC')
b = list1.count('WA')
c = list1.count('TLE')
d = list1.count('RE')
list2 = [a,b,c,d]
print('AC x'+str(a))
print('WA x'+str(b))
print('TLE x'+str(c))
print('RE x'+str(d))

Submission status: Wrong Answer

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

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

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("TLE x" + str(S.count("TLE")))
print("RE x" + str(S.count("RE")))

Submission status: Wrong Answer

Solution code:
n=int(input())
lst=[]
all=["AC","WA","TLE","RE"]
for _ in range(n):
    a=input()
    lst.append(a)
for i in all:
    print(i,"×",lst.count(i))

Submission status: Wrong Answer

Solution code:
n = int(input())

dic = {}
dic["AC"] = 0
dic["WA"] = 0
dic["TLE"] = 0
dic["RE"] = 0

for e in range(n):
	entrada = input()
	if entrada == "AC":
		dic["AC"] += 1
	elif entrada == "WA":
		dic["WA"] += 1
	elif entrada == "TLE":
		dic["TLE"] += 1
	elif entrada == "AC":
		dic["RE"] += 1
		
print("AC x %d"% dic["AC"])
print("WA x %d"% dic["WA"])
print("TLE x %d"% dic["TLE"])
print("RE x %d"% dic["RE"])

Submission status: Wrong Answer

Solution code:
from sys import stdin
def main():
    #入力
    readline=stdin.readline
    n=int(readline())
    li=[0]*4
    for i in range(n):
        tmp=readline().strip()
        if tmp=="AC":
            li[0]+=1
        elif tmp=="WA":
            li[1]+=1
        elif tmp=="TLE":
            li[2]+=1
        elif tmp=="RE":
            li[3]+=1
    
    for i in range(4):
        if i==0:
            print("AC x {}",li[0])
        elif i==1:
            print("WA x {}",li[1])
        elif i==2:
            print("TLE x {}",li[2])
        elif i==3:
            print("RE x {}",li[3])

if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:
from sys import stdin
def main():
    #入力
    readline=stdin.readline
    n=int(readline())
    li=[0]*4
    for i in range(n):
        tmp=readline().strip()
        if tmp=="AC":
            li[0]+=1
        elif tmp=="WA":
            li[1]+=1
        elif tmp=="TLE":
            li[2]+=1
        elif tmp=="RE":
            li[3]+=1
    
    for i in range(4):
        if i==0:
            print("AC x {}",li[0])
        elif i==1:
            print("WA x {}",li[1])
        elif i==2:
            print("TLR x {}",li[2])
        elif i==3:
            print("RE x {}",li[3])
            
if __name__=="__main__":
    main()

Submission status: Wrong Answer

Solution code:

import math
import collections


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

Submission status: Wrong Answer

Solution code:
import math
import collections


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

Submission status: Wrong Answer

Solution code:
data = {'AC':0,'WA':0,'TLE':0,'RE':0}
N = int(input())
for i in range(N):
  inputSTR = input()
  data[inputSTR] = data[inputSTR] + 1
  
for key,value in data.items():
  print(key + ' × ' + str(value))

Submission status: Wrong Answer

Solution code:
data = {'AC':0,'WA':0,'TLE':0,'RE':0}
N = int(input())
for i in range(N):
  inputSTR = input()
  data[inputSTR] = data[inputSTR] + 1
  
for key,value in data.items():
  print(key + ' × ' + str(value))

Submission status: Wrong Answer

Solution code:
from collections import Counter

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

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

Submission status: Wrong Answer

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

for i in ['AC', 'WA', 'TLE', 'RE']:
    print('{} × {}'.format(i, s.count(i)))

Submission status: Wrong Answer

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

c0 = s.count('AC')
c1 = s.count('WA')
c2 = s.count('TLE')
c3 = s.count('RE')

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

Submission status: Wrong Answer

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

c0 = s.count('AC')
c1 = s.count('WA')
c2 = s.count('TLE')
c3 = s.count('RE')

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
ls=["AC","TLE","RE","WA"]
n=int(input())
a=b=c=d=0
for i in range(n):
  s=input()
  if s==ls[0]:
    a+=1
  elif s==ls[1]:
    b+=1
  elif s==ls[2]:
    c+=1
  else:
    d+=1

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

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=="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)