Advertisement
Guest User

MainClass.java

a guest
Apr 24th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. package curse;
  2.  
  3. import java.util.HashSet;
  4. import java.util.Iterator;
  5.  
  6. public class MainClass {
  7.     static R qq = new R(1);
  8.     static int mod = qq.mod;//характеристика поля
  9.     //static int[][] rr = new int[1][1];
  10.     //static M RR = new M(rr);
  11.     static int n = M.n;
  12.  
  13.     public static void main(String[] args){
  14.        
  15.         int[][] res1 = new int[n][n];
  16.         for (int i = 0; i < n; i++) res1[i][i] = 1;
  17.         M rt1 = new M(res1); //единичная матрица
  18.         int[][] res2 = new int[n][n];
  19.         for (int i = 0; i < n; i++) res2[i][i] = 1;
  20.         M rt2 = new M(res1); //единичная матрица
  21.         HashSet<M> rtt = new HashSet<>();
  22.         rtt.add(rt1);
  23.         rtt.add(rt2);
  24.         System.out.println(rtt.size());
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement