#P9686. Identify Failed Test Cases

    ID: 22833 Type: Default 1000ms 256MiB

Identify Failed Test Cases

Identify Failed Test Cases

A programmer was excitedly coding when he suddenly noticed that the judging system stopped responding during his submission. Upon checking the backend logs, you have access to the judge results of each test case. The relation between the judge result and whether a test case has passed is as follows:

(\texttt{AC}): Passed
(\texttt{WA}): Failed
(\texttt{TLE}): Failed
(\texttt{MLE}): Failed

Your task is to output the indices (1-indexed) of the test cases that did not pass. If all test cases pass, output 0.

inputFormat

The first line of input is a single integer (n) representing the number of test cases. The following (n) lines each contain a string which is one of the following: (\texttt{AC}), (\texttt{WA}), (\texttt{TLE}), (\texttt{MLE}), representing the judge result for that test case.

outputFormat

Print a single line containing the 1-indexed indices of the test cases that did not pass, separated by a space. If every test case passed, print 0.

sample

4
AC
WA
AC
TLE
2 4