コード例 #1
0
 public void OJ074_Search2DMatrixTest4()
 {
     int[,] matrix = new int[,]{
         {1},
     };
     bool result = new OJ074_Search2DMatrix().SearchMatrix(matrix, 0);
     Assert.AreEqual(false, result);
 }
コード例 #2
0
 public void OJ074_Search2DMatrixTest3()
 {
     int[,] matrix = new int[,]{
         {1, 3, 5, 7},
         {10, 11, 16, 20},
         {23, 30, 34, 50},
     };
     bool result = new OJ074_Search2DMatrix().SearchMatrix(matrix, 31);
     Assert.AreEqual(false, result);
 }