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: Accepted

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

#############
# Libraries #
#############

import sys
input = sys.stdin.readline

import math
#from math import gcd
import bisect
import heapq
from collections import defaultdict
from collections import deque
from collections import Counter
from functools import lru_cache

#############
# Constants #
#############

MOD = 10**9+7
INF = float('inf')
AZ = "abcdefghijklmnopqrstuvwxyz"

#############
# Functions #
#############

######INPUT######
def I(): return int(input().strip())
def S(): return input().strip()
def IL(): return list(map(int,input().split()))
def SL(): return list(map(str,input().split()))
def ILs(n): return list(int(input()) for _ in range(n))
def SLs(n): return list(input().strip() for _ in range(n))
def ILL(n): return [list(map(int, input().split())) for _ in range(n)]
def SLL(n): return [list(map(str, input().split())) for _ in range(n)]

######OUTPUT######
def P(arg): print(arg); return
def Y(): print("Yes"); return
def N(): print("No"); return
def E(): exit()
def PE(arg): print(arg); exit()
def YE(): print("Yes"); exit()
def NE(): print("No"); exit()

#####Shorten#####
def DD(arg): return defaultdict(arg)

#####Inverse#####
def inv(n): return pow(n, MOD-2, MOD)

######Combination######
kaijo_memo = []
def kaijo(n):
  if(len(kaijo_memo) > n): return kaijo_memo[n]
  if(len(kaijo_memo) == 0): kaijo_memo.append(1)
  while(len(kaijo_memo) <= n): kaijo_memo.append(kaijo_memo[-1] * len(kaijo_memo) % MOD)
  return kaijo_memo[n]

gyaku_kaijo_memo = []
def gyaku_kaijo(n):
  if(len(gyaku_kaijo_memo) > n): return gyaku_kaijo_memo[n]
  if(len(gyaku_kaijo_memo) == 0): gyaku_kaijo_memo.append(1)
  while(len(gyaku_kaijo_memo) <= n): gyaku_kaijo_memo.append(gyaku_kaijo_memo[-1] * pow(len(gyaku_kaijo_memo),MOD-2,MOD) % MOD)
  return gyaku_kaijo_memo[n]

def nCr(n,r):
  if n == r: return 1
  if n < r or r < 0: return 0
  ret = 1
  ret = ret * kaijo(n) % MOD
  ret = ret * gyaku_kaijo(r) % MOD
  ret = ret * gyaku_kaijo(n-r) % MOD
  return ret

