Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132227 叶航帅 04四位数移位 Python3 Accepted 58 MS 3756 KB 175 2025-10-07 13:39:57

Tests(8/8):


Code:

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