#C81. Adjacent Duplicate Checker
Adjacent Duplicate Checker
Adjacent Duplicate Checker
Given a string s, determine whether it contains at least one pair of identical characters positioned adjacently. In other words, check if there exists an index \(i\) such that \(s_i = s_{i+1}\). If such a pair exists, output True
; otherwise, output False
.
Note: For an empty string or a string with a single character, the output should be False
.
inputFormat
The input is provided through stdin as a single string s. This string can include letters, symbols, or even be empty.
outputFormat
Output via stdout a single line: True
if there exists at least one pair of adjacent duplicate characters; otherwise, output False
.
Aabbcc
True