#304. 字符串子串条件检查
字符串子串条件检查
Check Specific Substring
Background
Congcong has recently been studying some special string patterns. He discovered an interesting rule and needs your help to determine if a given string conforms to this rule.
Problem Description
Return true if the given string contains an appearance of "xyz" where the "xyz" is not directly preceded by a period (.). So "xxyz" counts but "x.xyz" does not.
Input Format
Input is given from standard input in the following format.
A single string .
Output Format
Output is printed to standard output in the following format.
Output "true" if the string meets the condition; otherwise, output "false".
Sample
abcxyz
true
abc.xyz
false
xyz.abc
true
Sample Explanation
For the first sample "abcxyz\