Edinburgh Competition 2019 |
---|
Закончено |
Palindrome is a word that looks the same when you read it from the beginning and from the end. For example "kayak", "level". The same is with numbers: $$$909$$$, $$$1221$$$, $$$12321$$$ are palindromes. For a given list of numbers, please print how many of them are palindromes.
In the first line of input we have a single number $$$1\leq n \leq 100$$$. In the next line there follows $$$n$$$ positive numbers, not bigger than $$$10^{50}$$$.
Print a single number: how many among input numbers are palindromes?
4 3 546 74647 74565
2
Название |
---|