0
点赞
收藏
分享

微信扫一扫

P5705 【深基2.例7】数字反转(python3实现)方法一

西特张 2022-01-26 阅读 32

https://www.luogu.com.cn/problem/P5705

"""

P5705 【深基2.例7】数字反转(python3实现)方法一
https://www.luogu.com.cn/problem/P5705

"""
p=float(input())

q=int(p*10)

a=q//1000

b=q//100%10

c=q//10%10

d=q%10

print("%d"%d,end='.')
print(c,end='')
print(b,end='')
print(a,end='')

举报

相关推荐

0 条评论