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
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
标签: HBC25071SimpleQuestion gcd与exgcd 数论[USACO 2007 Ope l]New Cow IDs题解