#C6462. Check Palindrome Number
Check Palindrome Number
Check Palindrome Number
Given an integer \( n \), determine if it is a palindrome. A number is considered a palindrome if it reads the same forwards and backwards. In other words, \( n \) is a palindrome if \( n = r(n) \), where \( r(n) \) represents the reverse of \( n \). If the number is a palindrome, output 1
; otherwise, output 0
.
inputFormat
The input consists of a single integer \( n \) provided via standard input (stdin).
outputFormat
Output a single integer: 1
if \( n \) is a palindrome, and 0
otherwise. The output should be written to standard output (stdout).
5
1