#247. 查找字符串中连续字符

    ID: 247 Type: Default 1000ms 256MiB Tried: 0 Accepted: 0 Difficulty: (None) Uploaded By: Tags>codingbatWarmup-2gesp3字符串循环结构

查找字符串中连续字符

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 SS.

Output Format

Output is printed to Standard Output in the following format.

Output true if the condition is met, otherwise output false.

Sample

axxbb
true
axaxax
false
xxxxx
true

Sample Explanation

Sample 1: In the string "axxbb\