参考答案:
#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; }
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))
注册一个 xfxcy 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 xfxcy 通用账户