start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
d = 64; o = 87.0; y = 32.0
o = (y + d) / 2
d = 64; o = 48.0; y = 32.0
y = '20'
y = int(y)
y = 20
n = 10; o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
f = o[n - 1]
f = 200; n = 10; o = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
p = 3; t = 0; u = 21; z = [1, 1, 1]
u += (z[t] + 1) * p
p = 3; t = 0; u = 27; z = [1, 1, 1]
w = 3
w += 1
w = 4
d = '1'; y = '1011'
y += d
d = '1'; y = '10111'
i = 0; o = ['a', 'b']
c = o[i]
c = 'a'; i = 0; o = ['a', 'b']
s = 4295090752; t = '011111111111111111111111111111011'
t = str(bin(s))[2:]
s = 4295090752; t = '100000000000000011110001001000000'
m = 2; u = [5]
u.append(m)
m = 2; u = [5, 2]
c = 2; o = 101
o += c
c = 2; o = 103
y = 1
y >>= 1
y = 0
b = 'hACKERrANK.COM PRE'; i = 's'
b = b + i.upper()
b = 'hACKERrANK.COM PRES'; i = 's'
d = deque([1]); u = [1, 5, 3]; y = [1]
y.append(u[d[len(d) - 1]])
d = deque([1]); u = [1, 5, 3]; y = [1, 5]
h = 1; l = 5; m = 5
m = h + l
h = 1; l = 5; m = 6
d = 3; l = 3; x = 2
x = int(d + (l - d) / 2)
d = 3; l = 3; x = 3
c = 5; r = [2, 4, 6]
r.append(c)
c = 5; r = [2, 4, 6, 5]
i = 6; j = 7; m = [0, 1, 1, 2, 2, 3, 3, 7]
i = m[j]
i = 7; j = 7; m = [0, 1, 1, 2, 2, 3, 3, 7]
l = [4, 6]; t = [0, 0]; x = [0, 0]
t[0] = x[0] + l[0]
l = [4, 6]; t = [4, 0]; x = [0, 0]
a = 4; q = {(9): False, (7): False, (8): False, (12): False, (5): False, (1): True, (2): True, (3): True}
q[a] = True
a = 4; q = {9: False, 7: False, 8: False, 12: False, 5: False, 1: True, 2: True, 3: True, 4: True}
i = 'F'; l = {'D': 2}
l[i] = 1
i = 'F'; l = {'D': 2, 'F': 1}
a = 0; f = 5; q = 3; w = [0, 5, None, 24]
f = a + w[q]
a = 0; f = 24; q = 3; w = [0, 5, None, 24]
p = [1, 2]
t = p[1]
p = [1, 2]; t = 2
i = 17; n = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '14', '14th', '15', '15th', '16', '16th', '17']
n.append(str(i) + 'th')
i = 17; n = ['1', '1st', '2', '2nd', '3', '3rd', '4', '4th', '14', '14th', '15', '15th', '16', '16th', '17', '17th']
j = 'baccd'; r = {'b', 'c', 'e', 'd', 'a'}
r = set(j)
j = 'baccd'; r = {'a', 'b', 'c', 'd'}
b = 1
g = b
b = 1; g = 1
b = 2; j = 24; n = -19.0; y = 22.0
n = j - b * y
b = 2; j = 24; n = -20.0; y = 22.0
i = 44; l = [0, 9, 27, 63, 135, 9895604649975, 19791209299959, 39582418599927, 79164837199863, 158329674399735]
l.append(l[-1] + 9 * 2 ** i)
i = 44; l = [0, 9, 27, 63, 135, 9895604649975, 19791209299959, 39582418599927, 79164837199863, 158329674399735, 316659348799479]
i = 3; j = 1; s = ['a', 'f', 'i']; v = 'ifailuhkqq'
s = list(v[j:j + i])
i = 3; j = 1; s = ['f', 'a', 'i']; v = 'ifailuhkqq'
s = 'ashle'
s = s[:len(s) - 1]
s = 'ashl'
i = 1; r = 9; s = '9899100'
r = int(s[:i + 1])
i = 1; r = 98; s = '9899100'
i = 2; q = ['M', 2, '3']
q[i] = int(q[i])
i = 2; q = ['M', 2, 3]
b = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 5)]); i = 'CANDY'; m = 5
b[i] += m
b = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 10)]); i = 'CANDY'; m = 5
c = 1; i = 1; j = 1; l = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]
c = l[i][j] + l[i][j + 1] + l[i][j + 2]
c = 1; i = 1; j = 1; l = [[1, 1, 1, 0, 0, 0], [0, 1, 0, 0, 0, 0], [1, 1, 1, 0, 0, 0], [0, 0, 2, 4, 4, 0], [0, 0, 0, 2, 0, 0], [0, 0, 1, 2, 4, 0]]
p = 6
p += 1
p = 7
i = 0; t = 'BBBB'
t = t[:i + 1] + t[i + 2:]
i = 0; t = 'BBB'
o = [(2, 7)]; p = 2, 8
o.append(p)
o = [(2, 7), (2, 8)]; p = (2, 8)
a = 2; b = 1; c = 3; f = [[(5, 2)], [(3, 0)], [(5, 0)], [(0, 4)], [(0, 3)]]
f[b - 1].append((c, a - 1))
a = 2; b = 1; c = 3; f = [[(5, 2), (3, 1)], [(3, 0)], [(5, 0)], [(0, 4)], [(0, 3)]]
x = 3; y = 3
x, y = y, x % y
x = 3; y = 0
c = [[1, 2, 3, 4], [5, 11, 10, 8], [9, 7, 6, 12], [13, 14, 15, 16]]; d = 3; p = [13, 14, 15, 16, 12]; v = 1
p += [c[v][d]]
c = [[1, 2, 3, 4], [5, 11, 10, 8], [9, 7, 6, 12], [13, 14, 15, 16]]; d = 3; p = [13, 14, 15, 16, 12, 8]; v = 1
p = 2; s = 1
s += p
p = 2; s = 3
b = 14
b += 1
b = 15
i = 0
x = i
i = 0; x = 0
n = 2
n = n - 1
n = 1
j = 4; w = [0, 1, 2, 3, 6, 5, 4]; z = 6
w[j] = w[z]
j = 4; w = [0, 1, 2, 3, 4, 5, 4]; z = 6
a = 3; n = 20
a = n % 8
a = 4; n = 20
k = 81; x = 56
k = x
k = 56; x = 56
g = 2; k = 1
g = k
g = 1; k = 1
i = 4; k = 4; r = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; s = 30
s = r[i + k - 1]
i = 4; k = 4; r = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; s = 40
c = 1; z = {(0): set()}
z[c] = set()
c = 1; z = {0: set(), 1: set()}
t = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 30), ('APPLE JUICE', 20), ('CANDY', 20)]); u = ['POTATO', 'CHIPS', '30']
t[' '.join(u[:len(u) - 1])] = t[' '.join(u[:len(u) - 1])] + int(u[len(u) - 1])
t = OrderedDict([('BANANA FRIES', 12), ('POTATO CHIPS', 60), ('APPLE JUICE', 20), ('CANDY', 20)]); u = ['POTATO', 'CHIPS', '30']
l = -1; t = -13; y = 12.0
y = t / l
l = -1; t = -13; y = 13.0
l = [False]
l.append(False)
l = [False, False]
a = 11; g = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100]
g += [a ** 2]
a = 11; g = [1, 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 121]
b = 5; e = 65
e += b * b
b = 5; e = 90
n = 1.2000000000000013e-83
n = n / 10
n = 1.2000000000000012e-84
g = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}
h = max(g.values())
g = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; h = 3
b = {'a': 1, 'ab': 1, 'abb': 1, 'aabb': 1, 'b': 1}; d = 'bb'
b[d] = b.get(d, 0) + 1
b = {'a': 1, 'ab': 1, 'abb': 1, 'aabb': 1, 'b': 1, 'bb': 1}; d = 'bb'
i = 102; j = 3; s = [104, 101, 103, 103]
s[j] = i
i = 102; j = 3; s = [104, 101, 103, 102]
j = -1.0; p = 0.0
i = [p, j]
i = [0.0, -1.0]; j = -1.0; p = 0.0
x = 1180591620717411303424
x *= 2
x = 2361183241434822606848
n = 1.2000000000000008e-52
n = n / 10
n = 1.2000000000000007e-53
d = 1
o = d
d = 1; o = 1
h = {(20): 0, (7): 1, (8): 2}; i = 3; p = [20, 7, 8, 2, 5]
h[p[i]] = i
h = {20: 0, 7: 1, 8: 2, 2: 3}; i = 3; p = [20, 7, 8, 2, 5]
k = 2; u = [1, 3, 4, 4, 5, 6]
u[k] = u[k - 1]
k = 2; u = [1, 3, 3, 4, 5, 6]
i = 3; z = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], '1234']
z[i] = list(z[i])
i = 3; z = [['1', '1', '1', '2'], ['1', '9', '1', '2'], ['1', '8', '9', '2'], ['1', '2', '3', '4']]
b = '0'; s = '10000000000000000000000'
s += b
b = '0'; s = '100000000000000000000000'
q = [0, 0, 0, 0, 0, 0]
q = q + [0]
q = [0, 0, 0, 0, 0, 0, 0]
x = 1
r.append(x)
r = [1]; x = 1
o = 7; r = 2; x = 1; y = 1
y = (x ^ o) % r
o = 7; r = 2; x = 1; y = 0
a = {(2): [(2, 3)]}; r = 3
a[r] = []
a = {2: [(2, 3)], 3: []}; r = 3
a = [0, 0, 0, 0, 0, 0, 0, 0, 0]
a.append(0)
a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
l = {1, 2}; n = 3
l.add(n)
l = {1, 2, 3}; n = 3
c = '1003'; j = 4; s = ['9', '9', '9', '1', '0', '0', '0', '1', '0', '0', '0', '1']
c = ''.join(map(str, s[:j]))
c = '9991'; j = 4; s = ['9', '9', '9', '1', '0', '0', '0', '1', '0', '0', '0', '1']
k = '12'; n = '3'
n, k = [int(n), int(k)]
k = 12; n = 3
j = 1; y = [1, 2]
j = y.index(max(y))
j = 1; y = [1, 2]
n = -1
f = n
f = -1; n = -1
i = 1; j = 2; k = 0; l = deque([[2, 2, 0, 1, 2]]); n = 2; y = 0
i, j, k, y, n = l.popleft()
i = 2; j = 2; k = 0; l = deque([]); n = 2; y = 1
l = 9; x = 4
l = l + x
l = 13; x = 4
i = 2; m = 1000000007; u = [1, 1]
u.append(u[-1] * i % m)
i = 2; m = 1000000007; u = [1, 1, 2]
d = 4
d += 1
d = 5
e = [1, 2]; n = 1
e.append(n)
e = [1, 2, 1]; n = 1
c = 1
v = v + c
c = 1; v = 37
s = '5'
s = int(s)
s = 5
i = 63; n = [1, 1, 2, 6, 24, 120, 720, 75195247, 286129051, 595484846, 133605669, 16340084, 996745124, 798197261]; t = 1000000007
n.append(n[-1] * i % t)
i = 63; n = [1, 1, 2, 6, 24, 120, 720, 75195247, 286129051, 595484846, 133605669, 16340084, 996745124, 798197261, 286427093]; t = 1000000007
c = 4; n = 6
n += c
c = 4; n = 10
j = 0; p = 2
y *= p - j
j = 0; p = 2; y = -84
l = 1
e = l * (2 * l + 1) * (l + 1)
e = 6; l = 1
i = 1; x = [1, 1]; y = 2
x = [(0) for i in range(y + 1)]
i = 1; x = [0, 0, 0]; y = 2
i = 3; s = 'abba'; t = 'abba'
t = s[:i - 1] + s[i] + s[i - 1] + s[i + 1:]
i = 3; s = 'abba'; t = 'abab'
i = 8; j = 0; m = [2, 5, 3, 6]; w = [[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]]; x = 0
x = w[i - m[j]][j] if i - m[j] >= 0 else 0
i = 8; j = 0; m = [2, 5, 3, 6]; w = [[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]]; x = 0
n = 5
s, u = [0] * n, [0] * n
n = 5; s = [0, 0, 0, 0, 0]; u = [0, 0, 0, 0, 0]
i = 1; x = 10; y = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
x += y[-i - 1][i]
i = 1; x = 15; y = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
i = 1; p = [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]; x = [2, 3, 4, 2, 3, 6, 8, 4, 5]
p[x[i]] += 1
i = 1; p = [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]; x = [2, 3, 4, 2, 3, 6, 8, 4, 5]
a = 2; g = 3; y = {(1): [2, 3], (2): [1], (3): [1]}
y[a].append(g)
a = 2; g = 3; y = {1: [2, 3], 2: [1, 3], 3: [1]}
i = {(140058364340736): [4, 2]}; x = [4, 2]
i[id(i)] = [x]
i = {140058364340736: [4, 2], 139758038368160: [[4, 2]]}; x = [4, 2]
f = 1; q = [2, 1, 3, 5, 4]; u = 5
u = q[f]
f = 1; q = [2, 1, 3, 5, 4]; u = 1
l = 17; r = 23; x = ['11', '15']
l, r = [int(x[0]), int(x[1])]
l = 11; r = 15; x = ['11', '15']
v = ['1112', '1912', '1892']; x = '1234'
v.append(x)
v = ['1112', '1912', '1892', '1234']; x = '1234'
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 2; p = [(-7330761, -6461594)]
p.append((a[i], a[i + 1]))
a = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; i = 2; p = [(-7330761, -6461594), (-3916237, -3620601)]
a = [1, 2, 2, 3, 1, 2]
b = max(a)
a = [1, 2, 2, 3, 1, 2]; b = 3