######Factorization######
def factorization(n):
  arr = []
  temp = n
  for i in range(2, int(-(-n**0.5//1))+1):
    if temp%i==0:
      cnt=0
      while temp%i==0: 
        cnt+=1 
        temp //= i
      arr.append([i, cnt])
  if temp!=1: arr.append([temp, 1])
  if arr==[]: arr.append([n, 1])
  return arr

#####MakeDivisors######
def make_divisors(n):
  divisors = []
  for i in range(1, int(n**0.5)+1):
    if n % i == 0:
      divisors.append(i)
      if i != n // i: 
        divisors.append(n//i)
  return divisors

#####MakePrimes######
def make_primes(N):
  max = int(math.sqrt(N))
  seachList = [i for i in range(2,N+1)]
  primeNum = []
  while seachList[0] <= max:
    primeNum.append(seachList[0])
    tmp = seachList[0]
    seachList = [i for i in seachList if i % tmp != 0]
  primeNum.extend(seachList)
  return primeNum

#####GCD#####
def gcd(a, b):
    while b: a, b = b, a % b
    return a

#####LCM#####
def lcm(a, b):
    return a * b // gcd (a, b)

#####BitCount#####
def count_bit(n):
  count = 0
  while n:
    n &= n-1
    count += 1
  return count

#####ChangeBase#####
def base_10_to_n(X, n):
  if X//n: return base_10_to_n(X//n, n)+[X%n]
  return [X%n]

def base_n_to_10(X, n):
  return sum(int(str(X)[-i-1])*n**i for i in range(len(str(X))))

def base_10_to_n_without_0(X, n):
  X -= 1
  if X//n: return base_10_to_n_without_0(X//n, n)+[X%n]
  return [X%n]

#####IntLog#####
def int_log(n, a):
  count = 0
  while n>=a:
    n //= a
    count += 1
  return count

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

N = I()
dic = DD(int)
for _ in range(N):
  dic[S()] += 1
print("AC x",dic["AC"])
print("WA x",dic["WA"])
print("TLE x",dic["TLE"])
print("RE x",dic["RE"])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = int(input())
ac,wa,tle,re = 0,0,0,0
for i in range(n):
  s = str(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: Accepted

Solution code:
from collections import Counter
def main():
    N = int(input())
    T = {}
    for _ in range(N):
        S = input()
        T[S] = T.get(S, 0) + 1
    for i in ['AC', 'WA', 'TLE', 'RE']:
        print(i + ' x', T.get(i, 0))

main()
#print('Yes' if main() else 'No')
#print('YES' if main() else 'NO')

Submission status: Accepted

Solution code:
# じょえチャンネルおもしろいよ～～～
# https://www.youtube.com/channel/UCRXsI3FL_kvaVL9zoolBfbQ

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = [int(input()) for n in range(N)]
assert len(S) == N
counts = {'AC': 0, 'WA': 0, 'TLE': 0, 'RE': 0}

for s in S:
  counts[s] += 1

for key in ['AC', 'WA', 'TLE', 'RE']:
	print('{} x {}'.format(key, counts[key])

Submission status: Runtime Error

Solution code:
n=int(input())
li=[input() for _ in range(n)]
ac=li.index("AC")
wa=li.index("WA")
tle=li.index("TLE")
re=li.index("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:
N = int(input())
a = 0
w = 0
t = 0
r = 0
for _ in range(N):
    if input() == 'AC':
        a += 1
    elif input() == 'WA':
        w += 1
    elif input() == '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:
n = int(input())
ACs = 0
WAs = 0
TLEs = 0
REs = 0
for i in range(n):
  result = input()
  if result == "AC":
    ACs += 1
  elif result == "WA":
    WAs += 1
  elif result == "TLE":
    TLEs += 1
  else:
    REs += 1
print("AC x " + ACs)
print("WA x " + WAs)
print("TLE x " + TLEs)
print("RE x " + REs)

Submission status: Runtime Error

Solution code:
listSi = [0,0,0,0]
i = int(input())
while (i = input()):
    if i == "AC":
        listSi[0] += 1
    elif i == "WA":
        listSi[1] += 1
    elif i == "TLE":
        listSi[2] += 1
    elif i == "RE":
        listSi[3] += 1
print("AC x {listSi[0]}")
print("WA x {listSi[1]}")
print("TLE x {listSi[2]}")
print("RE x {listSi[3]}")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
C0 = 0
C1 = 0
C2 = 0
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 × %d",C0)
print("WA × %d",C1)
print("TLE × %d",C2)
print("RE × %d",C3)

Submission status: Runtime Error

Solution code:
n = int(input())

cnt_ac = 0
cnt_tle = 0
cnt_wa = 0
cnt_re = 0

for i in range(n):
    if input() == "AC":
        cnt_ac += 1
    elif input() == "TLE":
        cnt_tle += 1
    elif input() == "WA":
        cnt_wa += 1
    elif input() == "RE":
        cnt_re += 1

print("AC ×　" + cnt_ac)
print("WA ×　" + cnt_wa)
print("TLE ×　" + cnt_tle)
print("RE ×　" + cnt_re)

Submission status: Runtime Error

Solution code:
n,*s=open(0);for t in['AC','WA','TLE','RE']:print(t,'x',s.count(t+'\n'))

Submission status: Runtime Error

Solution code:
N = int(input())

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

for i in range(N):
  ans = input()
  
  if ans = "AC":
    AC += 1
    
  elif ans = "WA":
    WA += 1
    
  elif ans = "TLE":
    TLE += 1
    
  elif ans = "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())
s=""
for i in range(N):
    s.append(input())
print("AC x ".join(s.count("AC")))
print("WA x ".join(s.count("WA")))
print("TLE x ".join(s.count("TLE")))
print("RE x ".join(s.count("RE")))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
s=" "
for i in range(N):
    s.append(input())
print("AC x "+s.count("AC"))
print("WA x "+s.count("WA"))
print("TLE x "+s.count("TLE"))
print("RE x "+s.count("RE"))

Submission status: Runtime Error

Solution code:

N=int(input())
s=""
for i in range(N):
    s.append(input())
print('AC x '+s.count('AC'))
print('WA x '+s.count('WA'))
print('TLE x '+s.count('TLE'))
print('RE x '+s.count('RE'))

Submission status: Runtime Error

Solution code:
n = int(input())
c0 = 0
c1 = 0
c2 = 0
c3 = 0
for i in ragne(n):
  s = input()
  if s == 'AC':
    c0 += 1
  elif s == 'WA':
    c1 += 1
  elif s == 'TLE':
    c2 += 1
  else:
    c3 += 1
print(f'AC x {c0}')
print(f'WA x {c1}')
print(f'TLE x {c2}')
print(f'RE x {c3}')

Submission status: Runtime Error

Solution code:
n = int(input())
p= []
AC = 0
WA = 0
TLE = 0
RE = 0

for i in range(n):
  p.append(input())
  
for j in p :
  if j == "AC":
    AC += 1
  elif j == "WA":
    WA += 1
  elif j == "TLE":
    TLE += 1
  else:
    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())
c0, c1, c2, c3 = 0
for _ in range(n):
    if _ == "AC":
        c0 += 1
    if _ == "WA":
        c1 += 1
    if _ == "TLE":
        c2 += 1
    if _ == "RE":
        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())
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 += 1
  elif s = "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())
ac, wa, tle, re = 0, 0, 0, 0
for i in range(n):
	a = input().strip()
    if a == 'AC': ac+=1
    elif a == 'WA': wa += 1
    elif a == 'TLE': tle += 1
    elif a == 'RE': re += 1
print(f"AC x {ac}")
print(f"WA x {wa}")
print(f"TLE x {tle}")
print(f"RE x {re}")

Submission status: Runtime Error

Solution code:
n=int(input())
ac=0
wa=0
tle=0
re=0
for m in range(n):
  a=input()
  if a=='AC':
    ac=ac+1
  elif a=='WA':
    wa=wa+1
  elif a=='TLE':
    tle=tle+1
  else:
    re=re+1
print('AC x %ac' % ac)
print('WA x %wa' % wa)
print('TLE x %tle' % tle)
print('RE x %re' % re)

Submission status: Runtime Error

Solution code:
N = int(input())

 
ansAC = 0
ansWA = 0
ansTLE = 0
ansRE = 0
 
for i in range(N):
  S = input()
  if S == "AC":
    ansAC += 1
  elif S == "TLE":
    ansTLE += 1
  elif S == "WA":
    ansWA += 1
  elif S == "RE":
    ansRE += 1
print("AC x " + ansAC)
print("WA x " + ansWA)
print("TLE x " + ansTLE)
print("RE x " + ansRE)

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
 
ansAC = 0
ansWA = 0
ansTLE = 0
ansRE = 0
 
for i in range(N):
  if i == "AC":
    ansAC += 1
  elif i == "TLE":
    ansTLE += 1
  elif i == "WA":
    ansWA += 1
  elif i == "RE":
    ansRE += 1
print("AC x " + ansAC)
print("WA x " + ansWA)
print("TLE x " + ansTLE)
print("RE x " + ansRE)

Submission status: Runtime Error

Solution code:
N = int(input())
S = input()
 
ansAC = 0
ansWA = 0
ansTLE = 0
ansRE = 0
 
for i in S:
  if i == "AC":
    ansAC += 1
  elif i == "TLE":
    ansTLE += 1
  elif i == "WA":
    ansWA += 1
  elif i == "RE":
    ansRE += 1
print("AC x " + ansAC)
print("WA x " + ansWA)
print("TLE x " + ansTLE)
print("RE x " + ansRE)

Submission status: Runtime Error

Solution code:
N = int(input())
S = list(input())
 
ansAC = 0
ansWA = 0
ansTLE = 0
ansRE = 0
 
for i in S:
  if i == "AC":
    ansAC += 1
  elif i == "TLE":
    ansTLE += 1
  elif i == "WA":
    ansWA += 1
  elif i == "RE":
    ansRE += 1
print("AC x " + ansAC)
print("WA x " + ansWA)
print("TLE x " + ansTLE)
print("RE x " + ansRE)

Submission status: Runtime Error

Solution code:
N = int(input())
S = input().split()

ansAC = 0
ansWA = 0
ansTLE = 0
ansRE = 0

for i in S:
  if i == "AC":
    ansAC += 1
  elif i == "TLE":
    ansTLE += 1
  elif i == "WA":
    ansWA += 1
  elif i == "RE":
    ansRE += 1
print("AC x " + ansAC)
print("WA x " + ansWA)
print("TLE x " + ansTLE)
print("RE x " + ansRE)

Submission status: Runtime Error

Solution code:
a,b,c,d=0,0,0,0
N=int(input())
S=[input() for _ in range(N)]
for i in range(N):
    if S[i]=='AC':
        a=a+1
    elif S[i]=='WA':
        b=b+1
    elif S[i]=='TLE':
        c=c+1
    elif S[i]=='RE':
        d=d+1
print('AC x　'+str(a))        
print('WA ×　'+str(b))    
print('TLE ×　'+str(c))       
print('RE ×　'+str((d))

Submission status: Runtime Error

Solution code:
a,b,c,d=0
N=int(input())
S=[input() for _ in range(N)]
for i in range(N):
    if S[i]=='AC':
        a=a+1
    elif S[i]=='WA':
        b=b+1
    elif S[i]=='TLE':
        c=c+1
    elif S[i]=='RE':
        d=d+1
print('AC ×　{}'.format(a))        
print('WA ×　{}'.format(b))       
print('TLE ×　{}'.format(c))       
print('RE ×　{}'.format(d))

Submission status: Runtime Error

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

print('AC x ' + 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 i in range(N)]

ac = 0
wa = 0
tle = 0
re = 0
for s in S:
  if s == 'AC': ac += 1
  elif s == 'WA': wa += 1
  elif s == 'TLE': tle += 1
  elif s == 'RE'; re += 1

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
A = [input().split() for _ in range(n)]
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())
A = [input() for _ in range(n)]
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())
x = []
for i in range(n):
    x.append(raw_input())
print(x)

C0, C1, C2, C3 = 0, 0, 0, 0
for i in range(n):
    if x[i] == "AC":
        C0 += 1
    elif x[i] == "WA":
        C1 += 1
    elif x[i] == "TLE":
        C2 += 1
    else:
        C3 += 1

print("AC * " + str(C0))
print("WA * " + str(C1))
print("TLE * " + str(C2))
print("RE * " + str(C3))

Submission status: Runtime Error

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

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

for i range(N):
  if S[i] =="AC":
    a+=1
  elif S[i] =="WA":
    w+=1
  elif S[i] =="TLE":
    t+=1
  elif S[i] =="RE":
    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:
N= int(input())
S=[input() for _ in range(N)]

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

for i range(N):
  if S[i] =="AC":
    a+=1
  elif S[i] =="WA":
    w+=1
  elif S[i] =="TLE":
    t+=1
  elif S[i] =="RE":
    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:
N= int(input())
S=[ input() for _ in range(N) ]

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

for i range(N):
  if S[i] =="AC":
    a+=1
  elif S[i] =="WA":
    w+=1
  elif S[i] =="TLE":
    t+=1
  elif S[i] =="RE":
    r+=1

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

Submission status: Runtime Error

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

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

for i range(N):
  if S[i] =="AC":
    a+=1
  elif S[i] =="WA":
    w+=1
  elif S[i] =="TLE":
    t+=1
  elif S[i] =="RE":
    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:
N= int(input())
S=[ input() for _ in range(N) ]

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

for i range(N):
  if S[i]=="AC":
    a+=1
  elif S[i]=="WA":
    w+=1
  elif S[i]=="TLE":
    t+=1
  elif S[i]=="RE":
    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:
N= int(input())
S=[ input() for _ in range(N) ]

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

for i range(N):
  if S[i]=="AC":
    a+=1
  elif S[i]=="WA":
    w+=1
  elif S[i]=="TLE":
    t+=1
  elif S[i]=="RE":
    r+=1

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

Submission status: Runtime Error

Solution code:
N = int(input())
C_0 = 0
C_1 = 0
C_2 = 0
C_3 = 0
for _ in range(N):
    if input() == 'AC':
        C_0 += 1
    elif input() == 'WA':
        C_1 += 1
    elif input() == 'TLE':
        C_2 += 1
    else:
        C_3 += 1
print('AC x {}'.format(C_0))
print('WA x {}'.format(C_1))
print('TLE x {}'.format(C_2))
print('RE x {}'.format(C_3))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
S = [int(input()) for _ 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', AC)
print('WA x', WA)
print('TLE x', TLE)
print('RE x', RE)

Submission status: Runtime Error

Solution code:
N = int(input())
S = [int(input()) for _ 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', AC, '\n')
print('WA x', WA, '\n')
print('TLE x', TLE, '\n')
print('RE x', RE)

Submission status: Runtime Error

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

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

for output in a:
    if output == 'AC':
        c0 += 1
    elif output == 'WA':
        c1 += 1
    elif output == 'TLE':
        c2 += 1
    elif output == '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: Runtime Error

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

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

for output in a:
    if output == 'AC':
        c0 += 1
    elif output == 'WA':
        c1 += 1
    elif output == 'TLE':
        c2 += 1
    elif output == '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: Runtime Error

Solution code:
N = int(input())
C_0 = 0
C_1 = 0
C_2 = 0
C_3 = 0
for _ in range(N):
    if input() == 'AC':
        C_0 += 1
    elif input() == 'WA':
        C_1 += 1
    elif input() == 'TLE':
        C_2 += 1
    else:
        C_3 += 1
print('AC x {}'.format(C_0))
print('WA x {}'.format(C_1))
print('TLE x {}'.format(C_2))
print('RE x {}'.format(C_3))

Submission status: Runtime Error

Solution code:
n = int(input())
ac = 0
wa = 0
tle = 0
re = 0
for i in range(n):
  k = input().upper()
  if k == 'AC':
    ac +=1
  elif k == 'WA':
    wa +=1
  elif k == 'TLE':
    tle +=1
  elif k == 'RE':
    re +=1
    
print('AC x ' + ac + '\n' + 'WA x ' + wa + '\n' + 'TLE x ' + tle + '\n' + 'RE x ' + re)

Submission status: Runtime Error

Solution code:
n=int(input())
ac=0
wa=0
tle=0
re=0
for _ in range(n):
    s=input()
    if s=="AC":
        a+=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: Runtime Error

Solution code:
N = int(input())
C0 = 0
C1 = 0
C2 = 0
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 " + C0)
print("WA x " + C1)
print("TLE x " + C2)
print("RE x " + C3)

Submission status: Runtime Error

Solution code:
n, *s = map(int, open(0).read().split())

c0 = s.count('AC')
c1 = s.count('WA')
c2 = s.count('TLE')
c3 = n - (c0 + c1 + c2)

print('AC x ' + str(c0), 'WA x ' + str(c1), sep='\n')
print('TLE x ' + str(c2), 'RE x ' + str(c3), sep='\n')

Submission status: Runtime Error

Solution code:
n=int(input())
a=0
b=0
c=0
d=0
for i in range(n):
  s=input()
  if s=="AC":
    a=a+1
  if s=="WA":
    b=b+1
  if s=="TLE":
    c=c+1
  if s=="RE":
    d=d+1
print("AC*a""WA*b""TLE*c""RE*d)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
AC = 0
WA = 0
TLE = 0
RE = 0
for i in range(0, n):
  if "AC" : AC += 1
  else if "WA" : WA += 1
  else if "TLE" : TLE += 1
  else if "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: Runtime Error

Solution code:
string1 = int(input())
string2 = "AC" 
string3 = string1.count(string2)
print("AC x {}".format(string3))
string4 = "WA" 
string5 = string1.count(string4)
print("WA x {}".format(string5))
string6 = "TLE" 
string7 = string1.count(string6)
print("TLE x {}".format(string7))
string8 = "RE" 
string9 = string1.count(string8)
print("RE x {}".format(string9))

Submission status: Runtime Error

Solution code:
l = int(input())
n = []
for i in range(l):
  n.append(input())
ac = 0
wa = 0
tle = 0
re =0
for i in n:
  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: Runtime Error

Solution code:
l = input()
n = []
for i in range(l):
  n.append(input())
ac = 0
wa = 0
tle = 0
re =0
for i in n:
  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: Runtime Error

Solution code:
l = input
n = []
for i in range(l):
  n.append(input())
ac = 0
wa = 0
tle = 0
re =0
for i in n:
  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: Runtime Error

Solution code:
n = int(input())
ac=0
wa=0
tle=0
re=0
for i range(n):
  x = input()
  if x =='AC':
    ac+=1
  if x =='WA':
    wa+=1
  if x =='TLE':
    tle+=1
  if x =='RE':
    re+=1
    
print('AC x {}'.format(ac))
print('WA x {}'.format(wa))
print('TLE x {}'.format(tle))
print('RE x {}'.format(re))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
s = list(input() for i in range(n))
a = s.count("AC")
w = s.count("WA")
t = s.count("TLE")
r = s.count("RE")

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:
N = int(input())

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

for i in range(N):
  s = input()
  if(s == "AC"):
    AC += 1
  elif(s == "WA"):
    WA += 1
  elif(s == "TLE"):
    TLE += 1
  elif(s == "RE"):
    RE += 1
    
print("AC x {}".format(AC))
print("WA x {}".format(WA)
print("TLE x {}".format(TLE))
print("RE x {}".format(RE))

Submission status: Runtime Error

Solution code:
a = []
b = 0
c = 0
d = 0
e = 0
i = 0
n = int(input())
for i in range(n):
	str = input()
    a.append(str)
    if a[i] == "AC":
    	b = b + 1
	else if a[i] == "WA":
    	c = c + 1
    else if a[i] == "TLE":
    	d = d + 1
    else if a[i] == "RE":
      	e = e + 1
print("AC x" b)
print("WA x" c)
print("TLE x" d)
print("RE x" e)

Submission status: Runtime Error

Solution code:
N = int(input())
i = 1
cnt_ac = 0
cnt_wa = 0
cnt_tle = 0
cnt_re = 0

while i <= N:
  s = input()
  if s == 'AC':
    cnt_ac += 1
  elif s == 'WA':
    cnt_wa += 1
  elif s == 'TLE':
    cnt_tle += 1
  elif s == 'RE':
    cnt_re += 1

print('AC ×　' + str(cnt_ac))
print('WA ×　' + str(cnt_wa))
print('TLE ×　' + str(cnt_tle))
print('RE ×　' + str(cnt_re))

Submission status: Runtime Error

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

for A in N :
    str = input()
    if str == 'AC' :
        C0 += 1
    if str == 'WA' :
        C1 += 1
    if str == 'TLE':
        C2 += 1
    if str == '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 = 0
C1 = 0
C2 = 0
C3 = 0

for A in N :
    str = input()
    if str == 'AC' :
        C0 += 1
    if str == 'WA' :
        C1 += 1
    if str == 'TLE':
        C2 += 1
    if str == 'RE' :
        C3 += 1

print('AC x ' + C0)
print('WA x ' + C1)
print('TLE x ' + C2)
print('RE x ' + C3)

Submission status: Runtime Error

Solution code:
scores=[input() for _ in range(N)]
AC=WA=TLE=RE=0
for score in scores:
  if score == 'AC':
    AC += 1
  elif score == 'WA':
    WA += 1
  elif score == '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: Runtime Error

Solution code:
N=int(input())
scores=[input() for _ in range(N)]
AC=WA=TLE=RE=0
for score in scores:
  if score == 'AC':
    AC += 1
  elseif score == 'WA':
    WA += 1
  elseif score == '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: Runtime Error

Solution code:
n=int(input())
from collections import Counter
A=[]
for i in range(n):
  A.append(int(input()))
C=Counter(A)
print(f"""AC x {C["AC"]}
WA x {C["WA"]}
TLE x {C["TLE"]}
RE x {C["RE"]}""")

Submission status: Runtime Error

Solution code:
n = int(input())
c0, c1, c2, c3 = [0 for i in range(4)]
for j in range(n):
  judge = input()
  c0 += 1 if judge == "AC" else c1 += 1 if judge == "WA" else c2 += 1 if judge == "TLE" 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:
import sys
input()
d=dict.fromkeys('AC WA TLE RE'.split(),0)
for ln in sys.stdin:
    d[ln.strip()]+=1
for k,v in ct.items():
    print(k,'x',v)

Submission status: Runtime Error

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