#247. 查找字符串中连续字符
查找字符串中连续字符
Consecutive Double 'x' Check
Background
Congcong has recently been studying string properties. He found that in some strings, specific characters appear consecutively.
Problem Description
Given a string, return true if the first instance of 'x' in the string is immediately followed by another 'x'.
Input Format
Input is given from Standard Input in the following format.
A single line containing a string .
Output Format
Output is printed to Standard Output in the following format.
Output
trueif the condition is met, otherwise outputfalse.
Sample
axxbb
true
axaxax
false
xxxxx
true
Sample Explanation
Sample 1: In the string "axxbb\