#5028. Leftrightarrow
0
Leftrightarrow
Leftrightarrow
题目描述
You are given a string consisting of <, , and >.
确定字符串 是否为一个 双向箭头 字符串。
当且仅当存在正整数 使得 是由一个 <、 个 和一个 > 按此顺序拼接而成且长度为 时, 才是双向箭头字符串。
输入格式
The input is given from Standard Input in the following format:
输出格式
If is a bidirectional arrow string, print ; otherwise, print .
Yes
==>
No
>
No
提示
is a string of length between and , inclusive, consisting of <, , and >.<====> is a concatenation of one <, four s, and one >, in this order, so it is a bidirectional arrow string.
Hence, print .
==> does not meet the condition for a bidirectional arrow string.
Hence, print .
标签: AtCoder|abc345A
来源
AtCoder|abc345A