start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = 0; n = 5; x = 8 | i = abs(x - n) | i = 3; n = 5; x = 8 |
d = 3; s = 7 | s -= d | d = 3; s = 4 |
a = '1' | a = int(a) - 1 | a = 0 |
i = 0; k = 3; q = 99; s = '99910001001' | q = int(s[i:i + k]) | i = 0; k = 3; q = 999; s = '99910001001' |
b = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; c = [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; i = 14 | b[i] = c[i] / 2 | b = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0, 0, 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; c = [2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; i = 14 |
q = -1 | q = -q | q = 1 |
i = 2 | i += 1 | i = 3 |
q = 2; v = [4, -1] | q = v[0] | q = 4; v = [4, -1] |
y = 2 | o = y | o = 2; y = 2 |
b = 2; y = 12 | y += b | b = 2; y = 14 |
l = {'a': 2, 'b': 2}; r = 'c' | l[r] = 1 | l = {'a': 2, 'b': 2, 'c': 1}; r = 'c' |
d = [0, 0, 1, 0, 1, 0, 0, 0]; e = [0, 0, 1, 1, 1, 0, 0, 0, 1]; i = 5; j = 2 | d[i] = e[i] ^ e[i - 1] ^ d[i - j] | d = [0, 0, 1, 0, 1, 1, 0, 0]; e = [0, 0, 1, 1, 1, 0, 0, 0, 1]; i = 5; j = 2 |
d = 3; e = 4; v = 2 | d = min(d, abs(v - e) - 1) | d = 1; e = 4; v = 2 |
d = [3, 0, 1]; m = [3] | m.append(max(d)) | d = [3, 0, 1]; m = [3, 3] |
i = 6; w = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; x = [1, 1, 1, 2, 1] | x[w[i] - 1] += 1 | i = 6; w = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; x = [1, 1, 2, 2, 1] |
b = 'b'; c = 'c' | b = c | b = 'c'; c = 'c' |
i = 595; m = 516; u = [0, 595, 750, 1345] | u = [0, i, m, i + m] | i = 595; m = 516; u = [0, 595, 516, 1111] |
i = 8; s = [True, True, True, False, False, True, True, False, 1, '1'] | s[i] = bool(s[i]) | i = 8; s = [True, True, True, False, False, True, True, False, True, '1'] |
i = 1; l = [0, 1] | l.append(i) | i = 1; l = [0, 1, 1] |
v = 0.00030517578125 | v /= 2 | v = 0.000152587890625 |
i = 1; m = [-20, '-3916237', '-357920', '-3620601', '7374819', '6246457', '-6461594', '266854', '-520', '-470'] | m[i] = int(m[i]) | i = 1; m = [-20, -3916237, '-357920', '-3620601', '7374819', '6246457', '-6461594', '266854', '-520', '-470'] |
n = 1.000000000000001e-110 | n /= 10 | n = 1.000000000000001e-111 |
a = [((1, 1, 1), 3, 1, 1)]; k = 1, 3, 3 | a.append((k, sum(k), max(k), min(k))) | a = [((1, 1, 1), 3, 1, 1), ((1, 3, 3), 7, 3, 1)]; k = (1, 3, 3) |
i = 2; j = 118 | j += i | i = 2; j = 120 |
d = {(0): 0, (1): 0, (2): 0, (3): 0, (4): 0, (5): 0, (6): 0, (7): 0, (8): 0, (9): 0, (10): 0, (11): 0}; i = 12 | d[i] = 0 | d = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0, 12: 0}; i = 12 |
i = 2; l = [10]; u = [10, 5, 20, 20, 4, 5, 2, 25, 1] | l = u[:i] | i = 2; l = [10, 5]; u = [10, 5, 20, 20, 4, 5, 2, 25, 1] |
x = 0 | a.append(x) | a = [0]; x = 0 |
i = 0; j = 0; s = [[1]] | c = s[i][j] | c = 1; i = 0; j = 0; s = [[1]] |
h = '0x3'; n = 4 | h = hex(n) | h = '0x4'; n = 4 |
i = 8; n = 8 | i = i % n | i = 0; n = 8 |
e = [(1, 2), (3, 1)]; g = 3; n = 2 | e.append((n, g)) | e = [(1, 2), (3, 1), (2, 3)]; g = 3; n = 2 |
m = [[112, 42, 83, 119]]; u = [56, 125, 56, 49] | m.append(u) | m = [[112, 42, 83, 119], [56, 125, 56, 49]]; u = [56, 125, 56, 49] |
k = 1.0000000000000004e-33 | k = k / 10 | k = 1.0000000000000004e-34 |
l = 1; x = 2 | l = x | l = 2; x = 2 |
a = [[0, 0, 0], [0, 1, 0], [0, 0, 0]]; i = 1; j = 1; w = 3 | w += max(0, a[i][j] - a[i][j - 1]) | a = [[0, 0, 0], [0, 1, 0], [0, 0, 0]]; i = 1; j = 1; w = 4 |
i = 3; j = [4, 2, 6, 1, 10]; k = 3; p = 7; r = 7 | r = min(p + k, j[i] + 1) | i = 3; j = [4, 2, 6, 1, 10]; k = 3; p = 7; r = 2 |
l = 5.0 | x.append(l) | l = 5.0; x = [5.0] |
b = [11, 2, 4]; l = 3; n = 0 | m += b[l - 1 - n] | b = [11, 2, 4]; l = 3; m = -49; n = 0 |
u = 1; x = 3; z = [1, 2, 3, 3] | u += z[x] | u = 4; x = 3; z = [1, 2, 3, 3] |
r = ['a', 'i', 'l', 'u', 'h'] | r.sort() | r = ['a', 'h', 'i', 'l', 'u'] |
u = {1, 2, 3, 4, 6, 8, 9, 12}; x = 9 | r = 'Yes' if x in u else 'No' | r = 'Yes'; u = {1, 2, 3, 4, 6, 8, 9, 12}; x = 9 |
i = deque([]); n = 1 | i.append((0, n)) | i = deque([(0, 1)]); n = 1 |
n = 9 | n = str(n).zfill(2) | n = '09' |
c = 9; h = [1, 4, 7] | h.append(c) | c = 9; h = [1, 4, 7, 9] |
n = [1, 4] | d = int(n[0]) | d = 1; n = [1, 4] |
i = 6; j = 5 | i *= j | i = 30; j = 5 |
a = [(1, 1), (2, 1), (5, 0), (5, 1), (8, 1), (10, 0)]; i = 2; t = 23 | t += a[i][0] | a = [(1, 1), (2, 1), (5, 0), (5, 1), (8, 1), (10, 0)]; i = 2; t = 28 |
e = [1, 1, 1, 2, 3] | m = sum(e) | e = [1, 1, 1, 2, 3]; m = 8 |
y = [] | w = y.append | w = <built-in method append of list object at 0x7f1c77ad6500>; y = [] |
a = True; b = False | b = a | a = True; b = True |
u = [4, 7, 10] | u.pop() | u = [4, 7] |
f = [2, 3, 1, 2, 3, 2, 3, 3]; j = 2; r = 2 | r = min(r, f[j]) | f = [2, 3, 1, 2, 3, 2, 3, 3]; j = 2; r = 1 |
p = [0, 1, 5] | m = p[2] | m = 5; p = [0, 1, 5] |
a = 523; b = '523523' | b = b + str(a) | a = 523; b = '523523523' |
n = 3; v = [4, 4] | v.append(n) | n = 3; v = [4, 4, 3] |
b = 'ABACABAz'; l = ['A', 'A', 'B', 'A', 'B']; m = 2 | l.append(b[m]) | b = 'ABACABAz'; l = ['A', 'A', 'B', 'A', 'B', 'A']; m = 2 |
i = 1; j = 4; x = [[(0, 0), (0, 1), (0, 2), (0, 4), (0, 5), (1, 0)]] | x[0].append((i, j)) | i = 1; j = 4; x = [[(0, 0), (0, 1), (0, 2), (0, 4), (0, 5), (1, 0), (1, 4)]] |
d = 8; t = 1; y = [8, 5, 11, 6, 3] | y.append(t + d) | d = 8; t = 1; y = [8, 5, 11, 6, 3, 9] |
a = 1; c = 2; r = [2, 3] | r.append(c + a) | a = 1; c = 2; r = [2, 3, 3] |
e = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], []]; i = 4 | e[i].append(None) | e = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None]]; i = 4 |
j = 6; s = 'ifailuhkqq'; w = 'ifailu' | w += s[j] | j = 6; s = 'ifailuhkqq'; w = 'ifailuh' |
v = [8, 6]; x = [0, 1, 0, 0] | v.append(len(x)) | v = [8, 6, 4]; x = [0, 1, 0, 0] |
i = 0; j = 4; m = 200; r = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | m = min(r[i + j - 1] - r[i], m) | i = 0; j = 4; m = 3; r = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
y = [1, 2, 3, 4, 3, 3, 2, 1] | h = min(y) | h = 1; y = [1, 2, 3, 4, 3, 3, 2, 1] |
h = [0]; i = 2; j = 1; k = ['.....', '.x.x.', '.....', '.....'] | h.append(-1 if k[i][j] == 'x' else h[j - 1] + 1) | h = [0, 1]; i = 2; j = 1; k = ['.....', '.x.x.', '.....', '.....'] |
d = 25; r = 19; t = 11 | r = t ^ d | d = 25; r = 18; t = 11 |
i = 1; s = '1234' | r = int(s[0:i]) | i = 1; r = 1; s = '1234' |
v = 'QUERY 1 1 1 3 3 3' | v = v.split() | v = ['QUERY', '1', '1', '1', '3', '3', '3'] |
m = 3; x = 2 | m = m * x | m = 6; x = 2 |
n = 1 | s = n % 3 | n = 1; s = 1 |
a = 8.0; x = 9; y = 8.0 | y = a / x | a = 8.0; x = 9; y = 0.8888888888888888 |
l = '3'; s = '5' | s, l = [int(s), int(l)] | l = 3; s = 5 |
g = 7; p = 8 | p = p % g | g = 7; p = 1 |
i = 1; j = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; n = 3; z = 4 | n = j[i + z - 1] - j[i] | i = 1; j = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; n = 8; z = 4 |
a = 'BANANA'; e = 5; i = 3 | e += len(a) - i | a = 'BANANA'; e = 8; i = 3 |
i = 4; j = 6; l = 4; p = {1, 2, 3, 4, 6, 8} | p.add(l * (j - i + 1)) | i = 4; j = 6; l = 4; p = {1, 2, 3, 4, 6, 8, 12} |
a = 6; b = 2 | b = int(a / 2) | a = 6; b = 3 |
i = ['1', '1', '3', '2']; l = 0; m = -1 | i.append(str(max(l, m) + 1)) | i = ['1', '1', '3', '2', '1']; l = 0; m = -1 |
b = 6 | b += 1 | b = 7 |
d = ( 'In the third category he included those Brothers..., breathless from his gallop and his excitement. ' ); e = ( 'In the third category he included those Brothers (the majority) who saw nothi' ); k = 77 | e += d[k] | d = 'In the third category he included those Brothers..., breathless from his gallop and his excitement. '; e = 'In the third category he included those Brothers (the majority) who saw nothio'; k = 77 |
i = 1; k = 3; v = [1, 2, 3, 4]; w = [1, 2, 3] | w = v[i * k:i * k + k] | i = 1; k = 3; v = [1, 2, 3, 4]; w = [4] |
a = 6765; j = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181] | j.append(int(a)) | a = 6765; j = [0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765] |
g = '11100'; j = 21 | j = int(g, 2) | g = '11100'; j = 28 |
f = None; i = 4; j = 1 | f = i, j | f = (4, 1); i = 4; j = 1 |
n = 2 | x += n * (n - 1) / 2 | n = 2; x = 68.0 |
t = ['a'] | k = ''.join(t) | k = 'a'; t = ['a'] |
e = 0; i = 0; j = 5; z = 4 | i, j = e, z | e = 0; i = 0; j = 4; z = 4 |
w = '1111111111111111111111' | w += '1' | w = '11111111111111111111111' |
a = 7.5; g = 2.5 | g = g + a / 2 | a = 7.5; g = 6.25 |
h = ['Q', '1'] | i = int(h[1]) | h = ['Q', '1']; i = 1 |
l = ['3', '3', '2', '1', '3'] | s = set(l) | l = ['3', '3', '2', '1', '3']; s = {'3', '1', '2'} |
a = '1'; e = '1' | e, a = [int(e), int(a)] | a = 1; e = 1 |
j = 0; p = [1] | p.append(j) | j = 0; p = [1, 0] |
l = 'k'; z = {'p', 'l', 'a', 'u', 'q', 'c', 'y', 'n', 'r', 'e', 'd', 'm', 'j', 'w', 'i', 'o', 'v', 't', 'g', ...} | z.add(l) | l = 'k'; z = {'c', 't', 'l', 'j', 'p', 'w', 'i', 'y', 'd', 'v', 'e', 'r', 'm', 'o', 'k', 'a', 'q', Ellipsis, 'u', 'n', 'g'} |
b = 'add hack' | h, u = b.split() | b = 'add hack'; h = 'add'; u = 'hack' |
i = 3; l = [1, 4, 3, 'None', 'None', 'None']; m = ['1', '4', '3', '5', '6', '2'] | l[i] = int(m[i]) | i = 3; l = [1, 4, 3, 5, 'None', 'None']; m = ['1', '4', '3', '5', '6', '2'] |
q = 3; v = 4 | v += q + 1 | q = 3; v = 8 |
a = 12 | a = a + 1 | a = 13 |
n = 5 | y = n | n = 5; y = 5 |
l = [1, 1, 1, 1, 2, 3, 4, 5, 7, 10]; m = 3; q = 9 | l[q] = l[q] + l[q - m * m] | l = [1, 1, 1, 1, 2, 3, 4, 5, 7, 11]; m = 3; q = 9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.