mirror of
https://github.com/tiennm99/claoj.git
synced 2026-10-13 14:15:56 +00:00
feat(go): add hhcn
This commit is contained in:
1 parent
614996d864
commit
2de84fa54d
1 file changed
+18
+18
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user