start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
a = [-5, -4, -3, 2, 3, 4, 5]
n = len(a)
a = [-5, -4, -3, 2, 3, 4, 5]; n = 7
a = [[-1, -1, -1, -1], [-1, -1, -1, -1], [-1, -1, -1, -1]]; s = 4
a.append([-1] * s)
a = [[-1, -1, -1, -1], [-1, -1, -1, -1], [-1, -1, -1, -1], [-1, -1, -1, -1]]; s = 4
a = 'a'; h = ' babab'
h = h + a
a = 'a'; h = ' bababa'
k = [100, 200, 100, 500, 100, 600]; s = 1500; v = 3
s += k[v - 1]
k = [100, 200, 100, 500, 100, 600]; s = 1600; v = 3
k = 33; x = '60'
k = int(x)
k = 60; x = '60'
m = 1; u = '111111111111111111111111111'
u = str(u) + str(m)
m = 1; u = '1111111111111111111111111111'
b = ['0', '1', '0', '0', '0', '0', '0', '0']; i = 6
b[i] = '1'
b = ['0', '1', '0', '0', '0', '0', '1', '0']; i = 6
k = 9; z = 8
z = k
k = 9; z = 9
f = 2
m = [[] for _ in range(f)]
f = 2; m = [[], []]
i = 11; j = 11; t = 1
t = i ^ j
i = 11; j = 11; t = 0
p = 16
p = p << 1
p = 32
i = [26]; x = ['1', '91']
i.append(int(x[1]))
i = [26, 91]; x = ['1', '91']
h = 4294967296
h <<= 1
h = 8589934592
o = 10
o += 1
o = 11
i = [2, 2, 2, 2, 2, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; l = 6
i[l] += 1
i = [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]; l = 6
k = deque([1, 5]); l = 0; v = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; x = 2
k.append(v[x][l])
k = deque([1, 5, 9]); l = 0; v = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; x = 2
i = 2; v = [0, 0, 1, 2, 3]; x = 0
x = v[i]
i = 2; v = [0, 0, 1, 2, 3]; x = 1
a = 5; p = 7
x = a ** ((p - 1) / 2) % p
a = 5; p = 7; x = 6.0
c = 'c'; x = {1, 2}
x.add(count * (ord(c) - 96))
c = 'c'; x = {1, 2, 30196707}
i = 0; j = 1; o = 0; p = 1; v = -1; x = 0; y = 1
x, y = i + p * v, j + p * o
i = 0; j = 1; o = 0; p = 1; v = -1; x = -1; y = 1
w = [0, 0, 1]
w.pop(0)
w = [0, 1]
a = -2; g = [-2, -3, -1, -4, -6]; i = 1
a = max(a + g[i], g[i])
a = -3; g = [-2, -3, -1, -4, -6]; i = 1
i = 3; q = [1, 2, 5, 3, 4]; w = {(2): 1}
w[q[i - 1]] = 0
i = 3; q = [1, 2, 5, 3, 4]; w = {2: 1, 5: 0}
i = 2; j = 4; k = 3
j = i + k
i = 2; j = 5; k = 3
i = 3; l = 6
l = l ^ i
i = 3; l = 5
n = [4, 9]
z = len(n) - 1
n = [4, 9]; z = 1
h = 1; j = 1; x = ['e', 'd', 'c', 'b', 'a']
l.append(x[h - abs(j - h) - 1])
h = 1; j = 1; l = ['e']; x = ['e', 'd', 'c', 'b', 'a']
i = 1.0000000000000004e-42
i = i / 10
i = 1.0000000000000003e-43
o = [4, 5, 3, 7, 2]
p = o[0]
o = [4, 5, 3, 7, 2]; p = 4
i = 7; r = 'hackerra'; t = 'hackerrank'
r = t[0:i]
i = 7; r = 'hackerr'; t = 'hackerrank'
d = [3, 2]; v = 'a'
d.append(ord(v) - 96)
d = [3, 2, 1]; v = 'a'
a = 0; n = 0
a = n // 5
a = 0; n = 0
h = 0; q = 1
h = max(q, h2)
h = 11; o = 11; q = 1
y = 1
i += [y]
i = [1]; y = 1
p = 7
p += 1
p = 8
i = 1; s = 'BANANA'
k += len(s) - i
i = 1; k = -40; s = 'BANANA'
x = 0
b += [x]
b = [0]; x = 0
q = []; x = 2; y = 7
q.append((x, y, 0))
q = [(2, 7, 0)]; x = 2; y = 7
g = 3; i = 10; v = 2; z = -3
z = i - g ** v
g = 3; i = 10; v = 2; z = 1
d = 1; f = [1, 2, 2]
d = len(f)
d = 3; f = [1, 2, 2]
i = 0; u = [1, 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]
u = [(0) for i in range(26)]
i = 0; u = [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]
g = 1; n = 1
g = n + 1
g = 2; n = 1
b = 8; u = [1, 5, 7]
u.append(b)
b = 8; u = [1, 5, 7, 8]
b = [2, 5, 3, 6]; h = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 4; j = 1; x = 1
x = h[i - b[j]][j] if i - b[j] >= 0 else 0
b = [2, 5, 3, 6]; h = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; i = 4; j = 1; x = 0
n = [20, 30, 10]
u = sum(n)
n = [20, 30, 10]; u = 60
d = 2; f = [[4, 1, 0], [0, 0, 0], [0, 0, 0]]; i = 1; u = 2
f[i - 1][u - 1] += d - u + 1
d = 2; f = [[4, 2, 0], [0, 0, 0], [0, 0, 0]]; i = 1; u = 2
j = 29; t = {(1): ['1', '2'], (3): ['100']}
t[j] = []
j = 29; t = {1: ['1', '2'], 3: ['100'], 29: []}
c = 6; k = 3
c *= k
c = 18; k = 3
i = 2; m = {'a': 2}; s = 'aabbcd'
m[s[i]] = 1
i = 2; m = {'a': 2, 'b': 1}; s = 'aabbcd'
i = [7, 11]; q = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-7, 11], [7, -11], [-7, -11], [11, 7], [-11, 7]]
q.append([i[1], -i[0]])
i = [7, 11]; q = [[-12, -7], [12, -7], [-12, 7], [12, 7], [-7, -12], [-7, 11], [7, -11], [-7, -11], [11, 7], [-11, 7], [11, -7]]
b = [['A', 2, 1], ['B', 2, 1], ['C', 2, 1], ['_', 1, 0]]; n = ['_', 1, 0]
b.append(n)
b = [['A', 2, 1], ['B', 2, 1], ['C', 2, 1], ['_', 1, 0], ['_', 1, 0]]; n = ['_', 1, 0]
j = 3; l = 3; x = [3, 2, 1, 2, 3, 3]
l = x[j]
j = 3; l = 2; x = [3, 2, 1, 2, 3, 3]
j = 0; m = 'A'; u = 'BBBBB'
m = u[j + 1]
j = 0; m = 'B'; u = 'BBBBB'
i = 0
r.add(i)
i = 0; r = {0}
n = 8
s = [[] for x in range(n)]
n = 8; s = [[], [], [], [], [], [], [], []]
a = [2, -1, 2, 3, 4, -5]; i = 4; k = 7
k += a[i]
a = [2, -1, 2, 3, 4, -5]; i = 4; k = 11
u = 2
u += 1
u = 3
h = ['s', 'M', ' ']
h = list()
h = []
m = [1, 2, '3']
m[2] = int(m[2])
m = [1, 2, 3]
m = 1.2000000000000006e-39
m = m / 10
m = 1.2000000000000006e-40
a = '10 5'
a = a.split()
a = ['10', '5']
a = [1, 1, 1, 2, 2]; l = 0
r = min(l + w, len(a))
a = [1, 1, 1, 2, 2]; l = 0; r = 5; w = 32
r = 'aabaa'; t = 'aabaacaba'
r += t[len(r)]
r = 'aabaac'; t = 'aabaacaba'
a = {'w'}; i = 'e'
a.add(i)
a = {'w', 'e'}; i = 'e'
e = '4 5 0'; s = 32
s = 2 ** int(e.split()[2])
e = '4 5 0'; s = 1
o = 1; t = 1; v = '1'
t = int(v) ^ o
o = 1; t = 0; v = '1'
h = 3; l = 3; s = 'ababa'; y = 'bab'
y = s[h - 1:h - 1 + l]
h = 3; l = 3; s = 'ababa'; y = 'aba'
e = {2, 11, 4, 12}; r = {9, 2, 4, 5}
g = e.difference(r)
e = {2, 11, 4, 12}; g = {11, 12}; r = {9, 2, 4, 5}
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; h = [[-520, -470]]; i = 8; j = 7
h.append([min(a[i], a[j]), max(a[i], a[j])])
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; h = [[-520, -470], [-20, 30]]; i = 8; j = 7
a = [1, 0, 3]; m = 0; s = [[5], [7]]
s[m].append(a[2])
a = [1, 0, 3]; m = 0; s = [[5, 3], [7]]
a = 6; m = [1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
m[a] += 1
a = 6; m = [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
m = [1, 1, 2]; s = 2
m.append(s)
m = [1, 1, 2, 2]; s = 2
d = 1000000007; j = 1; l = [4, 2, 1]; w = 18; z = 3
w = (w + l[j] * z % d) % d
d = 1000000007; j = 1; l = [4, 2, 1]; w = 24; z = 3
c = 'a'; x = 'bbfb'
x = x + c
c = 'a'; x = 'bbfba'
b = 0, 0
t = b[0] + 1
b = (0, 0); t = 1
e = '17'
f = len(e)
e = '17'; f = 2
i = 1; t = ['1', '0', '1', '1']
t[i] = t[-i - 1]
i = 1; t = ['1', '1', '1', '1']
d = 0; o = 0
o = d
d = 0; o = 0
d = '11111111111111111111111111111111'; s = '1'
d += '0' if s == '1' else '1'
d = '111111111111111111111111111111110'; s = '1'
p = 5; r = [4, 8, 2, 4]
r.append(p)
p = 5; r = [4, 8, 2, 4, 5]
j = 1; p = {(1): 1, (2): 1, (3): 1}
p[j] = 1
j = 1; p = {1: 1, 2: 1, 3: 1}
j = 1
a.add(j * count)
a = {10071927}; j = 1
i = 3; j = []
j.append(i)
i = 3; j = [3]
m = 5; s = {3, 4}
l = len(s) % m
l = 2; m = 5; s = {3, 4}
c = 1.8937389403869984; s = 5; x = 0.31562315673116637
x = c / s
c = 1.8937389403869984; s = 5; x = 0.37874778807739967
c = 'bcde'; r = OrderedDict([('bcdef', 1), ('abcdefg', 1)])
r[c] = 1
c = 'bcde'; r = OrderedDict([('bcdef', 1), ('abcdefg', 1), ('bcde', 1)])
w = 40
w = w + 1
w = 41
c = 4; i = 1; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; w = 4
c = l[i + w - 1]
c = 10; i = 1; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; w = 4
l = [[1, 4], [0, 5], [1, 6]]; x = [[1, 7], [2, 7], [7, 7]]
l.append(x[0])
l = [[1, 4], [0, 5], [1, 6], [1, 7]]; x = [[1, 7], [2, 7], [7, 7]]
i = [2, 2]; p = 1
p = len(i)
i = [2, 2]; p = 2
t = 'Tina'; w = 37.2; z = [['Harry', 37.21], ['Berry', 37.21]]
z.append([t, w])
t = 'Tina'; w = 37.2; z = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2]]
d = [1]; j = [1, 1, 1, 2, 2]; q = 1; r = 1
d.extend(j[r:q + 1])
d = [1, 1]; j = [1, 1, 1, 2, 2]; q = 1; r = 1
i = 5; s = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53]; t = 2310
t *= s[i]
i = 5; s = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53]; t = 30030
g = []
g.append(i)
g = [-39]; i = -39
a = 4; q = [1, 2, 3]
q.append(a)
a = 4; q = [1, 2, 3, 4]
c = [2, 1, 5, 3, 4]; j = 0
c[j], c[j + 1] = c[j + 1], c[j]
c = [1, 2, 5, 3, 4]; j = 0
i = 0; n = [1, 2, 3, 4, 6, 12]
s += n[i] % 10
i = 0; n = [1, 2, 3, 4, 6, 12]; s = 2
m = -2; x = -1
x = m
m = -2; x = -2
i = 5; j = 25; s = -2
j += s * i
i = 5; j = 15; s = -2
s = [2, 6, 4]
w = min(s)
s = [2, 6, 4]; w = 2