Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package curse;
- import java.util.HashSet;
- import java.util.Iterator;
- public class MainClass {
- static R qq = new R(1);
- static int mod = qq.mod;//характеристика поля
- //static int[][] rr = new int[1][1];
- //static M RR = new M(rr);
- static int n = M.n;
- public static void main(String[] args){
- int[][] res1 = new int[n][n];
- for (int i = 0; i < n; i++) res1[i][i] = 1;
- M rt1 = new M(res1); //единичная матрица
- int[][] res2 = new int[n][n];
- for (int i = 0; i < n; i++) res2[i][i] = 1;
- M rt2 = new M(res1); //единичная матрица
- HashSet<M> rtt = new HashSet<>();
- rtt.add(rt1);
- rtt.add(rt2);
- System.out.println(rtt.size());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement