fork(5) download
  1. from sys import stdout
  2. import io
  3. import os
  4. from math import sqrt
  5.  
  6. input = io.BytesIO(os.read(0, os.fstat(0).st_size)).readline
  7.  
  8. s1, s3 = [int(i) for i in input().split()]
  9. s2 = (s3 ** 2) / s1
  10. p = (sqrt(s1) + sqrt(s2)) ** 2
  11.  
  12. stdout.write(f"{p:.2f}")
  13.  
Success #stdin #stdout 0.02s 9268KB
stdin
10 20
stdout
90.00