注意、要将输出转化为整型。如输入a=10,b=10,乘积c =100,反转后时001,输出不是001而是1。题目没说清楚
a,b = map(int,input().split())
c = a * b
c = str(c)[::-1]
print(int(c))
有两个测试点错误。左侧不能是0开头
a,b = map(int,input().split())
c = a * b
c = str(c)[::-1]
print(c)
注意、要将输出转化为整型。如输入a=10,b=10,乘积c =100,反转后时001,输出不是001而是1。题目没说清楚
a,b = map(int,input().split())
c = a * b
c = str(c)[::-1]
print(int(c))
有两个测试点错误。左侧不能是0开头
a,b = map(int,input().split())
c = a * b
c = str(c)[::-1]
print(c)