2 using System
.Runtime
.InteropServices
;
6 static void puts (string s
)
11 public static int jagged ()
13 int[][] j2
= new int [3][];
16 // j2 [0] = new int[] {1, 2, 3};
17 // j2 [1] = new int[] {1, 2, 3, 4, 5, 6};
18 // j2 [2] = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9};
24 for (int i
= 0; i
< j2
.Length
; i
++)
25 for (int j
= 0; j
< (i
+1)*3; j
++)
28 for (int i
= 0; i
< j2
.Length
; i
++)
29 for (int j
= 0; j
< (i
+1)*3; j
++)
35 public static int stest ()
37 string[] sa
= new string[32];
45 for (int i
= 0; i
< sa
.Length
; i
++){
53 public static int atest2 ()
55 int[,] ia
= new int[32,32];
57 for (int i
= 0; i
<ia
.GetLength (0); i
++)
60 for (int i
= 0; i
<ia
.GetLength (0); i
++)
64 for (int i
= 0; i
<ia
.GetLength (0); i
++)
65 ia
.SetValue (i
*i
*i
, i
, i
);
67 for (int i
= 0; i
<ia
.GetLength (0); i
++)
68 if ((int)ia
.GetValue (i
, i
) != i
*i
*i
)
74 public static int atest ()
76 int[] ia
= new int[32];
78 for (int i
= 0; i
<ia
.Length
; i
++)
81 for (int i
= 0; i
<ia
.Length
; i
++)
88 if (ia
.GetValue (2) == null)
91 for (int i
= 0; i
<ia
.Length
; i
++)
92 ia
.SetValue (i
*i
*i
, i
);
94 for (int i
= 0; i
<ia
.Length
; i
++)
95 if ((int)ia
.GetValue (i
) != i
*i
*i
){
96 puts ("Crap: " + i
+ " " + (int) ia
.GetValue (i
) );
105 public static int Main () {