fork download
  1. r,d=input().split()
  2. r=float(r)
  3. d=float(d)
  4. pi=3.141592654
  5. R= r*r-(d*d)/4
  6. pole= R*pi
  7.  
  8. print(pole)
Success #stdin #stdout 0.04s 9596KB
stdin
1000 1500
stdout
1374446.786125