From 7d5bd4857e22e8947b62feeb9ba7b73f6bc3ab0a Mon Sep 17 00:00:00 2001 From: Kacper Kruczek Date: Sun, 1 Jul 2018 11:35:34 +0200 Subject: [PATCH] 02 input fix --- 02-rozwiazanie.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/02-rozwiazanie.js b/02-rozwiazanie.js index 2af6f2b..4f50ee7 100644 --- a/02-rozwiazanie.js +++ b/02-rozwiazanie.js @@ -14,16 +14,16 @@ let n = parseInt(process.argv[2]); let p1 = parseArray(process.argv[3]); let p2 = parseArray(process.argv[4]); -let f = new Polynomial.Class(p1); -let g = new Polynomial.Class(p2); -mul = Polynomial.multiply(f, g, 2).coefficients; +let f = new Polynomial.Class(n, p1); +let g = new Polynomial.Class(n, p2); +mul = Polynomial.multiply(f, g).coefficients; try { - div = Polynomial.divide(f, g, 2).coefficients + div = Polynomial.divide(f, g).coefficients } catch (e) { console.log(e) } try { - gcd = Polynomial.gcd(f, g, 2).coefficients; + gcd = Polynomial.gcd(f, g).coefficients; } catch (e) { console.log(e); }