0
点赞
收藏
分享

微信扫一扫

PTA L1-067:洛希极限 (python)

unadlib 2022-03-11 阅读 221

一、题目要求

在这里插入图片描述
在这里插入图片描述

二、参考代码

s=input().split()
r=float(s[0])
if s[1]=='0':
    r*=2.455
else:
    r*=1.26
print('%.2f'%(r),end=' ')
if r<float(s[2]):
    print('^_^')
else:
    print('T_T')
举报

相关推荐

PTA L1-027 python实现

PTA L1-017 python实现

PTA L1-034 python实现

PTA L1-032 python实现

0 条评论