code stringlengths 3 6.57k |
|---|
range(1, n + 1) |
np.arange(n**2 + 1) |
np.arange(1, n + 1) |
np.minimum(res // i, n) |
max(axis=1) |
int(sys.stdin.readline() |
rstrip() |
np.array(sys.stdin.read() |
split() |
print(*res[p], sep="\n") |
a() |
sys.stdin.readline() |
rstrip() |
print("YES") |
int(n) |
print("YES") |
print("NO") |
b() |
np.eye(N=3, k=-1, dtype=np.int64) |
int(sys.stdin.readline() |
rstrip() |
Algebra.matrix_pow(a, n - 1, mod) |
print(a[2][0]) |
c() |
map(int, sys.stdin.readline() |
split() |
print(-1, -1, -1) |
print(*cnt, sep=" ") |
d() |
map(int, sys.stdin.read() |
split() |
bi_l(lis, x) |
print(n - bi_l(lis, inf) |
a() |
int(sys.stdin.readline() |
rstrip() |
print(n - 1) |
b() |
sys.stdin.readline() |
rstrip() |
print(-1) |
print("a") |
c() |
map(int, sys.stdin.readline() |
split() |
map(int, sys.stdin.readline() |
split() |
map(int, sys.stdin.readline() |
split() |
sys.stdin.readline() |
rstrip() |
range(r) |
deque([(sy, sx) |
np.full((r, c) |
queue.popleft() |
queue.append((i, j) |
print(int(dist[gy, gx]) |
d() |
set([4, 9]) |
count(d) |
f(n) |
int(d) |
str(n) |
count(d) |
map(int, sys.stdin.readline() |
split() |
print(f(b) |
f(a - 1) |
a() |
map(int, sys.stdin.readline() |
split() |
print(t - s + 1) |
b() |
sys.stdin.read() |
split() |
defaultdict(int) |
print(sorted(res.items() |
c() |
map(int, sys.stdin.read() |
split() |
np.array(a) |
np.count_nonzero(a[:, None] % a, axis=1) |
print(np.sum((c + 1) |
d() |
map(int, sys.stdin.read() |
split() |
zip(*([iter(xy) |
lru_cache(maxsize=None) |
count(x1, y1, x2, y2) |
not (x1 <= x <= x2 and y1 <= y <= y2) |
count(x1, y1, x - 1, y - 1) |
count(x1, y + 1, x - 1, y2) |
count(x + 1, y1, x2, y - 1) |
count(x + 1, y + 1, x2, y2) |
max(res, cnt) |
print(count(1, 1, w, h) |
a() |
int(sys.stdin.readline() |
rstrip() |
print((n + 1) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.