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

PROGRAMMING:Whirlpool Naruto (easy)

Luz5年前 (2021-05-10)题库517
Naruto is very much like his mother jiuxinnai, who likes to use $$desuyene $$as a modal particle when talking. But he's not like nine Sinai. Every sentence he said contained a subsequence of $$desuyene $.
What if not? That's not what Naruto said!!!
###Input format:
The first line contains a positive integer, $$t $, indicating that there is a $$t $$group sample ($) (1 < = T < = 20)$$
Each group of samples has a string of length $$n $$(1 < = n < = 1e6) $$containing only lowercase letters
###Output format:
For each set of samples, we need to determine whether the string is Naruto
If Naruto said so, output $$yes $$and delete the string after $$desuyene $$with the largest subscript dictionary order in the next line
If not, output $$No$$
###Input example:
Here is a set of inputs. For example:
```in
one
ddesuyene
```
###Output example:
The corresponding output is given here. For example:
```out
YES
d
```
```tips
Tips: empty strings should also occupy one line
```







answer:If there is no answer, please comment