-->
当前位置:首页 > 题库

PROGRAMMING:People gather by category

Luz5年前 (2021-05-10)题库457
Xiao Ming likes to classify his classmates. Each class is marked with a capital letter. He is only willing to get close to some types of classmates. Please pick out Xiao Ming's classmates who he would like to be close to.
###Input format:
Enter three lines.
The first line is a positive integer m, M is Xiaoming's student number.
The second line is a string of uppercase letters, in which the characters indicate the type Xiao Ming likes.
The third line is a string composed of capital letters, in which the characters are of the type of Xiao Ming (including himself), in order according to the student number. The student number starts from 1, without interruption and repetition. Xiao Ming has no more than 1000 classmates.
###Output format:
According to the order from small to large, output the student number of the students Xiao Ming likes. There is a space after each student number.
If you don't find a classmate Xiao Ming likes, output "lonely Xiao Ming".
###Input example:
```in
one
ABC
BPTYHJKAMNBPHC
```
###Output example:
```out
8 11 14
```






answer:If there is no answer, please comment