From 1bc8a3d788dda294b7dfeca41675300bc2c4a15b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20D=C4=85bkowski?= Date: Mon, 25 Jun 2018 16:58:36 +0000 Subject: [PATCH] =?UTF-8?q?Usu=C5=84=20'Main.java'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Main.java | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 Main.java diff --git a/Main.java b/Main.java deleted file mode 100644 index 5cd6a67..0000000 --- a/Main.java +++ /dev/null @@ -1,38 +0,0 @@ -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Scanner; - -public class Main { - - public static void main(String[] args) { - int mod = Integer.parseInt(args[0]); - Polynomials poly = new Polynomials(mod); - ArrayList f = new ArrayList<>(); - ArrayList g = new ArrayList<>(); - - String[] tmpString = args[1].split(","); - String[] tmpString2 = args[2].split(","); - - for (String s : tmpString){ - f.add(Integer.parseInt(s)); - } - for (String s : tmpString2){ - g.add(Integer.parseInt(s)); - } - - System.out.print("["); - for (int i : poly.multiply(f, g)){ - System.out.print(i + " "); - } - System.out.print("], ["); - for (int i : poly.divModN(f, g)){ - System.out.print(i + " "); - } - System.out.print("], ["); - for (int i : poly.gcc(f, g)){ - System.out.print(i + " "); - } - System.out.print("]"); - - } -} \ No newline at end of file