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

PROGRAMMING:Judging the structure of the beginning and end of a string

Luz5年前 (2021-05-10)题库417
Enter a string to determine whether the head and tail correspond. For example, the string 'abcba' corresponds to the beginning and the end. For example, the string '+ - * - +' also corresponds to the beginning and end. For example, the string 'abcbb' does not correspond to the beginning and end.
###Input format:
Enter a string
###Output format:
If the head and tail correspond, output 'yes'
Otherwise output 'no'
###Input example:
```in
abcba
```
###Output example:
```out
yes
```







answer:If there is no answer, please comment