# your code goes here t = gets.to_i t.times do r = gets.to_i a = Math.sqrt(3) * r p (a / 2) * (r + Math.sqrt(r * r - a * a / 4)) end