题解 | #长方体#
长方体
https://ac.nowcoder.com/acm/contest/18839/1038
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int d=sqrt(a*b/c); int e=sqrt(b*c/a); int f=sqrt(a*c/b); cout<<4*(d+e+f)<<endl; }
长方体
https://ac.nowcoder.com/acm/contest/18839/1038
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int d=sqrt(a*b/c); int e=sqrt(b*c/a); int f=sqrt(a*c/b); cout<<4*(d+e+f)<<endl; }
相关推荐