15 |
|
static Long n1 = new Long(22); |
16 |
|
static Long n2 = new Long(23); |
17 |
|
static Long n3 = new Long(23); |
18 |
< |
|
18 |
> |
|
19 |
|
|
20 |
|
public static void main(String[] args) { |
21 |
|
for (int i = 0; i < LEN; ++i) |
32 |
|
} |
33 |
|
} |
34 |
|
|
35 |
< |
static long nextRandom(long seed) { |
35 |
> |
static long nextRandom(long seed) { |
36 |
|
return (seed * 0x5DEECE66DL + 0xBL) & ((1L << 48) - 1); |
37 |
|
} |
38 |
|
|
90 |
|
nexts = n3.longValue(); |
91 |
|
} |
92 |
|
|
93 |
< |
if (nexts != s) |
93 |
> |
if (nexts != s) |
94 |
|
--n; |
95 |
|
else if (done) |
96 |
|
break; |
98 |
|
} |
99 |
|
done = true; |
100 |
|
total += s; |
101 |
< |
if (s == 0) |
101 |
> |
if (s == 0) |
102 |
|
throw new Error("Saw uninitialized value"); |
103 |
|
} |
104 |
|
} |