mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
19 lines
381 B
Java
19 lines
381 B
Java
class C {
|
|
int x;
|
|
|
|
int b(boolean[] b, C[] c, int n) {
|
|
int i = n;
|
|
while (i >= 0 && (<selection>b[i] || c[n].x == c[i].x</selection>)) {
|
|
i--;
|
|
}
|
|
return i;
|
|
}
|
|
|
|
int a(boolean[] b, C[] c, int n) {
|
|
int i = n;
|
|
while (i < c.length && (b[i] || c[n].x == c[i].x)) {
|
|
i++;
|
|
}
|
|
return i;
|
|
}
|
|
} |