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

PROGRAMMING:Repeater DH

Luz5年前 (2021-05-10)题库379
There is a repeater called DH. He is good at repeating and has principles. Only those sentences that contain a special character can repeat. Today, he and Xuemei made a bet. Xuemei told DH that if you insist on not repeating for one day, I'll ask you to do exactly three things. DH agreed. But on this day, DH was extremely painful because he couldn't repeat, so he asked you for help, Ask you to help him to repeat. Below are some strings composed of lowercase letters and that special character. If there is this special character in the string, you will output it. If there is no special character, you will not output it. If there is no one need to repeat, output DH Xue Zhang Du Bu Qi!!!!!!
###Input format:
The first line gives a number N and a character c to represent how many strings 1 < = n < = 10 < br > are there
The following N lines give n strings, the length of which is no more than 100
###Output format:
If there is a special character string, it will not be output. If there is no special character string that needs to be read again, it will be output < br > if there is no special character string
dh xue zhang dui bu qi !!!!!!
###Input sample 1:
Here is a set of inputs. For example:
```in
3 c
aaa
ccc
acb
```
###Output sample 1:
The corresponding output is given here. For example:
```out
ccc
acb
```
###Input sample 2:
Here is a set of inputs. For example:
```in
2 a
bbb
ccc
```
###Output sample 2:
The corresponding output is given here. For example:
```out
dh xue zhang dui bu qi !!!!!!
```







answer:If there is no answer, please comment