1
0
forked from kalmar/DALGLI0

Usuń 'Main.java'

This commit is contained in:
Rafał Dąbkowski 2018-06-25 16:58:36 +00:00
parent 0f8b02bde2
commit 1bc8a3d788

View File

@ -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<Integer> f = new ArrayList<>();
ArrayList<Integer> 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("]");
}
}