帮忙看看,python
https://thumbnail1.baidupcs.com/thumbnail/cc0fd511dtc3d3b03aeab61a9c8cdaf9?fid=1590253992-250528-1046011612189491&rt=pr&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-g3vRBOCbuIutHvEAK2LAifypTP0%3d&expires=8h&chkbd=0&chkv=0&dp-logid=317510657722662515&dp-callid=0&time=1672210800&size=c1463_u915&quality=90&vuk=1590253992&ft=image&autopolicy=1https://thumbnail1.baidupcs.com/thumbnail/560805e11n5296ee909031746fa5d09e?fid=1590253992-250528-454395730293241&rt=pr&sign=FDTAER-DCb740ccc5511e5e8fedcff06b081203-K2qkmTXF%2frr6oeSAs4TMZ1TuEWc%3d&expires=8h&chkbd=0&chkv=0&dp-logid=317510657722662515&dp-callid=0&time=1672210800&size=c1463_u915&quality=90&vuk=1590253992&ft=image&autopolicy=1 from math import pi
a = int(input())
n = int(input())
print(round(a ** 2 - (pi * (a / n / 2) ** 2) * n ** 2, 2))
PI = 3.1415926
a = int(input())
input()
print("{:.2f}".format(a**2 * (1 - PI / 4)))
页:
[1]