start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
e = 0; m = 3 | e = m // 2 | e = 1; m = 3 |
b = 39.0; g = ['Harsh'] | g.append(b) | b = 39.0; g = ['Harsh', 39.0] |
a = [0, 0, 4, 4, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' | a[ord(i) - 97] = a[ord(i) - 97] + 1 | a = [0, 0, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'e' |
k = 1; p = 'B'; x = 'BABABA' | p = x[k] | k = 1; p = 'A'; x = 'BABABA' |
b = 3; i = 2; y = [1, 2, 5, 4, 4] | y[i + 2] = b | b = 3; i = 2; y = [1, 2, 5, 4, 3] |
a = [1, 1, 1, 1, 1, 1] | a.append(1) | a = [1, 1, 1, 1, 1, 1, 1] |
b = 99; i = 3; s = 'acxz' | b = ord(s[i - 1]) | b = 120; i = 3; s = 'acxz' |
f = '2'; h = '4' | f = f + h | f = '24'; h = '4' |
a = 2; h = [0, 100, 0, -100, 0, 0, 0]; k = 100 | h[a] += k | a = 2; h = [0, 100, 100, -100, 0, 0, 0]; k = 100 |
c = 2; r = [1, 1, 2, 2, 3, 2, 2, 1]; s = 3 | r[6] = min(r[6], s - c - 1) | c = 2; r = [1, 1, 2, 2, 3, 2, 0, 1]; s = 3 |
f = 'CANDY'; t = ['POTATO', 'CHIPS', '30'] | f = ' '.join(t[:-1]) | f = 'POTATO CHIPS'; t = ['POTATO', 'CHIPS', '30'] |
x = '1' | x = int(x) | x = 1 |
i = 11; o = ['c', 'd', 'c', 'd', 'c', 'd', 'c', 'd', 'e', 'e', 'e', 'e', 'f']; z = {'c': 4, 'd': 4, 'e': 3} | z[o[i]] = z[o[i]] + 1 | i = 11; o = ['c', 'd', 'c', 'd', 'c', 'd', 'c', 'd', 'e', 'e', 'e', 'e', 'f']; z = {'c': 4, 'd': 4, 'e': 4} |
m = 4; q = 3; y = [1, 3, 2, 4, 5] | m = max(y[:q]) | m = 3; q = 3; y = [1, 3, 2, 4, 5] |
n = 2; y = {(0): 0} | y[n] = 0 | n = 2; y = {0: 0, 2: 0} |
i = 'f'; k = 'aabbccddeefghi' | x = k.count(i) | i = 'f'; k = 'aabbccddeefghi'; x = 1 |
d = deque([]); s = ['append', '1'] | d.append(s[1]) | d = deque(['1']); s = ['append', '1'] |
i = 13; j = 15; x = 3 | x = i ^ j | i = 13; j = 15; x = 2 |
d = 10; j = 3; k = 1; u = 5 | j = k + u if k + u <= d and k + u > j else j | d = 10; j = 6; k = 1; u = 5 |
a = 'dcbb' | a = list(a) | a = ['d', 'c', 'b', 'b'] |
d = [0, 0, 0, 0, 0, 0]; i = 1; m = [1, 2, 3, 4, 5] | d[i] = d[i - 1] + m[i - 1] | d = [0, 1, 0, 0, 0, 0]; i = 1; m = [1, 2, 3, 4, 5] |
f = 1000007; n = 40921; t = 848920 | t = t * n % f | f = 1000007; n = 40921; t = 412154 |
i = 5; j = 4 | j = i + 1 | i = 5; j = 6 |
d = {4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44}; j = 23 | d.add(j * i) | d = {4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 1357}; i = 59; j = 23 |
c = 2 | l.append(c) | c = 2; l = [2] |
u = [1, 3, 5, 7, 9] | u.sort(reverse=True) | u = [9, 7, 5, 3, 1] |
k = 44; x = '9' | k = int(x) | k = 9; x = '9' |
n = 6; q = '092282' | f = [int(x) for x in q[:n // 2]] | f = [0, 9, 2]; n = 6; q = '092282' |
i = 3; n = 99; s = '99910001001' | n = int(s[:i]) | i = 3; n = 999; s = '99910001001' |
a = 1.44; x = 0.288 | a += x | a = 1.728; x = 0.288 |
c = 3; m = [1, 2, 3, 7, 12, 14, 21, 21]; r = 1 | r = m[c] | c = 3; m = [1, 2, 3, 7, 12, 14, 21, 21]; r = 7 |
a = 274877906944; j = ['1', '2', '4', '8', '16', '8589934592', '17179869184', '34359738368', '68719476736', '137438953472'] | j.append(str(a)) | a = 274877906944; j = ['1', '2', '4', '8', '16', '8589934592', '17179869184', '34359738368', '68719476736', '137438953472', '274877906944'] |
b = 12; y = '1011' | y += str(b) | b = 12; y = '101112' |
t = 3 | y.append(t) | t = 3; y = [3] |
r = [2, 3, 5, 7, 11, 13]; x = 17 | r.append(x) | r = [2, 3, 5, 7, 11, 13, 17]; x = 17 |
i = 'a' | l.append([i]) | i = 'a'; l = [['a']] |
i = 4; t = [3, 6, 1, 3, 1]; x = 3 | x = t[i] | i = 4; t = [3, 6, 1, 3, 1]; x = 1 |
d = 5 | d += 1 | d = 6 |
i = 4; s = {(2): 1, (4): 2, (3): 2, (7): 3}; v = [2, 4, 3, 7, 4, 5]; y = 2 | s[v[i]] = y + 1 | i = 4; s = {2: 1, 4: 3, 3: 2, 7: 3}; v = [2, 4, 3, 7, 4, 5]; y = 2 |
e = 1; k = 1 | r = e + 2 * k | e = 1; k = 1; r = 3 |
i = 1 | b.append(b[-1] ^ i) | b = [-7, -3, 3, 2]; i = 1 |
p = 2 | p += 1 | p = 3 |
q = 7; s = ['3', '3'] | q = int(s[0]) | q = 3; s = ['3', '3'] |
n = '123' | q = len(n) | n = '123'; q = 3 |
g = 10; x = 94 | g = x | g = 94; x = 94 |
i = 1 | a = i | a = 1; i = 1 |
a = {(0): 1, (2): 1, (4): 2, (6): 2}; c = {(0): 1}; y = 8 | c[y] = a.get(y, 0) + 1 | a = {0: 1, 2: 1, 4: 2, 6: 2}; c = {0: 1, 8: 1}; y = 8 |
a = [1, 2, 3, 4]; i = 3; j = 1; k = 2; n = 4; p = -12; z = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, inf, inf, inf, inf]] | p = z[i][j] + a[i] * (i - j - (n - k - (i - j))) | a = [1, 2, 3, 4]; i = 3; j = 1; k = 2; n = 4; p = 6; z = [[0, inf, inf, inf, inf], [-2, -2, inf, inf, inf], [-6, -2, -6, inf, inf], [-12, -2, -2, -12, inf], [inf, inf, inf, inf, inf]] |
t = [1] | z = len(t) | t = [1]; z = 1 |
d = 'reverse'; j = ['print'] | d = j[0] | d = 'print'; j = ['print'] |
b = 2 | b = b + 1 | b = 3 |
e = [1, 1, 2, 6, 51090942171709440000, 1124000727777607680000, 25852016738884976640000, 620448401733239439360000]; i = 25; t = 620448401733239439360000 | t = e[-1] * i | e = [1, 1, 2, 6, 51090942171709440000, 1124000727777607680000, 25852016738884976640000, 620448401733239439360000]; i = 25; t = 15511210043330985984000000 |
n = 5; o = '4' | o = oct(n)[2:] | n = 5; o = '5' |
b = 2; i = 0; z = [[1, 2, 3], [3, 2, 1], [1, 2, 3]] | r = z[i][b] | b = 2; i = 0; r = 3; z = [[1, 2, 3], [3, 2, 1], [1, 2, 3]] |
p = [{}, {}, {(2): 1}, {(3): 1}, {(2): 2}, {(5): 1}, {(2): 3}, {(3): 2}, {( 2): 1, (5): 1}, {(11): 1}, {(2): 2, (3): 1}, {(13): 1}] | p.append({}) | p = [{}, {}, {2: 1}, {3: 1}, {2: 2}, {5: 1}, {2: 3}, {3: 2}, {2: 1, 5: 1}, {11: 1}, {2: 2, 3: 1}, {13: 1}, {}] |
i = 2; j = 2 | j = i + 1 | i = 2; j = 3 |
h = deque([(2, 2, 2)]); m = 2; x = 2; y = 1 | x, y, m = h.popleft() | h = deque([]); m = 2; x = 2; y = 2 |
c = 'f'; h = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1} | h[c] = h.get(c, 0) + 1 | c = 'f'; h = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 1} |
c = [0, 1, 2, 3]; i = 3; n = [6, 5] | n.append(c[i]) | c = [0, 1, 2, 3]; i = 3; n = [6, 5, 3] |
x = [1, 12, 5, 111, 200, 1000, 10] | x.sort() | x = [1, 5, 10, 12, 111, 200, 1000] |
h = ['i', 'came', 'from', 'the', 'moon', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room', '']; j = 6; q = ['the', 'moon', 'he'] | q = h[j:j + 3] | h = ['i', 'came', 'from', 'the', 'moon', 'he', 'went', 'she', 'went', 'to', 'the', 'drawing', 'room', '']; j = 6; q = ['went', 'she', 'went'] |
b = '1111111111' | b += '1' | b = '11111111111' |
i = 2; n = [10, 1, 10, 1, 10]; p = 0 | p = abs(n[i] - 1) | i = 2; n = [10, 1, 10, 1, 10]; p = 9 |
v = 6; x = 1 | x = v | v = 6; x = 6 |
h = [0, 0, 0, 1, 0]; o = [999, 1, 1, 1, 0] | h[-3] = o[-1] + o[-2] + o[-3] | h = [0, 0, 2, 1, 0]; o = [999, 1, 1, 1, 0] |
x = 100; z = 100 | z += x | x = 100; z = 200 |
p = [3, 2, 1]; v = range(0, 1); y = [2, 3] | p[v.start:v.stop + 1] = y | p = [2, 3, 1]; v = range(0, 1); y = [2, 3] |
i = 0; n = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] | c += n[i][i] | c = -56; i = 0; n = [[11, 2, 4], [4, 5, 6], [10, 8, -12]] |
l = '3'; u = {'4', '5', '2'} | u.add(l) | l = '3'; u = {'5', '3', '2', '4'} |
k = '1033389'; q = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1059346, 1168555, 1317458, 528045, 1220238, 874557] | q.append(int(k)) | k = '1033389'; q = [1226800, 926891, 782725, 1023038, 1126293, 692565, 1059346, 1168555, 1317458, 528045, 1220238, 874557, 1033389] |
e = 4294967294; i = '11111111111111111111111111111111' | e = int(i, 2) | e = 4294967295; i = '11111111111111111111111111111111' |
i = 'a' | p = p + i | i = 'a'; p = 'k3MSkta' |
d = 3; m = {'left': 6, 'right': 7}; p = [(3, 3)] | p.append((m['right'], d + 1)) | d = 3; m = {'left': 6, 'right': 7}; p = [(3, 3), (7, 4)] |
i = 3; j = 2; l = [[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]] | l[i][j] = max(l[i - 1][j], l[i][j - 1]) | i = 3; j = 2; l = [[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]] |
b = 97; m = [1, 1, 1, 1, 1, 1, 1, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'g' | m[ord(x) - b] += 1 | b = 97; m = [1, 1, 1, 1, 1, 1, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; x = 'g' |
e = 'M'; i = 2; j = 2; k = ['M', '2', '3'] | e, i, j = k | e = 'M'; i = '2'; j = '3'; k = ['M', '2', '3'] |
f = 7; i = 2 | f = f ^ i | f = 5; i = 2 |
j = 0 | t = j | j = 0; t = 0 |
c = '.'; f = ['.', '.', '.', '.'] | f.append(c) | c = '.'; f = ['.', '.', '.', '.', '.'] |
j = 0; v = '32,62 42,68 12,98' | r.append(v.split(' ')[j]) | j = 0; r = ['32,62']; v = '32,62 42,68 12,98' |
c = 18; i = 5; p = '148148148' | c = c + int(p[i]) | c = 26; i = 5; p = '148148148' |
f = [1, 2, 1, 3]; x = 0 | x = f[x] | f = [1, 2, 1, 3]; x = 1 |
j = 3; k = 101; t = '101' | t = t + str(k + j) | j = 3; k = 101; t = '101104' |
a = [1, 2, 3, -1, -1]; i = ['-1', '-1'] | a.append(int(i[0])) | a = [1, 2, 3, -1, -1, -1]; i = ['-1', '-1'] |
i = 5; s = 'aaabbb'; v = [3, -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] | v[ord(s[i]) - 97] -= 1 | i = 5; s = 'aaabbb'; v = [3, -3, 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 = 2; r = 4; s = [1, 1, 2, 2, 3, 2, 0, 1] | s[4] = r - j - 1 | j = 2; r = 4; s = [1, 1, 2, 2, 1, 2, 0, 1] |
d = [2, 7, 4, 3, 8] | i = [-1] * len(d) | d = [2, 7, 4, 3, 8]; i = [-1, -1, -1, -1, -1] |
c = 'e'; u = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 2, 'f': 2, 'g': 2, 'h': 2} | u[c] += 1 | c = 'e'; u = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2} |
x = [1, 2, 3, 4, 10, 20]; z = '30\n' | x.append(int(z)) | x = [1, 2, 3, 4, 10, 20, 30]; z = '30\n' |
a = [0, 0, 2, 0]; f = [0, 2, 2, 2]; i = 1 | f.append(f[i - 1] + a[i - 1]) | a = [0, 0, 2, 0]; f = [0, 2, 2, 2, 0]; i = 1 |
a = ['1', '2']; t = '100' | a.append(t) | a = ['1', '2', '100']; t = '100' |
c = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11}; e = {66, 55} | c.update(e) | c = {1, 2, 3, 4, 5, 6, 7, 8, 9, 66, 11, 55}; e = {66, 55} |
j = [0, 1, 2, 3]; w = 0 | j.remove(w) | j = [1, 2, 3]; w = 0 |
b = ['1', '1', '1', '0', '0', '0']; i = 2; j = 2; l = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 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[i][j] = int(b[j]) | b = ['1', '1', '1', '0', '0', '0']; i = 2; j = 2; l = [[1, 1, 1, 0, 0, 0], [0, 1, 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]] |
x = '1111110111100000110000' | x += '1' | x = '11111101111000001100001' |
b = 6012333; h = 1000000007; r = 668037 | r = r * b % h | b = 6012333; h = 1000000007; r = 460872209 |
a = 11; b = 64; n = 52 | n = a ^ b | a = 11; b = 64; n = 75 |
l = True | s = s ^ int(l) | l = True; s = -91 |
i = 27; t = [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] | t.append(t[-1] ^ i) | i = 27; t = [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] |
e = '0'; y = '10' | y += str(int(e) ^ 1) | e = '0'; y = '101' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.