start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = 25, 64, 81; t = [3, 1000]; u = [99, 123, 138, 155, 174, 114, 138, 153] | u.append(sum(i) % t[1]) | i = (25, 64, 81); t = [3, 1000]; u = [99, 123, 138, 155, 174, 114, 138, 153, 170] |
i = 3; j = 2; m = 2; r = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [-12, -4, -4, inf, inf], [inf, -7, -1, -7, inf], [inf, inf, inf, inf, inf]] | r[i + 1][j + 1] = m | i = 3; j = 2; m = 2; r = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [-12, -4, -4, inf, inf], [inf, -7, -1, -7, inf], [inf, inf, inf, 2, inf]] |
j = 2; y = 9 | j = y | j = 9; y = 9 |
c = 50; d = {(10): 3, (20): 2, (30): 1} | d[c] = d.get(c, 0) + 1 | c = 50; d = {10: 3, 20: 2, 30: 1, 50: 1} |
s = [-1, -3, 4, 2] | x = [j for j in s if j <= 0] | s = [-1, -3, 4, 2]; x = [-1, -3] |
l = ["['i']", "['f', 'i']", "['a', 'f', 'i']", "['a', 'f', 'i', 'i', 'l', 'u']", "['a', 'f', 'h', 'i', 'i', 'l', 'u']", "['a', 'f', 'h', 'i', 'i', 'k', 'l', 'u']"]; w = "['a', 'f', 'h', 'i', 'i', 'k', 'l', 'q', 'u']" | l.append(w) | l = ["['i']", "['f', 'i']", "['a', 'f', 'i']", "['a', 'f', 'i', 'i', 'l', 'u']", "['a', 'f', 'h', 'i', 'i', 'l', 'u']", "['a', 'f', 'h', 'i', 'i', 'k', 'l', 'u']", "['a', 'f', 'h', 'i', 'i', 'k', 'l', 'q', 'u']"]; w = "['a', 'f', 'h', 'i', 'i', 'k', 'l', 'q', 'u']" |
h = ['1', '2']; i = 3 | h.append(str(i + 1)) | h = ['1', '2', '4']; i = 3 |
h = [3, 6]; p = 2 | p = h[0] | h = [3, 6]; p = 3 |
e = [3, 4, 5]; n = 12 | d = n - sum(e) | d = 0; e = [3, 4, 5]; n = 12 |
c = 0.5930843149172732; r = 12.965421574586367 | r += c | c = 0.5930843149172732; r = 13.55850588950364 |
i = 1; l = [0, 1] | l.append(i) | i = 1; l = [0, 1, 1] |
p = 3; q = [2] | p = q.pop() | p = 2; q = [] |
i = 98; o = 'aaabbbb'; x = 3 | x = o.count(chr(i)) | i = 98; o = 'aaabbbb'; x = 4 |
i = 5; o = [2, 4, 3, 7, 4, 5]; v = [[2], [2, 4], [2, 3], [2, 4, 7], [2, 3, 4]] | v.append([o[i]]) | i = 5; o = [2, 4, 3, 7, 4, 5]; v = [[2], [2, 4], [2, 3], [2, 4, 7], [2, 3, 4], [5]] |
k = [1, 2, 0, 0, 0, 0]; v = 2 | k[v] += 1 | k = [1, 2, 1, 0, 0, 0]; v = 2 |
d = 4; j = [1, 2, 3, 4, 5] | j[:] = j[d:] + j[:d] | d = 4; j = [5, 1, 2, 3, 4] |
m = 999986 | m -= 1 | m = 999985 |
v = [1, 2, 4, 8] | t = v[0] | t = 1; v = [1, 2, 4, 8] |
m = -1.0544305607863316; x = [-338760201, 945958360]; z = [-774675771, 179630170] | m = (x[1] - z[1]) / (x[0] - z[0]) | m = 1.7579738893015453; x = [-338760201, 945958360]; z = [-774675771, 179630170] |
n = 'MARKS'; z = {'ID'} | z.add(n) | n = 'MARKS'; z = {'ID', 'MARKS'} |
m = '47'; t = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33] | t.append(int(m)) | m = '47'; t = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47] |
i = 5; p = {(1): 1, (4): 3} | p[i] = 1 | i = 5; p = {1: 1, 4: 3, 5: 1} |
k = 0; l = 2; q = [[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]]; s = 2 | s = s + q[k][l] | k = 0; l = 2; q = [[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]]; s = 3 |
x = 63245986; y = 102334155 | x, y = y, x + y | x = 102334155; y = 165580141 |
l = 10; s = ['-1', '-1'] | l = int(s[0]) | l = -1; s = ['-1', '-1'] |
i = 3; u = 1000000007; x = [1, 1, 2, 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] | x[i] = x[i - 1] * i % u | i = 3; u = 1000000007; x = [1, 1, 2, 6, 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] |
j = 3; z = ['', 'e', 'a', 'b', 'e', 'e', 'f', 'e', 'a', 'b'] | z[j] = '' | j = 3; z = ['', 'e', 'a', '', 'e', 'e', 'f', 'e', 'a', 'b'] |
i = 1; m = 5 | j += i % m | i = 1; j = -28; m = 5 |
k = 0; q = [2, 3, 4, 5] | g.append('%d %d' % (q[k], q[k + 1])) | g = ['2 3']; k = 0; q = [2, 3, 4, 5] |
m = [1, 1, 2]; v = 1 | m.remove(v) | m = [1, 2]; v = 1 |
a = [0, 0, 0, 0]; i = 2; x = ['4', '5', '7', '5'] | a[i] = int(x[i]) | a = [0, 0, 7, 0]; i = 2; x = ['4', '5', '7', '5'] |
c = [10, 20, 20, 10, 10, 30, 50, 10, 20]; x = 10 | s += c.count(x) // 2 | c = [10, 20, 20, 10, 10, 30, 50, 10, 20]; s = 82; x = 10 |
g = 0; j = 4 | g = j | g = 4; j = 4 |
c = 'e'; i = 10; x = 'gfedcbagfedcba' | c = x[i] | c = 'd'; i = 10; x = 'gfedcbagfedcba' |
s = """abracadabra\n5 k\n\n\n\n""" | a = s.split() | a = ['abracadabra', '5', 'k']; s = 'abracadabra\n5 k\n\n\n\n' |
l = 'd'; x = ['b', 'b', 'c'] | x.append(l) | l = 'd'; x = ['b', 'b', 'c', 'd'] |
c = [10, 20, 20, 'x', 10, 30, 50, 10, 20]; y = 4 | c[y] = 'x' | c = [10, 20, 20, 'x', 'x', 30, 50, 10, 20]; y = 4 |
e = '2'; z = '3' | e, z = [int(e) - 1, int(z) - 1] | e = 1; z = 2 |
e = '1912'; q = ['1112'] | q.append(e) | e = '1912'; q = ['1112', '1912'] |
c = 1; n = 1000000000000; s = 'a' | f = c * int(n / len(s)) + remainderCount | c = 1; f = 999999999961; j = -39; n = 1000000000000; s = 'a' |
i = 2; p = 0 | p = i | i = 2; p = 2 |
r = 0 | y = int(r) | r = 0; y = 0 |
j = 4; l = 'haveaniceday'; s = 'h' | s += l[j] | j = 4; l = 'haveaniceday'; s = 'ha' |
i = 0; j = 3; s = 'cdcd'; x = 'c' | x = ''.join(sorted(s[j:j + i + 1])) | i = 0; j = 3; s = 'cdcd'; x = 'd' |
i = 5; l = -97; n = 3; x = 92 | l = x - i ** n | i = 5; l = -33; n = 3; x = 92 |
i = 2; j = 1; o = [[[1, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 1]], [[1, 1, 0, 0], [1, 1, 0, 0 ], [1, 1, 1, 0]], [[1, 0, 0, 0], [1, 1], 4]] | o[i][j].append(0) | i = 2; j = 1; o = [[[1, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 1]], [[1, 1, 0, 0], [1, 1, 0, 0], [1, 1, 1, 0]], [[1, 0, 0, 0], [1, 1, 0], 4]] |
h = {(0): [5], (1): []}; q = 1; y = 7 | h[q].append(y) | h = {0: [5], 1: [7]}; q = 1; y = 7 |
h = 1; p = [1, 1] | p[h] += 1 | h = 1; p = [1, 2] |
j = 25; q = 155 | q += j | j = 25; q = 180 |
a = ['6', '2']; m = 1 | m = int(a[1]) | a = ['6', '2']; m = 2 |
a = [(5, 7, 5), (5, 7, 7), (5, 7, 8), (5, 7, 9), (5, 7, 10), (4, 9, 7), (4, 9, 8), (4, 9, 9), (4, 9, 10)]; e = 114; i = 6; u = 1000 | e = sum([(x ** 2) for x in a[i]]) % u | a = [(5, 7, 5), (5, 7, 7), (5, 7, 8), (5, 7, 9), (5, 7, 10), (4, 9, 7), (4, 9, 8), (4, 9, 9), (4, 9, 10)]; e = 161; i = 6; u = 1000 |
m = [1, 2, 3, 5] | m.append(m[-1] + m[-2]) | m = [1, 2, 3, 5, 8] |
o = ['3']; s = 4 | o.append(str(s)) | o = ['3', '4']; s = 4 |
e = {(1): {2}, (2): {1, 3, 4}, (3): {2, 4}, (4): {2, 3}}; p = 1 | h = e[p] | e = {1: {2}, 2: {1, 3, 4}, 3: {2, 4}, 4: {2, 3}}; h = {2}; p = 1 |
u = '4 '; v = 4 | u += str(v) + ' ' | u = '4 4 '; v = 4 |
c = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393] | c.append(c[-1] + c[-2]) | c = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 2584, 4181, 6765, 10946, 17711, 28657, 46368, 75025, 121393, 196418] |
c = [[2, 2, 2, 2, 2, 3]]; q = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'h', 'g', 'f', 'e', 'd', 'e', 'c', 'b', 'a'] | q = c[0] if c else None | c = [[2, 2, 2, 2, 2, 3]]; q = [2, 2, 2, 2, 2, 3] |
k = ' ' | k += '#' | k = ' #' |
j = 2; l = 1 | l = j | j = 2; l = 2 |
p = {'two': 0, 'times': 0, 'three': 1, 'is': 1, 'not': 1, 'four': 1}; x = 'two' | p[x] -= 1 | p = {'two': -1, 'times': 0, 'three': 1, 'is': 1, 'not': 1, 'four': 1}; x = 'two' |
b = 6 | b += 1 | b = 7 |
i = [1, 0]; j = 1; o = 5; v = 6 | v = v + o * (i[j] + 1) | i = [1, 0]; j = 1; o = 5; v = 11 |
b = [1, 3.0]; m = [2.0, 1]; w = [1, 3.0] | m = sorted(list(set(b).intersection(set(w))), reverse=True) | b = [1, 3.0]; m = [3.0, 1]; w = [1, 3.0] |
c = 3; i = 1; p = [10, 20, 30, 100, 200, 300, 1000]; u = 20 | u = p[i + c - 1] - p[i] | c = 3; i = 1; p = [10, 20, 30, 100, 200, 300, 1000]; u = 80 |
a = '1'; v = [6, 0, 0, 1, 2, 0, 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] | v[int(a)] += 1 | a = '1'; v = [6, 1, 0, 1, 2, 0, 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] |
j = -1; y = 0 | g = y + j | g = -1; j = -1; y = 0 |
m = 1; n = 4; p = 2; y = [[1, 1, 1, 1, 1], [0, 0, 0, 0, 0]] | y[m][n] = p | m = 1; n = 4; p = 2; y = [[1, 1, 1, 1, 1], [0, 0, 0, 0, 2]] |
h = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; j = [7.5, 7.7, 7.9, 8.1, 8.3]; v = 0 | r.append(j[v] * h[2][v]) | h = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; j = [7.5, 7.7, 7.9, 8.1, 8.3]; r = [157.5]; v = 0 |
f = 1000007; n = 40921; y = 689582 | y = y * n % f | f = 1000007; n = 40921; y = 187496 |
s = 1.234e-20 | s /= 10 | s = 1.234e-21 |
a = [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, 1, 0, 0, 0, 2, 1]; i = 3 | a[i] += 1 | a = [0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 0, 2, 1]; i = 3 |
i = 1; k = 3; x = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] | k = x[i] | i = 1; k = 4; x = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42] |
r = {3}; s = '2' | r = {int(s)} | r = {2}; s = '2' |
i = 12; u = [6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; z = [6, 2, 2, 1, 4, 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] | u[i] = z[i] + u[i - 1] | i = 12; u = [6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; z = [6, 2, 2, 1, 4, 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] |
g = 1; m = 16; u = [4, 3, 2, 1, 1]; z = 2 | m = u[g] * (z + 1) | g = 1; m = 9; u = [4, 3, 2, 1, 1]; z = 2 |
k = [1, 2, 3, 4, 5] | q = min(k) | k = [1, 2, 3, 4, 5]; q = 1 |
g = 7; h = [2, -1, 2, 3, 4, -5]; i = 4 | g += h[i] | g = 11; h = [2, -1, 2, 3, 4, -5]; i = 4 |
i = 0; u = 1; x = [1, 1, 2, 2, 3, 3, 3, 4] | x[i] -= u | i = 0; u = 1; x = [0, 1, 2, 2, 3, 3, 3, 4] |
d = [0, 1, 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]; e = 4 | d[int(e)] += 1 | d = [0, 1, 1, 1, 2, 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]; e = 4 |
i = 0; o = 2.0; x = 4 | o = x / (x - i) | i = 0; o = 1.0; x = 4 |
a = [4, 3, 2, 1]; j = 0; r = 2 | a = a[:j] + sorted(a[j:r + 1]) + a[r + 1:] | a = [2, 3, 4, 1]; j = 0; r = 2 |
o = ['1', '1'] | m = int(o[1]) | m = 1; o = ['1', '1'] |
h = 5 | h += 1 | h = 6 |
i = 2; j = 1; k = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] | k[i + 1][j + 1] = max(k[i + 1][j], k[i][j + 1]) | i = 2; j = 1; k = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 2, 2, 2], [0, 1, 1, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
g = [1, 4, 3, 5, 6, 2]; i = 2; x = 2 | x = g[i] | g = [1, 4, 3, 5, 6, 2]; i = 2; x = 3 |
a = 'haveaniceday'; i = 'hae and via '; m = 0; n = 3; w = 4 | i += a[n + m * w] | a = 'haveaniceday'; i = 'hae and via e'; m = 0; n = 3; w = 4 |
e = '78910'; f = 11 | e += str(f) | e = '7891011'; f = 11 |
c = 9; x = 9 | x = c + 1 | c = 9; x = 10 |
i = 'm'; y = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1} | y[i] = 1 | i = 'm'; y = {'c': 1, 'd': 1, 'e': 1, 'f': 1, 'g': 1, 'h': 1, 'm': 1} |
u = '1'; v = '0b10000000000000000000000000' | v += str(int(not bool(int(u)))) | u = '1'; v = '0b100000000000000000000000000' |
i = 123; r = 138 | i = r | i = 138; r = 138 |
g = '100\n'; w = [10] | w.append(int(g)) | g = '100\n'; w = [10, 100] |
h = [6, 0, 0]; i = 1; j = 2; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] | h[i] += abs(l[i] - l[j]) | h = [6, 1, 0]; i = 1; j = 2; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200] |
a = [1, 1, 4, 1, 1]; v = 1 | b += a[v - 1] | a = [1, 1, 4, 1, 1]; b = -23; v = 1 |
c = [9, 7, 5, 3, 1]; i = 4; p = 27; x = 1 | p += c[i] * (x + 1) | c = [9, 7, 5, 3, 1]; i = 4; p = 29; x = 1 |
i = 4; s = [1, 1, 1, 1, 0, 0, 0, 0] | s[i] = s[i - 1] | i = 4; s = [1, 1, 1, 1, 1, 0, 0, 0] |
d = ' hae and via '; j = 3; s = 'haveaniceday' | d += s[j] | d = ' hae and via e'; j = 3; s = 'haveaniceday' |
a = 10; i = 0; o = [4, 4, 0]; t = [0, 0, 0] | a = sum(t) + i + sum(o) | a = 8; i = 0; o = [4, 4, 0]; t = [0, 0, 0] |
c = 1; d = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 2, 'f': 2, 'g': 2, 'h': 2}; i = 13; s = 'abcdefghhgfedecba' | c = d.setdefault(s[i], 0) | c = 2; d = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 2, 'f': 2, 'g': 2, 'h': 2}; i = 13; s = 'abcdefghhgfedecba' |
b = [2, 1, 8, 5]; j = 3; t = 11 | t += b[j] | b = [2, 1, 8, 5]; j = 3; t = 16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.