2 条题解

  • 1
    @ 2024-7-25 12:47:41

    参考答案:

    #include <iostream>
    
    using namespace std;
    
    int main() 
    {
    	int a, b, c;
    	int l, w, h;
    
    	cin >> a >> b >> c;
    	l = sqrt(a * b / c);
    	w = sqrt(a * c / b);
    	h = sqrt(b * c / a);
    
    	cout << 4 * (l + w + h) << endl;
    
    	return 0;
    }
    
    • 0
      @ 2025-10-14 19:08:17

      Python:

      import math
      
      a, b, c = map(int, input().split())
      temp = math.sqrt(a*b*c)
      # 算出三边
      x = temp/a
      y = temp/b
      z = temp/c
      print("%d" % ((x+y+z)*4))
      
      
      • 1

      信息

      ID
      39
      时间
      1000ms
      内存
      256MiB
      难度
      9
      标签
      递交数
      10
      已通过
      5
      上传者