/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
int capacity = 10;
int v[] = new int[capacity];
v[0] = 0;
v[capacity - 1] = 15;
for (int i = 1, base = 10; i < v.length - 1; i++, base += 20) {
v[i] = base + r.nextInt(11); //11 pois o ultimo índice é exclusive
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVJhbmRvbSByID0gbmV3IFJhbmRvbSgpOwoJCWludCBjYXBhY2l0eSA9IDEwOwoJCWludCB2W10gPSBuZXcgaW50W2NhcGFjaXR5XTsKCQoJCXZbMF0gPSAwOwoJCXZbY2FwYWNpdHkgLSAxXSA9IDE1OwoJCgkJZm9yIChpbnQgaSA9IDEsIGJhc2UgPSAxMDsgaSA8IHYubGVuZ3RoIC0gMTsgaSsrLCBiYXNlICs9IDIwKSB7CgkJICAgIHZbaV0gPSBiYXNlICsgci5uZXh0SW50KDExKTsgLy8xMSBwb2lzIG8gdWx0aW1vIMOtbmRpY2Ugw6kgZXhjbHVzaXZlCgkJfQoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbihBcnJheXMudG9TdHJpbmcodikpOwoJfQp9
[0, 10, 30, 50, 74, 93, 115, 133, 159, 15]