[USACO 2007 Ope l]New Cow IDs
题号:NC25071
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

Bessie's bovine thought processes occasionally take her into mathematical realms unfathomed by her barn-mates.
She watched the cows walk by with their serial numbers (1 <= serial_number <= 999,999) on display. She thought perhaps the numbers might have more interesting properties if one calculated the sum of the number and the reverse of that number. Help her perform this calculation.
Here are some examples:
.
23 + 32 = 55
123 + 321 = 444
9730 + 379 = 10109

输入描述:

Line 1: A single integer that is the serial number to be transformed

输出描述:

Line 1: A single integer that is the transformed serial number
示例1

输入

复制
9730

输出

复制
10109