start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
|---|---|---|
i = 46
|
i += 1
|
i = 47
|
f = 5; q = []
|
q.append(f)
|
f = 5; q = [5]
|
k = {(10): 3, (20): 2, (30): 1}; x = 50
|
k[x] = k.get(x, 0) + 1
|
k = {10: 3, 20: 2, 30: 1, 50: 1}; x = 50
|
a = [7, 12, 14, 21, 21]; i = 0; y = 7
|
a.remove(y + i)
|
a = [12, 14, 21, 21]; i = 0; y = 7
|
i = 2; j = 22
|
j += i
|
i = 2; j = 24
|
x = '1111111111'
|
x += '1'
|
x = '11111111111'
|
c = 5; d = 2; i = 0; w = 2
|
d = (w + i + 1) % c
|
c = 5; d = 3; i = 0; w = 2
|
c = array([[0.85, 0.16, 139.75]]); u = [array([[0.18, 0.89, 109.85]]), array([[1.0, 0.26, 155.72]]), array([[ 0.92, 0.11, 137.66]]), array([[0.07, 0.37, 76.17]])]
|
u.append(c)
|
c = array([[ 0.85, 0.16, 139.75]]); u = [array([[ 0.18, 0.89, 109.85]]), array([[ 1. , 0.26, 155.72]]), array([[9.2000e-01, 1.1000e-01, 1.3766e+02]]), array([[7.000e-02, 3.700e-01, 7.617e+01]]), array([[ 0.85, 0.16, 139.75]])]
|
m = 1; x = 2
|
x += m
|
m = 1; x = 3
|
a = [4, 2, 9, 10, 1]
|
f = a[0], 1, 1, a[0]
|
a = [4, 2, 9, 10, 1]; f = (4, 1, 1, 4)
|
a = 2
|
e = max(0, 2 ** a - 32)
|
a = 2; e = 0
|
i = 20; q = {(10): 1, (20): 1}
|
q[i] = q[i] + 1 if i in q else 1
|
i = 20; q = {10: 1, 20: 2}
|
i = 0; n = 7; u = {}
|
u[i] = [False] * n
|
i = 0; n = 7; u = {0: [False, False, False, False, False, False, False]}
|
a = 3; g = [1, 2, 3, 3]; i = 1
|
a += g[i - 1]
|
a = 4; g = [1, 2, 3, 3]; i = 1
|
k = 3; r = 24; x = [3, 6, 12, 24]
|
r = r + x[k]
|
k = 3; r = 48; x = [3, 6, 12, 24]
|
a = 'abba'; i = 2; j = 2; w = 'bb'
|
w = ''.join(sorted(a[j:j + i]))
|
a = 'abba'; i = 2; j = 2; w = 'ab'
|
g = 6; t = 2
|
g += t
|
g = 8; t = 2
|
i = 0; n = ['1', '2', '100']
|
n = [int(i) for i in n]
|
i = 0; n = [1, 2, 100]
|
h = [3, 0, 2, 1, 4]; i = 1; j = 2
|
h[i], h[j] = h[j], h[i]
|
h = [3, 2, 0, 1, 4]; i = 1; j = 2
|
c = 55891; x = ['93', '83', '90']
|
c += int(x[0]) ** 2
|
c = 64540; x = ['93', '83', '90']
|
f = 3; g = {(2): 24, (4): 15}
|
f = [(k, v) for k, v in g.items() if v != -1]
|
f = [(2, 24), (4, 15)]; g = {2: 24, 4: 15}
|
l = [None, None, None, None, None, None]
|
l[0] = 0
|
l = [0, None, None, None, None, None]
|
d = [2, 3, 4, 5, 6, 7]; x = 1
|
x = d.pop(0)
|
d = [3, 4, 5, 6, 7]; x = 2
|
f = 0; j = 2; u = [[1, 4, 1], [2, 2, 2]]
|
d = d + u[f][j]
|
d = 11; f = 0; j = 2; u = [[1, 4, 1], [2, 2, 2]]
|
f = [[], [4]]; k = 5; o = [4]
|
f = f + [[k] + o]
|
f = [[], [4], [5, 4]]; k = 5; o = [4]
|
a = '4 the'; v = 'to'; x = 2
|
x, v = a.split()
|
a = '4 the'; v = 'the'; x = '4'
|
r = 2
|
r += 1
|
r = 3
|
l = 'R'; w = 'Q'
|
w += l
|
l = 'R'; w = 'QR'
|
i = 5
|
i -= 1
|
i = 4
|
d = '78'; e = 79
|
d = d + str(e)
|
d = '7879'; e = 79
|
k = [8, 9]; l = {(1): 2, (2): 4, (3): 5, (4): 6, (5): 7, (6): -1, (7): -1, (8): 10, (9): -1, (10): -1, (11): -1}; p = 8
|
k.append(l[p])
|
k = [8, 9, 10]; l = {1: 2, 2: 4, 3: 5, 4: 6, 5: 7, 6: -1, 7: -1, 8: 10, 9: -1, 10: -1, 11: -1}; p = 8
|
d = 3; l = 4
|
d = max(l, d)
|
d = 4; l = 4
|
m = 4; z = 6
|
m = z
|
m = 6; z = 6
|
b = {(63): 1, (25): 1, (73): 2, (1): 1, (98): 1, (56): 1, (84): 1, (86): 1}; n = 57
|
b.setdefault(n, 0)
|
b = {63: 1, 25: 1, 73: 2, 1: 1, 98: 1, 56: 1, 84: 1, 86: 1, 57: 0}; n = 57
|
t = 2
|
t += 1
|
t = 3
|
b = 1; i = 1; q = [2, 1, 5, 3, 4]
|
b = q[i] - (i + 1)
|
b = -1; i = 1; q = [2, 1, 5, 3, 4]
|
i = 3; l = [1, 2, 3]
|
l.append(2 * l[i - 1])
|
i = 3; l = [1, 2, 3, 6]
|
k = 1; m = 2
|
m = m + k
|
k = 1; m = 3
|
i = 3; x = [0, 1, 1, 2, 8, 10, 12]
|
x[i + 1] = min(x[i + 1], 1 + x[i])
|
i = 3; x = [0, 1, 1, 2, 3, 10, 12]
|
i = ['7895462130', '919875641230', '9195969878']; n = 0
|
i[n] = '+91' + i[n]
|
i = ['+917895462130', '919875641230', '9195969878']; n = 0
|
a = 5; b = 'question'; l = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (4, 'that'), (3, 'be'), (0, 'to'), (1, 'be')]
|
l.append((a, b))
|
a = 5; b = 'question'; l = [(0, '-'), (6, '-'), (0, '-'), (6, '-'), (4, '-'), (4, 'that'), (3, 'be'), (0, 'to'), (1, 'be'), (5, 'question')]
|
m = [1, 1, 1, 1, 1, 1, 1, 1, 1]
|
m.append(1)
|
m = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
p = 'd',; s = {('c',): 2, ('c', 'd'): 3, ('c', 'c', 'd'): 1, ('c', 'c', 'd', 'd'): 1, ('d',): 1, ('c', 'd', 'd'): 1}
|
s[p] += 1
|
p = ('d',); s = {('c',): 2, ('c', 'd'): 3, ('c', 'c', 'd'): 1, ('c', 'c', 'd', 'd'): 1, ('d',): 2, ('c', 'd', 'd'): 1}
|
a = 17; x = 2
|
x = int(a ** 0.5)
|
a = 17; x = 4
|
h = {(0,)}; i = 1
|
h.add((i,))
|
h = {(0,), (1,)}; i = 1
|
i = 4; s = '999100010001'; z = 9991
|
z = int(s[:i + 1])
|
i = 4; s = '999100010001'; z = 99910
|
l = 5
|
l += 1
|
l = 6
|
b = 2; c = 3; z = 10
|
c = z - b
|
b = 2; c = 8; z = 10
|
i = 0; k = [2, 3, 4, 5]
|
r.append(k[i])
|
i = 0; k = [2, 3, 4, 5]; r = [2]
|
b = [[2], [1, 2], [2], [0, 1, 2, 1]]; e = '0 1 2 2'
|
b.append([int(x) for x in e.split(' ')])
|
b = [[2], [1, 2], [2], [0, 1, 2, 1], [0, 1, 2, 2]]; e = '0 1 2 2'
|
i = 4; m = [-20, -3916237, -357920, -3620601, '7374819', '-7330761', '6246457', '-6461594', '266854', '-520', '-470']
|
m[i] = int(m[i])
|
i = 4; m = [-20, -3916237, -357920, -3620601, 7374819, '-7330761', '6246457', '-6461594', '266854', '-520', '-470']
|
e = 128
|
e *= 2
|
e = 256
|
a = [3]; v = [3]
|
v = a
|
a = [3]; v = [3]
|
c = {}; e = '0'
|
c[e] = 1
|
c = {'0': 1}; e = '0'
|
l = 5; p = 20
|
l = int(p ** 0.5) + 1
|
l = 5; p = 20
|
i = 4; n = 9; s = [10, 1, 10, 1, 10]
|
n = abs(1 - s[i - 1])
|
i = 4; n = 0; s = [10, 1, 10, 1, 10]
|
h = 5; k = 4; x = 4
|
x += h - k
|
h = 5; k = 4; x = 5
|
i = 2; n = ['Thi', 's% ', 'ix']; v = 'i #'
|
n[i] += v[i]
|
i = 2; n = ['Thi', 's% ', 'ix#']; v = 'i #'
|
m = [100, 200, 100, 500, 100, 600]; s = 900; v = 6
|
s += m[v - 1]
|
m = [100, 200, 100, 500, 100, 600]; s = 1500; v = 6
|
j = ['R', 'R', 'B', 'R']
|
j.pop()
|
j = ['R', 'R', 'B']
|
e = '101'; i = 0
|
a += int(e[i])
|
a = 14; e = '101'; i = 0
|
o = OrderedDict([('BANANA FRIES 12', 1), ('POTATO CHIPS 30', 1), ( 'APPLE JUICE 10', 2), ('CANDY 5', 1)]); u = 'CANDY 5'
|
o[u] += 1
|
o = OrderedDict([('BANANA FRIES 12', 1), ('POTATO CHIPS 30', 1), ('APPLE JUICE 10', 2), ('CANDY 5', 2)]); u = 'CANDY 5'
|
d = '11111111111111100001110'; i = '0'
|
d += str(int(i) ^ 1)
|
d = '111111111111111000011101'; i = '0'
|
q = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
y = q[:]
|
q = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; y = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
|
f = [2, 2]; u = [4, 2, 2]; x = 3
|
f.append(u[x - 1])
|
f = [2, 2, 2]; u = [4, 2, 2]; x = 3
|
w = 'e'; z = [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]
|
z[ord(w) - ord('a')] += 1
|
w = 'e'; z = [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]
|
v = [{'p': [1, 2]}]
|
j = v.pop()['p']
|
j = [1, 2]; v = []
|
i = 3; s = 'chris alan'; t = 'Chr'
|
t += s[i]
|
i = 3; s = 'chris alan'; t = 'Chri'
|
r = 600; y = [3, 4, 100]
|
r += y[2] * (y[1] - y[0] + 1)
|
r = 800; y = [3, 4, 100]
|
c = 79; h = [95, 97, 93]
|
h.append(c)
|
c = 79; h = [95, 97, 93, 79]
|
h = 1; m = [[0, 1, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; x = 0
|
m[x][h] = 0
|
h = 1; m = [[0, 0, 0, 0], [0, 1, 1, 0], [0, 0, 1, 0], [1, 0, 0, 0]]; x = 0
|
s = 'abba'
|
c = [[(0) for x in range(len(s))] for x in range(1, len(s) + 1)]
|
c = []; s = []
|
g = 'ccccc'; i = 1
|
i = len(g)
|
g = 'ccccc'; i = 5
|
w = 10; x = ['5', '9']
|
w = int(x[1])
|
w = 9; x = ['5', '9']
|
f = [3, 5, 10]; j = 0
|
q, e = f[j], f[j + 1]
|
e = 5; f = [3, 5, 10]; j = 0; q = 3
|
i = 2; n = 3; r = 0; s = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0]
|
r ^= s[i - n + 1]
|
i = 2; n = 3; r = 1; s = [1, 0, 1, 0, 0, 0, 0, 0, 0, 0]
|
b = {'a': 0.0, 'o': 1.0, 'e': 1.0, 'u': 1.0, 'i': 1.0}; i = 8; m = [0, 0, 0, 0, 0, 0, 0, 0, 0, 1.0]; n = 'aeiouuoiea'
|
m[i] = b[n[i]]
|
b = {'a': 0.0, 'o': 1.0, 'e': 1.0, 'u': 1.0, 'i': 1.0}; i = 8; m = [0, 0, 0, 0, 0, 0, 0, 0, 1.0, 1.0]; n = 'aeiouuoiea'
|
j = {'d': 2, 'c': 1}; t = [{'c': 1}, {'c': 1, 'd': 1}, {'c': 2, 'd': 1}, {'c': 2, 'd': 2}, {'d': 1}, {'d': 1, 'c': 1}]
|
t.append(j)
|
j = {'d': 2, 'c': 1}; t = [{'c': 1}, {'c': 1, 'd': 1}, {'c': 2, 'd': 1}, {'c': 2, 'd': 2}, {'d': 1}, {'d': 1, 'c': 1}, {'d': 2, 'c': 1}]
|
t = 'haveaniceday'
|
y = int(len(t) ** 0.5)
|
t = 'haveaniceday'; y = 3
|
a = 'c',; i = 2; j = 3; s = 'abcd'
|
a = tuple(sorted(s[i:j + 1]))
|
a = ('c', 'd'); i = 2; j = 3; s = 'abcd'
|
l = 2; r = [1, 1]
|
c.append(r[l - 1] - r[0])
|
c = [0]; l = 2; r = [1, 1]
|
i = 1; j = 1; w = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]
|
l = max(w[i - 1][j], w[i + 1][j], w[i][j - 1], w[i][j + 1])
|
i = 1; j = 1; l = '8'; w = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]
|
l = 'hACKE'; o = 'r'
|
l += o.upper()
|
l = 'hACKER'; o = 'r'
|
e = 'hackerrank'; i = 1; y = 'h'
|
y = e[:i + 1]
|
e = 'hackerrank'; i = 1; y = 'ha'
|
v = 1.2000000000000001e-12; y = 1.2000000000000002e-11
|
y = v % 10
|
v = 1.2000000000000001e-12; y = 1.2000000000000001e-12
|
k = '2'; n = '6'
|
n, k = [int(n), int(k)]
|
k = 2; n = 6
|
l = ['h', 'e', 'g', 'f']; w = 'dhck'
|
l = list(w)
|
l = ['d', 'h', 'c', 'k']; w = 'dhck'
|
k = [2, 3, 5, 6]; u = -2; x = 9; y = 1
|
u = x - k[y - 1]
|
k = [2, 3, 5, 6]; u = 7; x = 9; y = 1
|
h = [1, 2, 3, 4, 5]; m = 3; p = 5; w = 2
|
p = h[m] * w
|
h = [1, 2, 3, 4, 5]; m = 3; p = 8; w = 2
|
x = '2'
|
x = int(x)
|
x = 2
|
w = '999999'
|
w += '9'
|
w = '9999999'
|
k = ['a', 'b', 'd']
|
k.pop()
|
k = ['a', 'b']
|
e = ['000', '001', '002', '003', '004', '005', '006', '026', '027', '028', '029', '030', '031', '032']; n = 33
|
e.append('0' + str(n))
|
e = ['000', '001', '002', '003', '004', '005', '006', '026', '027', '028', '029', '030', '031', '032', '033']; n = 33
|
x = [2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
n = [(j / 2) for j in x]
|
n = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 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, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]; x = [2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
x = '1 1 1\n'
|
x = x.strip('\n')
|
x = '1 1 1'
|
c = [['2', '1'], ['5', '6']]
|
b = float(c[0][1])
|
b = 1.0; c = [['2', '1'], ['5', '6']]
|
i = 3; n = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 0], [0, 0, 0, 0, 0]]; r = 4; u = 't'
|
n[i][r] = u
|
i = 3; n = [['a', 'b', 'c', 'd', 'e'], ['f', 'g', 'h', 'i', 'j'], ['k', 'l', 'm', 'n', 'o'], ['p', 'q', 'r', 's', 't'], [0, 0, 0, 0, 0]]; r = 4; u = 't'
|
f = 3; l = 6, 5; z = [3]
|
z.append(f + l[0])
|
f = 3; l = (6, 5); z = [3, 9]
|
j = {(0): ['-', '-', '-', '-'], (6): ['-', '-', '-', '-'], (4): ['-']}; s = '-'; x = 0
|
j[x].append(s)
|
j = {0: ['-', '-', '-', '-', '-'], 6: ['-', '-', '-', '-'], 4: ['-']}; s = '-'; x = 0
|
f = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'went', 'to', 'the', 'drawing', 'room.', '']; i = 5; x = 'moon. He went'
|
x = ' '.join([f[i], f[i + 1], f[i + 2]])
|
f = ['I', 'came', 'from', 'the', 'moon.', 'He', 'went', 'went', 'to', 'the', 'drawing', 'room.', '']; i = 5; x = 'He went went'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.