start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
q = 4, 2; s = 0, -1 | q = q[0] + s[0], q[1] + s[1] | q = (4, 1); s = (0, -1) |
w = 1.9073486328125e-05 | w /= 2 | w = 9.5367431640625e-06 |
i = 6; l = 6 | l = i + 1 | i = 6; l = 7 |
u = 6 | x = [(0) for i in range(u)] | u = 6; x = [0, 0, 0, 0, 0, 0] |
r = 170; y = 80 | y += r | r = 170; y = 250 |
i = 3; m = [1, 2, 3, 5, 4]; r = 2 | r = m.index(i + 1) | i = 3; m = [1, 2, 3, 5, 4]; r = 4 |
s = [[6, -1], [7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1] ] | del s[0] | s = [[7, 8], [-1, 9], [-1, -1], [10, 11], [-1, -1], [-1, -1], [-1, -1]] |
g = 26; v = [] | v.append(g) | g = 26; v = [26] |
a = [1, 1, 2, 1, 2, 1, 2, 1, 1]; i = 7; x = 9; z = [1, 1, 2, 1, 2, 1, 2, 1, 2] | x += max(z[i], a[i]) | a = [1, 1, 2, 1, 2, 1, 2, 1, 1]; i = 7; x = 10; z = [1, 1, 2, 1, 2, 1, 2, 1, 2] |
i = 9 | i += 1 | i = 10 |
c = 14705580; i = 0; j = 1; r = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] | c = abs(r[i] - r[j]) | c = 869167; i = 0; j = 1; r = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819] |
s = 'abcdefghhgfedecba' | n = list(s) | n = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'h', 'g', 'f', 'e', 'd', 'e', 'c', 'b', 'a']; s = 'abcdefghhgfedecba' |
n = '1234'; w = 9 | n += str(w) | n = '12349'; w = 9 |
k = 1.0000000000000005e-69 | k = k / 10 | k = 1.0000000000000005e-70 |
c = 3; l = [15]; p = 9 | l.append((p & c ^ (p | c)) & (p ^ c)) | c = 3; l = [15, 10]; p = 9 |
u = [1, 1] | u[0] -= 1 | u = [0, 1] |
c = 'e'; k = {'c': 4, 'd': 4, 'e': 2} | k[c] += 1 | c = 'e'; k = {'c': 4, 'd': 4, 'e': 3} |
j = {'a': 3}; p = 'b' | j[p] = 1 | j = {'a': 3, 'b': 1}; p = 'b' |
a = 10; b = 1010; i = 93; l = 10002555517425872621184923729820 | l = l + (a ^ b << i) | a = 10; b = 1010; i = 93; l = 20005111034851745242369847459750 |
k = 2; n = 8; z = 2 | z = (z + k) % n | k = 2; n = 8; z = 4 |
a = 16; q = 256 | q = q * a | a = 16; q = 4096 |
i = '('; y = deque(['{', '{', '[', '[']) | y.append(i) | i = '('; y = deque(['{', '{', '[', '[', '(']) |
b = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'Q', 'w', 'v', 'b']; i = 3; s = 'okf' | s = s + b[i] | b = ['o', 'k', 'f', 'f', 'n', 'g', '-', 'Q', 'w', 'v', 'b']; i = 3; s = 'okff' |
i = -inf; m = 15 | i = m | i = 15; m = 15 |
i = 2 | j = i + 1 | i = 2; j = 3 |
i = 0; j = 0; r = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] | r[i][j] = 1 | i = 0; j = 0; r = [[1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] |
e = [-96, -92, -59, -54, -53, -36, -13, -2, 1, 75]; i = 3; v = 5 | v = abs(e[i] - e[i + 1]) | e = [-96, -92, -59, -54, -53, -36, -13, -2, 1, 75]; i = 3; v = 1 |
n = 6.162975822039155e-32 | n /= 2 | n = 3.0814879110195774e-32 |
r = 'failuhk'; v = 'afhilu' | v = ''.join(sorted(r)) | r = 'failuhk'; v = 'afhiklu' |
a = ['A', 'A', 'A', 'B', 'B', 'B']; b = [65]; i = 1 | b.append(ord(a[i])) | a = ['A', 'A', 'A', 'B', 'B', 'B']; b = [65, 65]; i = 1 |
n = 1, 3; q = [(1, 0), (0, 1), (2, 1), (1, 2), (0, 2), (2, 0), (3, 2), (2, 3)] | q.append(n) | n = (1, 3); q = [(1, 0), (0, 1), (2, 1), (1, 2), (0, 2), (2, 0), (3, 2), (2, 3), (1, 3)] |
c = 3; m = 10; x = 1 | x = 1 if m % c == 0 else 0 | c = 3; m = 10; x = 0 |
m = 4; x = [0, 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] | x[m] += 1 | m = 4; x = [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] |
b = 'Taylor' | c = b.rstrip() | b = 'Taylor'; c = 'Taylor' |
e = [True, True, False, False, True]; t = 2 | e[t] = True | e = [True, True, True, False, True]; t = 2 |
i = [2, 1]; j = 4; k = 5 | k = i[0] + j | i = [2, 1]; j = 4; k = 6 |
i = 5; n = 5; t = '--' | t = '-' * ((n - i) * 2) | i = 5; n = 5; t = '' |
j = 3; p = 6 | j = int(p ** 0.5) + 1 | j = 3; p = 6 |
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 = 2; j = 1; k = 3 | k = f[i][j] + f[i][j + 1] + f[i][j + 2] + f[i + 2][j] + f[i + 2][j + 1] + f[ i + 2][j + 2] + f[i + 1][j + 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 = 2; j = 1; k = 6 |
v = ['47', '73', '90']; z = 1115 | z += int(v[2]) | v = ['47', '73', '90']; z = 1205 |
m = '10000000000000000000' | m += '0' | m = '100000000000000000000' |
n = 2147483648 | n *= 2 | n = 4294967296 |
u = 'beabeefeab'; w = 'a' | u = u.replace(w, '') | u = 'bebeefeb'; w = 'a' |
j = 106; n = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0} | n[chr(j)] = 0 | j = 106; n = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0} |
c = [[None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; u = 0; v = 1; w = 1 | c[u][v] = w | c = [[None, 1, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None], [None, None, None, None, None, None]]; u = 0; v = 1; w = 1 |
b = 47; i = 3; k = [9, 7, 6, 4] | b += k[i] * 2 ** i | b = 79; i = 3; k = [9, 7, 6, 4] |
m = [1, 1, 6, 2, 6, 10, 9, 6, 9, 1, 10]; p = 11; q = {(3): [1, 1, 2]} | q[p] = m | m = [1, 1, 6, 2, 6, 10, 9, 6, 9, 1, 10]; p = 11; q = {3: [1, 1, 2], 11: [1, 1, 6, 2, 6, 10, 9, 6, 9, 1, 10]} |
k = 4; q = [1] | q.append(k) | k = 4; q = [1, 4] |
k = 28; w = 10888869450418352160768000000 | w *= k | k = 28; w = 304888344611713860501504000000 |
m = [5, 2, 1, 8] | n = len(m) | m = [5, 2, 1, 8]; n = 4 |
d = [1, 2, 1, 3, 2]; i = 2; j = 1 | d[i] = d[j] | d = [1, 2, 2, 3, 2]; i = 2; j = 1 |
i = 0; j = 1; n = [[0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]] | n[i][j] -= 1 | i = 0; j = 1; n = [[0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]] |
u = {(1): 0, (2): 0, (3): 1, (4): 1}; z = 3 | u[z] -= 1 | u = {1: 0, 2: 0, 3: 0, 4: 1}; z = 3 |
b = {(2): 24}; d = 2 | del b[d] | b = {}; d = 2 |
o = 0, 3; v = -1, 0 | o = o[0] + v[0], o[1] + v[1] | o = (-1, 3); v = (-1, 0) |
i = [' Such were Willarski and even the Grand Master of the principal lodge.']; k = ( ' Finally, to the fourth category also a great ma...longed, particularly those who had lately joined.' ); n = '?' | i = k.split(n) | i = [' Finally, to the fourth category also a great ma...longed, particularly those who had lately joined.']; k = ' Finally, to the fourth category also a great ma...longed, particularly those who had lately joined.'; n = '?' |
n = 2.5; w = 4.5; z = 2 | w += n / z | n = 2.5; w = 5.75; z = 2 |
i = 'c'; n = {'d': 0, 'e': 0, 'a': 1, 'c': 0, 'b': 1} | n[i] += 1 | i = 'c'; n = {'d': 0, 'e': 0, 'a': 1, 'c': 1, 'b': 1} |
b = 3; i = 1; l = ['hae', 'an', '', '']; m = ['have', 'anic', 'eday'] | l[i] += m[b - 1][i] | b = 3; i = 1; l = ['hae', 'and', '', '']; m = ['have', 'anic', 'eday'] |
i = 0; k = 48; n = '148' | c += ord(n[i]) - k | c = 53; i = 0; k = 48; n = '148' |
v = 1; w = [1, 2, 100]; x = 99 | x -= w[v] | v = 1; w = [1, 2, 100]; x = 97 |
e = 59; t = 47 | t = e | e = 59; t = 59 |
r = [-39, -38, -38, -37, -37, -36, -36, -35, -35, -34, 106, 107, 107, 108, 108, 109, 110, 111, 112] | list.pop(r, 0) | r = [-38, -38, -37, -37, -36, -36, -35, -35, -34, 106, 107, 107, 108, 108, 109, 110, 111, 112] |
c = 'hae and vi'; i = 10; s = 'haveaniceday' | c += s[i] | c = 'hae and via'; i = 10; s = 'haveaniceday' |
e = 'haveaniceday'; l = 7; t = 'hae and via e' | t += e[l] | e = 'haveaniceday'; l = 7; t = 'hae and via ec' |
l = [1, 1, 4, 1] | l.reverse() | l = [1, 4, 1, 1] |
f = {'a': -2, 'b': 1}; r = 'b' | f[r] += 1 | f = {'a': -2, 'b': 2}; r = 'b' |
e = {1}; f = 1; x = 9 | e.add(x // f) | e = {1, 9}; f = 1; x = 9 |
w = 53 | w += 1 | w = 54 |
a = 6; e = [2, -1, 2, 3, 4, -5]; i = 4; w = 6 | a = w + e[i] | a = 10; e = [2, -1, 2, 3, 4, -5]; i = 4; w = 6 |
i = 6; v = 6 | v = i + 1 | i = 6; v = 7 |
a = [0, 1, 2, 3, 6, 5, 4]; h = 0; i = 1 | h = a[i] | a = [0, 1, 2, 3, 6, 5, 4]; h = 1; i = 1 |
i = '0'; z = '11111' | z += str(int(i) ^ 1) | i = '0'; z = '111111' |
x = 0 | x = bin(x)[2:] | x = '0' |
s = ['0', '0', 'a', 'b', '0', '0', '0', '0', 'd'] | s = [x for x in s if x != '0'] | s = ['a', 'b', 'd'] |
e = 52.0 | a += e | a = 86.0; e = 52.0 |
i = 3; j = ['1', '1', '2', '3', '2'] | j[i] = j[i + 1] | i = 3; j = ['1', '1', '2', '2', '2'] |
v = 10; z = 2 | v += z | v = 12; z = 2 |
p = '^[456]\\d{3}-?\\d{4}-?\\d{4}-?\\d{4}$'; x = '^[456]\\d{3}-?\\d{4}-?\\d{4}-?\\d{4}$' | x = p | p = '^[456]\\d{3}-?\\d{4}-?\\d{4}-?\\d{4}$'; x = '^[456]\\d{3}-?\\d{4}-?\\d{4}-?\\d{4}$' |
d = {(2, 2, 2): 4}; l = 23; x = 1; y = 1; z = 1 | d[x, y, z] = l | d = {(2, 2, 2): 4, (1, 1, 1): 23}; l = 23; x = 1; y = 1; z = 1 |
a = [3]; m = 1 | m = a[0] | a = [3]; m = 3 |
d = 9; u = 10; w = 0 | d = u + w | d = 10; u = 10; w = 0 |
c = 1.4901161193847656e-07 | c /= 2 | c = 7.450580596923828e-08 |
d = 2; r = 1 | r += d | d = 2; r = 3 |
s = 26 | s += 1 | s = 27 |
a = 10; b = 1010; i = 35; p = 34703335751000 | p = p + (a ^ b << i) | a = 10; b = 1010; i = 35; p = 69406671502690 |
i = 3; l = 'hackerrank'; m = {'h': 2, 'ha': 2, 'hac': 1, 'hack': 1} | m[l[:i]] += 1 | i = 3; l = 'hackerrank'; m = {'h': 2, 'ha': 2, 'hac': 2, 'hack': 1} |
w = [0, 2, 3] | w.reverse() | w = [3, 2, 0] |
f = 3; y = [1, 1, 1, 1, 1, 1] | y.append(f) | f = 3; y = [1, 1, 1, 1, 1, 1, 3] |
d = {(10): 3, (20): 2, (30): 1, (50): 1}; n = 10 | d[n] += 1 | d = {10: 4, 20: 2, 30: 1, 50: 1}; n = 10 |
i = 0 | m[i] = '' | i = 0; m = {0: ''} |
o = ['we', 'do', 'what', 'we', 'must', 'because']; p = 'we' | o.append(p) | o = ['we', 'do', 'what', 'we', 'must', 'because', 'we']; p = 'we' |
f = 8; m = 8 | f = m + 1 | f = 9; m = 8 |
j = 3; k = 2; p = [(2, 3), (5, 4), (7, 1), (8, 2), (20, 0)]; v = -3 | v = p[j][0] - p[k][0] | j = 3; k = 2; p = [(2, 3), (5, 4), (7, 1), (8, 2), (20, 0)]; v = 1 |
a = 1 | v += a | a = 1; v = 60 |
a = 1; b = 2; w = 3 | w = max(a, b) | a = 1; b = 2; w = 2 |
b = [4, 4]; s = [[4, 4], [3, 3, 9]] | b.pop() | b = [4]; s = [[4, 4], [3, 3, 9]] |
c = '4' | z += int(c) | c = '4'; z = 81 |
a = [2, 3, 6, 7, 8, 4, 1, 5]; i = 4; j = 7; t = [4, 1, 5] | t = a[i - 1:j] | a = [2, 3, 6, 7, 8, 4, 1, 5]; i = 4; j = 7; t = [7, 8, 4, 1] |
x = 0 | h[x] = [] | h = {0: []}; x = 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.