feat(go): add hhcn

This commit is contained in:
tiennm99 committed 2025-11-28 22:53:13 +07:00
1 parent 614996d864
commit 2de84fa54d
1 file changed
+18
+18
View File
@@ -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)
}