start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
h = 2; x = 15
h = x % 4
h = 3; x = 15
s = [2, 2, 3]
y = s[2]
s = [2, 2, 3]; y = 3
e = [[[], [], [], [], [], []], [[], [], [], [], [], []], [[], [], [], [], [ ], []], [['UL'], [], [], [], [], []], [[], [], [], [], [], []], [[], [], [], [], [], []]]; i = 5; j = 1; p = 'UR'; y = 1; z = -2
e[i + z][j + y] = e[i][j] + [p]
e = [[[], [], [], [], [], []], [[], [], [], [], [], []], [[], [], [], [], [], []], [['UL'], [], ['UR'], [], [], []], [[], [], [], [], [], []], [[], [], [], [], [], []]]; i = 5; j = 1; p = 'UR'; y = 1; z = -2
a = 2; n = 3
a = max(a, n)
a = 3; n = 3
r = [2, 0]
r = [r[0] + 1, r[1] - 1]
r = [3, -1]
c = ['B', 'A', 'B', 'A']; i = 4; s = 'BABABA'
c.append(s[i])
c = ['B', 'A', 'B', 'A', 'B']; i = 4; s = 'BABABA'
f = 'd'; j = 2; l = 1; s = 'cdcd'
f = s[j:j + l]
f = 'c'; j = 2; l = 1; s = 'cdcd'
l = 'i came from'; x = 'went to the'
l = x
l = 'went to the'; x = 'went to the'
i = 7; m = [5]
m.append(i)
i = 7; m = [5, 7]
o = [6, 5, 4, 7, 10, 9]; v = 7
o.remove(v)
o = [6, 5, 4, 10, 9]; v = 7
f = 2; i = 1
b = abs(i - f)
b = 1; f = 2; i = 1
s = '4 6\n'; v = '3'; z = '0'
[z, v] = s.split()
s = '4 6\n'; v = '6'; z = '4'
a = ['D']; i = 5; r = 'UDDDUDUU'
a.append(r[i])
a = ['D', 'D']; i = 5; r = 'UDDDUDUU'
b = 1; e = -1.1538461538461537
g = int(e // b)
b = 1; e = -1.1538461538461537; g = -2
i = 10; m = ['-', '-', '-', '-', '-', '-', '-', '-', '-', '-', '', '', '', '', '', '', '', '', '', '']; s = 'that'
m[i] = s
i = 10; m = ['-', '-', '-', '-', '-', '-', '-', '-', '-', '-', 'that', '', '', '', '', '', '', '', '', '']; s = 'that'
g = [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]; i = 6
g = [(0) for i in range(26)]
g = [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]; i = 6
h = 1; j = 4
h = j
h = 4; j = 4
b = [0, 0, 0, 205, 206, 207, 205, 208, 203, 206, 205, 206, 204]; x = 3
b[x] -= b[x]
b = [0, 0, 0, 0, 206, 207, 205, 208, 203, 206, 205, 206, 204]; x = 3
g = [True, True, False, True, False]; j = 4
g[j] = True
g = [True, True, False, True, True]; j = 4
s = 258.0240736093022; x = 50
s += 0.5 * (1 + (1 + 4 * x) ** 0.5)
s = 265.6127970486811; x = 50
b = 4
b = b + 1
b = 5
a = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11]; i = 11
a.append(a[i - 1] ^ i)
a = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0]; i = 11
k = [set(), {3}, set(), set(), set(), set(), set()]; l = 3; s = 1
k[l].add(s)
k = [set(), {3}, set(), {1}, set(), set(), set()]; l = 3; s = 1
b = '2'
b = int(b) - 1
b = 1
c = 50; i = 0; v = [1, 5, 10, 12, 111, 200, 1000]
c -= v[i]
c = 49; i = 0; v = [1, 5, 10, 12, 111, 200, 1000]
i = 1; m = 11; r = [4, 5, 6]
m = m + r[i]
i = 1; m = 16; r = [4, 5, 6]
i = 1; s = {(4): 0}; u = [4, 2, 3, 5, 1]
s[u[i]] = i
i = 1; s = {4: 0, 2: 1}; u = [4, 2, 3, 5, 1]
o = [2, 1]
o.reverse()
o = [1, 2]
c = 1.0; k = 3; n = 2
c = c * (n + 1 - k) / k
c = 0.0; k = 3; n = 2
t = [1]; z = [1]
t = z
t = [1]; z = [1]
c = 'today'; e = {'give': 1, 'me': 1, 'one': 1, 'grand': 1}
e[c] = 1
c = 'today'; e = {'give': 1, 'me': 1, 'one': 1, 'grand': 1, 'today': 1}
n = """1 4\nx**3 + x**2 + x + 1\n\n\n\n"""; t = ['1', '4']
n = t[1]
n = '4'; t = ['1', '4']
d = 2; l = 3
d = l
d = 3; l = 3
u = [2, 1]; w = [1, 3]
u = w[:]
u = [1, 3]; w = [1, 3]
a = [1, 2, 3, 4, 4]; i = 2; t = [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, 0]
t[a[i]] += 1
a = [1, 2, 3, 4, 4]; i = 2; t = [0, 1, 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]
f = ['1', '2', '4', '8', '16', '32', '268435456', '536870912', '1073741824', '2147483648', '4294967296']; x = 8589934592
f.append(str(x))
f = ['1', '2', '4', '8', '16', '32', '268435456', '536870912', '1073741824', '2147483648', '4294967296', '8589934592']; x = 8589934592
g = 3; i = 1; y = [-1, 0, 6, -1, -1]
y[g] = y[i] + 6
g = 3; i = 1; y = [-1, 0, 6, 6, -1]
a = 'hAC'; s = 'HackerRank.com presents "Pythonist 2".'; x = 3
a += s[x].upper()
a = 'hACK'; s = 'HackerRank.com presents "Pythonist 2".'; x = 3
i = 3; w = -1
w = i
i = 3; w = 3
a = [9, 7, 6, 4]; i = 2; m = 23
m += 2 ** i * a[i]
a = [9, 7, 6, 4]; i = 2; m = 47
r = 'q'; x = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
x[ord(r) - 97] += 1
r = 'q'; x = [0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0]
a = 1e-22; i = 1.0000000000000001e-23
a = i % 10
a = 1.0000000000000001e-23; i = 1.0000000000000001e-23
l = [('H', 'A'), ('H', 'C'), ('H', 'K'), ('A', 'H'), ('C', 'K'), ('K', 'H'), ('K', 'A'), ('K', 'C')]
l.sort()
l = [('A', 'H'), ('C', 'K'), ('H', 'A'), ('H', 'C'), ('H', 'K'), ('K', 'A'), ('K', 'C'), ('K', 'H')]
j = 2; r = 2; s = -1
j = r + s
j = 1; r = 2; s = -1
i = 4; t = [4, 0, 3, 1, 2]; w = [1, 2]
w = t[i:]
i = 4; t = [4, 0, 3, 1, 2]; w = [2]
j = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]
j.append(j[-1] + j[-2])
j = [1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]
h = 0; j = [1, 0, 0]
j.append(h)
h = 0; j = [1, 0, 0, 0]
f = 14; y = 7
f = y
f = 7; y = 7
i = '5'; k = {'1': 3, '2': 4, '3': 3, '6': 3, '5': 3, '4': 3}
k[i] += 1
i = '5'; k = {'1': 3, '2': 4, '3': 3, '6': 3, '5': 4, '4': 3}
a = [-7, 0, 3]; i = 1; m = 7
m = abs(a[i] - a[i + 1])
a = [-7, 0, 3]; i = 1; m = 3
f = 5; l = 1.25; r = 7.5
r = 0.5 * (f ** 2 - f % l * (f / l + 1) ** 2 - (l - f % l) * (f / l) ** 2)
f = 5; l = 1.25; r = 2.5
a = [1, 2, 4, 5, 7, 8, 10]; i = 2; j = 3; l = 3
l = a[j] - a[i]
a = [1, 2, 4, 5, 7, 8, 10]; i = 2; j = 3; l = 1
i = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1}; w = {'u': 0, 'a': 1, 'i': 1, 'o': 1, 'e': 1}
w = i.copy()
i = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1}; w = {'u': 2, 'a': 1, 'i': 1, 'o': 2, 'e': 1}
b = 111; i = 'i'; u = 2
b = ord(i) + u
b = 107; i = 'i'; u = 2
p = 7; w = [3, 2, 4, 5]
w.append(p)
p = 7; w = [3, 2, 4, 5, 7]
a = [100, 100, 0, 0, 0]; c = 4; d = 100
a[c] -= d
a = [100, 100, 0, 0, -100]; c = 4; d = 100
g = [10, 5, 20, 20, 4, 5, 2, 25, 1]
m = g[0]
g = [10, 5, 20, 20, 4, 5, 2, 25, 1]; m = 10
g = 'aab'
s = len(g)
g = 'aab'; s = 3
g = [9, 7, 5, 3, 1]; i = 0; j = 0
e += cnst * g[j + i]
e = -708.281718171541; g = [9, 7, 5, 3, 1]; i = 0; j = 0; y = -79
b = deque([]); v = 20
b.append(v)
b = deque([20]); v = 20
b = 2; t = 1
b = b * b + t
b = 5; t = 1
i = 1; j = 4; o = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 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]]
o[i + 1][j + 1] = max(o[i + 1][j], o[i][j + 1])
i = 1; j = 4; o = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0]]
p = ['a', 'b', 'c']
p.pop()
p = ['a', 'b']
e = ['h', 'a', 'c', 'k', 'e', 'r', 'h', 'a', 'p', 'p', 'y']; i = 6
o = len(e) - i
e = ['h', 'a', 'c', 'k', 'e', 'r', 'h', 'a', 'p', 'p', 'y']; i = 6; o = 5
i = 1; x = 5; y = 3.0
y = x / i
i = 1; x = 5; y = 5.0
x = 84
x = x % 10
x = 4
x = 8
x += 1
x = 9
i = 35
i += 1
i = 36
f = 'times'; s = Counter({'two': 2, 'times': 1, 'is': 1, 'four': 1}); x = 2
x = s[f]
f = 'times'; s = Counter({'two': 2, 'times': 1, 'is': 1, 'four': 1}); x = 1
i = 2; z = [1, 2, 0]
z.pop(i)
i = 2; z = [1, 2]
c = [6, 2, 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 = 23; q = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]
q.append(q[i - 1] + c[i - 1])
c = [6, 2, 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 = 23; q = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]
j = 3; n = 'A'; y = 'BABABA'
n = y[j + 1]
j = 3; n = 'B'; y = 'BABABA'
i = 3; j = 2
j = i + 1
i = 3; j = 4
e = 1
e = int(0)
e = 0
i = 0; k = 2
i = j = k = 0
i = 0; j = 0; k = 0
b = 3; l = 1000000
l = b
b = 3; l = 3
c = 13; d = 0; q = 'aaaabbbbaaaa'; s = 'aaabbbbaaaaaa'
q = s[d:c + d]
c = 13; d = 0; q = 'aaabbbbaaaaaa'; s = 'aaabbbbaaaaaa'
i = 'f'; t = 'bea'
t = t + i
i = 'f'; t = 'beaf'
s = 'cab '
l = len(s)
l = 5; s = 'cab '
b = 'haveaniceday'
n = len(b)
b = 'haveaniceday'; n = 12
a = 4.174883168419468; b = 0.6958138614032446; n = 5
b = a / n
a = 4.174883168419468; b = 0.8349766336838936; n = 5
i = 50; s = 10; t = 2; z = 11258999068426326
z = z + (t ^ s << i)
i = 50; s = 10; t = 2; z = 22517998136852568
e = 100
d += e
d = 188; e = 100
n = 3; t = [2, 1, 3]
o = len(t) - n
n = 3; o = 0; t = [2, 1, 3]
f = 713623846352979940529142984724747568191373312
f *= 8
f = 5708990770823839524233143877797980545530986496
j = 1; s = 8
s += j % 10
j = 1; s = 9
b = 1; d = [0, 0, 1, 2, 2, 3]; i = 3
d[i] -= b
b = 1; d = [0, 0, 1, 1, 2, 3]; i = 3
r = [48, 67, 76]; s = [72]
s.append(r[1])
r = [48, 67, 76]; s = [72, 67]
a = 5.929094196525015; b = 0.9881823660875024; c = 5
b = a / c
a = 5.929094196525015; b = 1.185818839305003; c = 5
c = 'b'; k = 3; p = {1, 2, 3, 4, 6}
p.add((1 + ord(c) - ord('a')) * (k + 1))
c = 'b'; k = 3; p = {1, 2, 3, 4, 6, 8}
i = 3; n = [(1, 2), (1, 4), (3, 0), (3, 3), (6, 1)]; t = 1; z = 4
t, z = n[i - 1]
i = 3; n = [(1, 2), (1, 4), (3, 0), (3, 3), (6, 1)]; t = 3; z = 0
e = '2 3\n'; g = [3, 3]
g = e.strip().split(' ')
e = '2 3\n'; g = ['2', '3']
g = 'hackerrank'; i = 9; m = {'h': 2, 'ha': 2, 'hac': 2, 'hack': 2, 'hacke': 1, 'hacker': 1, 'hackerr': 1, 'hackerra': 1}
m[g[:i]] = 1
g = 'hackerrank'; i = 9; m = {'h': 2, 'ha': 2, 'hac': 2, 'hack': 2, 'hacke': 1, 'hacker': 1, 'hackerr': 1, 'hackerra': 1, 'hackerran': 1}
i = 2; n = 238
n += i
i = 2; n = 240
a = 507; i = 9; x = 0
a += 2 ** i * (1 - x % 2)
a = 1019; i = 9; x = 0
i = 3; t = 'aba'
p = len(t) - i
i = 3; p = 0; t = 'aba'
i = 3; r = [0, 1, 999, 0, 0, 0, 0]
r[i] = min(r[i - 1] + 1, r[i - 2] + 1)
i = 3; r = [0, 1, 999, 2, 0, 0, 0]
e = [3, 2]
e.sort()
e = [2, 3]
a = 'xaxb'; n = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0]
n = [a.count(c) for c in alph]
a = 'xaxb'; n = []; z = []
l = 'b'; w = 'e'
w = l
l = 'b'; w = 'b'