#C3813. Check Palindrome Integer
Check Palindrome Integer
Check Palindrome Integer
Given a non-negative integer \(n\), determine whether it is a palindrome. An integer is considered a palindrome if it remains the same when its digits are reversed. In other words, if \(n = d_0d_1 \ldots d_k\), then \(n\) is a palindrome if and only if \(d_0d_1 \ldots d_k = d_k \ldots d_1d_0\).
The input consists of a single non-negative integer. Your program should output True
if the number is a palindrome and False
otherwise.
inputFormat
The input is provided via standard input and consists of a single non-negative integer \(n\) (\(0 \leq n \leq 10^{18}\)).
outputFormat
The output should be printed to standard output. It is a single line containing either True
if \(n\) is a palindrome or False
otherwise.
121
True