#C5570. Special Lending Identifier Checker
Special Lending Identifier Checker
Special Lending Identifier Checker
You are given a string lending_id
. Your task is to determine if this string is both a palindrome and has an even length.
A string is a palindrome if it reads the same forwards and backwards. In addition to being a palindrome, the length of the string must be even.
In mathematical terms, let \( s \) be the input string. You must check whether:
\[ s = reverse(s) \quad \text{and} \quad |s| \equiv 0 \pmod{2} \]
If both conditions are satisfied, output True
; otherwise output False
.
inputFormat
The input consists of a single line containing a non-empty string lending_id
composed of digits.
outputFormat
Output a single line containing True
if lending_id
is a palindrome and its length is even, or False
otherwise.
123321
True