code stringlengths 3 6.57k |
|---|
res.items() |
print(s) |
print("atcoder") |
c() |
sys.stdin.readline() |
rstrip() |
print(sum(not "0" in f for f in s.split("+") |
a() |
map(int, sys.stdin.readline() |
split() |
print("Better" if y > x else "Worse") |
b() |
int(sys.stdin.readline() |
rstrip() |
print(n + 1 if n & 1 else n - 1) |
c() |
map(int, sys.stdin.read() |
split() |
Combinatorics.CombinationsMod() |
print(choose(h + w - 2, h - 1) |
d() |
map(int, sys.stdin.read() |
split() |
np.array(wp) |
reshape(-1, 2) |
f(x) |
np.sort(w * (p - x) |
sum() |
print(optimize.bisect(f, 0, 100) |
a() |
map(int, sys.stdin.readline() |
split() |
print("4:3" if 4 * h == 3 * w else "16:9") |
b() |
sys.stdin.read() |
split() |
abs(y) |
abs(x) |
print(d + z if t == "1" else max(d - z, (d - z) |
c() |
map(int, sys.stdin.read() |
split() |
np.array(lr) |
reshape(q, 2) |
np.zeros(n + 1, dtype=int) |
np.add.at(res, l - 1, 1) |
np.subtract.at(res, r, 1) |
np.cumsum(res, out=res) |
print("".join(map(str, res[:-1]) |
d() |
map(int, sys.stdin.readline() |
split() |
np.array(sys.stdin.readline() |
split() |
np.array(sys.stdin.read() |
split() |
reshape(m, 3) |
csr_matrix((c, (a, b) |
csr_matrix((c, (b, a) |
print(int(np.amax((t - (d_1 + d_2) |
a() |
map(int, sys.stdin.readline() |
split() |
print((b + a - 1) |
b() |
sys.stdin.read() |
split() |
int(n) |
range(n) |
range(n - 1, -1, -1) |
print(row) |
c() |
map(int, sys.stdin.read() |
split() |
sorted(enumerate(a) |
print(*b, sep="\n") |
d() |
map(int, sys.stdin.read() |
split() |
range(n) |
zip(*[iter(ab) |
append(b) |
append(a) |
count(u) |
count(v) |
print(sum(count(0) |
a() |
map(int, sys.stdin.readline() |
split() |
print(c // min(a, b) |
b() |
map(int, sys.stdin.read() |
split() |
np.zeros(n, dtype=int) |
zip(*[iter(lrt) |
print(*a, sep="\n") |
c() |
map(int, sys.stdin.read() |
split() |
np.array([0] + a) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.