start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
n = 6
l = ((x, y) for x in range(n - 1) for y in range(x + 1, n))
l = <generator object <genexpr> at 0x7f1bf43e1750>; n = 6
h = True; i = 0; s = ['e', 'a', 'e', 'e', 'e', 'a']
h &= all([(s[i] == s[1]) for i in range(1, len(s), 2)])
h = True; i = 0; s = []
i = 59
i += 1
i = 60
b = [4]; k = deque([1]); r = [4, 1, 2]
b.append(r[k[len(k) - 1]])
b = [4, 1]; k = deque([1]); r = [4, 1, 2]
d = [[1, 1], [2, 2], [5, 3]]; f = 3; g = 1; n = 3
n = d[f - 1 - g][1]
d = [[1, 1], [2, 2], [5, 3]]; f = 3; g = 1; n = 2
c = '['; d = ['{']
d.append(c)
c = '['; d = ['{', '[']
d = {(10): 4, (20): 3, (30): 1, (50): 1}; k = 10
l += d[k] / 2
d = {10: 4, 20: 3, 30: 1, 50: 1}; k = 10; l = 89.0
s = [1, 20]; v = 26
v = s[1]
s = [1, 20]; v = 20
l = 10
l = l + 1
l = 11
i = 3; r = [0, 0, 0, 0, 0]; s = [0, 0, 0, 1, 0]
r[i] = s[i]
i = 3; r = [0, 0, 0, 1, 0]; s = [0, 0, 0, 1, 0]
i = 0; l = [['11', '2', '4'], ['4', '5', '6'], ['10', '8', '-12']]
b = b + int(l[i][i])
b = -69; i = 0; l = [['11', '2', '4'], ['4', '5', '6'], ['10', '8', '-12']]
l = 6
l += 1
l = 7
j = 3; s = 11; t = [4, 2, 9, 10, 1]
s += t[j]
j = 3; s = 21; t = [4, 2, 9, 10, 1]
t = 1
m = str(t)
m = '1'; t = 1
g = 'hackerrank'; i = 9; t = 'hackerrank'
g = t[0:i]
g = 'hackerran'; i = 9; t = 'hackerrank'
a = ['0.85', '0.16', '139.75']; e = [[109.85], [155.72], [137.66], [76.17]]; r = 2
e.append(list(map(float, [a[r]])))
a = ['0.85', '0.16', '139.75']; e = [[109.85], [155.72], [137.66], [76.17], [139.75]]; r = 2
e = 1.1368683772161603e-13; z = 2
e /= z
e = 5.684341886080802e-14; z = 2
g = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 5)]); k = 'CANDY'; l = ['CANDY', '5']
g[k] += int(l[-1])
g = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 10)]); k = 'CANDY'; l = ['CANDY', '5']
f = deque([1, 3, 2]); r = 1
r = f[-1]
f = deque([1, 3, 2]); r = 2
b = '9'; i = 1; p = 3; s = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['1', '10', '11', '16'], ['5', '13', '14', '15']]
s[p][i] = b
b = '9'; i = 1; p = 3; s = [['3', '4', '8', '12'], ['2', '6', '7', '12'], ['1', '10', '11', '16'], ['5', '9', '14', '15']]
i = 0; l = [2, 1, 3]; z = 2
l[i], l[z] = l[z], l[i]
i = 0; l = [3, 1, 2]; z = 2
h = 5; m = 5
d = h % m
d = 0; h = 5; m = 5
s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (2, 1), (2, 3), (0, 1), (0, 0), (0, 2), (2, 1)]; v = 1; y = 1
s.append((v + 1, y - 1))
s = [(1, 0), (1, 1), (1, 1), (1, 0), (0, 2), (0, 1), (2, 1), (2, 3), (0, 1), (0, 0), (0, 2), (2, 1), (2, 0)]; v = 1; y = 1
x = ['1', '3', '1', '3', '1', '4', '1', '3', '2', '5', '5', '5', '5', '5', '5', '5', '5', '5', '5']
x = list(map(int, x))
x = [1, 3, 1, 3, 1, 4, 1, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
i = 56; w = {(63): 1, (25): 2, (73): 2, (1): 1, (98): 1, (56): 1, (84): 1, (86): 1, (57): 1, (16): 1, (83): 1, (8): 1, (81): 1}
w[i] = w.get(i, 0) + 1
i = 56; w = {63: 1, 25: 2, 73: 2, 1: 1, 98: 1, 56: 2, 84: 1, 86: 1, 57: 1, 16: 1, 83: 1, 8: 1, 81: 1}
n = 6
b = n * [0]
b = [0, 0, 0, 0, 0, 0]; n = 6
g = {(0): ['-', '-', '-', '-', '-'], (6): ['-', '-', '-', '-'], (4): ['-', 'that']}; i = '3'; w = 'be'
g[int(i)] = [w]
g = {0: ['-', '-', '-', '-', '-'], 6: ['-', '-', '-', '-'], 4: ['-', 'that'], 3: ['be']}; i = '3'; w = 'be'
l = 0; m = 0; v = 4
m = abs(l - v)
l = 0; m = 4; v = 4
b = 49; i = 1; u = [1, 5, 10, 12, 111, 200, 1000]
b -= u[i]
b = 44; i = 1; u = [1, 5, 10, 12, 111, 200, 1000]
a = [1]
t = 2 ** a[x] - 1
a = [1]; t = 1; x = False
c = 4.7684620580627355; d = 8.881784197001252e-16; z = 2
c *= d % z + 1
c = 4.76846205806274; d = 8.881784197001252e-16; z = 2
a = 'c'; n = {'a': 2, 'b': 2}
n[a] = 1
a = 'c'; n = {'a': 2, 'b': 2, 'c': 1}
w = 4
w += 2
w = 6
a = 2; w = [0, 1, 1, 3]
a = w[a]
a = 1; w = [0, 1, 1, 3]
b = 2; n = 2
b = n.bit_length() - 1
b = 1; n = 2
d = 3; e = 2
d = e
d = 2; e = 2
i = 2; j = -1; l = [3, 3, 4, 5, 6, 7]
l[j + 1] = i
i = 2; j = -1; l = [2, 3, 4, 5, 6, 7]
d = 2; e = -1; k = 1; s = 10; t = 835
t += k * s * pow(2, d) * pow(2, e)
d = 2; e = -1; k = 1; s = 10; t = 855.0
j = 3; k = 2; s = ['c', 'd', 'c', 'd']; v = ['c', 'd', 'd']
v = s[k:k + j]
j = 3; k = 2; s = ['c', 'd', 'c', 'd']; v = ['c', 'd']
l = [[1, 1, 1, 2], [2, 3], [1, 4, 1]]; t = [5, 5, 6]; z = 2
t[z] -= l[z].pop()
l = [[1, 1, 1, 2], [2, 3], [1, 4]]; t = [5, 5, 5]; z = 2
c = 26; i = 1; j = 0; m = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
c = c + m[j][i]
c = 29; i = 1; j = 0; m = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]
a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0]; i = 'w'
a[ord(i) - 97] += 1
a = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0]; i = 'w'
k = [-1, 0, 1, 1, 2]; x = 1
x = k[x]
k = [-1, 0, 1, 1, 2]; x = 0
b = 1
p.add(b)
b = 1; p = {1}
i = 2; w = [2, 3]; z = [(9.0, 2), (15.0, 3), (19.0, 4), (21.0, 1), (39.0, 5)]
w.append(z[i][1])
i = 2; w = [2, 3, 4]; z = [(9.0, 2), (15.0, 3), (19.0, 4), (21.0, 1), (39.0, 5)]
i = 'b'; s = 'aabbcd'; x = 1
x = s.count(i)
i = 'b'; s = 'aabbcd'; x = 2
a = 3; u = [2]
u.append(a)
a = 3; u = [2, 3]
m = 13; s = 'aa'
m = len(s)
m = 2; s = 'aa'
i = 8; x = 49
x = i * i
i = 8; x = 64
d = 1, 2, 5; m = [1, 2, 3]
m = sorted(d)
d = (1, 2, 5); m = [1, 2, 5]
l = ['M', 2, '3']
l[1] -= 1
l = ['M', 1, '3']
i = 0; j = 2; k = 1; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2]]
o.append([i, j, k])
i = 0; j = 2; k = 1; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [0, 1, 2], [0, 2, 1]]
d = 2; i = 40
i -= d
d = 2; i = 38
a = 3; p = ['a', 'c', 'x', 'z']
a = ord(p[a])
a = 122; p = ['a', 'c', 'x', 'z']
h = [[5, 0], [10, 0], [1, 1], [2, 1], [5, 1], [8, 1]]
k = [x[1] for x in h].count(1)
h = [[5, 0], [10, 0], [1, 1], [2, 1], [5, 1], [8, 1]]; k = 4
m = 1; w = [4]
y = [sum(w[i:i + m]) for i in range(len(w) - m + 1)]
m = 1; w = []; y = []
d = [(3, 6)]; k = 0; u = 2
u, k = d.pop(0)
d = []; k = 6; u = 3
b = 2; i = 30; k = 5
i += (k % 100) ** (b % 100)
b = 2; i = 55; k = 5
w = 3
w += 1
w = 4
f = 30; m = 7
f *= m
f = 210; m = 7
d = [1, 5, 4, 3, 2, 6]; e = 4; i = 1
d[i], d[e] = d[e], d[i]
d = [1, 2, 4, 3, 5, 6]; e = 4; i = 1
a = 2; z = [0, 1, 1]
z.append(a)
a = 2; z = [0, 1, 1, 2]
a = [1]; i = 1
a.append(a[i - 1] + 1)
a = [1, 2]; i = 1
f = 3524578; s = 5702887
f = s
f = 5702887; s = 5702887
w = '2'; z = '4'
z, w = [int(z), int(w)]
w = 2; z = 4
i = 2; j = 1; t = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0
y = t[i][j - 1] if j >= 1 else 0
i = 2; j = 1; t = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 1
y = ['-4', '3', '-9', '0', '4', '1']
i = len(y)
i = 6; y = ['-4', '3', '-9', '0', '4', '1']
i = 6; o = [1, 2, 1, 1, 1, 2, 1, 3]; q = 8
q += o[i]
i = 6; o = [1, 2, 1, 1, 1, 2, 1, 3]; q = 9
c = ')'; i = 8; s = '{{[[(())]]}}'
c = s[i]
c = ']'; i = 8; s = '{{[[(())]]}}'
f = [1, 3, 1, 2]; w = 2
w = f.index(max(f))
f = [1, 3, 1, 2]; w = 1
f = 2; h = 26; i = 'wedowhatwemustbecausewecan'
h = len(i) - f
f = 2; h = 24; i = 'wedowhatwemustbecausewecan'
a = 11; b = 12
p = a ^ b
a = 11; b = 12; p = 7
l = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 5)]); s = 'CANDY'; w = 5
l[s] += w
l = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 10)]); s = 'CANDY'; w = 5
m = [1]
m.append(0)
m = [1, 0]
i = 2; p = array([1.1, 2.0, 3.0]); x = array([0.0]); y = array([2.0])
y = y * x + p[i]
i = 2; p = array([1.1, 2. , 3. ]); x = array([0.]); y = array([3.])
c = 2; n = 10
h = n // c
c = 2; h = 5; n = 10
i = 1; x = ['0', '0', '0', '1', '1', '1', '1', '1']
x[i] = '1'
i = 1; x = ['0', '1', '0', '1', '1', '1', '1', '1']
a = [999, 1000, 1001, 3, 0]; i = 4; t = [999, 1000, 1001, 1002, 1002]
a[i] = t[i] - a[i - 3]
a = [999, 1000, 1001, 3, 2]; i = 4; t = [999, 1000, 1001, 1002, 1002]
a = [['0', 'ab']]; i = 0
a[i][0] = int(a[i][0])
a = [[0, 'ab']]; i = 0
i = 3; s = [1]
s.append(i)
i = 3; s = [1, 3]
a = [3, 2, 1]; j = 0
a[j], a[j + 1] = a[j + 1], a[j]
a = [2, 3, 1]; j = 0
a = 'abdc'; v = ['lmno', 'dcba', 'dcbb']
v.append(a)
a = 'abdc'; v = ['lmno', 'dcba', 'dcbb', 'abdc']
l = 1.1368683772161603e-12
l /= 2
l = 5.684341886080801e-13
j = 1; o = [0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]
o[j] += 1
j = 1; o = [0, 2, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2]
i = 1; o = [1, 3, 3, 4, 5, 6]
o[i] = o[i - 1]
i = 1; o = [1, 1, 3, 4, 5, 6]
b = [3, 4, 1]; o = [2, 3]; u = 1
o = b[u:]
b = [3, 4, 1]; o = [4, 1]; u = 1
c = 'f'; i = 2; u = 'gfedcbagfedcba'
c = u[i]
c = 'e'; i = 2; u = 'gfedcbagfedcba'
c = 6; i = 2; j = [6, 5, 8, 4, 7, 10, 9]
c = j[i - 1]
c = 5; i = 2; j = [6, 5, 8, 4, 7, 10, 9]
i = '4'; j = '3'; p = '5'
p, j, i = [int(p), int(j), int(i)]
i = 4; j = 3; p = 5
i = 6; p = 4; s = [10, 5, 20, 20, 4, 5, 2, 25, 1]
p = s[i]
i = 6; p = 2; s = [10, 5, 20, 20, 4, 5, 2, 25, 1]
i = 2; p = 'hA'; s = 'HackerRank.com presents "Pythonist 2".'
p = p + s[i].upper()
i = 2; p = 'hAC'; s = 'HackerRank.com presents "Pythonist 2".'
i = 34534985349875439875439875349875; o = [34543987529435983745230948023948, 3498573497543987543985743989120393097595572309482304]
i = o[0]
i = 34543987529435983745230948023948; o = [34543987529435983745230948023948, 3498573497543987543985743989120393097595572309482304]
a = 0; y = [3, 1, 2]
v.append(y[a])
a = 0; v = [3]; y = [3, 1, 2]
a = ['2', '2', '2', '2', '2', '2', '2']; c = 0; i = 6; t = ['2', '2', '2', '2', '2']
t = a[c:i]
a = ['2', '2', '2', '2', '2', '2', '2']; c = 0; i = 6; t = ['2', '2', '2', '2', '2', '2']
h = 5; i = 4; z = 1
z = h - i - 1
h = 5; i = 4; z = 0
k = 'D'; z = 1
z += 1 if k.upper() == 'U' else -1
k = 'D'; z = 0
n = 1; x = [1, 5, 6]
d = x[n + 1] - x[n]
d = 1; n = 1; x = [1, 5, 6]
i = 0
a = chr(i + 97)
a = 'a'; i = 0
e = 2; i = 2; l = 1
i = e + l
e = 2; i = 3; l = 1
c = 9634.494753955705; e = 43900.6
z = e - c * 1.96
c = 9634.494753955705; e = 43900.6; z = 25016.990282246818