start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
b = 1; i = 2; j = 3; l = [[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]] | b = sum(l[i][j:j + 3]) | b = 0; i = 2; j = 3; l = [[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]] |
a = 0 | v += [a] | a = 0; v = [0] |
m = [[1, 1, 1], [1, 3, 3], [1, 3, 3], [1, 3, 3]]; s = """5\n1 1 1 3 3\n\n\n\n""" | s = max(m, key=tuple) | m = [[1, 1, 1], [1, 3, 3], [1, 3, 3], [1, 3, 3]]; s = [1, 3, 3] |
c = [['2'], ['2', '2'], ['2', '2', '2']]; t = ['2', '2', '2', '2'] | c.append(t) | c = [['2'], ['2', '2'], ['2', '2', '2'], ['2', '2', '2', '2']]; t = ['2', '2', '2', '2'] |
e = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]; i = 4; v = 4000000010 | v += e[i] | e = [1000000001, 1000000002, 1000000003, 1000000004, 1000000005]; i = 4; v = 5000000015 |
g = ['1', '2', '5'] | c, f, e = int(g[0]), int(g[1]), int(g[2]) | c = 1; e = 5; f = 2; g = ['1', '2', '5'] |
i = 0; r = [1, 0, 5] | i, x, y = r | i = 1; r = [1, 0, 5]; x = 0; y = 5 |
z = 5 | x = list(range(z)) + list(range(z - 2, -1, -1)) | x = [0, 1, 2, 3, 4, 3, 2, 1, 0]; z = 5 |
b = 3; x = -1 | x = b | b = 3; x = 3 |
b = [[2, 4]]; s = [4, 5]; v = 0 | b[v] = s | b = [[4, 5]]; s = [4, 5]; v = 0 |
a = [0, 0, 2, 0]; i = 2; y = 2 | y -= a[i] | a = [0, 0, 2, 0]; i = 2; y = 0 |
i = 0; w = [6, 5, 2] | e += w[i] * flower_num | e = 368.71828182845906; i = 0; w = [6, 5, 2]; y = 61 |
i = 'f'; o = [2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | o[ord(i) - ord('a')] += 1 | i = 'f'; o = [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] |
y = 39 | y = y + 1 | y = 40 |
d = [1, 5, 4, 3, 2, 6]; x = 1 | b = d[x] | b = 5; d = [1, 5, 4, 3, 2, 6]; x = 1 |
i = ['1', '8', '3', '4']; j = 0 | i[j] = int(i[j]) | i = [1, '8', '3', '4']; j = 0 |
r = 20; s = 80 | s -= r | r = 20; s = 60 |
a = ['r', 'c', 't', 'p', 'q', 'm', 's', 'f', 'o', 'w', 'n', 'd', 'g', 'u', 'v', 'h', 'e']; i = 3; p = [1, 1, 1]; w = 'cdefghmnopqrstuvw' | p.append(w.count(a[i])) | a = ['r', 'c', 't', 'p', 'q', 'm', 's', 'f', 'o', 'w', 'n', 'd', 'g', 'u', 'v', 'h', 'e']; i = 3; p = [1, 1, 1, 1]; w = 'cdefghmnopqrstuvw' |
b = 4; n = 2; x = 3 | b = x ** n | b = 9; n = 2; x = 3 |
i = 6; m = 7 | i = m | i = 7; m = 7 |
n = 6; p = 3 | p = format(p / n, '.6f') | n = 6; p = '0.500000' |
x = 9007199254740992 | x *= 2 | x = 18014398509481984 |
m = 1, 1; q = 0, -1 | m = m[0] + q[0], m[1] + q[1] | m = (1, 0); q = (0, -1) |
i = 0; s = 'SOSSOSSOS' | p = s[i:i + 3] | i = 0; p = 'SOS'; s = 'SOSSOSSOS' |
i = 0; l = 110; x = [50, 13, 2] | l ^= x[i] | i = 0; l = 92; x = [50, 13, 2] |
e = [[109.85], [155.72], [137.66], [76.17], [139.75]]; g = ['0.99', '0.41', '162.6']; r = 2 | e.append(list(map(float, [g[r]]))) | e = [[109.85], [155.72], [137.66], [76.17], [139.75], [162.6]]; g = ['0.99', '0.41', '162.6']; r = 2 |
b = [10, 1, 10, 1, 10]; j = 3; l = [[0, 0], [9, 9], [9, 18], [27, 27], [0, 0]] | l[j + 1][0] = max(l[j][0], l[j][1] + abs(b[j] - 1)) | b = [10, 1, 10, 1, 10]; j = 3; l = [[0, 0], [9, 9], [9, 18], [27, 27], [27, 0]] |
a = 0 | i.append(a) | a = 0; i = [0] |
a = [0, 1, 1, 1, 999]; i = 2; s = [0, 0, 0, 1000, 999] | s[i] = s[i + 1] + a[i] | a = [0, 1, 1, 1, 999]; i = 2; s = [0, 0, 1001, 1000, 999] |
a = [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]; n = 7 | a.append(n % 2) | a = [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]; n = 7 |
c = [20] | c.pop() | c = [] |
i = 5; j = 2; v = [1, 2, 3, 3, 4] | v[j + 1] = i | i = 5; j = 2; v = [1, 2, 3, 5, 4] |
d = '4'; m = '1' | d, m = [int(d), int(m)] | d = 4; m = 1 |
f = 55; w = 34 | w = f | f = 55; w = 55 |
c = {'9', '5', '11'}; x = '12' | c.add(x) | c = {'9', '5', '11', '12'}; x = '12' |
b = 9; x = 80 | x += b * b | b = 9; x = 161 |
b = 3; l = 5; s = 4; u = [[20, 0], [8, 2], [7, 1], [5, 4], [2, 3]] | l = u[b][0] - u[s][0] | b = 3; l = 3; s = 4; u = [[20, 0], [8, 2], [7, 1], [5, 4], [2, 3]] |
g = ['do', 'we']; i = 2; p = ['do', 'we', 'can', 'must', 'what', 'because'] | g.append(p[i]) | g = ['do', 'we', 'can']; i = 2; p = ['do', 'we', 'can', 'must', 'what', 'because'] |
c = '1'; q = '99' | q += c | c = '1'; q = '991' |
i = 4; u = [(0, 0), (1, 0), (2, 1), (3, 2), (4, 3)]; z = 5 | z, i = u.pop() | i = 3; u = [(0, 0), (1, 0), (2, 1), (3, 2)]; z = 4 |
f = 5 | f = f + 1 | f = 6 |
p = {}; v = 'a' | p[v] = True | p = {'a': True}; v = 'a' |
p = 1 | p += 1 | p = 2 |
u = 'c' | h.append(u) | h = ['c']; u = 'c' |
c = [2]; k = [1, 1, 1, 2, 2]; w = 4; y = 4 | c.extend(k[w:y + 1]) | c = [2, 2]; k = [1, 1, 1, 2, 2]; w = 4; y = 4 |
n = 5; s = '7891011' | n = len(s) // 2 | n = 3; s = '7891011' |
c = 99; i = 3; l = 4 | c = l - 1 - i | c = 0; i = 3; l = 4 |
g = [157, 0, 7, 1]; w = 0 | g[w] += 1 | g = [158, 0, 7, 1]; w = 0 |
r = 2; v = 3 | x = r - v | r = 2; v = 3; x = -1 |
a = ['a', 'b', 'a']; j = ['a', 'b', 'a'] | a = j | a = ['a', 'b', 'a']; j = ['a', 'b', 'a'] |
i = 112; x = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o'] | x.append(chr(i)) | i = 112; x = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p'] |
h = 2; k = 5 | v = k - h | h = 2; k = 5; v = 3 |
m = {(1): 1, (2): 1}; o = 3 | m[o] = 0 | m = {1: 1, 2: 1, 3: 0}; o = 3 |
g = ['a', 'i', 'l', 'u', 'h', 'k', 'q'] | g.sort() | g = ['a', 'h', 'i', 'k', 'l', 'q', 'u'] |
a = 'cde'; b = 'abc'; l = 'c' | c += min(a.count(l), b.count(l)) | a = 'cde'; b = 'abc'; c = 42; l = 'c' |
i = 28; m = [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, 27, 0] | m.append(m[-1] ^ i) | i = 28; m = [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, 27, 0, 28] |
h = '1 42\n' | d = h.split(' ') | d = ['1', '42\n']; h = '1 42\n' |
b = ['a', 'b', 'd', 'c']; j = 2; z = 'o' | z = b[j - 1] | b = ['a', 'b', 'd', 'c']; j = 2; z = 'b' |
u = 29 | u = u + 1 | u = 30 |
a = ['3', '3'] | i = int(a[0]) | a = ['3', '3']; i = 3 |
a = '17' | a = int(a) | a = 17 |
s = 0; u = 2 | u = s | s = 0; u = 0 |
i = 4; k = 2 | i += 2 * k - 1 | i = 7; k = 2 |
r = 'c'; w = 2 | w += ord(r) - 96 | r = 'c'; w = 5 |
x = """In the third category he included those Brothers... breathless from his gallop and his excitement. \n""" | u = x.replace('\n', '') | u = 'In the third category he included those Brothers... breathless from his gallop and his excitement. '; x = 'In the third category he included those Brothers... breathless from his gallop and his excitement. \n' |
h = [2, 2, 2]; i = 0; t = 3 | t = h[i] | h = [2, 2, 2]; i = 0; t = 2 |
d = 1; h = 1 | d += h | d = 2; h = 1 |
g = [3, 3, 9, 9, 5]; j = 4; q = 2; x = 7 | q = (q + g[j]) % x | g = [3, 3, 9, 9, 5]; j = 4; q = 0; x = 7 |
c = 4 | c += 1 | c = 5 |
b = '1'; y = ['1', '0', '0'] | y.append('0' if b == '1' else '1') | b = '1'; y = ['1', '0', '0', '0'] |
i = 3; j = [1, 2, 1, 0, 0, 0, 0, 0, 0, 0]; o = 2 | j[i] = max(j[i], o) | i = 3; j = [1, 2, 1, 2, 0, 0, 0, 0, 0, 0]; o = 2 |
c = 2; d = 'dhck' | c = len(d) - 1 | c = 3; d = 'dhck' |
a = [1, 2, 1]; i = 1; m = [0, True, False, False, False] | m[a[i]] = True | a = [1, 2, 1]; i = 1; m = [0, True, True, False, False] |
c = 15; s = 1 | c = c + s | c = 16; s = 1 |
g = 'ifailuhkqq'; i = 1; j = 3; s = ['a'] | s = list(g[j:j + i]) | g = 'ifailuhkqq'; i = 1; j = 3; s = ['i'] |
s = 4 | s += 1 | s = 5 |
b = [99, 98, 0]; k = 4 | b = [0] * k | b = [0, 0, 0, 0]; k = 4 |
i = 36; m = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 23, 0, 24, 1, 27, 0, 28, 1, 31, 0, 32, 1, 35, 0] | m.append(m[-1] ^ i) | i = 36; m = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 23, 0, 24, 1, 27, 0, 28, 1, 31, 0, 32, 1, 35, 0, 36] |
e = [1, 4, 3, 5, 6, 2]; o = 1 | e[o + 1] = e[o] | e = [1, 4, 4, 5, 6, 2]; o = 1 |
c = 'd'; q = 'c' | q = c | c = 'd'; q = 'd' |
q = -8; y = 4 | q += 2 * y + 1 | q = 1; y = 4 |
a = [7, 50] | o = a[1] | a = [7, 50]; o = 50 |
k = 14 | k += 1 | k = 15 |
h = ['1', '0', '1'] | h = h[1:] | h = ['0', '1'] |
a = 4296032256; i = 6; r = 3; v = 'ifailuhkqq' | a -= (r + 1) ** (ord(v[i]) - ord('a')) | a = 4296015872; i = 6; r = 3; v = 'ifailuhkqq' |
g = ['0', 'ef']; y = [(0, '-'), (6, '-')] | y.append((int(g[0]), '-')) | g = ['0', 'ef']; y = [(0, '-'), (6, '-'), (0, '-')] |
m = '##' | m += '#' | m = '###' |
g = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 0, 0]; i = 18; z = '2' | g[i] = int(z) | g = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 0]; i = 18; z = '2' |
i = [1, 0, 5]; x = '2' | i.append(int(x)) | i = [1, 0, 5, 2]; x = '2' |
i = 3; n = 12; r = {1, 2, 3, 6.0, 12.0} | r.add(n / i) | i = 3; n = 12; r = {1, 2, 3, 4.0, 6.0, 12.0} |
c = 3; k = [[1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2]]; m = 2; n = 5; y = 0 | y = k[m][n - c] if n - c >= 0 else 0 | c = 3; k = [[1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2], [1, 0, 1, 1, 1, 2]]; m = 2; n = 5; y = 1 |
i = 3; l = [[True, True], [False, True], [False, False], None]; p = 1; q = -1 | l[i] = [p > 0, q > 0] | i = 3; l = [[True, True], [False, True], [False, False], [True, False]]; p = 1; q = -1 |
c = 1; d = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; o = 2; x = 0 | c += d[o][x] | c = 3; d = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; o = 2; x = 0 |
b = '0'; t = ['1', '1'] | t.append('0' if b == '1' else '1') | b = '0'; t = ['1', '1', '1'] |
n = 2 | n //= 2 | n = 1 |
k = 'c'; l = [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] | l[ord(k) - ord('a')] += 1 | k = 'c'; l = [0, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] |
j = 9699690; w = 23 | j *= w | j = 223092870; w = 23 |
c = '1000000001 1000000002 1000000003 1000000004 1000000005'; i = 1; p = 1000000001 | p += int(c.split()[i]) | c = '1000000001 1000000002 1000000003 1000000004 1000000005'; i = 1; p = 2000000003 |
i = 38120; j = {(4978): 1, (11735): 1, (14216): 1, (14470): 1} | j[i] = 1 | i = 38120; j = {4978: 1, 11735: 1, 14216: 1, 14470: 1, 38120: 1} |
y = [1, 2] | x = y[0] - 1 | x = 0; y = [1, 2] |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.