start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
a = [6, 8, 2, 1, 4, 1, 4, 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]; i = 2
a[i] += a[i - 1]
a = [6, 8, 10, 1, 4, 1, 4, 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]; i = 2
d = array([1.0, 2.0, 3.0, 7.0, 8.0, 9.0])
l = absolute(d[d != 0])
d = array([1., 2., 3., 7., 8., 9.]); l = array([1., 2., 3., 7., 8., 9.])
n = 3; q = 36.0
q *= 2 * n * n + 2 * n - 1
n = 3; q = 828.0
i = 3; q = [1, 1]
q.append(i)
i = 3; q = [1, 1, 3]
j = 7; s = [1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1]; t = 5
s[j] += s[j - t]
j = 7; s = [1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1]; t = 5
h = 5; y = 2; z = [5, 2]
y = z.index(h)
h = 5; y = 0; z = [5, 2]
c = 7; t = [3, 5]
t.append(c)
c = 7; t = [3, 5, 7]
i = 13; j = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'N', 'K', '.', 'C', 'O']; s = 'HackerRank.com presents "Pythonist 2".'
j.append(s[i].upper())
i = 13; j = ['h', 'A', 'C', 'K', 'E', 'R', 'r', 'A', 'N', 'K', '.', 'C', 'O', 'M']; s = 'HackerRank.com presents "Pythonist 2".'
e = 3
e += 1
e = 4
c = 4; j = 4; x = 0
j = (x + c) // 2
c = 4; j = 2; x = 0
e = 6; i = 3; r = [2, 4, 2, None, None, None, None, None, None, None]
r[i] = e
e = 6; i = 3; r = [2, 4, 2, 6, None, None, None, None, None, None]
p = [2, 3, 1]; x = 0
v = p.index(x + 1) + 1
p = [2, 3, 1]; v = 3; x = 0
j = 0; p = ['b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a']; v = 'ababa', 'babab'
p.append(v[j % 2][j])
j = 0; p = ['b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'b', 'a', 'a']; v = ('ababa', 'babab')
n = {'ccdd': 1, 'ccd': 1, 'cdd': 1}; u = 'cd'
n[u] = 1
n = {'ccdd': 1, 'ccd': 1, 'cdd': 1, 'cd': 1}; u = 'cd'
q = 'x'; u = {'x': 1, 'a': 1}
u[q] += 1
q = 'x'; u = {'x': 2, 'a': 1}
i = ['1', '0', '5\n']; x = [['-1'], ['2'], ['1'], ['-1'], ['-1']]
x[int(i[0])].append(str(int(i[1])))
i = ['1', '0', '5\n']; x = [['-1'], ['2', '0'], ['1'], ['-1'], ['-1']]
g = 3; q = 99; s = '99910001001'; u = 2
q = int(s[u:u + g])
g = 3; q = 910; s = '99910001001'; u = 2
e = [1, 2, 3, 2]; o = 1
e.append(o)
e = [1, 2, 3, 2, 1]; o = 1
k = 7.5
k = k / 2 * 3
k = 11.25
i = 3; j = [-4, -3, -2, -2, -1, 0, 1, 2, 3, 4]; t = 1
j[i] = j[i] + t
i = 3; j = [-4, -3, -2, -1, -1, 0, 1, 2, 3, 4]; t = 1
e = 1; u = [set(), set(), set(), set(), set(), set()]; w = 3
u[e - 1].add(w - 1)
e = 1; u = [{2}, set(), set(), set(), set(), set()]; w = 3
f = 1; m = 1
g += 2 * f * m
f = 1; g = 40; m = 1
i = 2; n = 88
n += i
i = 2; n = 90
l = {2, 3, 4}; m = {(3): {2, 4}, (4): {2, 3}}; p = 3
l = m[p]
l = {2, 4}; m = {3: {2, 4}, 4: {2, 3}}; p = 3
d = 'c'; i = 3
d = chr(i + 97)
d = 'd'; i = 3
c = 1001; d = 100; s = 1001
s = d | c
c = 1001; d = 100; s = 1005
a = [999, 998, 997, 996, 995, 994, 993]; i = 992
a += [i]
a = [999, 998, 997, 996, 995, 994, 993, 992]; i = 992
s = 4611686018427387904
s >>= 1
s = 2305843009213693952
d = 80; h = 4; i = 6; y = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
d = y[i + h - 1] - y[i]
d = 170; h = 4; i = 6; y = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
e = {(0): inf, (1): inf, (2): inf}; n = 3
e[n] = float('inf')
e = {0: inf, 1: inf, 2: inf, 3: inf}; n = 3
z = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
r = sorted([sum(x) for x in z])
r = [5, 5, 9]; z = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
c = 4656612873077385.0; i = 22; p = 1.8626451492309576e+16
c += p / 5 ** i
c = 4656612873077393.0; i = 22; p = 1.8626451492309576e+16
c = 10; l = [6]
l.append(c)
c = 10; l = [6, 10]
a = [1, 3, 3, 3]; g = -3; i = 1; j = 0; k = 3; y = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]]
g = y[i][j] + a[i] * (j - (k - j))
a = [1, 3, 3, 3]; g = -12; i = 1; j = 0; k = 3; y = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]]
a = 0; x = 4
a = x
a = 4; x = 4
g = 0.877096734219425; n = 5.26258040531655; v = 5
g = n / v
g = 1.05251608106331; n = 5.26258040531655; v = 5
i = 0; j = 4; s = 'aaaaaa'; z = 'aaa'
z = s[i:j]
i = 0; j = 4; s = 'aaaaaa'; z = 'aaaa'
g = 425352958651173079329218259289710264556; i = 125; s = 10; t = 2
g = g + (t ^ s << i)
g = 850705917302346158658436518579420528878; i = 125; s = 10; t = 2
i = 0; o = [1, 1, 4, 1]; x = 7
o[i] = x
i = 0; o = [7, 1, 4, 1]; x = 7
k = '000000000000000000000000'
k = k + '0'
k = '0000000000000000000000000'
g = 68719476736
g <<= 1
g = 137438953472
i = [1, 3]
i[0] ^= 3
i = [2, 3]
i = 3; j = 2; o = 2; s = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [-12, -4, -4, inf, inf], [inf, -7, -1, -7, inf], [inf, inf, inf, 2, inf]]
s[i + 1][j] = o
i = 3; j = 2; o = 2; s = [[0, inf, inf, inf, inf], [-3, -1, inf, inf, inf], [-12, -4, -4, inf, inf], [inf, -7, -1, -7, inf], [inf, inf, 2, 2, inf]]
b = {(3): 1}; i = 2; m = 4; x = 4
b[m - x] = i
b = {3: 1, 0: 2}; i = 2; m = 4; x = 4
d = 'bebeeeb'; m = {'a', 'f'}
m = set(d)
d = 'bebeeeb'; m = {'e', 'b'}
i = 87; l = 1547425049106725343623905440; s = 10; t = 2
l = l + (t ^ s << i)
i = 87; l = 3094850098213450687247810722; s = 10; t = 2
c = '4'; j = '4'; u = '4'
c, u, j = [int(c), int(u), int(j)]
c = 4; j = 4; u = 4
b = '2'; d = 1; n = {(1): ['1']}
n[d].append(b)
b = '2'; d = 1; n = {1: ['1', '2']}
e = 62499; m = 31250
e = m - 1
e = 31249; m = 31250
a = '116'; j = 0
y += int(a[j])
a = '116'; j = 0; y = 61
n = 4; s = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']
n = len(s)
n = 9; s = ['f', 'e', 'd', 'c', 'b', 'a', 'b', 'c', 'd']
b = 6; n = 1; t = 1
n = t - b
b = 6; n = -5; t = 1
e = 3; u = [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]
u[e] += 1
e = 3; u = [0, 2, 0, 2, 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 = 2
m.append(i)
i = 2; m = [2]
a = {'a': 1, 'b': 1, 'c': 1, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; i = 'c'
a[i] += 1
a = {'a': 1, 'b': 1, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; i = 'c'
b = 6220674426.639998; g = 99233; m = 43900.6
b += (float(g) - m) ** 2
b = 9282348916.399998; g = 99233; m = 43900.6
a = [95, 84, 90]; q = 46866.0
q = q + a[0] ** 2
a = [95, 84, 90]; q = 55891.0
k = [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]; n = 3
k[n] += 1
k = [0, 0, 1, 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]; n = 3
s = 1.234e-31
s /= 10
s = 1.2339999999999999e-32
g = 2
g = g + 1
g = 3
n = 2; o = [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1]; w = 0
w = o[n]
n = 2; o = [0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1]; w = 1
r = '1000000000000000'
r = r + '0'
r = '10000000000000000'
e = 6; w = 4, True, 0, 3
e = w[0]
e = 4; w = (4, True, 0, 3)
k = '100'
k += '0'
k = '1000'
c = 1.31509648637986; d = 1.05251608106331; q = 5
d = c / q
c = 1.31509648637986; d = 0.263019297275972; q = 5
o = 'ailuhkq'
o = ''.join(sorted(o))
o = 'ahiklqu'
b = '4'; c = [{'1', '0'}, {'2', '3'}]; j = {'1', '0'}
j.add(b)
b = '4'; c = [{'0', '1'}, {'3', '2'}]; j = {'0', '1', '4'}
a = [1, 1, 1, 1, 1]; c = 2; i = 2
a[i] = a[i] + a[i - c]
a = [1, 1, 2, 1, 1]; c = 2; i = 2
v = ['{', '{']
v.pop(-1)
v = ['{']
d = 2; j = '1'
d = int(j)
d = 1; j = '1'
n = 0; t = 2
t *= n
n = 0; t = 0
d = 'o'; s = 'r'
s = d.lower()
d = 'o'; s = 'o'
n = 6
n = int(n / 2)
n = 3
r = 1; s = 'ifailuhkqq'
y = s[r:r + j]
j = 19; r = 1; s = 'ifailuhkqq'; y = 'failuhkqq'
a = [3, 4, 3]; h = 3; i = 0
a[i] += h
a = [6, 4, 3]; h = 3; i = 0
i = [['a', 'f'], ['a', 'i'], ['i', 'l'], ['l', 'u'], ['h', 'u'], ['h', 'k'], ['k', 'q'], ['q', 'q']]; t = ['f', 'i']
t = i[0]
i = [['a', 'f'], ['a', 'i'], ['i', 'l'], ['l', 'u'], ['h', 'u'], ['h', 'k'], ['k', 'q'], ['q', 'q']]; t = ['a', 'f']
a = '111111111111111000011101'
a += '1'
a = '1111111111111110000111011'
z = '2'
z = int(z)
z = 2
u = [1000000000, 1000000000, 1000000000, 1000000000, 1000000000]
u[0] += 1
u = [1000000001, 1000000000, 1000000000, 1000000000, 1000000000]
a = '1'; p = '0b10'
p += str(int(not bool(int(a))))
a = '1'; p = '0b100'
n = 1000000000000; s = 'a'
o = int(n / len(s))
n = 1000000000000; o = 1000000000000; s = 'a'
i = 1; l = [2, 3, 5, 5, 6]
l[i] += 1
i = 1; l = [2, 4, 5, 5, 6]
q = 6
p = q
p = 6; q = 6
f = [1, 3]; r = [1, 3]
r.append(f[i])
f = [1, 3]; i = True; r = [1, 3, 3]
i = 3; w = 'abcde'; x = 'c'
x = w[i]
i = 3; w = 'abcde'; x = 'd'
n = 1; t = [2, 3, 4, 3, 3, 2]
n = min(t)
n = 2; t = [2, 3, 4, 3, 3, 2]
x = -165.7
x -= 1
x = -166.7
g = 0; o = 0
n = min(g, o)
g = 0; n = 0; o = 0
i = 1; n = [8, 5, 7]
i = n.index(max(n))
i = 0; n = [8, 5, 7]
d = 100; x = 17
y = 2 * d / x
d = 100; x = 17; y = 11.764705882352942
c = 1
f = set([c])
c = 1; f = {1}
f = [1, 1, 4, 1]; n = 1; r = 6
r -= f[n]
f = [1, 1, 4, 1]; n = 1; r = 5
r = '8'; s = 2
s = sum([int(x) for x in r])
r = '8'; s = 8
q = {'c': 2, 'cd': 2, 'ccd': 1, 'ccdd': 1, 'd': 1, 'cdd': 1}; s = 'cd'
q[s] += 1
q = {'c': 2, 'cd': 3, 'ccd': 1, 'ccdd': 1, 'd': 1, 'cdd': 1}; s = 'cd'
b = 64; m = '01011000'
m = format(b, 'b')
b = 64; m = '1000000'
i = 0; j = 2; p = [3, 2, 1, 3, 2]; t = [3, 2, 1]
p.append(max(t[i:j + 1]))
i = 0; j = 2; p = [3, 2, 1, 3, 2, 3]; t = [3, 2, 1]
b = [0, 2, 1]; f = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; i = 1; j = 0
b[j] += f[i][j]
b = [1, 2, 1]; f = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; i = 1; j = 0
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 1; o = 52
o -= a[i][j]
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 1; o = 50
m = 0; w = 4
m = (w - 1) // 2
m = 1; w = 4
i = ' ##'
i = i + '#'
i = ' ###'