AtCoder Beginner Contest 173
B
Judge Status Summary
AtCoder
⌀ 0
原题
← AC →
翻译中…

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

翻译中…

样例

Input #1
6
AC
TLE
AC
AC
WA
TLE
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.
Input #2
10
AC
AC
AC
AC
AC
AC
AC
AC
AC
AC
Output #2
AC x 10
WA x 0
TLE x 0
RE x 0
题目信息
题号
abc173_b
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。