start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
a = 4; n = ['0', '0', '0', '0', '0', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '0', '0'] | n[a] = '1' | a = 4; n = ['0', '0', '0', '0', '1', '0', '0', '1', '0', '0', '1', '0', '0', '0', '0', '0', '0'] |
x = 7; z = 5 | z = x | x = 7; z = 7 |
j = ['{', '[', '('] | j.pop() | j = ['{', '['] |
g = {0}; i = 1 | g.add(i) | g = {0, 1}; i = 1 |
j = [0, 1, 0, 3, 4, 5]; q = 2 | q = j[q] | j = [0, 1, 0, 3, 4, 5]; q = 0 |
s = 'abba' | l = len(s) | l = 4; s = 'abba' |
b = 3169126500570573503741758013440 | b *= 2 | b = 6338253001141147007483516026880 |
j = 7; u = {4, 6, 8, 10, 12} | u.add(j * i) | i = -42; j = 7; u = {4, 6, 8, 10, 12, -294} |
o = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; u = [0, 2, 0, 2, 0, 0, 1]; x = 7 | u.append(o.count(x)) | o = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; u = [0, 2, 0, 2, 0, 0, 1, 0]; x = 7 |
h = [4, 5, 3, 7, 2]; i = 1 | y.append(h[i]) | h = [4, 5, 3, 7, 2]; i = 1; y = [5] |
r = 4 | r += 1 | r = 5 |
h = 1.8626451492309576e+16; i = 23; x = 4656612873077393.0 | x += h / 5 ** i | h = 1.8626451492309576e+16; i = 23; x = 4656612873077395.0 |
g = [152, 0, 7, 1]; w = 0 | g[w] += 1 | g = [153, 0, 7, 1]; w = 0 |
i = [13, 754, 2769, 1508]; x = 2 | c = [(x % 1000000007) for x in i] | c = [13, 754, 2769, 1508]; i = [13, 754, 2769, 1508]; x = 2 |
p = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0]; z = 'v' | p[ord(z) - 97] += 1 | p = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0]; z = 'v' |
a = [3, 4]; i = 2; p = ['3', '4', '5'] | a.append(int(p[i])) | a = [3, 4, 5]; i = 2; p = ['3', '4', '5'] |
a = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-'), (6, '-'), (0, '-'), (6, '-')]; s = 'ij'; x = 0 | a.append((x, s)) | a = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (0, '-'), (6, '-'), (0, '-'), (6, '-'), (0, 'ij')]; s = 'ij'; x = 0 |
a = 'hello'; g = ['because', 'can', 'do', 'must', 'we', 'what'] | g.append(a) | a = 'hello'; g = ['because', 'can', 'do', 'must', 'we', 'what', 'hello'] |
j = 2; w = 7 | w += j | j = 2; w = 9 |
q = [1, 1, 1, 1, 1, 1, 1] | q.append(1) | q = [1, 1, 1, 1, 1, 1, 1, 1] |
n = {}; x = [4, 2]; y = [] | n[id(x)] = y | n = {139760243672160: []}; x = [4, 2]; y = [] |
a = 3; e = 'k'; g = 'k'; i = 0 | e, a = g, i + 1 | a = 1; e = 'k'; g = 'k'; i = 0 |
c = 3; q = [1, 2, 5, 3, 4]; x = 4 | x = q[c] | c = 3; q = [1, 2, 5, 3, 4]; x = 3 |
x = 1; y = 3 | x, y = y, x | x = 3; y = 1 |
i = 1; o = 0 | o = i | i = 1; o = 1 |
o = [12, 5]; s = [1, 12, 5, 111, 200, 1000, 10]; x = 3 | o.append(s[x]) | o = [12, 5, 111]; s = [1, 12, 5, 111, 200, 1000, 10]; x = 3 |
l = 35 | l -= 1 | l = 34 |
a = 9; b = 6 | a, b = b, a % b | a = 6; b = 3 |
d = 2; g = 1; k = 4 | k += int(g == d) | d = 2; g = 1; k = 4 |
c = 6 | c = c + 1 | c = 7 |
c = 's'; h = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1, 'o': 1, 'p': 1, 'q': 1, 'r': 1} | h[c] = 1 | c = 's'; h = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1, 'n': 1, 'o': 1, 'p': 1, 'q': 1, 'r': 1, 's': 1} |
i = 1; o = [{'arr': [1, 1, 1, 2, 3], 'size': 8}, {'arr': [2, 3, 4], 'size': 9}, { 'arr': [1, 4, 1, 1], 'size': 7}] | c = o[i]['arr'].pop() | c = 4; i = 1; o = [{'arr': [1, 1, 1, 2, 3], 'size': 8}, {'arr': [2, 3], 'size': 9}, {'arr': [1, 4, 1, 1], 'size': 7}] |
f = [-6, -518, -16646, -266374, -16646, 2, 2, 2]; i = 4; j = 3; p = 16128 | p = abs(f[i] - f[j]) | f = [-6, -518, -16646, -266374, -16646, 2, 2, 2]; i = 4; j = 3; p = 249728 |
a = [1, 3, 3, 3]; c = -3; i = 1; j = 0; k = 1; n = 4; q = [[0, inf, inf, inf, inf], [-1, -3, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | c = q[i][j] + a[i] * (i - j - (n - k - (i - j))) | a = [1, 3, 3, 3]; c = -4; i = 1; j = 0; k = 1; n = 4; q = [[0, inf, inf, inf, inf], [-1, -3, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] |
f = 1; i = [0, 5]; k = [[], [[2, 8]], [[1, 8]], [], []] | k[f].append(i) | f = 1; i = [0, 5]; k = [[], [[2, 8], [0, 5]], [[1, 8]], [], []] |
a = 97; c = 'e'; h = [1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | h[ord(c) - a] += 1 | a = 97; c = 'e'; h = [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
a = 'i'; d = None; j = 2; k = None; o = None; p = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1} | k, o, d = a, p.copy(), j | a = 'i'; d = 2; j = 2; k = 'i'; o = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1}; p = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1} |
s = 107 | s = ord('a') | s = 97 |
c = 2; i = 4; y = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0] | y[i] += y[i - c] | c = 2; i = 4; y = [1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0] |
d = {'5', '55', '1', '6', '7', '8', '2', '4', '66', '3', '9', '11'}; l = {'58', '62', '7', '22', '35'} | d.symmetric_difference_update(l) | d = {'22', '6', '35', '62', '11', '3', '55', '66', '8', '2', '58', '9', '5', '1', '4'}; l = {'22', '62', '7', '58', '35'} |
c = [10, 20, 10, 10, 30, 50, 10]; w = 20 | w = c.pop() | c = [10, 20, 10, 10, 30, 50]; w = 10 |
j = '3' | a = a + j | a = 'cFDoqy5i433'; j = '3' |
w = 12.47118464548864; z = 0.4942369290977277 | w += z | w = 12.965421574586367; z = 0.4942369290977277 |
m = 0 | y = 1 << m | m = 0; y = 1 |
i = 3; j = 1; s = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 1, 2, 2, 3], [1, 0, 0, 0, 0]] | s[i][j] = s[i - 1][j] | i = 3; j = 1; s = [[1, 0, 0, 0, 0], [1, 1, 1, 1, 1], [1, 1, 2, 2, 3], [1, 1, 0, 0, 0]] |
b = 20; h = {(10): 1} | h[b] = 0 | b = 20; h = {10: 1, 20: 0} |
g = 6.146258503401361; u = 4.049238743116294e-05 | g += u * 2 | g = 6.146339488176223; u = 4.049238743116294e-05 |
o = 'bac'; z = ['d', 'b', 'a', 'c', 'db', 'ba', 'ac', 'dba'] | z.append(o) | o = 'bac'; z = ['d', 'b', 'a', 'c', 'db', 'ba', 'ac', 'dba', 'bac'] |
i = 3; v = [0, 0, 1, 2, 3]; x = 1 | x = v[i] | i = 3; v = [0, 0, 1, 2, 3]; x = 2 |
k = 'ca'; t = 'c'; w = 'c' | k = w + t | k = 'cc'; t = 'c'; w = 'c' |
i = 0; k = 3; m = 4 | k = (m - i) * (i + 1) | i = 0; k = 4; m = 4 |
i = 0; x = [1, 2, 3] | f = len(x) - i | f = 3; i = 0; x = [1, 2, 3] |
r = [[[], [[], [], [], [], True, False], [], [], False, True], [], [], [], [], False, True] | r = [[]] * 10 | r = [[], [], [], [], [], [], [], [], [], []] |
c = 'a'; x = 'gfedcbagfedcba' | c = x[i] | c = 'b'; i = -2; x = 'gfedcbagfedcba' |
c = 'c'; x = {'b': {'e': {'c': {...}}}, 'c': {}} | x = x[c] | c = 'c'; x = {} |
a = 2; c = 2, 1, 2; l = 1 | a = c[l] | a = 1; c = (2, 1, 2); l = 1 |
b = [(2, 0, 1)]; f = 0; g = 1; i = 0 | b.append((i, f, g + 1)) | b = [(2, 0, 1), (0, 0, 2)]; f = 0; g = 1; i = 0 |
s = '1111111111111111111111111' | s = s + '1' | s = '11111111111111111111111111' |
c = 1.0248496961770481; i = 5; v = 1.1490981770622888 | c = v / i | c = 0.22981963541245776; i = 5; v = 1.1490981770622888 |
l = 5 | c -= l | c = -44; l = 5 |
w = 4 | w = w + 1 | w = 5 |
i = 3; y = 2; z = [1, 1, 4, 1, 1] | y -= z[i] | i = 3; y = 1; z = [1, 1, 4, 1, 1] |
c = 'g'; d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1} | d[c] = 1 | c = 'g'; d = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1} |
g = 1; y = 5 | o = y * g | g = 1; o = 5; y = 5 |
r = '20'; x = '1'; y = '4' | x, y, r = [int(x), int(y), int(r)] | r = 20; x = 1; y = 4 |
b = {2, 11, 4, 12}; k = {9, 2, 4, 5} | s = list((k - b).union(b - k)) | b = {2, 11, 4, 12}; k = {9, 2, 4, 5}; s = [9, 11, 12, 5] |
n = 5; v = '1 4 6 4 1 ' | v *= n | n = 5; v = '1 4 6 4 1 1 4 6 4 1 1 4 6 4 1 1 4 6 4 1 1 4 6 4 1 ' |
j = 0; l = 5; x = [(5, 1), (2, 1), (1, 1), (8, 1), (10, 0)] | x.append((l, j)) | j = 0; l = 5; x = [(5, 1), (2, 1), (1, 1), (8, 1), (10, 0), (5, 0)] |
a = 30; i = 11; j = 22 | a = i ^ j | a = 29; i = 11; j = 22 |
i = 8; l = {(0): [0], (1): [1], (2): [2], (3): [3], (4): [4], (5): [5], (6): [6], (7): [7]}; s = 8 | l[s] = [i] | i = 8; l = {0: [0], 1: [1], 2: [2], 3: [3], 4: [4], 5: [5], 6: [6], 7: [7], 8: [8]}; s = 8 |
a = 6765; b = 10946 | a, b = b, a + b | a = 10946; b = 17711 |
b = 4; i = 3; u = Counter({(1): 2, (2): 2, (3): 3, (4): 1}) | b -= u[i] | b = 1; i = 3; u = Counter({3: 3, 1: 2, 2: 2, 4: 1}) |
n = 3; o = 0 | n = o | n = 0; o = 0 |
b = [1, 2, 2, 2] | p = pow(2, len(b)) | b = [1, 2, 2, 2]; p = 16.0 |
a = '2'; x = ' 3' | x = x + a | a = '2'; x = ' 32' |
i = 3; v = [0, 1, 1, 2] | v[i] = 2 | i = 3; v = [0, 1, 1, 2] |
a = [2, 3, 4, 1]; l = 1; r = 3 | a = a[:l] + sorted(a[l:r + 1]) + a[r + 1:] | a = [2, 1, 3, 4]; l = 1; r = 3 |
s = 5 | s += 1 | s = 6 |
g = 0.8886333230528709; j = 5.331799938317226; z = 5 | g = j / z | g = 1.066359987663445; j = 5.331799938317226; z = 5 |
f = [4]; j = 4 | d = f.index(j) | d = 0; f = [4]; j = 4 |
i = 2; p = [3, 3, 3]; s = 6 | s += p[i] | i = 2; p = [3, 3, 3]; s = 9 |
i = 8; k = {(1): [8], (3): [], (7): [8, 4, 6], (8): [], (6): [8], (4): [], (9): [4 ], (5): [8], (2): [8]} | del k[i] | i = 8; k = {1: [8], 3: [], 7: [8, 4, 6], 6: [8], 4: [], 9: [4], 5: [8], 2: [8]} |
c = [[2, 6], [4, 4], [5, 9], [5, 7], [3, 11]]; j = 2; r = 1 | c[j + 1][0] = r | c = [[2, 6], [4, 4], [5, 9], [1, 7], [3, 11]]; j = 2; r = 1 |
i = 2; j = 0; l = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; o = 52 | o += abs(l[i][j] - l[i][j + 1]) | i = 2; j = 0; l = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; o = 53 |
c = [1, 0, 3]; e = 2; z = [[5], [7]] | z[(c[1] ^ last_ans) % e].append(c[2]) | c = [1, 0, 3]; e = 2; f = -2; z = [[5, 3], [7]] |
r = 'bb'; z = '' | r = z | r = ''; z = '' |
h = '111111011' | h += '1' | h = '1111110111' |
i = 1000000007; s = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584] | s.append((s[-1] + s[-2]) % i) | i = 1000000007; s = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181] |
m = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]] | p = len(m[0]) | m = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]; p = 6 |
v = {'give': 0}; x = 'one' | v[x] = 0 | v = {'give': 0, 'one': 0}; x = 'one' |
c = [79, 27]; w = {(95): 13, (97): 25, (93): 37} | w[c[0]] = c[1] | c = [79, 27]; w = {95: 13, 97: 25, 93: 37, 79: 27} |
c = 'a'; x = ['e', 'e', 'e', 'f', 'e'] | c = x[0] | c = 'e'; x = ['e', 'e', 'e', 'f', 'e'] |
e = '3'; q = '4' | e, q = [int(e), int(q)] | e = 3; q = 4 |
i = 7; p = [4, 9]; x = [2, 4, 5, 6, 7, 9, 11, 12] | p.append(x[i]) | i = 7; p = [4, 9, 12]; x = [2, 4, 5, 6, 7, 9, 11, 12] |
j = 1; o = [1, 0] | o[j] += 1 | j = 1; o = [1, 1] |
i = 20; n = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; r = 1048575 | r += n[i] * pow(2, i) | i = 20; n = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; r = 2097151.0 |
l = '-1'; r = '4' | l, r = [int(l), int(r)] | l = -1; r = 4 |
a = [[5, 5], [4, 2], [2, 3], [0, 0], [6, 1], [1, 0], [0, 6], [0, 1]]; i = 1; l = [[5, 5], [4, 2], [2, 3], [0, 0], [6, 1], [1, 0], [0, 6], [0, 1]]; n = 5 | a.append([n + 1, i + 1]) | a = [[5, 5], [4, 2], [2, 3], [0, 0], [6, 1], [1, 0], [0, 6], [0, 1], [6, 2]]; i = 1; l = [[5, 5], [4, 2], [2, 3], [0, 0], [6, 1], [1, 0], [0, 6], [0, 1]]; n = 5 |
a = [2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; n = 2; p = 'g' | a[ord(p) - 97] = n | a = [2, 2, 2, 2, 2, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; n = 2; p = 'g' |
s = 'a'; v = {'a': 0} | v[s] += 1 | s = 'a'; v = {'a': 1} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.