From 2de84fa54df3e785b9ef49aff44f43648659cc38 Mon Sep 17 00:00:00 2001 From: tiennm99 Date: Fri, 28 Nov 2025 22:53:13 +0700 Subject: [PATCH] feat(go): add hhcn --- go/hhcn.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 go/hhcn.go diff --git a/go/hhcn.go b/go/hhcn.go new file mode 100644 index 0000000..487e5ab --- /dev/null +++ b/go/hhcn.go @@ -0,0 +1,18 @@ +package main + +import ( + "fmt" + "math" +) + +func main() { + var A, B, C int64 + fmt.Scan(&A, &B, &C) + + a := math.Sqrt(float64(A*C) / float64(B)) + b := math.Sqrt(float64(A*B) / float64(C)) + c := math.Sqrt(float64(B*C) / float64(A)) + + perimeter := 4 * (int64(a) + int64(b) + int64(c)) + fmt.Println(perimeter) +}