33 |
|
public static void main(String[] args) throws Exception { |
34 |
|
int N = 500; |
35 |
|
List source = new ArrayList(3 * N); |
36 |
< |
List target[]= new List[N+1]; |
37 |
< |
int index[] = new int[N+1]; |
36 |
> |
List[] target = new List[N+1]; |
37 |
> |
int[] index = new int[N+1]; |
38 |
|
for (int i=0; i<=N; i++) { |
39 |
|
List t = new ArrayList(); |
40 |
|
String s = Integer.toString(i, 2); |
50 |
|
} |
51 |
|
} |
52 |
|
|
53 |
< |
List src[] = {source, new LinkedList(source), new Vector(source), |
54 |
< |
Arrays.asList(source.toArray())}; |
53 |
> |
List[] src = { |
54 |
> |
source, |
55 |
> |
new LinkedList(source), |
56 |
> |
new Vector(source), |
57 |
> |
Arrays.asList(source.toArray()) |
58 |
> |
}; |
59 |
|
for (int j=0; j<src.length; j++) { |
60 |
|
List s = src[j]; |
61 |
|
|
79 |
|
if (i != N) |
80 |
|
index[i] = srcSize - index[i] - target[i].size(); |
81 |
|
} |
82 |
< |
List src2[] = {source, new LinkedList(source), new Vector(source), |
83 |
< |
Arrays.asList(source.toArray())}; |
82 |
> |
List[] src2 = { |
83 |
> |
source, |
84 |
> |
new LinkedList(source), |
85 |
> |
new Vector(source), |
86 |
> |
Arrays.asList(source.toArray()) |
87 |
> |
}; |
88 |
|
for (int j=0; j<src2.length; j++) { |
89 |
|
List s = src2[j]; |
90 |
|
|