start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
i = 4; s = [0, 2, 3, 3, 2, 3, 3, 0, 0]
s[i] += 1
i = 4; s = [0, 2, 3, 3, 3, 3, 3, 0, 0]
f = 1
w.add(f)
f = 1; w = {1}
c = 95; g = 91
g = c
c = 95; g = 95
i = 11; u = [True, True, True, True, True, True, True, True, True, True, True, False, False]
u[i] = True
i = 11; u = [True, True, True, True, True, True, True, True, True, True, True, True, False]
n = {2, 3, 4, 5, 6, 7, 8, 9, -1}; t = 10
n.add(t)
n = {2, 3, 4, 5, 6, 7, 8, 9, 10, -1}; t = 10
k = '0b1101'
k += '0'
k = '0b11010'
i = 1
s += [i]
i = 1; s = [1]
d = Counter({(10): 1, (20): 2}); x = 10
d[x] += 1
d = Counter({10: 2, 20: 2}); x = 10
c = 19; j = 3
c += j
c = 22; j = 3
j = 'K'; o = 1; u = 'K', 'H'
j = j + u[o]
j = 'KH'; o = 1; u = ('K', 'H')
l = 6; q = 9991001
l = len(str(q))
l = 7; q = 9991001
l = [6, 3]
k = l[1]
k = 3; l = [6, 3]
c = [9, 7, 5, 3, 1]; g = 9; i = 1
g += (x + 1) * c[i]
c = [9, 7, 5, 3, 1]; g = -348; i = 1; x = -52
a = 0; y = 2
y = a
a = 0; y = 0
c = '01020'; s = '010203'
s = s[len(c):]
c = '01020'; s = '3'
m = {0}; o = 1
m.add(o)
m = {0, 1}; o = 1
s = '1010'; y = [1, 1, 0]
y = [0] * (len(s) + 1)
s = '1010'; y = [0, 0, 0, 0, 0]
a = 5
a = a / 10
a = 0.5
i = 1; j = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; m = 11
m += j[i][i]
i = 1; j = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; m = 16
i = 0; j = 1; x = 4
j ^= x - i
i = 0; j = 5; x = 4
n = 3
b = [0] * n
b = [0, 0, 0]; n = 3
g = [4, 13, '9']; j = 2
g[j] = int(g[j])
g = [4, 13, 9]; j = 2
c = 8.077935669463161e-27
c /= 2
c = 4.0389678347315804e-27
c = '3'; j = {'B': 1, '1': 1, 'C': 1, 'D': 1, 'E': 1, 'F': 1, '2': 1}
j[c] = 1
c = '3'; j = {'B': 1, '1': 1, 'C': 1, 'D': 1, 'E': 1, 'F': 1, '2': 1, '3': 1}
c = 'c'; d = {'c': 1, 'd': 1, 'e': 1}; v = 1
d[c] = v - 1
c = 'c'; d = {'c': 0, 'd': 1, 'e': 1}; v = 1
d = 0.0012644892673496777; u = 0.025074013076873403
u = d
d = 0.0012644892673496777; u = 0.0012644892673496777
v = {'X', '_', 'Y'}
v = list(v)
v = ['Y', 'X', '_']
n = 10
m = '{0:b}'.format(n)
m = '1010'; n = 10
c = [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]; i = 0
c = [(0) for i in range(26)]
c = [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 = 0
l = [[11, 2, 4], [4, 5, 6]]; m = [10, 8, -12]
l.append(m)
l = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]; m = [10, 8, -12]
i = 3; r = [100, 200, 100, 500, 700, 600]; w = [0, 0, 1, 4, 1, 4]
r[w[i]] += r[i]
i = 3; r = [100, 200, 100, 500, 1200, 600]; w = [0, 0, 1, 4, 1, 4]
l = '00000000000000000000000000000000'; r = '11111111111111111111111111111110'
r = ''.join([('1' if x == '0' else '0') for x in l])
l = '00000000000000000000000000000000'; r = '11111111111111111111111111111111'
o = {9, 2, 4, 5}; w = {2, 11, 4, 12}
h = w.difference(o)
h = {11, 12}; o = {9, 2, 4, 5}; w = {2, 11, 4, 12}
j = 1; s = 'cba'
j = len(s) - 1
j = 2; s = 'cba'
h = 6
i = h
h = 6; i = 6
g = ['u', 'h', 'k', 'q']; z = 'hklu'
z = ''.join(sorted(g))
g = ['u', 'h', 'k', 'q']; z = 'hkqu'
e = [-4, -3, -2, -1, 0, 1, 2]; v = 3
v = len(e)
e = [-4, -3, -2, -1, 0, 1, 2]; v = 7
e = deque([]); k = 'append'; o = '1'
getattr(e, k)(*o.split())
e = deque(['1']); k = 'append'; o = '1'
k = ['UPDATE', '2', '2', '2', '1']; x = 1
x = int(k[1])
k = ['UPDATE', '2', '2', '2', '1']; x = 2
h = 'babab'; o = 'e'
o = h[1]
h = 'babab'; o = 'a'
i = 0; j = 1; m = 7; o = [3, 6, 1, 3, 1]
s = (o[j] - o[i] + m) % m
i = 0; j = 1; m = 7; o = [3, 6, 1, 3, 1]; s = 3
g = [2, 1, 3, 1, 2]; i = 0
g[i + 1] = g[i]
g = [2, 2, 3, 1, 2]; i = 0
k = 54; o = 4274883284060025564298013753389399649690343788366813724672000000000000
o *= k
k = 54; o = 230843697339241380472092742683027581083278564571807941132288000000000000
v = ['x', 'a', 'x']; x = 'b'
v.append(x)
v = ['x', 'a', 'x', 'b']; x = 'b'
h = ['1', '8', '9', '2']; i = 2
h[int(i)] = 'X'
h = ['1', '8', 'X', '2']; i = 2
i = 4; s = {(0): 4, (1): 2, (2): 3, (3): 5}; x = 1
s[i] = x
i = 4; s = {0: 4, 1: 2, 2: 3, 3: 5, 4: 1}; x = 1
a = {(0): 0, (1): 1, (2): 1, (3): 2, (4): 3, (7): 13, (8): 21}; i = 8; n = 4
k = n - a[i / 2]
a = {0: 0, 1: 1, 2: 1, 3: 2, 4: 3, 7: 13, 8: 21}; i = 8; k = 1; n = 4
i = 11; j = 13; y = 7
y = i ^ j
i = 11; j = 13; y = 6
c = 2; p = [2]
p.append(c)
c = 2; p = [2, 2]
f = 4; j = 2; q = [[1, 5], [3, 2], [4, 1], [2, 4]]
f = q[j][0]
f = 4; j = 2; q = [[1, 5], [3, 2], [4, 1], [2, 4]]
s = [0, 1, 1, 2, 3, 5]
s.append(s[-1] + s[-2])
s = [0, 1, 1, 2, 3, 5, 8]
n = 12
v = [n]
n = 12; v = [12]
f = 14; l = 12; m = 2; s = 14
l -= (s + l - f) * m
f = 14; l = -12; m = 2; s = 14
h = 1; p = 1; x = 3
h += x - p
h = 3; p = 1; x = 3
f = [1, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; s = 'ifail'
f[ord(s[i]) - ord('a')] += 1
f = [1, 0, 0, 0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 4; s = 'ifail'
i = 0; n = 5
f = bin(i)[2:].zfill(n)
f = '00000'; i = 0; n = 5
j = 12; l = '11'
l = str(j)
j = 12; l = '12'
j = 0; w = 'abcdefghijklmnopqrstuvwxyz'; z = 4
s += w[z + abs(j)]
j = 0; s = 'Ya41Jkoe'; w = 'abcdefghijklmnopqrstuvwxyz'; z = 4
b = {'_': 1, 'R': 1, 'B': 1, 'Y': 1}; t = 2; v = 'Y'
b[v] = t
b = {'_': 1, 'R': 1, 'B': 1, 'Y': 2}; t = 2; v = 'Y'
i = 9; t = 'Chris Ala'; x = 'chris alan'
t += x[i]
i = 9; t = 'Chris Alan'; x = 'chris alan'
i = 4; u = [1, 1, 2, 3, 2]; x = 1
x = u[i]
i = 4; u = [1, 1, 2, 3, 2]; x = 2
i = 1; u = 3
i = u
i = 3; u = 3
b = [1, 2, 2]; i = 0; j = 2; k = 4; l = [1, 1, 2, 2, 3, 4]
b = [l[i], l[j], l[k]]
b = [1, 2, 3]; i = 0; j = 2; k = 4; l = [1, 1, 2, 2, 3, 4]
d = 6; f = -5; u = 4
f = u - d
d = 6; f = -2; u = 4
q = 999100010; x = '99910002'
x = str(q + 1)
q = 999100010; x = '999100011'
a = 1; b = 2; d = 4; i = 2; j = 6
i, j = a + (j - b), b + (d - (i - a))
a = 1; b = 2; d = 4; i = 5; j = 5
h = 3; n = 4; s = 'ifailuhkqq'; y = ['a']
y = sorted(s[h:n])
h = 3; n = 4; s = 'ifailuhkqq'; y = ['i']
a = [1, 2]; j = '2\n'
a.append(int(j))
a = [1, 2, 2]; j = '2\n'
a = 5
a -= 1
a = 4
j = [1, 1, 1, 2, 2]
u, y = 0, len(j)
j = [1, 1, 1, 2, 2]; u = 0; y = 5
a = [2]; w = 11
w += sum(a)
a = [2]; w = 13
g = 9
p = g + 1
g = 9; p = 10
a = 6; n = 3
a = a + n
a = 9; n = 3
n = 0; p = 2; w = ['d', 'k', 'h', 'c']
w[n], w[p] = w[p], w[n]
n = 0; p = 2; w = ['h', 'k', 'd', 'c']
i = ['k']; j = 'c'; x = 'dh'
x = x + i[0] + j
i = ['k']; j = 'c'; x = 'dhkc'
l = 23; m = 5, 0
l += m[0]
l = 28; m = (5, 0)
b = 3; q = [1, 1, 2, 3, 2]; t = 4
q[t] = q[b]
b = 3; q = [1, 1, 2, 3, 3]; t = 4
g = [(0, 0), (0, 1)]; y = 0, 0
y = g[-1]
g = [(0, 0), (0, 1)]; y = (0, 1)
a = 'c'; z = 'hACKERrANK.'
z += a.upper()
a = 'c'; z = 'hACKERrANK.C'
i = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 3; r = 4; x = [3]
x = i[q + 1:r + 1]
i = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; q = 3; r = 4; x = [10]
r = 2.288818359375e-05
r /= 2
r = 1.1444091796875e-05
c = 4; e = {(2): 3, (1): 3}; p = 1
e[c] = p
c = 4; e = {2: 3, 1: 3, 4: 1}; p = 1
a = 1; b = 3
a, b = a - 1, b + 1
a = 0; b = 4
i = 8; j = 2; s = [2, 5, 3, 6]; x = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0
y = x[i - s[j]][j] if i - s[j] >= 0 else 0
i = 8; j = 2; s = [2, 5, 3, 6]; x = [[1, 1, 1, 1], [0, 0, 0, 0], [1, 1, 1, 1], [0, 0, 1, 1], [1, 1, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]; y = 0
q = ['contan', 'seroius ', 'pureli']; t = 'dose'
q.append(t)
q = ['contan', 'seroius ', 'pureli', 'dose']; t = 'dose'
i = 2; j = 0; t = [[0, 0, 0, 0, 0], [0, 0, 1, 1, 1], [None, None, None, None, None]]
t[i][j] = 0
i = 2; j = 0; t = [[0, 0, 0, 0, 0], [0, 0, 1, 1, 1], [0, None, None, None, None]]
t = '\\n'
h = CATEGORIES.get(t)
h = None; t = '\\n'; y = {}
t = 16; v = 17.5; x = 7
v += x / t * (t / 2)
t = 16; v = 21.0; x = 7
p = 24
p += 1
p = 25
a = [97, 99, 100, 98]; b = [98, 100]; i = 2
a = a[:i] + b
a = [97, 99, 98, 100]; b = [98, 100]; i = 2
n = 3; u = 2; x = 5
x = min(n, u)
n = 3; u = 2; x = 2
i = 4; m = {'X': [0], '_': [1, 3], 'Y': [2]}; n = 'X_Y__X'
m[n[i]].append(i)
i = 4; m = {'X': [0], '_': [1, 3, 4], 'Y': [2]}; n = 'X_Y__X'
g = 'dcbb'; i = 2
i = len(g) - 1
g = 'dcbb'; i = 3
l = 3; n = 99; s = '100'
n = int(s[:l])
l = 3; n = 100; s = '100'
c = [32, 1, 1, 2, 1, 1]; s = ['31415926535897932384626433832795', '1', '3', '10', '3', '5']
y = zip(c, s)
c = [32, 1, 1, 2, 1, 1]; s = ['31415926535897932384626433832795', '1', '3', '10', '3', '5']; y = <zip object at 0x7f1bf4c1ff00>
g = {1, 2, 3, 6}; k = 4
g.add(k)
g = {1, 2, 3, 4, 6}; k = 4
f = [42]
f.pop()
f = []
i = '0'; k = '1111111111111111111111111'
k += str(int(i) ^ 1)
i = '0'; k = '11111111111111111111111111'
g = ['a', 'b', 'c', 'a', 'b']; i = 1; j = 5; t = 'abcabcddd'
g.append(t[j:j + i])
g = ['a', 'b', 'c', 'a', 'b', 'c']; i = 1; j = 5; t = 'abcabcddd'
a = 165580141; h = [0, 1, 1, 2, 3, 5, 8, 13, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155]
h.append(int(a))
a = 165580141; h = [0, 1, 1, 2, 3, 5, 8, 13, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155, 165580141]