start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = '3' | i = i + str(3) | i = '33' |
t = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 3, 0, 2, 0, 0, 2, 0, 3, 3, 1, 0, 0, 0, 0, 2]; u = 2 | t.append(u) | t = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 3, 0, 2, 0, 0, 2, 0, 3, 3, 1, 0, 0, 0, 0, 2, 2]; u = 2 |
g = [112, 0, 7, 1]; w = 0 | g[w] += 1 | g = [113, 0, 7, 1]; w = 0 |
q = 11 | q -= 5 | q = 6 |
l = '2' | l += ' ' | l = '2 ' |
j = 6; n = 3.0 | n = float(j) | j = 6; n = 6.0 |
m = 32767 | m = (m << 1) + 1 | m = 65535 |
f = 'aa'; i = 3; j = 6; s = 'aaaaaa' | f = s[i:j] | f = 'aaa'; i = 3; j = 6; s = 'aaaaaa' |
i = 2; p = 1; q = 1; t = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; y = 2; z = 289 | z = z + max(max(max(t[p][q], t[p][i]), t[y][q]), t[y][i]) | i = 2; p = 1; q = 1; t = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; y = 2; z = 414 |
c = 76; e = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91] | e.append(c) | c = 76; e = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76] |
i = 7; s = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'y', 'z', '0', '1', '2', '3', '4', '5', '6'] | s.append(str(i)) | i = 7; s = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7'] |
n = 'aa' | n = n[:position] + n[position + 2:] | n = 'aa'; v = 72 |
e = deque([]); i = 1; j = 0 | e.append([i + 1, j, 0, i, j]) | e = deque([[2, 0, 0, 1, 0]]); i = 1; j = 0 |
c = 3; p = {(0): 0, (1): 1, (2): 1, (3): 2}; x = 2 | p[x] = c | c = 3; p = {0: 0, 1: 1, 2: 3, 3: 2}; x = 2 |
g = [[2, 3], [4, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '-1'; x = 1 | g[x][1] = int(r) | g = [[2, 3], [4, -1], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]]; r = '-1'; x = 1 |
j = {(1): False, (2): True, (3): True, (4): True, (5): True}; x = 6 | j[x] = not (j[x - 2] and j[x - 3] and j[x - 5]) | j = {1: False, 2: True, 3: True, 4: True, 5: True, 6: True}; x = 6 |
i = 1; m = 1; q = [0, 1, 2, 2, 2, 3] | q[i] = q[i] - m | i = 1; m = 1; q = [0, 0, 2, 2, 2, 3] |
n = 5; s = """5 3\n0 1\n2 3\n0 4\n\n\n\n""" | s = n * (n - 1) // 2 | n = 5; s = 10 |
a = [2, 4]; b = 3 | a.append(b) | a = [2, 4, 3]; b = 3 |
g = [2, 3, 5, 6]; i = 5; j = 1; t = 3 | t = i - g[j] | g = [2, 3, 5, 6]; i = 5; j = 1; t = 2 |
i = 8; x = 10; y = 1.4285714285714286 | y = x / i | i = 8; x = 10; y = 1.25 |
i = 1; j = 0; l = ['1', '1']; p = ['13', '8', '5']; u = 8 | u -= int(l[j]) * int(p[i + j + 1]) | i = 1; j = 0; l = ['1', '1']; p = ['13', '8', '5']; u = 3 |
h = [{(1, 24), (3, 20)}, {(0, 24)}, {(0, 3)}, {(0, 20)}]; m = 3, 1, 3 | h[m[1] - 1].add((m[0] - 1, m[2])) | h = [{(1, 24), (3, 20), (2, 3)}, {(0, 24)}, {(0, 3)}, {(0, 20)}]; m = (3, 1, 3) |
d = 10; j = ['0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '1', '0', '0', '0', '0', '0', '0'] | j[d] = '0' | d = 10; j = ['0', '0', '0', '0', '1', '1', '1', '0', '1', '1', '0', '0', '0', '0', '0', '0', '0'] |
a = 1; j = 9; n = 2; t = -6 | t = a * n - j | a = 1; j = 9; n = 2; t = -7 |
n = 2; s = 'edc' | n = s.__len__() | n = 3; s = 'edc' |
d = 4; j = [2, 7]; x = 1 | j[x] = d | d = 4; j = [2, 4]; x = 1 |
e = [2, 3, 4, 5]; k = 2; o = [2, 3, 3, 4] | o.append(e[k]) | e = [2, 3, 4, 5]; k = 2; o = [2, 3, 3, 4, 4] |
g = 'a'; i = 0; j = 3; s = 'ifailuhkqq' | g = ''.join(sorted(s[j:j + i + 1])) | g = 'i'; i = 0; j = 3; s = 'ifailuhkqq' |
e = [3, 10, 2, 9]; k = 1 | del e[k] | e = [3, 2, 9]; k = 1 |
b = 'AABBC_C'; f = {'B', 'C', 'A'} | f = set(b) | b = 'AABBC_C'; f = {'A', '_', 'C', 'B'} |
i = 3; p = 3 | p = i + 1 | i = 3; p = 4 |
g = 3; i = 0; q = [[2, 4, 8, 12], [2, 6, 7, 16], [1, 10, 11, 15], [5, 9, 13, 14]] | q[p][i] = g | g = 3; i = 0; p = True; q = [[2, 4, 8, 12], [3, 6, 7, 16], [1, 10, 11, 15], [5, 9, 13, 14]] |
c = [0, 0, 0, 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, 0, 0]; i = 10 | c[i] += 1 | c = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 10 |
h = [0]; j = 0 | h.append(j) | h = [0, 0]; j = 0 |
p = 0; q = 3 | q = p | p = 0; q = 0 |
n = 3 | l = int((2 * n + 0.25) ** 0.5 - 0.5) - 1 | l = 1; n = 3 |
i = 24; s = 10; t = 2; w = 167772194 | w = w + (t ^ s << i) | i = 24; s = 10; t = 2; w = 335544356 |
j = 4; k = 'e-d-'; s = 'abcdefghijklmnopqrstuvwxyz' | k += s[j] + '-' | j = 4; k = 'e-d-e-'; s = 'abcdefghijklmnopqrstuvwxyz' |
i = 8 | p.append(i) | i = 8; p = [8] |
n = 1; p = [6, 1, 0, 1, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | p[n] = p[n] + 1 | n = 1; p = [6, 2, 0, 1, 2, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
x = 2 | r = r + x | r = -55; x = 2 |
q = ['i', 'l', 'u'] | q = ''.join(q) | q = 'ilu' |
a = 1; i = [1, -1]; k = 1 | k = a + i[0] | a = 1; i = [1, -1]; k = 2 |
h = ['0', 'b', '1', '1', '1', '1', '0', '1', '1', '1', '0', '1', '0', '0', '1', '1']; w = '0b11110111010100' | h = list(w) | h = ['0', 'b', '1', '1', '1', '1', '0', '1', '1', '1', '0', '1', '0', '1', '0', '0']; w = '0b11110111010100' |
v = [1, 1, 1, 1, 1, 2, 2, 3, 3]; x = 3 | v.append(x) | v = [1, 1, 1, 1, 1, 2, 2, 3, 3, 3]; x = 3 |
a = 2 | k += a | a = 2; k = 24 |
a = [47, 73, 90]; p = 88481.0 | p = p + a[1] * a[2] | a = [47, 73, 90]; p = 95051.0 |
g = 6; p = '1' | g += int(p) | g = 7; p = '1' |
n = 'wedowhatwemustbecausewecan'; q = {} | q[n] = True | n = 'wedowhatwemustbecausewecan'; q = {'wedowhatwemustbecausewecan': True} |
i = 3; j = 2; q = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 0]]; r = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']] | q[i][j] = r[j][i] | i = 3; j = 2; q = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 'y']]; r = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']] |
b = ['AGRA', 'NORWAY', 'ENGLAND', 'GWALIOR'] | i = b.pop() | b = ['AGRA', 'NORWAY', 'ENGLAND']; i = 'GWALIOR' |
t = [0] | t.append(0) | t = [0, 0] |
a = 'ba'; h = 'abba'; i = 0; l = 3 | a = h[i:i + l] | a = 'abb'; h = 'abba'; i = 0; l = 3 |
n = ['n', 'o'] | y = sorted(n, reverse=True) | n = ['n', 'o']; y = ['o', 'n'] |
s = 'aabb'; z = 'a' | z = s | s = 'aabb'; z = 'aabb' |
i = 0; s = '9875' | o = int(o) + int(s[i]) | i = 0; o = 9; s = '9875' |
a = [0, 1, 0, 0, 0]; n = 5 | a = [0] * n | a = [0, 0, 0, 0, 0]; n = 5 |
t = [[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]] | f = t[start_row] | f = [1, 1, 1, 0, 0, 0]; m = False; t = [[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]] |
m = 6; v = 3 | m += v | m = 9; v = 3 |
s = [1, 1, 1]; u = [[0, 2, 1]] | u.append(s) | s = [1, 1, 1]; u = [[0, 2, 1], [1, 1, 1]] |
a = 2; b = 10; i = 18; u = 2621462 | u += a ^ b << i | a = 2; b = 10; i = 18; u = 5242904 |
g = 2; m = 1 | k *= m % g + 1 | g = 2; k = 52; m = 1 |
l = [1, 1, 1, 1, 1, 2, 2, 2, 2]; p = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1} | l = list(p.values()) | l = [2, 2, 2, 2, 2, 1, 1, 1, 1]; p = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1} |
c = 0; d = 2; f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; h = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; n = 0; r = 0; t = 0 | h[t + d][t + n] = f[r][c] | c = 0; d = 2; f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; h = [[0, 0, 0, 0], [0, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0]]; n = 0; r = 0; t = 0 |
d = [[5, 5, 5, 5, 5], [1, 1, 3, 3, 5], [5, 5, 5, 5, 5], [0, 0, 0, 5, 5]]; i = 3; j = 2; r = 5 | d[i][j] = r | d = [[5, 5, 5, 5, 5], [1, 1, 3, 3, 5], [5, 5, 5, 5, 5], [0, 0, 5, 5, 5]]; i = 3; j = 2; r = 5 |
g = '^[7-9]\\d{9}$'; p = '^[7-9]\\d{9}$' | g = p | g = '^[7-9]\\d{9}$'; p = '^[7-9]\\d{9}$' |
n = ['1', '3', '4']; r = '1'; v = 0 | n[v] = int(r) | n = [1, '3', '4']; r = '1'; v = 0 |
i = 3; u = 30; v = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] | u *= v[i] | i = 3; u = 210; v = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97] |
x = 19342813113834066795298816 | x *= 2 | x = 38685626227668133590597632 |
b = {(203): 1, (204): 2, (205): 2, (206): 2, (207): 1, (208): 1}; x = 204 | b[x] = b[x] - 1 | b = {203: 1, 204: 1, 205: 2, 206: 2, 207: 1, 208: 1}; x = 204 |
m = [8, 23, 19, 16]; x = 26 | m.append(x) | m = [8, 23, 19, 16, 26]; x = 26 |
a = 17711; x = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 34, 55, 1597, 10946, 4181, 89, 987, 610, 233, 6765, 377} | x.add(a) | a = 17711; x = {1, 2, 3, 5, 8, 13, 144, 21, 2584, 34, 17711, 55, 1597, 10946, 4181, 89, 987, 610, 233, 6765, 377} |
a = '0000cd'; i = 4; s = ['0', '0', '0', '0', 'c', 'd'] | a = a.replace(s[i], '0') | a = '00000d'; i = 4; s = ['0', '0', '0', '0', 'c', 'd'] |
f = """6 2\n1110001\n\n\n\n"""; y = [1, 1, 1, 0, 0, 0, 1] | f = [y[-1]] | f = [1]; y = [1, 1, 1, 0, 0, 0, 1] |
v = 200; z = 100 | z = v | v = 200; z = 200 |
m = [1]; r = [1] | r = m | m = [1]; r = [1] |
i = 11; p = 0.5; q = 0.5; s = 1.98828125 | s += i * p * q ** (i - 1) | i = 11; p = 0.5; q = 0.5; s = 1.99365234375 |
p = [1, 1, 2, 3, 5, 8, 13, 21, 34, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578] | p.append(p[-1] + p[-2]) | p = [1, 1, 2, 3, 5, 8, 13, 21, 34, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578, 5702887] |
n = 12; w = 'moon. he went' | n = len(w) | n = 13; w = 'moon. he went' |
g = 1.8937389403869984; o = 5; v = 0.37874778807739967 | g = g % o + v | g = 2.272486728464398; o = 5; v = 0.37874778807739967 |
x = 3 | q = x | q = 3; x = 3 |
a = [2, 5] | q = a[1] | a = [2, 5]; q = 5 |
s = 'bcdef' | d[s] = 1 | d = {'bcdef': 1}; s = 'bcdef' |
c = 4; u = ['9', '1', '1'] | c = int(u[2]) | c = 1; u = ['9', '1', '1'] |
i = 0; s = [1, 3] | r.append((i + 1, s[0], s[1], s[0] + s[1])) | i = 0; r = [(1, 1, 3, 4)]; s = [1, 3] |
q = 1; s = [1, 1, 1, 1, 0]; x = 4 | s[x] += s[x - q] | q = 1; s = [1, 1, 1, 1, 1]; x = 4 |
a = 5; b = 8.388608000000001e-17; r = 4.194304e-16 | r -= a * b | a = 5; b = 8.388608000000001e-17; r = 0.0 |
n = [1, 1, 2, 2] | g = n[-1] | g = 2; n = [1, 1, 2, 2] |
x = 3; y = 3 | y = x + 1 | x = 3; y = 4 |
n = '2\n'; x = [1] | x.append(int(n)) | n = '2\n'; x = [1, 2] |
n = 18 | n //= 2 | n = 9 |
i = '{'; n = ['{'] | n.append(i) | i = '{'; n = ['{', '{'] |
o = [12, 6, 4, 3, 2]; u = 1 | o.append(u) | o = [12, 6, 4, 3, 2, 1]; u = 1 |
b = 2; n = 1; u = 10; w = 0 | u = b + n * w | b = 2; n = 1; u = 2; w = 0 |
k = 1 | k -= 1 | k = 0 |
c = [(5, 1), (2, 1)]; l = 1; t = 1 | c.append((l, t)) | c = [(5, 1), (2, 1), (1, 1)]; l = 1; t = 1 |
n = 3; w = [[1, 3, 1], [2, 1, 2], [3, 3, 3]] | n = len(w) | n = 3; w = [[1, 3, 1], [2, 1, 2], [3, 3, 3]] |
f = 1; o = 2; x = {(2): 9, (3): 4, (5): 2, (7): 1, (11): 1} | x[o] = (x[o] + f) % 1000007 | f = 1; o = 2; x = {2: 10, 3: 4, 5: 2, 7: 1, 11: 1} |
j = 0 | z.add(j) | j = 0; z = {0} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.