diff --git a/areal.cpp b/areal.cpp new file mode 100644 index 0000000..ab60cae --- /dev/null +++ b/areal.cpp @@ -0,0 +1,11 @@ +// GitHub: EntityPlantt/Kattis +#include +#include +using namespace std; +int main() { + long double n; + cin >> n; + cout.precision(20); + cout << sqrt(n) * 4.0; + return 0; +} \ No newline at end of file diff --git a/areal.hs b/areal.hs new file mode 100644 index 0000000..7b54ec7 --- /dev/null +++ b/areal.hs @@ -0,0 +1,5 @@ +-- GitHub: EntityPlantt/Kattis +main = do + n <- getLine + let x = (read n :: Double) + print(sqrt x * 4) \ No newline at end of file diff --git a/areal.js b/areal.js new file mode 100644 index 0000000..db77751 --- /dev/null +++ b/areal.js @@ -0,0 +1,4 @@ +// GitHub: EntityPlantt/Kattis +require("readline").createInterface({input: process.stdin}).on("line", n => { + console.log(Math.sqrt(parseFloat(n)) * 4); +}); \ No newline at end of file diff --git a/areal.py b/areal.py new file mode 100644 index 0000000..5fe7384 --- /dev/null +++ b/areal.py @@ -0,0 +1,3 @@ +# GitHub: EntityPlantt/Kattis +import math +print(math.sqrt(float(input())) * 4) \ No newline at end of file diff --git a/areal.rb b/areal.rb new file mode 100644 index 0000000..5729500 --- /dev/null +++ b/areal.rb @@ -0,0 +1,2 @@ +# GitHub: EntityPlantt/Kattis +puts Math.sqrt($stdin.read.to_f) * 4.0 \ No newline at end of file