start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
i = 0; j = [1, 2, 3, 4] | p = currentsum + j[i] | i = 0; j = [1, 2, 3, 4]; p = -93; w = -94 |
m = {(1): 'one', (2): 'two', (3): 'three', (4): 'four', (5): 'five'} | m[6] = 'six' | m = {1: 'one', 2: 'two', 3: 'three', 4: 'four', 5: 'five', 6: 'six'} |
f = 102334155; s = 165580141 | f = s | f = 165580141; s = 165580141 |
c = 'B'; g = ['A', 'B', 'A', 'B', 'A'] | g.append(c) | c = 'B'; g = ['A', 'B', 'A', 'B', 'A', 'B'] |
l = 'mustb' | l = l[0:len(l) - 1] | l = 'must' |
f = 'cdefghmnopqrstuvw' | c = len(f) | c = 17; f = 'cdefghmnopqrstuvw' |
h = [1, 1, 2, 0, 0, 0, 0, 0]; n = 5; y = [4, 3] | h[3] = min(y[0] - 1, n - y[1]) | h = [1, 1, 2, 2, 0, 0, 0, 0]; n = 5; y = [4, 3] |
b = [1, 1, 1]; n = 2, [1, 1]; s = 2 | n = 1 + s, b | b = [1, 1, 1]; n = (3, [1, 1, 1]); s = 2 |
r = 'Such '; x = 'were' | r += x + ' ' | r = 'Such were '; x = 'were' |
i = 0; l = [2, 1, 3, 4, 5] | l[i] = l[i + 1] | i = 0; l = [1, 1, 3, 4, 5] |
i = 0; z = [1, 2, 3, 4] | o += z[i] | i = 0; o = 63; z = [1, 2, 3, 4] |
k = 1; n = 5; p = 'aaa'; s = 'aaaaabbbbaaaa' | p = s[k:n] | k = 1; n = 5; p = 'aaaa'; s = 'aaaaabbbbaaaa' |
b = 'bba'; l = 1; s = 'abba'; t = 2 | b = s[t:t + l] | b = 'b'; l = 1; s = 'abba'; t = 2 |
f = 0; m = 4; u = 1; x = 1 | m = x + f + u | f = 0; m = 2; u = 1; x = 1 |
n = [1, 2, 4]; r = 5 | n.append(r) | n = [1, 2, 4, 5]; r = 5 |
c = [3, 2, 7] | n = len(c) | c = [3, 2, 7]; n = 3 |
d = -1; e = 0; k = 3; s = 21; t = 452 | t += k * s * pow(2, d) * pow(2, e) | d = -1; e = 0; k = 3; s = 21; t = 483.5 |
e = '}'; y = ['{', '[', '(', ']', ')'] | y.append(e) | e = '}'; y = ['{', '[', '(', ']', ')', '}'] |
r = 1, 2; s = 2, 0 | s = r | r = (1, 2); s = (1, 2) |
i = 0; k = 3; q = [0, 0, 0] | q[i % k] += 1 | i = 0; k = 3; q = [1, 0, 0] |
y = [1, 2, 1, 1] | y = [(x - min(y)) for x in y if x > min(y)] | y = [] |
h = '33' | h = h + str(3) | h = '333' |
c = 1.3333333333333333; s = 1 | s *= c + 1 | c = 1.3333333333333333; s = 2.333333333333333 |
a = 16; t = 18 | a = t | a = 18; t = 18 |
i = 5; v = [1, 1] | v.append(i) | i = 5; v = [1, 1, 5] |
f = [1, 2]; i = 2; o = 1; s = [1, 2]; x = 0 | i += f[o] - s[x] | f = [1, 2]; i = 3; o = 1; s = [1, 2]; x = 0 |
a = '8 7\n'; x = 7; y = 5 | x, y = [(int(i) - 1) for i in a.split()] | a = '8 7\n'; x = 7; y = 6 |
i = 1; n = 2; p = 0; v = {(2): 0, (1): 1} | p = v[n - i] | i = 1; n = 2; p = 1; v = {2: 0, 1: 1} |
c = 'a',; v = ['gurwgrb', 'maqz', 'holpkhqx', 'gurwgrbholpkhqxaowypvopu', 'maqzholpkhqxaowypvopu', 'gurwgrbmaqzholpkhqxaowypvopu'] | v.append(''.join(c)) | c = ('a',); v = ['gurwgrb', 'maqz', 'holpkhqx', 'gurwgrbholpkhqxaowypvopu', 'maqzholpkhqxaowypvopu', 'gurwgrbmaqzholpkhqxaowypvopu', 'a'] |
a = 'r'; b = '1'; i = ['a', '1'] | a, b = [xx for xx in i] | a = 'a'; b = '1'; i = ['a', '1'] |
i = 0; j = 1; s = 'T'; t = ['Tsi', 'h%x', 'i #', 'sM ', '$a ', '#t%', 'ir!'] | s += t[j][i] | i = 0; j = 1; s = 'Th'; t = ['Tsi', 'h%x', 'i #', 'sM ', '$a ', '#t%', 'ir!'] |
k = {-1188, 1083, 1260, 1581, -786, -594, -1293, -939, 630, -297, 315, -1572}; y = 873 | k.add(y) | k = {-1572, 873, 1260, 1581, -786, -594, 315, -1293, -939, 630, -297, 1083, -1188}; y = 873 |
h = 'l'; s = ['u'] | h = ''.join(s) | h = 'u'; s = ['u'] |
a = 97; n = [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]; o = 'b' | n[ord(o) - a] += 1 | a = 97; n = [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]; o = 'b' |
c = ']'; i = 10; s = '{{[[(())]]}}' | c = s[i] | c = '}'; i = 10; s = '{{[[(())]]}}' |
i = 3; q = 3 | q = i | i = 3; q = 3 |
x = 2 | b = bin(x) | b = '0b10'; x = 2 |
j = 2, 4; r = 0, 5; x = -2; z = 0 | j = r[0] + z, r[1] + x | j = (0, 3); r = (0, 5); x = -2; z = 0 |
r = '8'; x = 4; y = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] | y[x][1] = int(r) | r = '8'; x = 4; y = [[2, 3], [4, -1], [5, -1], [6, -1], [7, 8], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] |
o = 0; t = 0; v = [[1, 2, 10]]; x = 3.333333333333333 | o += v[t][2] - x | o = 6.666666666666667; t = 0; v = [[1, 2, 10]]; x = 3.333333333333333 |
c = ' '; i = 6; u = {'a': [0, 2, 4, 5], 'b': [1, 3]} | u[c] = [i] | c = ' '; i = 6; u = {'a': [0, 2, 4, 5], 'b': [1, 3], ' ': [6]} |
i = 4; o = ['lmon', 'no answer', 'no answer', 'acbd', 'abcd', 'fedcbabcd']; t = 'abdc' | t = o[i] | i = 4; o = ['lmon', 'no answer', 'no answer', 'acbd', 'abcd', 'fedcbabcd']; t = 'abcd' |
i = 2; t = 2; z = [2, 1, 3] | z[t] = z[i] | i = 2; t = 2; z = [2, 1, 3] |
a = 'fedcbabcd' | a = list(a) | a = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'c', 'd'] |
a = 1 | b, a = a + b, b | a = 69; b = 70 |
c = 42; p = 3; x = 3 | c = c + 2 * p * x | c = 60; p = 3; x = 3 |
a = [4, 5, 6]; f = 11; i = 1 | f += a[i] | a = [4, 5, 6]; f = 16; i = 1 |
t = '16' | c = len(t) | c = 2; t = '16' |
i = 61 | i += 1 | i = 62 |
l = 1 | l += 1 | l = 2 |
i = 1; j = 3; u = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 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]] | u[i + 1][j + 1] = u[i][j] + 1 | i = 1; j = 3; u = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 2, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]] |
p = {'a': True, 'b': True, 'c': True, 'd': True} | p = dict() | p = {} |
v = [1, 3, 1] | s.append(v) | s = [[1, 3, 1]]; v = [1, 3, 1] |
c = 1000000007; f = 111; i = 0; n = [1, 2, 3]; s = 53 | s += n[i] * (i + 1) * f % c | c = 1000000007; f = 111; i = 0; n = [1, 2, 3]; s = 164 |
i = 3; l = ['lmon', 'no answer', 'no answer', 'abdc', 'abcd', 'fedcbabcd']; z = 'dcbb' | z = l[i] | i = 3; l = ['lmon', 'no answer', 'no answer', 'abdc', 'abcd', 'fedcbabcd']; z = 'abdc' |
g = 4; i = 3 | i = g + 1 | g = 4; i = 5 |
u = set(); y = 139733349724368, 139733807760640; z = array([1.0, 2.0, 3.0, 7.0, 8.0, 9.0]) | u.add(y) | u = {(139733349724368, 139733807760640)}; y = (139733349724368, 139733807760640); z = array([1., 2., 3., 7., 8., 9.]) |
w = """2 3\n2 4\n16 32 96\n\n\n\n""" | s, q, w = 0, 0, [] | q = 0; s = 0; w = [] |
o = ['6', '2'] | g = int(o[0]) | g = 6; o = ['6', '2'] |
d = ['e', 'c', 'y']; j = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a']] | j.append(d) | d = ['e', 'c', 'y']; j = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 'y']] |
n = 9227465; t = 14930352 | n = t | n = 14930352; t = 14930352 |
d = 1; q = 1; r = [(1, 1)] | r.append((d, q)) | d = 1; q = 1; r = [(1, 1), (1, 1)] |
e = [1]; i = 'a' | e.append(ord(i) - 96) | e = [1, 1]; i = 'a' |
c = 3, 999; r = 999, 3 | c = r | c = (999, 3); r = (999, 3) |
u = 'f'; w = 112 | w ^= 1 << ord(u) - 95 | u = 'f'; w = 240 |
a = [3, 2, 1, 3, 2, 3]; i = 2; j = 2; z = 2 | z = max(a[i:j + 1]) | a = [3, 2, 1, 3, 2, 3]; i = 2; j = 2; z = 1 |
b = 1; f = [[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]]; i = 1; j = 2 | b = sum(f[i][j:j + 3]) | b = 0; f = [[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]]; i = 1; j = 2 |
g = 4; i = 1; x = [1, 3, 2, 2, 5] | x[i + 2] = g | g = 4; i = 1; x = [1, 3, 2, 4, 5] |
j = 2; n = 5; t = 16 | t = n * j | j = 2; n = 5; t = 10 |
e = 999; i = 0; s = '7891011' | e = int(s[:i + 1]) | e = 7; i = 0; s = '7891011' |
i = 'a' | g += i | g = 'WzytsdBGhYGa'; i = 'a' |
t = 'ash' | g = len(t) | g = 3; t = 'ash' |
a = [2, 1, 1]; g = [1, 2]; i = 0 | g.append(a[i] + g[-1]) | a = [2, 1, 1]; g = [1, 2, 4]; i = 0 |
w = ['3', '3'] | c = int(w[1]) | c = 3; w = ['3', '3'] |
j = 7; n = 6.0 | n = float(j) | j = 7; n = 7.0 |
x = 1; y = 2 | x, y = x - 1, y - 1 | x = 0; y = 1 |
e = 1; i = 4; r = [1, 1, 2, 3, 2] | e = r[i] | e = 2; i = 4; r = [1, 1, 2, 3, 2] |
n = [1, 1, 2, 3, 5, 8, 13, 21]; x = 1000000007 | n.append((n[-1] + n[-2]) % x) | n = [1, 1, 2, 3, 5, 8, 13, 21, 34]; x = 1000000007 |
d = 52; i = 2 | d += i | d = 54; i = 2 |
a = 18; x = [10, 12, 16] | x.append(a) | a = 18; x = [10, 12, 16, 18] |
f = ['Q', '2']; n = 'M' | n = f[0] | f = ['Q', '2']; n = 'Q' |
i = 2; s = 3; x = [4, 5, 7, 5] | s = len(x) - i | i = 2; s = 2; x = [4, 5, 7, 5] |
d = [[1, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; w = 0; x = 0 | d[x][w] = 0 | d = [[0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; w = 0; x = 0 |
k = 4; p = 4.0; q = 2.0 | q = k / p | k = 4; p = 4.0; q = 1.0 |
m = 'c'; n = {'c': 1, 'd': 1} | n[m] += 1 | m = 'c'; n = {'c': 2, 'd': 1} |
c = 12; i = 0; p = '12' | c = c + int(p[i]) | c = 13; i = 0; p = '12' |
d = [4, 4, 1, 1, 3]; i = 3 | d[i + 1] = d[i] | d = [4, 4, 1, 1, 1]; i = 3 |
t = '1\n'; z = [2, 4, 2, 6, 1, 7, 8, 9, 2] | z.append(int(t)) | t = '1\n'; z = [2, 4, 2, 6, 1, 7, 8, 9, 2, 1] |
i = 0; k = 3; m = [10, 20, 30, 100, 200, 300, 1000] | a = m[i + k - 1] - m[i] | a = 20; i = 0; k = 3; m = [10, 20, 30, 100, 200, 300, 1000] |
i = 11; q = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; v = 'p' | v = q[i - 1] | i = 11; q = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; v = 'q' |
s = 196418; t = 317811 | s = t | s = 317811; t = 317811 |
u = 1.2000000000000012e-79 | u = u / 10 | u = 1.2000000000000013e-80 |
m = 8; u = 2 | m = m + u | m = 10; u = 2 |
g = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 2]; i = 3; j = 10; m = [2, 5, 3, 6] | g[j] += g[j - m[i - 1]] | g = [1, 0, 1, 1, 1, 2, 2, 2, 3, 3, 4]; i = 3; j = 10; m = [2, 5, 3, 6] |
b = [[0, 1, 1, 0]]; o = 1; z = 1 | b.append([o, z, 1, 0]) | b = [[0, 1, 1, 0], [1, 1, 1, 0]]; o = 1; z = 1 |
i = 0; l = ['a', 'b', 'e', 'f'] | x = l[i] | i = 0; l = ['a', 'b', 'e', 'f']; x = 'a' |
i = ['went', 'to', 'the']; j = 15; r = ['i', 'came', 'from', 'the', 'moon', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room', ''] | i = r[j:j + 3] | i = []; j = 15; r = ['i', 'came', 'from', 'the', 'moon', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room', ''] |
h = 5; u = 2; x = 1 | h += u * x | h = 7; u = 2; x = 1 |
x = 17 | x += 2 | x = 19 |
a = [2, 1, 3] | a.sort() | a = [1, 2, 3] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.