start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
o = 'OO...' | o += 'O' | o = 'OO...O' |
b = '07' | b = int(b) + 12 | b = 19 |
g = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423]; p = 11 | g.append(9 * 2 ** p + g[-1]) | g = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423, 36855]; p = 11 |
i = 1; j = 2; s = [[1, 1, 1, 1, 1], [1, 1]] | s[i].append(s[i - 1][j]) | i = 1; j = 2; s = [[1, 1, 1, 1, 1], [1, 1, 1]] |
i = 1; j = 8; r = 'afhilu'; s = 'ifailuhkqq' | r = list(s[i:j]) | i = 1; j = 8; r = ['f', 'a', 'i', 'l', 'u', 'h', 'k']; s = 'ifailuhkqq' |
e = [1, 0, 0, 0]; t = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0]] | t.append(e) | e = [1, 0, 0, 0]; t = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]] |
b = 5 | b = b + 1 | b = 6 |
v = '0' | v = '0' + v | v = '00' |
f = '1' | f = 4 - int(f) | f = 3 |
i = 13 | i += 1 | i = 14 |
a = 'dkhc'; f = ['d', 'k', 'h']; i = 3 | f.append(a[i]) | a = 'dkhc'; f = ['d', 'k', 'h', 'c']; i = 3 |
q = [999, 1, 1, 1, 0]; z = [0, 1, 2, 3, 1001] | z = [q[0], q[0] + q[1], q[0] + q[1] + q[2]] | q = [999, 1, 1, 1, 0]; z = [999, 1000, 1001] |
i = 'aaaa'; z = {'a': 1, 'aa': 1, 'aaa': 1} | z[i] = 1 | i = 'aaaa'; z = {'a': 1, 'aa': 1, 'aaa': 1, 'aaaa': 1} |
s = 1 | r = [s] | r = [1]; s = 1 |
b = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; v = """10\n-20 -3916237 -357920 -3620601 7374819 -7330761 30 6246457 -6461594 266854 \n\n\n\n""" | v = [str(b[0]), str(b[1])] | b = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]; v = ['-7330761', '-6461594'] |
h = '010000001001'; y = '0' | h = h + y | h = '0100000010010'; y = '0' |
i = 5; j = 9; t = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'luhkq', 'luhkqq', 'u', 'uh', 'uhk', 'uhkq']; u = 'ifailuhkqq' | t.append(u[i:j + 1]) | i = 5; j = 9; t = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'luhkq', 'luhkqq', 'u', 'uh', 'uhk', 'uhkq', 'uhkqq']; u = 'ifailuhkqq' |
n = '100'; t = '1' | n = int(t) | n = 1; t = '1' |
g = ( 'Delhi, is a metropolitan and the capital region ...ter Mumbai and the largest city in terms of area.' ) | e = g.split(' ') | e = ['Delhi,', 'is', 'a', 'metropolitan', 'and', 'the', 'capital', 'region', '...ter', 'Mumbai', 'and', 'the', 'largest', 'city', 'in', 'terms', 'of', 'area.']; g = 'Delhi, is a metropolitan and the capital region ...ter Mumbai and the largest city in terms of area.' |
a = 20; x = 25 | a = x | a = 25; x = 25 |
y = '7' | y = int(y) + 1 | y = 8 |
d = 1; r = [1, 2] | d = len(r) | d = 2; r = [1, 2] |
x = 12500 | x //= 2 | x = 6250 |
k = [100, 100, 0, 0, -100, -100]; q = 100; x = 1 | q += k[x] | k = [100, 100, 0, 0, -100, -100]; q = 200; x = 1 |
i = 2; j = 2; p = ['.....', '.x.x.', '.....', '.....']; w = [0, 1] | w.append(-1 if p[i][j] == 'x' else w[j - 1] + 1) | i = 2; j = 2; p = ['.....', '.x.x.', '.....', '.....']; w = [0, 1, 2] |
b = [0, 0, 0]; i = 0 | b[i] = 1 | b = [1, 0, 0]; i = 0 |
f = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30)]); q = '10'; w = 'APPLE JUICE' | f[w] = f.get(w, 0) + int(q) | f = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 10)]); q = '10'; w = 'APPLE JUICE' |
i = 2; j = 3; k = 'abb'; s = 'abba' | k = list(s[i:j]) | i = 2; j = 3; k = ['b']; s = 'abba' |
g = 2; l = [5] | l.append(g) | g = 2; l = [5, 2] |
f = 2; l = deque([]); w = 0 | l.append((f, w + 6)) | f = 2; l = deque([(2, 6)]); w = 0 |
a = [1, 5, 4, 3, 5, 6]; m = 4; y = 2 | a[m] = y | a = [1, 5, 4, 3, 2, 6]; m = 4; y = 2 |
d = 43; f = 88 | d = d & f | d = 8; f = 88 |
f = [1, 4, 3, 5, 6, 'None']; i = 5; p = ['1', '4', '3', '5', '6', '2'] | f[i] = int(p[i]) | f = [1, 4, 3, 5, 6, 2]; i = 5; p = ['1', '4', '3', '5', '6', '2'] |
c = 4; f = 4 | f += c | c = 4; f = 8 |
i = 29; n = '29' | i += int(n[-1]) | i = 38; n = '29' |
s = 7; u = [[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]]; x = 1; y = 0 | s = u[y][x] + u[y][x + 1] + u[y][x + 2] + u[y + 1][x + 1] + u[y + 2][x] + u[ y + 2][x + 1] + u[y + 2][x + 2] | s = 4; u = [[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]]; x = 1; y = 0 |
g = 4; i = 4; s = 'haveaniceday'; y = {(0): 'h', (1): 'a', (2): 'v', (3): 'e'} | y[i % g] += s[i] | g = 4; i = 4; s = 'haveaniceday'; y = {0: 'ha', 1: 'a', 2: 'v', 3: 'e'} |
o = 7 + 7.0j | h = str(round(o.real, 2)).index('.') | h = 1; o = (7+7j) |
d = 5; n = 3; t = 2, 3 | t = n, d | d = 5; n = 3; t = (3, 5) |
n = 2; o = [1, 1, 2] | n = len(o) | n = 3; o = [1, 1, 2] |
a = 1; b = 0; d = 8; i = 2; j = 0; m = 8; y = [[0, 8, 0, 0, 0], [8, 0, 2, 4, 5], [0, 2, 0, 6, 7], [0, 4, 6, 0, 1], [0, 5, 7, 1, 0]] | d = y[i][a] + m + y[b][j] | a = 1; b = 0; d = 10; i = 2; j = 0; m = 8; y = [[0, 8, 0, 0, 0], [8, 0, 2, 4, 5], [0, 2, 0, 6, 7], [0, 4, 6, 0, 1], [0, 5, 7, 1, 0]] |
a = 'zfzahm'; w = {'ozkxyhkcst': 1, 'xvglh': 1, 'hpdnb': 1, 'zfzahm': 1} | b = w[a] | a = 'zfzahm'; b = 1; w = {'ozkxyhkcst': 1, 'xvglh': 1, 'hpdnb': 1, 'zfzahm': 1} |
d = ['e', 'f', 'b']; i = 0 | d.pop(i) | d = ['f', 'b']; i = 0 |
l = 3; s = 133; x = [3, 6, 12, 24, 46, 87, 163] | s = s + x[l] | l = 3; s = 157; x = [3, 6, 12, 24, 46, 87, 163] |
h = 1.0; i = 1; p = {(7.0): 1, (4.0): 2, (1.0): 3} | p[h] = i | h = 1.0; i = 1; p = {7.0: 1, 4.0: 2, 1.0: 1} |
r = '30' | r = int(r) | r = 30 |
m = '5'; n = '4'; s = '4' | n, m, s = [int(n), int(m), int(s)] | m = 5; n = 4; s = 4 |
c = [10, 10, 10, 10, 20, 20, 20, 30, 50] | d = {i: c.count(i) for i in c} | c = []; d = {} |
v = 16 | x += v | v = 16; x = 93 |
i = '['; w = ['{'] | w.append(i) | i = '['; w = ['{', '['] |
f = [2, 2]; x = [[0, 2], [1, 1]] | f = sorted(map(sum, list(zip(*x)))) | f = [1, 3]; x = [[0, 2], [1, 1]] |
h = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 16, 1, 19, 0, 20, 1, 23, 0, 24]; x = 25 | h.append(h[-1] ^ x) | h = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 16, 1, 19, 0, 20, 1, 23, 0, 24, 1]; x = 25 |
i = 2; m = [3, 3, 0]; s = 1 | m[i] = s | i = 2; m = [3, 3, 1]; s = 1 |
a = 145; b = 190; c = 168; w = 163 | w = (a | b) ^ c | a = 145; b = 190; c = 168; w = 23 |
a = 4; c = 1; f = 0; g = 2; r = {(0): [0, 0, 0], (1): [0, 0, 1], (2): [0, 1, 0], (3): [0, 1, 2]} | r[a] = [f, g, c] | a = 4; c = 1; f = 0; g = 2; r = {0: [0, 0, 0], 1: [0, 0, 1], 2: [0, 1, 0], 3: [0, 1, 2], 4: [0, 2, 1]} |
h = ['contan', 'seroius ', 'pureli', 'dose']; z = 'note' | h.append(z) | h = ['contan', 'seroius ', 'pureli', 'dose', 'note']; z = 'note' |
i = 1; j = 1; n = [1] | t ^= n[i - j] | i = 1; j = 1; n = [1]; t = 37 |
d = ['Akriti', 41.0]; t = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2]] | t.append(d) | d = ['Akriti', 41.0]; t = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2], ['Akriti', 41.0]] |
d = 21; s = 16 | s = d + 4 | d = 21; s = 25 |
x = 4 | x = str(x) | x = '4' |
i = 2; s = [0, 1] | s.append(i) | i = 2; s = [0, 1, 2] |
j = 2; l = [1, 1, 4, 1, 1]; x = 1 | x += l[j - 1] | j = 2; l = [1, 1, 4, 1, 1]; x = 2 |
v = 16384 | v *= 2 | v = 32768 |
i = 0; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | t = l[i + k - 1] - l[i] | i = 0; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; t = 3 |
m = {'a': 3, 'b': 3}; x = 'b' | m[x] += 1 | m = {'a': 3, 'b': 4}; x = 'b' |
c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91]; z = 76 | c.append(z) | c = [76, 76, 95, 96, 79, 74, 97, 97, 90, 90, 78, 91, 76]; z = 76 |
a = ['A', 'A', 'A', 'A']; b = [65, 65, 65]; i = 3 | b.append(ord(a[i])) | a = ['A', 'A', 'A', 'A']; b = [65, 65, 65, 65]; i = 3 |
x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']] | m = type(x) | m = <class 'list'>; x = [['+', '-', '+', '+', '+', '+'], ['+', '-', '+', '+', '+', '+'], ['+', '-', '-', '-', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+'], ['+', '+', '+', '+', '+', '+']] |
n = 5 | i = n - 3 | i = 2; n = 5 |
i = [[2, 0]]; o = [[1, 0], [1, 0]] | o.append(i.pop(0)) | i = []; o = [[1, 0], [1, 0], [2, 0]] |
b = 86772; s = ['95', '87', '95'] | b += int(s[1]) ** 2 | b = 94341; s = ['95', '87', '95'] |
i = 2; j = 2; l = [(3, 2), (1, 2)] | l.append((i, j + 1)) | i = 2; j = 2; l = [(3, 2), (1, 2), (2, 3)] |
a = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; i = 1; j = 0; n = 2; v = 114 | v = a[2 * n - 1 - i][2 * n - 1 - j] | a = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; i = 1; j = 0; n = 2; v = 43 |
i = 3; j = 6; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ailuh', 'ailuhk', 'ailuhkq', 'ailuhkqq', 'i', 'il']; s = 'ifailuhkqq' | l.append(s[i:j]) | i = 3; j = 6; l = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ailuh', 'ailuhk', 'ailuhkq', 'ailuhkqq', 'i', 'il', 'ilu']; s = 'ifailuhkqq' |
g = 5; i = 4; p = [3, 4, 5, 7, 6, 2] | g = p[i] | g = 6; i = 4; p = [3, 4, 5, 7, 6, 2] |
q = ['33', '67', '76']; z = 1039 | z += int(q[2]) | q = ['33', '67', '76']; z = 1115 |
j = 5; r = [0, 1, 2, 0, 3, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; u = 9 | r[u] = j | j = 5; r = [0, 1, 2, 0, 3, 0, 4, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; u = 9 |
i = 1 | w.append(i) | i = 1; w = [1] |
i = 2; p = 'e'; s = 'beabeefeab' | p += s[i] | i = 2; p = 'ea'; s = 'beabeefeab' |
s = [[10, 20, 20, 50, 10, 20]] | c = s[0] if s else None | c = [10, 20, 20, 50, 10, 20]; s = [[10, 20, 20, 50, 10, 20]] |
a = 3; k = 100; v = [100, 100, -100, 0, 0, -100] | v[a - 1] += k | a = 3; k = 100; v = [100, 100, 0, 0, 0, -100] |
j = 0; m = 3; t = [20, 30, 10] | o += t[j] * m | j = 0; m = 3; o = -15; t = [20, 30, 10] |
o = -2; v = 0 | o = max(o, v) | o = 0; v = 0 |
l = 8; s = 'ABABABAB\n'; w = 'B' | w = s[l] | l = 8; s = 'ABABABAB\n'; w = '\n' |
n = [25, 12]; o = 11 | o = n[1] | n = [25, 12]; o = 12 |
c = 149; d = 15 | d = (c + d) % (10 ** 9 + 7) | c = 149; d = 164 |
m = [1]; n = 0; s = range(0, 3) | m.append(1 + min((s[n], s[n + 1], m[-1]))) | m = [1, 1]; n = 0; s = range(0, 3) |
c = 'f'; x = 'a' | c = x | c = 'a'; x = 'a' |
e = [[1], [0, 2, 4], [1], [4], [1, 3, 5], []]; x = 5; y = 6 | e[y - 1].append(x - 1) | e = [[1], [0, 2, 4], [1], [4], [1, 3, 5], [4]]; x = 5; y = 6 |
b = 0 | b += 1 | b = 1 |
g = {4, -3}; v = [-5, -4, -3, 2, 3, 4, 5]; y = 6 | g.discard(v[y] - 1) | g = {-3}; v = [-5, -4, -3, 2, 3, 4, 5]; y = 6 |
h = [1, 1, 2, 3, 5] | h.append(h[-1] + h[-2]) | h = [1, 1, 2, 3, 5, 8] |
d = 0; f = 808; m = 728, 0 | f, d = m | d = 0; f = 728; m = (728, 0) |
e = [-1]; i = 1; l = [-1, 1, 2, 3, 4, 5, -1] | e.append(l[i]) | e = [-1, 1]; i = 1; l = [-1, 1, 2, 3, 4, 5, -1] |
x = ['BANANA', 'FRIES', '12'] | o = ' '.join(x[:-1]) | o = 'BANANA FRIES'; x = ['BANANA', 'FRIES', '12'] |
p = 224225248; s = 1000000007 | p = p * p % s | p = 488722777; s = 1000000007 |
b = '1 2\n' | t = list(map(int, b.strip().split())) | b = '1 2\n'; t = [1, 2] |
o = 3; v = 1 | v = max(v, o) | o = 3; v = 3 |
b = 1.2037062152420224e-34 | b /= 2 | b = 6.018531076210112e-35 |
i = 1; o = [1, 2, 2, 6]; t = 2 | o[i] = o[i] - t | i = 1; o = [1, 0, 2, 6]; t = 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.