Problem:


Score : 200 points

Problem Statement

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

The problem has N test cases.

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

See the Output section for the output format.

Constraints

1 \leq N \leq 10^5

S_i is AC, WA, TLE, or RE.

Input

Input is given from Standard Input in the following format:

N
S_1
\vdots
S_N

Output

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

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

Sample Input 1

6
AC
TLE
AC
AC
WA
TLE

Sample Output 1

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

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

Sample Input 2

10
AC
AC
AC
AC
AC
AC
AC
AC
AC
AC

Sample Output 2

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



Sample input:
6
AC
TLE
AC
AC
WA
TLE


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

Submission status: Runtime Error

Solution code:
n = (int)(input())
C_0 = 0
C_1 = 0
C_2 = 0
_C3 = 0
for i in range(n):
    s = input()
    if s == 'AC':
        C_0 += 1 #means C_0 = C_0 + 1
    if s == 'WA':
        C_1 += 1
    if s == 'TLE':
        C_2 += 1
    else:
        C_3 += 1

print("AC x {}",C_0) #{}のところにC_0の値が出力される
print("WA x {}",C_1)
print("TLE x {}",C_2)
print("RE

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(int(input()) for i in range(n))
print('AC x',s.count('AC'))
print('WA x',s.count('WA'))
print('TLE x',s.count('TLE'))
print('RE x',s.count('RE'))

Submission status: Runtime Error

Solution code:
N= int(input())
C0 = C1 = C2 = C3 = 0
for i in range(N):
	if input() == 'AC':
		C0 += 1
	elif input() == 'WA':
		C1 += 1
	elif input() == 'TLE':
		C2 += 1
	elif input() == '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: Runtime Error

Solution code:
N= int(input())
C0 = C1 = C2 = C3 = 0
for i in range(N):
	if input() == 'AC':
		C0 += 1
	elif input() == 'WA':
		C1 += 1
	elif input() == '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: Runtime Error

Solution code:
from sys import stdin
input = stdin.readline()

n = int(input())
a = [0]*4

for i in range(n):
    s = input().strip()
    if s == "AC":
        a[0] += 1
    elif s == "WA":
        a[1] += 1
    elif s == "TLE":
        a[2] += 1
    else:
        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: Runtime Error

Solution code:
N=int(input())
mydict={"AC":0,"WA":0,"TLE":0,"RE":0}
for i in range(N):
  mydict[input()]+=1
printlist=["AC","WA","TLE","RE"]
for p in printlist:
  print("{} x {}".format(p,mydict[p])

Submission status: Runtime Error

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

for k in ['AC', 'WA', 'TLE', 'RE']:
  print(f'{k} x {hist[k]}', flush=True)

Submission status: Runtime Error

Solution code:
input_num = input().rstrip()

AC_count = 0
WA_count = 0
TLE_count = 0
RE_count = 0

for string in range(input_num):
	if string == 'AC':
    	AC_count += 1
	elif string == 'WA':
    	WA_count += 1
	elif string == 'TLE':
    	TLE_count += 1
	else:
    	RE_count += 1

print('AC_count x ' + AC_count)
print('WA_count x ' + WA_count)
print('TLE_count x ' + TRE_count)
print('RE_count x ' + RE_count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
L = []
for i in range(int(input)):
  l.append(input())
for j in ['AC','WA','TLE','RE']:
  print(L.count(j))

Submission status: Runtime Error

Solution code:
Atcoder 173 b

N = int(input())
C0 = 0
C1 = 0
C2 = 0
C3 = 0


for i in range(N):
    C = input()
    If C == ‘AC’:
        C0 += 1
    elif C == ‘WA’:
        C1 += 1
    elif C == ‘LTE’:
        C2 += 1
    elif C == ‘RE’:
        C3 += 1

print(‘AC x ‘ + str(C0))
print(‘WA x ‘ + str(C1))
print(‘LTE x ‘ + str(C2))
print(‘RE x ‘ + str(C3))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
arr = []
n = int(input())
while n > 0:
  arr.append(input())
  n -= 1
print('AC x '+arr.count('AC'))
print('WA x '+arr.count('WA'))
print('TLE x '+arr.count('TLE'))
print('RE x '+arr.count('RE'))

Submission status: Runtime Error

Solution code:
n = int(input())
ac = 0
wa = 0
tle = 0
we = 0
for i in range(n):
    if input() == "AC":
        ac += 1
        continue
        
    if input() == "WA":
        wa += 1
        continue
        
    if input() == "TLE":
        tle += 1
        continue
    if input() == "WE":
        we += 1
        continue

print("AC x {ac}")
print("WA x {wa}")
print("TLE x {tle}")
print("WE x {we}")

Submission status: Runtime Error

Solution code:
n = int(input())
ac = 0
wa = 0
tle = 0
we = 0
for i in range(n):
  	if input() == "AC":
    	ac += 1
        continue
    if input() == "WA":
      	wa += 1
        continue
    if input() == "TLE":
      	tle += 1
        continue
    if input() == "WE":
      	we += 1
        continue

print("AC x {ac}")
print("WA x {wa}")
print("TLE x {tle}")
print("WE x {we}")

Submission status: Runtime Error

Solution code:
n = int(input())
inp = {}
for i in range(n):
  a = input()
  if inp.get(a) is None:
    inp[a] = 0
  inp[a] += 1

  print(f"AC x {inp['AC']}")
  print(f"WA x {inp['WA']}")
  print(f"TLE x {inp['TLE']}")
  print(f"RE x {inp['RE']}")

Submission status: Runtime Error

Solution code:
n = int(input())
inp = {}
for i in range(n):
  a = input()
  if inp.get(a) is None:
    inp[a] = 0
  inp[a] += 1

  print(f"AC x {result['AC']}")
  print(f"WA x {result['WA']}")
  print(f"TLE x {result['TLE']}")
  print(f"RE x {result['RE']}")

Submission status: Runtime Error

Solution code:
n = int(input())
inp = {}
for i in range(n):
  a = input()
  if inp.get(a) is not None:
    inp[a] = 0
  inp[a] += 1

  print(f"AC x {result['AC']}")
  print(f"WA x {result['WA']}")
  print(f"TLE x {result['TLE']}")
  print(f"RE x {result['RE']}")

Submission status: Runtime Error

Solution code:
n = int(input())
A = [input() for _ in range(n)]
a,b,c,d = int()
for x in range(n):
    if A[x] == "AC":
        a = a+1
    elif A[x] == "WA":
        b = b+1
    elif A[x] == "TLE":
        c = c+1
    elif A[x] == "RE":
        d = d+1
print("AC x",a)
print("WA x",b)
print("TLE x",c)
print("RE x",d)

Submission status: Runtime Error

Solution code:
a,w,t,r = 0,0,0,0
for _ in range(int(input()):
	s = input()
	a += s == "AC"
	w += s == "WA"
	t += s == "TLE"
	r += s == "RE"

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

Submission status: Runtime Error

Solution code:
a,w,t,r = 0,0,0,0
for _ in range(int(input()):
	s = input()
	a += s == "AC"
	w += s == "WA"
	t += s == "TLE"
   	r += s == "RE"

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

Submission status: Runtime Error

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

A=S.count('AC')
B=S.count('WA')
C=S.count('TLE')
D=S.count('RE')

print('AC x',A)
print('WA x',B)
print('TLE x',C)
print('RE x',D)

Submission status: Runtime Error

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

A=S.count('AC')
B=S.count('WA')
C=S.count('TLE')
D=S.count('RE')

print('AC x'+ A)
print('WA x'+ B)
print('TLE x'+ C)
print('RE x'+ D)

Submission status: Runtime Error

Solution code:
# Fast IO (only use in integer input) or take care about string

import os,io
input=io.BytesIO(os.read(0,os.fstat(0).st_size)).readline

N = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0

for _ in range(N):
  str = input()
  if str[0] == 'A':
    AC += 1
  elif str[0] == 'W':
    WA += 1
  elif str[0] == 'T':
    TLE += 1
  elif str[0] == 'R':
    RE += 1
print('AC x ' + str(AC))
print('WA x ' + str(WA))
print('TLE x ' + str(TLE))
print('RE x ' + str(RE))

Submission status: Runtime Error

Solution code:
n=int(input())
s=list(input().split())
print(f'AC x {s.count('AC'}')
print(f'WA x {s.count('WA')})
print(f'TLE x {s.count('TLE')})
print(f'RE x {s.count('RE')})

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = 0
b = 0
c = 0
d = 0

for i in range(n):
  S = str(input())
  if S == 'AC':
    a += 1
  if S == 'WA':
    b += 1
  if S == 'TLE':
    c += 1
  if S == 'RE':
    d += 1
print('AC x '+str(a)
print('WA x '+str(b))
print('TLE x '+str(c))
print('RE x '+str(d))

Submission status: Runtime Error

Solution code:
N = int(input())
 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: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(n):
  a = input()
  l.append(a)
print(f"{'AC'} x {l.count('AC')"}
print(f"{'WA'} x {l.count('WA')"}
print(f"{'TLE'} x {l.count('TLE')"}
print(f"{'RE'} x {l.count('RE')"}

Submission status: Runtime Error

Solution code:
from collections import deque
import math
import os
import random
import re
import sys
#n=list(map(int, input().split()))
#n=map(int, input().split())


def main():
	s = input().split()
    n=int(s[0])
    d = {'AC':0,'WA':0,'TLE':0,'RE':0}
    for i in range(n):
        s = input().split()
        d[s[0]]+=1
    for i in d:
        print(i,' x ',d[i])
main()
'''
if __name__ == '__main__':
    main()
'''

Submission status: Runtime Error

Solution code:
n = int(input())
l = []
for i in range(n):
  a = input()
  l.append(a)
print(f"{'AC'} x {l.count('AC')}
print(f"{'WA'} x {l.count('WA')}
print(f"{'TLE'} x {l.count('TLE')}
print(f"{'RE'} x {l.count('RE')}

Submission status: Runtime Error

Solution code:
H, W, K = map(int, input().split())

C = []
for _ in range(H):
    C.append(input())

from pprint import pprint
# pprint(C)
import sys
from collections import Counter
from itertools import product, combinations

counter = Counter()
for row in C:
    counter.update(row)
n_blacks = counter['#']

if n_blacks < K:
    print(0)
    sys.exit()
# elif n_blacks == K:
#     # 黒がいない行、列があると破綻するからこの elif は NG
#     print(1)
#     sys.exit()


board = ''
for row in C:
    board += row

pprint(board)

def get_calc_board_index_row(board, n_rows, n_cols):
    b = board
    _n_rows = n_rows
    _n_cols = n_cols
    def fun(n_row):
        # row number
        return list(range(_n_rows * n_row, _n_rows * n_row + _n_cols))
    return fun

calc_board_index_row = get_calc_board_index_row(board=board, n_rows=H, n_cols=W)

def get_calc_board_index_col(board, n_rows, n_cols):
    b = board
    _n_rows = n_rows
    _n_cols = n_cols
    def fun(n_col):
        # row number
        return list(range(
            n_col,
            n_col + _n_rows * _n_cols,
            _n_cols))
    return fun

calc_board_index_col = get_calc_board_index_col(board=board, n_rows=H, n_cols=W)

def get_print_board(board, n_rows, n_cols):
    b = board
    _n_rows = n_rows
    _n_cols = n_cols
    def fun():
        # row number
        for r in _n_rows:
            print(b[r*_n_cols, r*_n_cols+_n_cols])
    return fun

print_board = get_print_board(board, H, W)

# sys.exit()

# 消し込む行と列の数 (n_row, n_col) について、すべてのパターンで繰り返す
# i = 0
ans = 0
for n_row, n_col in product(range(H), range(K)):
    # n_row 個の行を消し込む場合の、行番号の組み合わせ
    choosed_rows = list(combinations(range(H), n_row))
    # n_col 個の列を消し込む場合の、列番号の組み合わせ
    choosed_cols = list(combinations(range(W), n_col))

    # 消し込みするマスを計算
    board_idx = set()
    # for removing_row_numbers in choosed_rows:
    #     for r in removing_row_numbers:
    #         board_idx.update(calc_board_index_row(r))
    # for removing_col_numbers in choosed_cols:        
    #     for c in removing_col_numbers:
    #         board_idx.update(calc_board_index_col(c))
    for i_r, i_c in product(range(len(choosed_rows)), range(len(choosed_cols))):
        for _ in choosed_rows[i_r]:
            board_idx.update(calc_board_index_row(_))
        for _ in choosed_cols[i_c]:
            board_idx.update(calc_board_index_col(_))

        rest_blacks = 0
        for ix in range(len(board)):
            if ix in board_idx: continue
            if board[ix] == '#': rest_blacks += 1

        if rest_blacks == K:
            # print(removing_row_numbers, removing_col_numbers)
            ans += 1
    # print({
    #     'n_row': n_row,
    #     'n_col': n_col,
    #     'choosed_rows': choosed_rows,
    #     'choosed_cols' : choosed_cols,
    #     'board_idx': board_idx,
    #     'rest_blacks': rest_blacks
    # })
    # print()

print(ans)

Submission status: Runtime Error

Solution code:
N = int(input())

list = [0] * N

for i in range(N):

    ans = input()

    list[N] = ans

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

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

Submission status: Runtime Error

Solution code:
N = int(input())
judge_list = []
judge = ['AC', 'WA', 'TLE', 'RE']
for i in range(N):
    judge_list.append(str(input()))
for k in judge:
    judge_dict[k] = judge_list.count(k)
print(f"AC x {judge_dict['AC']}")
print(f"WA x {judge_dict['WA']}")
print(f"TLE x {judge_dict['TLE']}")
print(f"RE x {judge_dict['RE']}")

Submission status: Runtime Error

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

status = ["AC","WA","TLE","RE"]
ans  = [0]*4

for i in range(len(status)):
    ans[i] = len([j for j in s if status[i] in s])
	s.remove(status[i])
    
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: Runtime Error

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

status = ["AC","WA","TLE","RE"]
ans  = [0]*4

for i in range(len(status)):
    ans[i] = len([j for j in s if status[i] in s])
	s.remove(status[i])
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: Runtime Error

Solution code:
from collections import Counter
li=[]
for i in range(int(input()):
	li.append(input())  
d=Counter(li)
print('AC','x',d['AC'])
print('WA','x',d['WA'])
print('TLE','x',d['TLE'])
print('RE','x',d['RE'])

Submission status: Runtime Error

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


a=0
b=0
c=0                
d=0                
                
for i in range(1, n):
    if str_list[i] == 'AC':
    	a += 1
    elif str_list[i] == 'WA':
    	b += 1
    elif str_list[i] == 'TLE':
    	c +=1
    else :
    	d +=1

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

Submission status: Runtime Error

Solution code:
    n = int(input())
    s = [input() for i in range(n)]
     
    status = ["AC","WA","TLE","RE"]
    ans  = [0]*4
     
    for i in range(len(status)):
        ans[i] = len([j for j in s if status[i] in s])
     
    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: Runtime Error

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

status = ["AC","WA","TLE","RE"]
ans  = [0]*n

for i in range(len(status)):
    ans[i] = len([j for j in s if status[i] in s])

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: Runtime Error

Solution code:
n=int(input())
for i in range(n):
    if n = 'AC':
        print(n.count('AC'))
    elif n = 'WA':
        print(n.count('WA'))
    elif n = 'TLE':
        print(n.count('TLE'))
    elif n = 'RE':
        print(n.count('RE'))

Submission status: Runtime Error

Solution code:
a=[]
w=[]
t=[]
r=[]
n = int(input())
s = list(input().split())

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC x ",sum(a))
print("WA x ",sum(w))
print("TLE x ",sum(t))
print("RE x ",sum(r))

Submission status: Runtime Error

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


a=0
b=0
c=0                
d=0                
                
for num in range(1, n):
    if str_list[num] == 'AC':
    	a += 1
    elif str_list[num] == 'WA':
    	b += 1
    elif str_list[num] == 'TLE':
    	c +=1
    else :
    	d +=1

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

Submission status: Runtime Error

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


a=0
b=0
c=0                
d=0                
                
for num in range(1, n):
    if str_list[num] == 'AC':
    	a += 1
    elif str_list[num] == 'WA':
    	b += 1
    elif str_list[num] == 'TLE':
    	c +=1
    else str_list[num] == 'RE':
    	d +=1
    		continue;

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

Submission status: Runtime Error

Solution code:
N = int(input())
for s in range(N):
  print('AC','x',s.count('AC'))
  print('TLE','x',s.count('TLE'))
  print('WJ','X',s.count('WJ'))
  print('RE','X',s.count('RE'))

Submission status: Runtime Error

Solution code:
n = int(input())
a=0
w=0
t=0
r=0

for i in range(n):
    ans = input()

    if ans == 'AC':
        a+=1
    elif ans == 'WA':
        w+=1
    elif ams == 'TLE':
        t+=1
    else:
        r+=1

print("AC x" +str(a))
print("WA x" +str(w))
print("TLE x" +str(t))
print("RE x" +str(r))

Submission status: Runtime Error

Solution code:
ru = int(input())

a = [input() for i in range(ru)] 


print('AC x '+a.count('AC'))
print('WA x '+a.count('WA'))
print('TLE x '+a.count('TLE'))
print('RE x '+a.count('RE'))

Submission status: Runtime Error

Solution code:
N = int(input())
for s in range(N):
  s = (input()
       print('AC','x',s.count('AC'))
       print('TLE','x',s.count('TLE'))
       print('WJ','X',s.count('WJ'))
       print('RE','X',s.count('RE'))

Submission status: Runtime Error

Solution code:

ru = input()

a = [int(input()) for i in range(ru)] 


print('AC x '+a.count('AC'))
print('WA x '+a.count('WA'))
print('TLE x '+a.count('TLE'))
print('RE x '+a.count('RE'))

Submission status: Runtime Error

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


a=0
b=0
c=0                
d=0                
                
for num in range(1, n)
    if str_list[num] == 'AC':
                a += 1
    elif str_list[num] == 'WA':
                b += 1
    elif str_list[num] == 'TLE':
                c +=1
    else str_list[num] == 'RE':
                d +=1
    	continue;

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

Submission status: Runtime Error

Solution code:
n = int(input())  # nは入力回数
str_list = [input() for _ in range(n)]
print(str_list)   # 出力を確認

a=0
b=0
c=0                
d=0                
                
for num in range(1, n)
    if str_list[num] == 'AC':
                a += 1
    elif str_list[num] == 'WA':
                b += 1
    elif str_list[num] == 'TLE':
                c +=1
    else str_list[num] == 'RE':
                d +=1
    	continue;

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

Submission status: Runtime Error

Solution code:
taka_h, taka_a, aoki_h, aoki_a = map(int, input().split())

while True:
    aoki_h -=taka_a
    taka_h -= aoki_a
    if(aoki_h <=0):
        print("Yes")
        break
    elif(taka_h <= 0):
        print("No")
        break

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input().split())
a=[]
w=[]
t=[]
r=[]

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC x ",sum(a))
print("WA x ",sum(w))
print("TLE x ",sum(t))
print("RE x ",sum(r))

Submission status: Runtime Error

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

status = ["AC","WA","TLE","RE"]

for i in range(len(status)):
    status[i] = len([s for s in status if status[i] in s])

print("AC x {}".format(status[0]))
print("WA x {}".format(status[1]))
print("TLE x {}".format(status[2]))
print("RE x {}".format(status[3]))

Submission status: Runtime Error

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

status = ["AC","WA","TLE","RE"]

for i in range(len(status)):
    status[i] = len([s for s in stauts if status[i] in s])

print("AC x {}".format(status[0]))
print("WA x {}".format(status[1]))
print("TLE x {}".format(status[2]))
print("RE x {}".format(status[3]))

Submission status: Runtime Error

Solution code:
str_list = list(input().split()
i = len(str_list)

a=0
b=0
c=0                
d=0                
                
for num in range(1, i)
    if str_list[num] == 'AC':
                a += 1
    elif str_list[num] == 'WA':
                b += 1
    elif str_list[num] == 'TLE':
                c +=1
    elif str_list[num] == 'RE':
                d +=1
    	continue;

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

Submission status: Runtime Error

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

status = ["AC","WA","TLE","RE"]

for i in range(len(status)):
    status[i] = len([s for s in stauts if status[i] in s])

Submission status: Runtime Error

Solution code:
N = int(input())

import collections
l = []
for n in range(N):
  S = input()
  l.append(S)

c = collections.Counter(l)


print("AC x " + c['AC'])
print("WA x " + c['WA'])
print("TLE x " + c['TLE'])
print("RE x " + c['RE'])

Submission status: Runtime Error

Solution code:
str_list = list(input().split()
i = len(str_list) - 1

a=0
b=0
c=0                
d=0                
                
for num in range(i)
    if str_list[num] == 'AC':
                a += 1
    elif str_list[num] == 'WA':
                b += 1
    elif str_list[num] == 'TLE':
                c +=1
    elif str_list[num] == 'RE':
                d +=1
    	continue;

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

Submission status: Runtime Error

Solution code:
N = int(input())

import collections
l = []
for n in range(N):
  S = input()
  l.append(S)

c = collections.Counter(l)


print("AC x " c['AC'])
print("WA x " c['WA'])
print("TLE x " c['TLE'])
print("RE x " c['RE'])

Submission status: Runtime Error

Solution code:
N = int(input())

import collections
l = []
for n in range(N):
  S = input()
  l.append(S)

c = collections.Counter(l)


print("AC x "c['AC'])
print("WA x "c['WA'])
print("TLE x "c['TLE'])
print("RE x "c['RE'])

Submission status: Runtime Error

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

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

AC2 = "AC x " + str(AC)
WA2 = "WA x " + str(WA)
TLE2 = "TLE x " + str(TLE)
RE2 = "RE x " + str(RE)
x
list = [AC2,WA2,TLE2,RE2]
list_n = "\n".join(list)
print(list_n)

Submission status: Runtime Error

Solution code:
x=int(input())
cac=0
cwa=0
tle=0
cre=0

for i in range(0,x):
    moji=input()
    if(moji=='AC'):
        cac+=1
    if(moji=='WA'):
        cwa+=1
    if(moji=='TLE'):
        ctle+=1
    if(moji=='RE'):
        cre+=1
print('AC x ',cac)
print('WA x' ,cwa)
print('TLE x ',ctle)
print('RE x' ,cre)

Submission status: Runtime Error

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

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


for i in range(n):
  if S[i]=='AC':
    ac +=1
  elif S[i]=='WA':
    wa +=1
  elif S[i]=='TLE':
    tle +=1
  elif S[i]=='RE':
    re +=1

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

Submission status: Runtime Error

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=="TLE":
    t+=1
  elif s=="WA":
    w+=1
  else:
    r+=1
print("AC ×",a)
print("WA ×",w)
print("TLE ×"t)
print("RE ×",r)

Submission status: Runtime Error

Solution code:
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

N=int(input())
ac=0
wa=0
tle=0
re=0
for i in range(N):
    S=ns()
    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))


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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

for j in range(0,N):
  if S[j] == 'AC':AC++
  if S[j] == 'WA':WA++
  if S[j] == 'TLE':TLE++
  if S[j] == 'RE':RE++
print('AC  x  '+str(AC))
print('WA  x  '+str(WA))
print('TLE  x  '+str(TLE))
print('RE  x  '+str(RE))

Submission status: Runtime Error

Solution code:
x=int(input())
cac=0
cwa=0
tle=0
cre=0

for i in range(0,x):
    moji=input()
    if(moji='AC'):
        cac+=1
    if(moji='WA'):
        cwa+=1
    if(moji='TLE'):
        ctle+=1
    if(moji='RE'):
        cre+=1
print('AC x',cac)
print('WA x',cwa)
print('TLE x',ctle)
print('RE x',cre)

Submission status: Runtime Error

Solution code:
n = int(input())
verdict = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}

for _ in range(n):
    S = input()
    verdict[S.upper()] += 1
for i, j in verdict:
    print(f'{i} x {j}')

Submission status: Runtime Error

Solution code:
N=int(input())
S=list(map(input().split()))
A=0
B=0
C=0
D=0
for i in range(0,N):
    i=i+0
    if S[i]=="AC":
        A+=1
    elif S[i]=="WA":
        B+=1
    elif S[i]=="TLE":
        C+=1
    else:
        D+=1
        
print("AC x "+A)
print("WA x "+B)
print("TLE x "+C)
print("RE x "+D)

Submission status: Runtime Error

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

for i in range(N):
    inp.append(int(input()))

c0=N.count("AC")
c1=N.count("WA")
c2=N.count("TLE")
c3=N.count("RE")

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = ["AC", "WA", "TLE", "RE"]
C1 = 0
C2 = 0
C3 = 0
C4 = 0

for i in range(N):
    if S = "AC":
        C1 += 1
    elif S = "WA":
        C2 += 1
    elif S = "TLE":
        C3 += 1
    elif S = "RE":
        C4 += 1

print("AC x "+"%d"%(C1))      
print("WA x "+"%d"%(C2))      
print("TLE x "+"%d"%(C3))      
print("RE x "+"%d"%(C4))

Submission status: Runtime Error

Solution code:
N=int(input())
S= list(input())

while len(S)!=N:
    i=input()
    S.append(i)

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

Submission status: Runtime Error

Solution code:
N = int(input())
list = [input() for i in range(N)]
print('AC x '+ strl(ist.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: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())

for i in range(0, N):
  val = input()
  if val:
    S.append(val)
AC=S.count('AC')
WA=S.count('WA')
TLE=S.count('TLE')
RE=S.count('RE')

print("AC x ", end='') 
print(AC)
print("WA x ", end='') 
print(WA)
print("TLE x ", end='') 
print(TLE)
print("RE x ", end='') 
print(RE)

Submission status: Runtime Error

Solution code:
C0=0
C1=0
C2=0
C3=0
N=int(input())
S=list(range(N))
for i in range(N):
  S[i] = input()
for i in range(N):
  if S[i]==AC:
    C0 += 1
  elif S[i]==WA:
    C1 += 1
  elif S[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: Runtime Error

Solution code:
n = int(input()); s = []
for _ in range(n):
  s.append(input())
 
dic = {"AC":0,
       "WA":0,
       "TLE":0,
       "RE":0}

for res in s:
  dic[s] += 1
  
for k in dic:
  print(f"{k} x {dic[k]}")

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
case = input()
import numpy as np
case = np.array(case)
for i in range(len(case)):
  AC = 0
  WA = 0
  TLE = 0
  RE = 0
  others = 0
  if case[i] == "AC":
    AC += 1
  elif case[i] == "WA":
    WA += 1
  elif case[i] == "TLE":
    TLE += 1
  elif case[i] == "RE":
    RE += 1
  else :
    others += 1
  return AC, WA, TLE, RE, others
print("AC"+"x"+AC)
print("WA"+"x"+WA)
print("TLE"+"x"+TLE)
print("RE"+"x"+RE)

Submission status: Runtime Error

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

print(f'AC×{s.count('AC')}')
print(f'WA×{s.count('WA')}')
print(f'TLE×{s.count('TLE')}')
print(f'RE×{s.count('RE')}')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input().split())
a=[]
w=[]
t=[]
r=[]

for i in range (n):
  if s[i] == "AC":
    a.append(s[i])
  elif s[i]== "WA":
    w.append(s[i])
  elif s[i]== "TLE":
    t.append(s[i])
  else:
    r.append(s[i])
  
print("AC × ",sum(a))
print("WA × ",sum(w))
print("TLE × ",sum(t))
print("RE × ",sum(r))