start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 4; k = 3; x = [1, 4] | x = [(0) for i in range(k + 1)] | i = 4; k = 3; x = [0, 0, 0, 0] |
f = 8; g = 3 | f = 1 << g | f = 8; g = 3 |
k = ['000', '001', '002', '003', '004', '005', '006', '010', '011', '012', '013', '014', '015', '016']; n = 17 | k.append('0' + str(n)) | k = ['000', '001', '002', '003', '004', '005', '006', '010', '011', '012', '013', '014', '015', '016', '017']; n = 17 |
a = '01b0'; x = 10 | a = bin(x) | a = '0b1010'; x = 10 |
f = 2; g = {(0, 1): 10, (1, 0): 10, (0, 2): 10, (2, 0): 10, (1, 3): 10, (3, 1): 10}; o = 4; t = 10 | g[f, o] = t | f = 2; g = {(0, 1): 10, (1, 0): 10, (0, 2): 10, (2, 0): 10, (1, 3): 10, (3, 1): 10, (2, 4): 10}; o = 4; t = 10 |
h = [0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; v = [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] | v, h = [0] * 26, [0] * 26 | h = [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]; v = [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] |
i = 2; m = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] | m[i][i] = 1 | i = 2; m = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 1, 0], [0, 0, 0, 0]] |
i = 82 | i += 1 | i = 83 |
r = 99912; y = '999100' | r = int(y) | r = 999100; y = '999100' |
c = [{(0): 1}, {(0): 1, (1): 1}, {(0): 1, (1): 2, (2): 1}, {(0): 1, (1): 3}]; i = 3; j = 2 | c[i][j] = c[i - 1][j - 1] + c[i - 1][j] | c = [{0: 1}, {0: 1, 1: 1}, {0: 1, 1: 2, 2: 1}, {0: 1, 1: 3, 2: 3}]; i = 3; j = 2 |
i = 1; j = 1; t = 'ab'; u = 'abba' | t = ''.join(sorted(u[j:j + i + 1])) | i = 1; j = 1; t = 'bb'; u = 'abba' |
t = {(0): {1, 4}, (1): {0}, (2): {3}, (3): {2}, (4): {0}} | q = {x: 'white' for x in list(t.keys())} | q = {0: 'white', 1: 'white', 2: 'white', 3: 'white', 4: 'white'}; t = {0: {1, 4}, 1: {0}, 2: {3}, 3: {2}, 4: {0}} |
i = 2; j = 2; m = 4; r = {(0): True, (1): True, (5): True, (6): True} | r[i * m + j] = True | i = 2; j = 2; m = 4; r = {0: True, 1: True, 5: True, 6: True, 10: True} |
i = 3; p = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None] ] | p[i].append(None) | i = 3; p = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]] |
j = 2; k = [1, 1, 0, 0] | k[j] = k[j] + k[j - 1] | j = 2; k = [1, 1, 1, 0] |
q = 60; x = 140 | x = x + q | q = 60; x = 200 |
g = '11111111111111100001'; i = '0' | g += str(int(i) ^ 1) | g = '111111111111111000011'; i = '0' |
a = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'c']; u = ['lmon', 'no answer', 'no answer', 'acbd', 'abdc'] | u.append(''.join(a)) | a = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'd', 'c']; u = ['lmon', 'no answer', 'no answer', 'acbd', 'abdc', 'fedcbabdc'] |
m = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 2, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 2, 1]; x = 10 | m[x] = m[x] + 1 | m = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 2, 1]; x = 10 |
o = '1111111111111111111111111111' | o = o + '1' | o = '11111111111111111111111111111' |
e = [1, 1, 1, 0, 0]; i = 3; x = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4] | e[x[i] - 1] += 1 | e = [1, 1, 1, 1, 0]; i = 3; x = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4] |
m = [['-', '-', '-', '-', '-'], [], [], [], ['-'], [], ['-', '-', '-', '-'], [], [], [], [], [], []]; s = 'that'; x = 4 | m[x].append(s) | m = [['-', '-', '-', '-', '-'], [], [], [], ['-', 'that'], [], ['-', '-', '-', '-'], [], [], [], [], [], []]; s = 'that'; x = 4 |
a = [5, 2, 1, 8] | a.sort() | a = [1, 2, 5, 8] |
c = '['; x = ['{', '{', '['] | c = x.pop() | c = '['; x = ['{', '{'] |
i = 1; s = '10203' | s = s[len(str(i)):] | i = 1; s = '0203' |
y = 16384 | y = y >> 1 | y = 8192 |
l = [4, 3, 2, 1, 3, 4]; v = [4, 4, 4, 4] | v.append(l[j]) | j = 0; l = [4, 3, 2, 1, 3, 4]; v = [4, 4, 4, 4, 4] |
n = 3.999999999854481; s = 7.275957614183426e-11 | n += s % 2 | n = 3.9999999999272404; s = 7.275957614183426e-11 |
b = '1111111111111' | b += '1' | b = '11111111111111' |
i = 6; j = 10; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'uhk', 'uhkq', 'uhkqq', 'h', 'hk', 'hkq']; s = 'ifailuhkqq' | l.append(s[i:j]) | i = 6; j = 10; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'uhk', 'uhkq', 'uhkqq', 'h', 'hk', 'hkq', 'hkqq']; s = 'ifailuhkqq' |
j = 148 | j += i | i = 45; j = 193 |
a = 73; g = 63 | g = a | a = 73; g = 73 |
c = {(1): [2], (2): [1], (3): [1]}; h = 3; k = 1 | c[k].append(h) | c = {1: [2, 3], 2: [1], 3: [1]}; h = 3; k = 1 |
b = [[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]]; i = 6; j = 0; x = 2 | x = b[i][j - 1] if j >= 1 else 0 | b = [[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]]; i = 6; j = 0; x = 0 |
a = 2; b = 3; l = [(0, 1), (3, 3), (2, 0), (0, 3)] | l.append((a, b)) | a = 2; b = 3; l = [(0, 1), (3, 3), (2, 0), (0, 3), (2, 3)] |
a = {'b': 0, 'e': 1}; c = 'a' | a[c] = len(a) | a = {'b': 0, 'e': 1, 'a': 2}; c = 'a' |
t = 4 | t = t - 1 | t = 3 |
h = 1; i = 1; j = 0; l = [1, 2, 3, 4, 5] | h = min(l[i:i + j + 1]) | h = 2; i = 1; j = 0; l = [1, 2, 3, 4, 5] |
f = 32; i = '1'; l = 31 | l += f * int(i) | f = 32; i = '1'; l = 63 |
y = 'p, q, a, max, index' | s = f'def __new__(_cls, {y}): return _tuple_new(_cls, ({y}))' | s = 'def __new__(_cls, p, q, a, max, index): return _tuple_new(_cls, (p, q, a, max, index))'; y = 'p, q, a, max, index' |
b = 3; g = 0; n = {(0): [0, 1, 2]} | n[g].append(b) | b = 3; g = 0; n = {0: [0, 1, 2, 3]} |
i = 2; x = {(0): {0}, (1): {1}} | x[i] = set([i]) | i = 2; x = {0: {0}, 1: {1}, 2: {2}} |
i = -5; t = 10 | t += i | i = -5; t = 5 |
i = 4; k = 4; p = 0; r = [1, 0, 0, 1, 2, 2, 2]; s = [1, 1, 1, 0, 1, 0, 0, 1, 1, 0] | r[i] = p ^ s[i] ^ r[i - k] | i = 4; k = 4; p = 0; r = [1, 0, 0, 1, 0, 2, 2]; s = [1, 1, 1, 0, 1, 0, 0, 1, 1, 0] |
a = {1, 2, 3}; b = [] | b.append(a) | a = {1, 2, 3}; b = [{1, 2, 3}] |
d = [[1, 1], None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]; i = 2; j = 0 | d[j].append(d[j][i - 1]) | d = [[1, 1, 1], None, None, None, None, None, None, None, None, None, None, None, None, None, None, None]; i = 2; j = 0 |
n = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; r = [2]; x = 1 | r.append(n[x]) | n = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; r = [2, 2]; x = 1 |
s = 400.0 | s /= 10 | s = 40.0 |
e = Counter({(10): 4, (20): 3, (30): 1, (50): 1}); s = 4.0; x = 50 | s += e[x] / 2 | e = Counter({10: 4, 20: 3, 30: 1, 50: 1}); s = 4.5; x = 50 |
a = [2, 0]; q = [2, 2] | z = (a[0] - q[0]) ** 2 + (a[1] - q[1]) ** 2 | a = [2, 0]; q = [2, 2]; z = 4 |
i = '1' | j += int(i) | i = '1'; j = 46 |
i = 4; r = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; v = [1, 1, 1, 1, 0] | v[r[i] - 1] += 1 | i = 4; r = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; v = [1, 1, 1, 1, 1] |
v = 1 | v += 1 | v = 2 |
i = ['5', '3'] | k = int(i[1]) | i = ['5', '3']; k = 3 |
n = 'c'; t = 'k' | n = t[:1] | n = 'k'; t = 'k' |
f = 1; p = [[], [2], [], []]; r = 2 | p[r].append(f) | f = 1; p = [[], [2], [1], []]; r = 2 |
j = 0; s = [1, 2, 3]; v = [1, 2, 2] | v[j + 2] = s[2] | j = 0; s = [1, 2, 3]; v = [1, 2, 3] |
i = 5; j = 3 | j = i | i = 5; j = 5 |
h = 6; o = 5 | h *= o | h = 30; o = 5 |
d = 'afi'; i = 2; j = 2; t = 'ifailuhkqq' | d = ''.join(sorted(t[j:j + i + 1])) | d = 'ail'; i = 2; j = 2; t = 'ifailuhkqq' |
a = 'c'; i = 'd' | a = i | a = 'd'; i = 'd' |
r = [('a', 'a'), ('a', 'c'), ('a', 'd'), ('a', 'c'), ('a', 'd'), ('c', 'd')] | t = len(r) | r = [('a', 'a'), ('a', 'c'), ('a', 'd'), ('a', 'c'), ('a', 'd'), ('c', 'd')]; t = 6 |
v = '100000000' | v += '0' | v = '1000000000' |
r = 1; s = '1 '; w = [1, 2, 3, 4, 5, 6] | s = s + str(w[r]) + ' ' | r = 1; s = '1 2 '; w = [1, 2, 3, 4, 5, 6] |
b = ['a', 'b', 'c', 'a', 'b', 'c', 'd', 'd']; i = 1; j = 8; t = 'abcabcddd' | b.append(t[j:j + i]) | b = ['a', 'b', 'c', 'a', 'b', 'c', 'd', 'd', 'd']; i = 1; j = 8; t = 'abcabcddd' |
k = ( 'I came from the moon. He went to the other room. She went to the drawing room. \n' ) | s = k.strip() | k = 'I came from the moon. He went to the other room. She went to the drawing room. \n'; s = 'I came from the moon. He went to the other room. She went to the drawing room.' |
b = '1111111111111110' | b += '0' | b = '11111111111111100' |
b = 4.0745362639427185e-10 | b /= 2 | b = 2.0372681319713593e-10 |
k = [8, 9, 7] | t = k.index(max(k)) | k = [8, 9, 7]; t = 1 |
k = 1; s = [2] | k = len(s) | k = 1; s = [2] |
a = ['1000000001', '1000000002', '1000000003', '1000000004', '1000000005']; i = 4; s = 4000000010 | s = s + int(a[i]) | a = ['1000000001', '1000000002', '1000000003', '1000000004', '1000000005']; i = 4; s = 5000000015 |
a = [1]; i = 2 | a.append(i) | a = [1, 2]; i = 2 |
q = '2229505813'; s = ['7283455864', '6731158619', '8988242643', '3830589324'] | s.append(q) | q = '2229505813'; s = ['7283455864', '6731158619', '8988242643', '3830589324', '2229505813'] |
x = 4; z = {(1): 1, (2): 1, (3): 1} | z[x] = 1 | x = 4; z = {1: 1, 2: 1, 3: 1, 4: 1} |
v = 1 | v = v + 1 | v = 2 |
e = 10 | e = e & e - 1 | e = 8 |
k = 'B'; s = 'BB' | s = k | k = 'B'; s = 'B' |
i = 'g'; s = 'gfedcbagfedcba'; u = 8 | i = s[u] | i = 'f'; s = 'gfedcbagfedcba'; u = 8 |
o = {'i': 1, 'fi': 1}; y = 'afi' | o[y] = o.get(y, 0) + 1 | o = {'i': 1, 'fi': 1, 'afi': 1}; y = 'afi' |
m = 3; u = 4 | q = abs(m - u) | m = 3; q = 1; u = 4 |
t = 12 | t += 6 | t = 18 |
f = '15'; r = '10111' | r = bin(int(f))[2:] | f = '15'; r = '1111' |
t = ['4', '9'] | l = int(t[0]) | l = 4; t = ['4', '9'] |
s = [0, 0, 0]; v = [[0, 0, 0]] | v.append(s) | s = [0, 0, 0]; v = [[0, 0, 0], [0, 0, 0]] |
d = 2147483648; i = 1; o = '11111111111111111111111111111011' | d += 2 ** (len(o) - 1 - i) | d = 3221225472; i = 1; o = '11111111111111111111111111111011' |
c = [1, 2, 1, 2, 1, 2, 1, 2]; i = 5; l = 3; r = 2 | l = l + max(r, c[i]) | c = [1, 2, 1, 2, 1, 2, 1, 2]; i = 5; l = 5; r = 2 |
h = ['l', 'm', 'n', 'o'] | n = len(h) | h = ['l', 'm', 'n', 'o']; n = 4 |
k = 400; r = 340 | r = k | k = 400; r = 400 |
g = 5; i = 2; k = 1 | g = i - k | g = 1; i = 2; k = 1 |
i = [[1, 1]]; n = [1, 1] | i.append(n) | i = [[1, 1], [1, 1]]; n = [1, 1] |
u = 'b'; w = {'b': 1} | w[u] += 1 | u = 'b'; w = {'b': 2} |
h = 2000000003; i = '1000000003' | h += int(i) | h = 3000000006; i = '1000000003' |
a = 5; o = 4 | h = abs(a - o) | a = 5; h = 1; o = 4 |
b = [1, 2, 1, 2, 1, 0, 0, 0]; i = 5 | b[i] = b[i - 1] + 1 | b = [1, 2, 1, 2, 1, 2, 0, 0]; i = 5 |
c = [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]; x = 'g' | c[ord(x) - 97] += 1 | c = [2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'g' |
a = [[0, 0, 'ab'], [6, 1, 'cd'], [0, 2, 'ef']]; i = 3; m = 6; s = 'gh' | a.append([m, i, s]) | a = [[0, 0, 'ab'], [6, 1, 'cd'], [0, 2, 'ef'], [6, 3, 'gh']]; i = 3; m = 6; s = 'gh' |
v = ['3', '2'] | v[0] = int(v[0]) | v = [3, '2'] |
e = 1, 3; r = 1; v = 4 | e = tuple(sorted([r, v])) | e = (1, 4); r = 1; v = 4 |
a = [4, 2, 9, 10, 1]; i = 0; x = 31 | d += x * a[i] | a = [4, 2, 9, 10, 1]; d = 184; i = 0; x = 31 |
x = 1 | s = x | s = 1; x = 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.