mirror of
https://github.com/tiennm99/claoj.git
synced 2026-08-06 14:23:55 +00:00
feat(cpp): minify hhcn
This commit is contained in:
+2
-5
@@ -2,12 +2,9 @@
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
long long a, b, c;
|
||||
double a, b, c;
|
||||
cin >> a >> b >> c;
|
||||
long long x = sqrt(a * b / c);
|
||||
long long y = sqrt(b * c / a);
|
||||
long long z = sqrt(c * a / b);
|
||||
|
||||
cout << 4 * (x + y + z);
|
||||
cout << 4 * (sqrt(a * b / c) + sqrt(b * c / a) + sqrt(c * a / b));
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user