start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
o = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181]
o.append(o[-2] + o[-1])
o = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765]
p = {(1): True}; z = 5
p[z] = True
p = {1: True, 5: True}; z = 5
i = 3; k = 34; p = [1, 5, 10, 12, 111, 200, 1000]
k -= p[i]
i = 3; k = 22; p = [1, 5, 10, 12, 111, 200, 1000]
d = 1; e = 1; k = 1; o = ['QUERY', '1', '1', '1', '2', '2', '2']; p = 1; w = 1; y = 1
d, k, w, p, e, y = map(int, o[1:])
d = 1; e = 2; k = 1; o = ['QUERY', '1', '1', '1', '2', '2', '2']; p = 2; w = 1; y = 2
n = [3, 3]
n.append(0)
n = [3, 3, 0]
a = [0, 1]; t = [4]
a.extend(t)
a = [0, 1, 4]; t = [4]
f = {}; x = [1, 2]; y = []
f[id(x)] = y
f = {139758038056864: []}; x = [1, 2]; y = []
i = 26; m = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 484, 576]
m.append(i * i)
i = 26; m = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 484, 576, 676]
a = 5; b = 6; m = {(1): [2], (2): [1, 3, 5], (3): [2], (5): [2, 4, 6], (4): [5]}
m[b] = [a]
a = 5; b = 6; m = {1: [2], 2: [1, 3, 5], 3: [2], 5: [2, 4, 6], 4: [5], 6: [5]}
t = 3; u = [1, 2, 1, 1, 1, 1, 1, 1, 1, 1]
u[t] = max(u[t - 1] + 1, u[t])
t = 3; u = [1, 2, 1, 2, 1, 1, 1, 1, 1, 1]
d = 70; i = 4; j = [10, 20, 30, 100, 200, 300, 1000]
d = j[i] - j[i - 1]
d = 100; i = 4; j = [10, 20, 30, 100, 200, 300, 1000]
j = 104; n = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0}
n[chr(j)] = 0
j = 104; n = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0}
r = 4.76837158203125e-07; t = 0.5
r *= 1 - t
r = 2.384185791015625e-07; t = 0.5
b = [1, 2, 100]; c = [2]; i = 0
k += b[c[0]] - b[i]
b = [1, 2, 100]; c = [2]; i = 0; k = 35
i = 0; r = 4; v = [1, 0, -1, 0]; x = 0; y = 5
r = y + v[i] * x
i = 0; r = 5; v = [1, 0, -1, 0]; x = 0; y = 5
n = 5
e = [0] * (n + 1)
e = [0, 0, 0, 0, 0, 0]; n = 5
i = 1; j = 1
t = [[i - 1, j], [i, j - 1], [i, j + 1], [i + 1, j]]
i = 1; j = 1; t = [[0, 1], [1, 0], [1, 2], [2, 1]]
x = 11; y = 0
x += y + 1
x = 12; y = 0
s = [[], []]; x = 0; y = 5
s[x].append(y)
s = [[5], []]; x = 0; y = 5
g = [2, 3, 4, 2, 3, 6, 8, 4, 5]; i = 0; t = [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]
t[g[i]] += 1
g = [2, 3, 4, 2, 3, 6, 8, 4, 5]; i = 0; t = [0, 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]
h = 2; s = '1011'
s = s[h:]
h = 2; s = '11'
a = [4, 2, 3, 5, 1]; e = 0; t = 3
a[t], a[e] = a[e], a[t]
a = [5, 2, 3, 4, 1]; e = 0; t = 3
j = 'to play chess.'
j = j[:-1] if j[-1] == '.' else j
j = 'to play chess'
i = 3; q = [0, 1]
q.append(i)
i = 3; q = [0, 1, 3]
f = [5]; i = 1; y = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
f.append(sum(y[i]))
f = [5, 5]; i = 1; y = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
a = [6, 5, 8, 4, 7, 10, 9]
b = a[0]
a = [6, 5, 8, 4, 7, 10, 9]; b = 6
p = 1.2000000000000003e-28; z = 1.2000000000000004e-29
p = z % 10.0
p = 1.2000000000000004e-29; z = 1.2000000000000004e-29
s = 0.5; t = 1.25
s += t
s = 1.75; t = 1.25
i = 4; k = 4, 3; z = 2
k = i, z
i = 4; k = (4, 2); z = 2
b = 21; i = 3; n = 5; u = [1, 3, 5, 7, 9]; z = 1
b += u[n - i - 1] * (z + 1)
b = 27; i = 3; n = 5; u = [1, 3, 5, 7, 9]; z = 1
z = -1
z -= 1
z = -2
p = {(0): -1}; x = 1
p[x] = -1
p = {0: -1, 1: -1}; x = 1
t = 3
s += t
s = 94; t = 3
g = 'a'
a[g] = -1
a = {'a': -1}; g = 'a'
y = 5
y -= 1
y = 4
h = 97; j = ' '; y = 17
y = ord(j) - h
h = 97; j = ' '; y = -65
e = [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; k = 11
e[k] = e[k - 1] * 2
e = [0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; k = 11
p = 14; y = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423, 36855, 73719, 147447]
y.append(9 * 2 ** p + y[-1])
p = 14; y = [0, 9, 27, 63, 135, 279, 567, 1143, 2295, 4599, 9207, 18423, 36855, 73719, 147447, 294903]
s = 'hackerha'
s = s[:len(s) - 1]
s = 'hackerh'
f = 11; t = 20
t += f
f = 11; t = 31
m = '2 1 1\n'; n = ['2', '1', '0\n']
n = m.split(' ')
m = '2 1 1\n'; n = ['2', '1', '1\n']
m = 8; w = 4
m = w
m = 4; w = 4
r = [0.92, 0.11, 137.66]; y = [[0.18, 0.89], [1.0, 0.26]]; z = 2
y.append(r[0:z])
r = [0.92, 0.11, 137.66]; y = [[0.18, 0.89], [1.0, 0.26], [0.92, 0.11]]; z = 2
e = 3; t = [1, 2]
t.append(e)
e = 3; t = [1, 2, 3]
d = ['e', 'f', 'b']; i = 2
d.pop(i)
d = ['e', 'f']; i = 2
d = 1; i = 1
i += d
d = 1; i = 2
i = 3; j = 9; s = 'ifailuhkqq'; y = 'h', 'i', 'k', 'l', 'u'
y = tuple(sorted(list(s[i:j])))
i = 3; j = 9; s = 'ifailuhkqq'; y = ('h', 'i', 'k', 'l', 'q', 'u')
m = '6'; n = '6'; s = '5'; x = '2'
n, m, x, s = [int(n), int(m), int(x), int(s)]
m = 6; n = 6; s = 5; x = 2
c = 4; g = 135; m = [31, 29, 31, 30, 31, 31, 30, 31, 30, 31, 30, 31]
g -= m[c]
c = 4; g = 104; m = [31, 29, 31, 30, 31, 31, 30, 31, 30, 31, 30, 31]
c = 2; d = 1; x = 11
c = x - d
c = 10; d = 1; x = 11
a = 5; b = 7; j = 7
a, b = j - 1, j + 1
a = 6; b = 8; j = 7
k = 1.0000000000000008e-99
k = k / 10
k = 1.0000000000000008e-100
i = 100; r = ['a', 'b', 'c']
r.append(chr(i))
i = 100; r = ['a', 'b', 'c', 'd']
i = 1; n = 3
n = i + 1
i = 1; n = 2
i = '5'; t = [2]
t.append(int(i))
i = '5'; t = [2, 5]
c = '1 3 4 5 6 2'; j = 0; l = ['1', '3', '4', '5', '6', '2']
c = c + l[j] + ' '
c = '1 3 4 5 6 21 '; j = 0; l = ['1', '3', '4', '5', '6', '2']
i = 0; j = 0; n = 2; s = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]
q += max(s[i][j], s[i][2 * n - j - 1], s[2 * n - i - 1][j], s[2 * n - i - 1 ][2 * n - j - 1])
i = 0; j = 0; n = 2; q = 184; s = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]
e = 3; q = 1; r = 0; w = 0
q = w = e = r = 0
e = 0; q = 0; r = 0; w = 0
g = 32; q = 2.5; x = 5
q += x % g - (g / 2 - 1)
g = 32; q = -7.5; x = 5
m = 3
m += 1
m = 4
m = 4; v = [[0, 0, 0, 0]]
v.append([0] * m)
m = 4; v = [[0, 0, 0, 0], [0, 0, 0, 0]]
a = [100, 100, 0, 0, 0, -100]; b = 4; k = 100
a[b] -= k
a = [100, 100, 0, 0, -100, -100]; b = 4; k = 100
c = [76, 76, 95, 96, 79, 74, 97, 97]; z = 90
c.append(z)
c = [76, 76, 95, 96, 79, 74, 97, 97, 90]; z = 90
a = [3, 2, 1]; l = 0; r = 1
a = a[0:l] + sorted(a[l:r + 1]) + a[r + 1:]
a = [2, 3, 1]; l = 0; r = 1
d = 9; f = [9, 7, 6, 4]; i = 1
d += f[i] * 2 ** i
d = 23; f = [9, 7, 6, 4]; i = 1
h = 0; j = 5; k = 2; s = [True, False, True, True, True]
h = h ^ s[j - k + 1]
h = 1; j = 5; k = 2; s = [True, False, True, True, True]
l = [4, 2, 3, 5, 1]; n = 3; s = 4
s = l[n]
l = [4, 2, 3, 5, 1]; n = 3; s = 5
k = 1.0000000000000002e-27
k = k / 10
k = 1.0000000000000002e-28
h = [1, 1, 1, 2, 2]; i = 4; w = [2]
w.append(h[i])
h = [1, 1, 1, 2, 2]; i = 4; w = [2, 2]
i = {'Krishna': ['Krishna', '67', '68', '69'], 'Arjun': ['Arjun', '70', '98', '63'], 'Malika': ['Malika', '52', '56', '60']}; y = 'Malika'
f = float(i[y][1]) + float(i[y][2]) + float(i[y][3])
f = 168.0; i = {'Krishna': ['Krishna', '67', '68', '69'], 'Arjun': ['Arjun', '70', '98', '63'], 'Malika': ['Malika', '52', '56', '60']}; y = 'Malika'
c = 'l'; j = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0}
j[c] = 0
c = 'l'; j = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0, 'l': 0}
a = 1.7999999999999996e-40
a = a / 10
a = 1.7999999999999995e-41
y = 2; z = 3
j = abs(y - z)
j = 1; y = 2; z = 3
d = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0, 0]
d.remove(0)
d = [2, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0]
y = 4
j = y - 2
j = 2; y = 4
w = 3; x = 3; z = 8
z = w * x
w = 3; x = 3; z = 9
i = 2; k = 1; s = '7891011'; x = '8'
x = s[i:i + k]
i = 2; k = 1; s = '7891011'; x = '9'
a = 5; h = [[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]]
h = [(0) for ii in range(a)]
a = 5; h = [0, 0, 0, 0, 0]
x = 12
x = str(x)
x = '12'
i = 11; j = 68; n = 72
n = i ^ j
i = 11; j = 68; n = 79
k = 1; s = ['b', 'a', 'a', 'b']
s.pop(k + 1)
k = 1; s = ['b', 'a', 'b']
i = 116; x = [['a', 0], ['b', 0], ['c', 0], ['d', 0], ['e', 0], ['o', 0], ['p', 0], ['q', 0], ['r', 0], ['s', 0]]
x.append([chr(i), 0])
i = 116; x = [['a', 0], ['b', 0], ['c', 0], ['d', 0], ['e', 0], ['o', 0], ['p', 0], ['q', 0], ['r', 0], ['s', 0], ['t', 0]]
y = '1'
d.append(y)
d = ['1']; y = '1'
b = 204; o = {(203): 1}
o[b] = 1
b = 204; o = {203: 1, 204: 1}
o = 2; w = 10
q = w // o
o = 2; q = 5; w = 10
a = 'ackerrank'
a = a[1:]
a = 'ckerrank'
a = '0011'; x = 4
a = bin(x)[2:]
a = '100'; x = 4
d = '\\s'
c = CATEGORIES.get(d)
c = None; d = '\\s'; s = {}
d = '3'; q = {'1', '2'}
q.add(d)
d = '3'; q = {'3', '1', '2'}
a = 1; b = 2
r.append((a, b))
a = 1; b = 2; r = [(1, 2)]
k = 'MARKS'; q = {'ID'}
q.add(k)
k = 'MARKS'; q = {'ID', 'MARKS'}
i = 6; j = 6; w = 2
j = i + w - 1
i = 6; j = 7; w = 2
s = {}; x = [['*', '.', 'M'], ['.', 'X', '.']]; y = []
s[id(x)] = y
s = {139760243648064: []}; x = [['*', '.', 'M'], ['.', 'X', '.']]; y = []
c = 9; n = 8
n += c
c = 9; n = 17
p = '16'
p = list(map(int, p))
p = [1, 6]
d = 3; m = 2
m = d
d = 3; m = 3
c = [0, 999, 1000, 1001]; d = [1, 2, 3]
c.append(max(d))
c = [0, 999, 1000, 1001, 3]; d = [1, 2, 3]
i = 'CLASS'; q = {'NAME', 'MARKS', 'ID'}
q.add(i)
i = 'CLASS'; q = {'MARKS', 'NAME', 'CLASS', 'ID'}
d = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 1, 43, 0, 44, 1, 47, 0, 48, 1, 51, 0, 52, 1, 55]; x = 55
d.append(d[-1] ^ x)
d = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 1, 43, 0, 44, 1, 47, 0, 48, 1, 51, 0, 52, 1, 55, 0]; x = 55
d = ['-4', '3', '-9', '0', '4', '1', '', '', '', '', '', '', '', '', '']; i = 3; l = [-4.0, 3.0, -9.0]
l.append(float(d[i]))
d = ['-4', '3', '-9', '0', '4', '1', '', '', '', '', '', '', '', '', '']; i = 3; l = [-4.0, 3.0, -9.0, 0.0]