Advertisement
Guest User

MainClass.java

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