From 0cf22c94832a4ae44536b25ec5d5c0e2132b1069 Mon Sep 17 00:00:00 2001 From: Christopher Powroznik Date: Sun, 23 Oct 2022 14:37:15 -0700 Subject: fixed duplicated calculation --- entries/Metroxe/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'entries/Metroxe') diff --git a/entries/Metroxe/index.html b/entries/Metroxe/index.html index 98ac5b9..cb85a24 100644 --- a/entries/Metroxe/index.html +++ b/entries/Metroxe/index.html @@ -23,7 +23,7 @@ const n1 = s.substring(i1 + 1); const n2 = i2 === -1 ? s.substring(0, i1 - 1) : s.substring(i2 + 1, i1); const v = Number(n1) + Number(n2); - const output = `${s},${Number(n1) + Number(n2)}`; + const output = `${s},${v}`; document.getElementById("sequence").innerText = output; const next = document.getElementById("next"); -- cgit v1.2.3-70-g09d2