fork download
  1. a = float(input())
  2. S = float(input())
  3.  
  4. b = S / a
  5. P = 2 * (a + b)
  6.  
  7. print(P)
  8.  
Success #stdin #stdout 0.02s 7264KB
stdin
4
20
stdout
18.0