P5705【深基2.例7】数字反转
a=s[0]
b=s[1]
c=s[2]
d=s[4]
print(f"{d}.{c}{b}{a}")
P5706【深基2.例8】再分肥宅水
ans=float(a[0])/int(a[1])
beizi=2*int(a[1])
print(f"{ans:.3f}\n{beizi}")
P5708【深基2.习2】三角形面积
p=0.5*(a+b+c)
ans=pow((p*(p-a)*(p-b)*(p-c)),0.5)
print(f"{ans:.1f}")
B2029 大象喝水
# -*- coding: utf-8 -*-
h,r= map(int,input().split())
v=3.14*r*r*h
tong=int(20000//v)
print(tong+1)```
标签:洛谷,Python,题解,深基,0.5,int,ans,print
From: https://www.cnblogs.com/ljnljn/p/18518792