start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
j = 0 | s = j | j = 0; s = 0 |
n = 11; s = 16 | s = n | n = 11; s = 11 |
d = 3; m = 6 | m = d + 1 | d = 3; m = 4 |
d = [4, 5, 3, 7, 2]; v = 2 | d.remove(d[v]) | d = [4, 5, 7, 2]; v = 2 |
c = [55, None, 3, 45, 33, 25]; i = 1; j = 2 | c.insert(j + i, None) | c = [55, None, 3, None, 45, 33, 25]; i = 1; j = 2 |
l = 'A'; n = 5 | n = [l, 1, 0] | l = 'A'; n = ['A', 1, 0] |
q = 5 | q += 1 | q = 6 |
e = 401371737.5 | e = e / 2 | e = 200685868.75 |
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; h = 1; w = 0 | u = min(a[h][w], a[h - 1][w]) | a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; h = 1; u = 1; w = 0 |
w = [(0, 3), (1, 9), (2, 6)] | w.sort(reverse=True) | w = [(2, 6), (1, 9), (0, 3)] |
d = '6' | d = int(d) | d = 6 |
c = 'abcd'; i = 5; p = ['lmon', 'no answer', 'no answer', 'acbd', 'abdc', 'fedcbabcd'] | c = p[i] | c = 'fedcbabcd'; i = 5; p = ['lmon', 'no answer', 'no answer', 'acbd', 'abdc', 'fedcbabcd'] |
a = 6; i = 2; k = 6 | a += k - i | a = 10; i = 2; k = 6 |
c = 'd'; y = {'w': True, 'o': True, 'r': True, 'l': True} | y[c] = True | c = 'd'; y = {'w': True, 'o': True, 'r': True, 'l': True, 'd': True} |
q = [0, 1, 2, 3, 4]; x = 6 | x = q.pop() | q = [0, 1, 2, 3]; x = 4 |
k = 29 | k += 1 | k = 30 |
g = 'A'; o = '\n' | g = o | g = '\n'; o = '\n' |
j = 2; s = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; t = [1, 5, 9, 13, 14, 15, 16, 12, 8, 4, 3, 2]; x = 0; y = 2 | s[y][x] = t[j] | j = 2; s = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; t = [1, 5, 9, 13, 14, 15, 16, 12, 8, 4, 3, 2]; x = 0; y = 2 |
k = 203; m = [1, 1, 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, 0, 0, 0, 0, 0]; x = 205 | m[x - k] += 1 | k = 203; m = [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, 0, 0, 0, 0, 0, 0, 0]; x = 205 |
j = 2; k = 4 | k = j + 1 | j = 2; k = 3 |
c = [4, 3, 2, 1, 3, 4]; h = 2; w = 3 | h = c[w] | c = [4, 3, 2, 1, 3, 4]; h = 1; w = 3 |
a = ['BANANA', 'FRIES', '12'] | b = ' '.join(a[:len(a) - 1]) | a = ['BANANA', 'FRIES', '12']; b = 'BANANA FRIES' |
m = 1; o = [0, 1, 2, 3] | o.append(m) | m = 1; o = [0, 1, 2, 3, 1] |
y = 1.9982556887016436e-68 | y /= 42 | y = 4.757751639765818e-70 |
i = [0, 1, 1, 1, 999]; k = [0, 0, 0, 0, 0] | k[-1] = i[-1] | i = [0, 1, 1, 1, 999]; k = [0, 0, 0, 0, 999] |
d = 'a'; j = [2, 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] | j[ord(d) - 97] += 1 | d = 'a'; j = [3, 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] |
i = 4; l = 2 | l = i | i = 4; l = 4 |
p = 1.2000000000000012e-79 | p /= 10 | p = 1.2000000000000013e-80 |
i = 3; l = [2, 1, 3, 5, 4]; q = 5 | q = l[i] | i = 3; l = [2, 1, 3, 5, 4]; q = 5 |
i = 2; j = 3; k = 2; u = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2, 0, 1]] | u.append([i, j, k]) | i = 2; j = 3; k = 2; u = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1], [1, 2, 0], [1, 2, 1], [1, 2, 2], [2, 0, 1], [2, 3, 2]] |
c = [False, False, False, False, False, False, False]; t = 1 | c[t] = True | c = [False, True, False, False, False, False, False]; t = 1 |
f = 1 | i = f | f = 1; i = 1 |
r = 15 | x = bin(r)[2:] | r = 15; x = '1111' |
c = 2; m = 7.275957614183426e-12 | m /= c | c = 2; m = 3.637978807091713e-12 |
i = 7; k = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; w = [1, 3, 6, 10, 20, 40, 70] | w.append(k[i] + w[i - 1]) | i = 7; k = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; w = [1, 3, 6, 10, 20, 40, 70, 110] |
b = 5; t = 4 | t = b | b = 5; t = 5 |
i = 2; v = [0, 1, 0, 0] | v[i] = 1 | i = 2; v = [0, 1, 1, 0] |
i = 1; n = 4; t = 3; w = [4, 5, 6] | n = n + w[t - i - 1] | i = 1; n = 9; t = 3; w = [4, 5, 6] |
f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; i = 1; j = 0; u = [1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9] | u.append(f[i][j]) | f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; i = 1; j = 0; u = [1, 2, 3, 4, 8, 12, 16, 15, 14, 13, 9, 5] |
a = 'a'; b = '1'; g = ['a', '2'] | a, b = [xx for xx in g] | a = 'a'; b = '2'; g = ['a', '2'] |
i = 4; j = 1; p = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 1], [0, 1, 2, 2], [0, 1, 2, 3], [0, 1, 0, 0]] | p[i + 1][j + 1] = max(p[i + 1][j], p[i][j + 1]) | i = 4; j = 1; p = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 1, 1, 1], [0, 1, 2, 2], [0, 1, 2, 3], [0, 1, 2, 0]] |
i = 4; w = 7; x = [1, 2, 3, 7, 12, 14, 21, 21] | w = x[i] | i = 4; w = 12; x = [1, 2, 3, 7, 12, 14, 21, 21] |
j = 3; k = 2; q = 1; r = [1, 1, 1, 2, 2] | q = r[j + k - 1] - r[j] | j = 3; k = 2; q = 0; r = [1, 1, 1, 2, 2] |
s = 1; x = 43 | s = x | s = 43; x = 43 |
s = 'abccddde' | a.append(ord(s[0]) - 96) | a = [1]; s = 'abccddde' |
k = 1; t = '012345' | t = str(k) | k = 1; t = '1' |
i = 1; j = 2; s = 'abcd'; w = ['a', 'b'] | w.append(''.join(sorted(s[j:j + i]))) | i = 1; j = 2; s = 'abcd'; w = ['a', 'b', 'c'] |
e = 510510; t = 19 | e *= t | e = 9699690; t = 19 |
z = 9 | z = z + 1 | z = 10 |
q = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 1, 3, 0, 2, 0, 0, 2, 0, 3, 3, 1, 0, 0, 0, 0]; r = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; x = 39 | q.append(r.count(x)) | q = [0, 2, 0, 2, 0, 0, 1, 0, 1, 2, 1, 0, 1, 1, 0, 0, 1, 1, 3, 0, 2, 0, 0, 2, 0, 3, 3, 1, 0, 0, 0, 0, 0]; r = [63, 25, 73, 1, 98, 73, 56, 84, 86, 57, 16, 83, 82, 67, 61, 32, 21, 79, 75, 75, 13, 87, 70, 33]; x = 39 |
l = 3; m = {(0): {2}, (1): set(), (2): set(), (3): set(), (4): set(), (5): set()}; r = 1 | m[l - 1].add(r - 1) | l = 3; m = {0: {2}, 1: set(), 2: {0}, 3: set(), 4: set(), 5: set()}; r = 1 |
a = [1, 2, 3, 4, 5]; i = 0; s = 15 | n = s - a[i] | a = [1, 2, 3, 4, 5]; i = 0; n = 14; s = 15 |
d = [1, 1, 1, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' | d[ord(i) - 97] += 1 | d = [1, 1, 1, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' |
a = [1, 3, 3, 3]; i = 0; j = 0; k = 1; l = [[0, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | g = l[i][j] + a[i] * (j - (k - j)) | a = [1, 3, 3, 3]; g = -1; i = 0; j = 0; k = 1; l = [[0, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] |
g = [3, 3, 4, 4, 9]; i = 2 | del g[i] | g = [3, 3, 4, 9]; i = 2 |
c = 1; h = [2]; i = 2; m = [1]; u = {} | u[c], u[i] = h, m | c = 1; h = [2]; i = 2; m = [1]; u = {1: [2], 2: [1]} |
e = 14; p = 4 | e += 2 + p | e = 20; p = 4 |
i = 2; j = 6; l = 'ifailuhkqq'; s = ['h', 'u'] | s = list(l[j:j + i]) | i = 2; j = 6; l = 'ifailuhkqq'; s = ['h', 'k'] |
c = [3, 10, 2, 9]; i = 0 | z += c[i] | c = [3, 10, 2, 9]; i = 0; z = 64 |
l = {'d', 'j', 'm', 'e', 'g', 'l', 'k', 'h', 'a', 'f', 'b', 'i', 'c'}; w = 'n' | l.add(w) | l = {'h', 'c', 'j', 'l', 'i', 'g', 'n', 'd', 'm', 'k', 'f', 'b', 'a', 'e'}; w = 'n' |
g = [2, 0, 0, 0]; w = 0 | g[w] += 1 | g = [3, 0, 0, 0]; w = 0 |
a = 2; b = 10737418240; r = 10737418286 | r += a ^ b | a = 2; b = 10737418240; r = 21474836528 |
e = [2, 2, 2, 4]; n = ['QUERY', '1 1 1 3 3 3'] | e = [int(num) for num in n[1].split(' ')] | e = [1, 1, 1, 3, 3, 3]; n = ['QUERY', '1 1 1 3 3 3'] |
d = [8, 3, 6]; i = 1 | d[i + 1] = d[i] | d = [8, 3, 3]; i = 1 |
d = ['e', 'd', 'c', 'b', 'a']; f = 1; j = 1; k = ['e', 'd', 'e'] | k.append(d[f - abs(j - f) - 1]) | d = ['e', 'd', 'c', 'b', 'a']; f = 1; j = 1; k = ['e', 'd', 'e', 'e'] |
o = ['1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1'] | o.append('1') | o = ['1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '0', '0', '0', '0', '1', '1', '1', '0', '1', '1'] |
v = ['10', '20', '30', '40'] | r = [int(x) for x in v] | r = [10, 20, 30, 40]; v = ['10', '20', '30', '40'] |
i = 2; t = 2; x = [1, 2, 3] | t = x[i] | i = 2; t = 3; x = [1, 2, 3] |
d = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0] | d.remove(0) | d = [2, 2, 2, 2, 3, 2, 2, 2, 0, 0, 0, 0, 0, 0] |
g = ['{']; p = '{' | p = g.pop() | g = []; p = '{' |
i = 5; j = 3; m = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; v = [2, 5, 3, 6]; x = 1 | x = m[i - v[j]][j] if i - v[j] >= 0 else 0 | i = 5; j = 3; m = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; v = [2, 5, 3, 6]; x = 0 |
c = 0; g = ['CAA'] | c = sum(map(len, g)) | c = <map object at 0x7f1bf43c7e10>; g = ['CAA'] |
i = 5; x = 4 | i = i ^ x | i = 1; x = 4 |
y = 0 | y = pivotIndex + 1 | n = 55; y = 56 |
i = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | i.append(i[-1] + i[-2]) | i = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144] |
d = 8; k = 0; s = 'cba' | d += abs(ord(s[k]) - ord(s[len(s) - 1 - k])) | d = 10; k = 0; s = 'cba' |
i = 4; j = 5 | j = j ^ i | i = 4; j = 1 |
o = 2; s = 2 | o = s + 1 | o = 3; s = 2 |
d = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['1', '10', '11', '16'], ['5', '9', '13', '14']]; h = '15'; i = 2; z = 3 | d[i][z] = h | d = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['1', '10', '11', '15'], ['5', '9', '13', '14']]; h = '15'; i = 2; z = 3 |
n = ['1', '2', '4', '8', '16', '32', '8388608', '16777216', '33554432', '67108864', '134217728', '268435456']; w = 536870912 | n.append(str(w)) | n = ['1', '2', '4', '8', '16', '32', '8388608', '16777216', '33554432', '67108864', '134217728', '268435456', '536870912']; w = 536870912 |
l = 2; m = 5; p = [6, 5, 4, 10, 9] | del p[m - l] | l = 2; m = 5; p = [6, 5, 4, 9] |
w = 3 | w += 1 | w = 4 |
b = [[6, 5], [8, 4], [7], [10, 9]]; i = 0 | m = b[i] | b = [[6, 5], [8, 4], [7], [10, 9]]; i = 0; m = [6, 5] |
i = 1; j = 9 | j = i + 1 | i = 1; j = 2 |
c = True; j = 2; x = 10 | c = True if j ^ x > x else False | c = False; j = 2; x = 10 |
k = '4'; n = '5' | n, k = [int(n), int(k)] | k = 4; n = 5 |
z = ['HACK', '2'] | n = int(z[1]) | n = 2; z = ['HACK', '2'] |
q = [1, 23, 12]; x = [[10, 2, 5], [7, 1, 0], [9, 9, 9]] | x.append(q) | q = [1, 23, 12]; x = [[10, 2, 5], [7, 1, 0], [9, 9, 9], [1, 23, 12]] |
l = '3 9\n' | i = l.split() | i = ['3', '9']; l = '3 9\n' |
e = ['G', 'G', 'G', 'G', 'G', 'G']; l = [['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'B', 'B', 'B', 'G', 'B'], ['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'G', 'B', 'B', 'G', 'B']] | l.append(e) | e = ['G', 'G', 'G', 'G', 'G', 'G']; l = [['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'B', 'B', 'B', 'G', 'B'], ['G', 'G', 'G', 'G', 'G', 'G'], ['G', 'G', 'B', 'B', 'G', 'B'], ['G', 'G', 'G', 'G', 'G', 'G']] |
n = '10' | n = int(n) | n = 10 |
q = '0b10000000000'; w = '1' | q += str(int(not bool(int(w)))) | q = '0b100000000000'; w = '1' |
i = 8; y = 9 | i = y | i = 9; y = 9 |
a = {'a': 6}; o = 10; x = 'aa' | a[x] = o | a = {'a': 6, 'aa': 10}; o = 10; x = 'aa' |
d = {(203): 1, (204): 2, (205): 1}; l = 206 | d[l] = d.get(l, 0) + 1 | d = {203: 1, 204: 2, 205: 1, 206: 1}; l = 206 |
j = 15; q = '0b1110' | q = bin(j) | j = 15; q = '0b1111' |
n = -4, -3, -2, -1, 0, 1, 2, 3, 4, 5; q = (); r = 9 | q = n[r + 1:len(n)] | n = (-4, -3, -2, -1, 0, 1, 2, 3, 4, 5); q = (); r = 9 |
i = 9; o = [1, 1, 2, 6, 24, 120, 720, 5040, 40320]; t = 40320 | t = o[-1] * i | i = 9; o = [1, 1, 2, 6, 24, 120, 720, 5040, 40320]; t = 362880 |
c = 0; g = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1}; i = 8; s = 'abcdefghhgfedecba' | c = g.setdefault(s[i], 0) | c = 1; g = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1}; i = 8; s = 'abcdefghhgfedecba' |
i = 0; s = '999100010001'; y = '' | y = s[i + 1:] | i = 0; s = '999100010001'; y = '99100010001' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.