Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132231 叶航帅 04倒序输出五位数 Python3 Accepted 65 MS 3772 KB 221 2025-10-07 13:48:50

Tests(10/10):


Code:

a = int(input()) b = a//10000 c = a%10000//1000 d = a%1000//100 e = a%100//10 f = a%10 if f != 0: ans = f*10000 + e*1000 + d*100 + c*10 + b*1 else: ans =str(f)+str(e*1000 + d*100 + c*10 + b*1) print(ans)