시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
1 초 | 128 MB | 83 | 63 | 49 | 85.965% |
Given a text string you must find the number of non-interleaved occurrences of PLU in the string. The letters P, L, U must occur in order, but capitalization is not important and the letters need not be consecutive. For example the string “pppxLLLxuuu” has just one non-interleaved occurrence of PLU.
The first line of input will be a positive integer, n, indicating the number of text strings that follow. Following the positive integer will be n text strings, one per line. Each text string will be at most 80 characters and there will be no blank lines.
For each text string print the maximum number of non-interleaved occurrences of PLU as described above.
3 Please find the number of parts listed under automotive. The building was constructed for the public. pppxLLLxuuu
2 0 1
High School > PLU High School Programming Contest > PLU 2013 > Novice 10번