NC25071. [USACO 2007 Ope l]New Cow IDs
描述
输入描述
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
pypy3 解法, 执行用时: 85ms, 内存消耗: 49444K, 提交时间: 2023-04-11 14:14:40
a=input() s=int(a)+int(a[::-1]) print(s)
Python3 解法, 执行用时: 44ms, 内存消耗: 4536K, 提交时间: 2023-04-13 18:27:40
n=input() print(int(n)+int(n[::-1]))