import java.util.*;
import java.lang.*;
import java.io.*;
class A {
int g[] = new int[100000], k, s = 0;
long st, en;
// one
for(int i = 1; i < g.length; i++) {
k
= (int)(g.
length * Math.
random()); // not used this s += k;
g[i] = 1;
}
System.
out.
println("One time " + (en
- st
)/1000000.
d + " msc");
// two
for(int i = 1; i < g.length; i++) {
k
= (int)(g.
length * Math.
random()); s += k;
g[k] = 1;
}
System.
out.
println("Two time " + (en
- st
)/1000000.
d + " msc"); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBBIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbiB7CgkJaW50IGdbXSA9IG5ldyBpbnRbMTAwMDAwXSwgaywgcyA9IDA7CgkJbG9uZyBzdCwgZW47CgkJLy8gb25lCgkJc3QgPSBTeXN0ZW0ubmFub1RpbWUoKTsgCgkJZm9yKGludCBpID0gMTsgaSA8IGcubGVuZ3RoOyBpKyspIHsKCQkJayA9IChpbnQpKGcubGVuZ3RoICogTWF0aC5yYW5kb20oKSk7IC8vIG5vdCB1c2VkIHRoaXMKCQkJcyArPSBrOwoJCQlnW2ldID0gMTsKCQl9CgkJZW4gPSBTeXN0ZW0ubmFub1RpbWUoKTsKCQlTeXN0ZW0ub3V0LnByaW50bG4oIk9uZSB0aW1lICIgKyAoZW4gLSBzdCkvMTAwMDAwMC5kICsgIiBtc2MiKTsKIAoJCS8vIHR3bwoJCXN0ID0gU3lzdGVtLm5hbm9UaW1lKCk7CgkJZm9yKGludCBpID0gMTsgaSA8IGcubGVuZ3RoOyBpKyspIHsKCQkJayA9IChpbnQpKGcubGVuZ3RoICogTWF0aC5yYW5kb20oKSk7CgkJCXMgKz0gazsKCQkJZ1trXSA9IDE7CgkJfQoJCWVuID0gU3lzdGVtLm5hbm9UaW1lKCk7CgkJU3lzdGVtLm91dC5wcmludGxuKCJUd28gdGltZSAiICsgKGVuIC0gc3QpLzEwMDAwMDAuZCArICIgbXNjIik7Cgl9Cn0=