Time Limit: 2 sec / Memory Limit: 1024 MB
Input is given from Standard Input in the following format:
N
S1
⋮
SN
Let C0, C1, C2, and C3 be the numbers of test cases for which the verdict is AC, WA, TLE, and RE, respectively. Print the following:
AC x C0
WA x C1
TLE x C2
RE x C3
6
AC
TLE
AC
AC
WA
TLE
AC x 3
WA x 1
TLE x 2
RE x 0