start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
r = 3
r += 1
r = 4
i = 0.32
q.append(q[-1] + i)
i = 0.32; q = [-7, 8, 4, 6, 6.32]
y = [1]
y.append(0)
y = [1, 0]
a = 'o'; z = 'hACKERrANK.C'
z += a.upper()
a = 'o'; z = 'hACKERrANK.CO'
a = 395; b = 1; r = 1; x = 7
r = a ** b % x
a = 395; b = 1; r = 3; x = 7
i = 3
i += 1
i = 4
r = -1
r = r - 1
r = -2
p = 4
p *= 2
p = 8
d = [0, 0, 0]; i = 0; j = 0; u = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
d[j] += u[i][j]
d = [1, 0, 0]; i = 0; j = 0; u = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
i = 4; j = 2; n = [[1, 1, 1], [1, 1, 1], [1, 2, 2], [1, 2, 3], [1, 3, 0]]; x = 1; y = 3
n[i][j] = x + y
i = 4; j = 2; n = [[1, 1, 1], [1, 1, 1], [1, 2, 2], [1, 2, 3], [1, 3, 4]]; x = 1; y = 3
l = [[[0, 1], [1, 0]], [[0, 0]], [[0, 0]]]; n = 2; x = [0, 0]
l[n].remove(x)
l = [[[0, 1], [1, 0]], [[0, 0]], []]; n = 2; x = [0, 0]
i = 0; o = ' '; u = ['c', 'a', ' ', ' ']
o = ''.join(u[i:i + 2])
i = 0; o = 'ca'; u = ['c', 'a', ' ', ' ']
i = 'aaabccddd'
n = len(i)
i = 'aaabccddd'; n = 9
d = {'i': 2, 'f': 1, 'a': 1}; j = 'l'
d[j] = 1
d = {'i': 2, 'f': 1, 'a': 1, 'l': 1}; j = 'l'
u = 'SOSSOSSOS'
n = int(len(u) / 3)
n = 3; u = 'SOSSOSSOS'
g = 3; j = 30; s = 0; u = [20, 30, 40, 100]
j += abs(u[s] - u[g])
g = 3; j = 110; s = 0; u = [20, 30, 40, 100]
f = [1, 2, 3, None, 4]
f = [x for x in f if x is not None]
f = [1, 2, 3, 4]
b = [1, 1]; o = [1, 1]
b = [1] * (len(o) + 1)
b = [1, 1, 1]; o = [1, 1]
j = 3; n = 0; p = 2
n = j - p
j = 3; n = 1; p = 2
n = 2; w = [1, 0, 2]
b = w[n]
b = 2; n = 2; w = [1, 0, 2]
o = 4; z = [3, 4, 21]
o = z[len(z) - 1]
o = 21; z = [3, 4, 21]
o = """6\n1 1 1 2 3 5\n\n\n\n"""; t = 3; u = [5, 3, 2, 1, 1, 1]
o = map(str, sorted(u[t:t + 3]))
o = <map object at 0x7f1bf4389710>; t = 3; u = [5, 3, 2, 1, 1, 1]
i = 0; j = 1; r = [0, 0, 0]; x = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
r[i] += x[i][j]
i = 0; j = 1; r = [2, 0, 0]; x = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]
t = {(0): ['-', '-', '-', '-', '-', 'to'], (6): ['-', '-', '-', '-'], (4): ['-', 'that'], (3): ['be'], (1): ['be']}; x = 5
t[x] = []
t = {0: ['-', '-', '-', '-', '-', 'to'], 6: ['-', '-', '-', '-'], 4: ['-', 'that'], 3: ['be'], 1: ['be'], 5: []}; x = 5
c = 0
d = str(c) + d
c = 0; d = '0EQ9hUfAW'
d = [1, 2, 3, 4, 4]; i = 3
d[i + 1] = d[i] + 1
d = [1, 2, 3, 4, 5]; i = 3
e = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 4]; r = 12; v = [[0, 2, 5, 7, 9], [], [], [11], [4, 10], [], [1, 3, 6, 8], [], [], [], [], [], [], [], [], [], []]
v[e[r]].append(r)
e = [0, 6, 0, 6, 4, 0, 6, 0, 6, 0, 4, 3, 0, 1, 5, 1, 2, 4, 2, 4]; r = 12; v = [[0, 2, 5, 7, 9, 12], [], [], [11], [4, 10], [], [1, 3, 6, 8], [], [], [], [], [], [], [], [], [], []]
f = 1
z.add(f)
f = 1; z = {1}
i = 1.2000000000000002e-05; x = 1.2000000000000002e-06
i = x % 10
i = 1.2000000000000002e-06; x = 1.2000000000000002e-06
l = '3 5 3'; s = 2; t = 4; w = 2
s, t, w = [int(i) for i in l.split()]
l = '3 5 3'; s = 3; t = 5; w = 3
i = 3; m = 2
m = i
i = 3; m = 3
h = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]; s = 20
h.append(s)
h = [0, 6, 8, 10, 11, 15, 16, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20]; s = 20
i = 3; y = 1
y = i
i = 3; y = 3
a = '-1'; b = '4'
a, b = [int(a) - 1, int(b) - 1]
a = -2; b = 3
b = '8'
b = int(b)
b = 8
f = '111111111111111111'
f += '1'
f = '1111111111111111111'
j = 6; z = [2, 4, 3, 5, 2]
z.append(j)
j = 6; z = [2, 4, 3, 5, 2, 6]
q = 1; t = [999, 1000]
t.append(t[-1] + q)
q = 1; t = [999, 1000, 1001]
n = {35, 7, 22, 58, 62}; s = {1, 2, 3, 4, 5, 6, 7, 8, 9, 66, 11, 55}
s.symmetric_difference_update(n)
n = {35, 7, 22, 58, 62}; s = {1, 2, 3, 4, 5, 6, 8, 9, 66, 11, 35, 22, 55, 58, 62}
c = 'o'; m = {'c': False, 'd': False, 'e': False, 'f': False, 'g': False, 'h': False, 'm': False, 'n': False}
m[c] = False
c = 'o'; m = {'c': False, 'd': False, 'e': False, 'f': False, 'g': False, 'h': False, 'm': False, 'n': False, 'o': False}
u = ['7 50\n', '1 12 5 111 200 1000 10\n', '\n', '\n', '\n']
p = u[0].split(' ')
p = ['7', '50\n']; u = ['7 50\n', '1 12 5 111 200 1000 10\n', '\n', '\n', '\n']
j = [26]; x = 20
j.append(x)
j = [26, 20]; x = 20
c = [[0, 0, 0], [0, 0, 1], [0, 0, 2]]; x = 0; y = 1; z = 0
c.append([x, y, z])
c = [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 1, 0]]; x = 0; y = 1; z = 0
i = 2; m = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; y = [3, 3, 0]
y[i] = sum(m[-1])
i = 2; m = [[0, 2, 1], [1, 1, 1], [2, 0, 0]]; y = [3, 3, 2]
g = ['0', '2']
m = int(g[0])
g = ['0', '2']; m = 0
a = [2, 1, 0]; n = '2 1 1\n'
a = list(map(int, n.strip().split(' ')))
a = [2, 1, 1]; n = '2 1 1\n'
i = 0; s = '9899100'; z = 7
z = int(s[0:i + 1])
i = 0; s = '9899100'; z = 9
j = 1; l = [1, 3, 1, 2]; q = 2
q = l[j]
j = 1; l = [1, 3, 1, 2]; q = 3
s = {('c',): 1, ('c', 'd'): 2, ('c', 'c', 'd'): 1, ('c', 'c', 'd', 'd'): 1, ('d',): 1}; y = 'c', 'd', 'd'
s[y] = 1
s = {('c',): 1, ('c', 'd'): 2, ('c', 'c', 'd'): 1, ('c', 'c', 'd', 'd'): 1, ('d',): 1, ('c', 'd', 'd'): 1}; y = ('c', 'd', 'd')
c = [['A', 'A'], ['A', 'C'], ['A', 'K'], ['C', 'C'], ['C', 'H'], ['H', 'H'], ['H', 'K'], ['K', 'K']]; i = 0; j = 1; q = 'A'
q += ''.join(c[i][j])
c = [['A', 'A'], ['A', 'C'], ['A', 'K'], ['C', 'C'], ['C', 'H'], ['H', 'H'], ['H', 'K'], ['K', 'K']]; i = 0; j = 1; q = 'AA'
k = 3
k += 1
k = 4
k = 3; s = ['a', 'b', 'd', 'c']; t = 'o'
t = s[k]
k = 3; s = ['a', 'b', 'd', 'c']; t = 'c'
i = 3; t = ['10', '1', '10', '1', '10\n']; u = [10, 1, 10, 0, 0]
u[i] = int(t[i])
i = 3; t = ['10', '1', '10', '1', '10\n']; u = [10, 1, 10, 1, 0]
d = 'A'; v = ['C', 'A']
v.append(d)
d = 'A'; v = ['C', 'A', 'A']
s = ['me', 'one', 'grand', 'today', 'night']; x = 'one'
s.remove(x)
s = ['me', 'grand', 'today', 'night']; x = 'one'
k = '111111111111111111111111111110'
k += '1'
k = '1111111111111111111111111111101'
i = 0; k = 3; l = 4; s = '999100010001'; y = 910
y = int(s[i + k:i + k + l])
i = 0; k = 3; l = 4; s = '999100010001'; y = 1000
i = 10; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; q = 266854, 6246457
q = m[i], m[i + 1]
i = 10; m = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]; q = (6246457, 7374819)
p = [-33, -32, -32, -31, -31, -30, -30, -29, -29, -28, 106, 107, 107, 108, 108, 109, 110, 111, 112]
list.pop(p, 0)
p = [-32, -32, -31, -31, -30, -30, -29, -29, -28, 106, 107, 107, 108, 108, 109, 110, 111, 112]
a = 3; k = 16
k = 2 ** a
a = 3; k = 8
h = 'aa'; i = 3; m = 'aacghgh'
h = m[:i]
h = 'aac'; i = 3; m = 'aacghgh'
n = [5, 10]; s = 14
s += sum(n)
n = [5, 10]; s = 29
i = 'a'
h = ord(i) - 97
h = 0; i = 'a'
j = 1; k = 2; p = 3
j = k % p
j = 2; k = 2; p = 3
n = 5; s = 4
g = n - s
g = 1; n = 5; s = 4
j = [[2, 2, 3]]; s = [3, 1, 4]
j.append(s)
j = [[2, 2, 3], [3, 1, 4]]; s = [3, 1, 4]
w = [0, 1, 1, 2, 3, 5, 8, 13, 21, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309]
w.append(w[-1] + w[-2])
w = [0, 1, 1, 2, 3, 5, 8, 13, 21, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309, 3524578]
a = ['12']; i = 12
a.append(str(oct(i)[1:]))
a = ['12', 'o14']; i = 12
c = 'a'; d = {'h': {}}; q = {}
q = q.setdefault(c, {})
c = 'a'; d = {'h': {}}; q = {}
l = [4, 2]
m = l
l = [4, 2]; m = [4, 2]
g = '2'; j = 1; l = ['1', '1', '1', '3', '2']
l[j + 1] = g
g = '2'; j = 1; l = ['1', '1', '2', '3', '2']
a = [1, 4, 5, 3, 2]; i = 2; q = 4
q = a[i]
a = [1, 4, 5, 3, 2]; i = 2; q = 5
a = -1, 0; i = 1, 3
i = i[0] + a[0], i[1] + a[1]
a = (-1, 0); i = (0, 3)
b = [100, 100, 0, 0, -100]; i = 1; x = 100
x = x + b[i]
b = [100, 100, 0, 0, -100]; i = 1; x = 200
i = 0; j = 6; m = ['a', 'f', 'i', 'i', 'l']; s = 'ifailuhkqq'
m = list(s[i:j])
i = 0; j = 6; m = ['i', 'f', 'a', 'i', 'l', 'u']; s = 'ifailuhkqq'
o = 0; p = 4; q = 1
p = o + q
o = 0; p = 1; q = 1
j = 3; x = 5
x = j
j = 3; x = 3
h = 4; n = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c']]; q = 'haveaniceday'; x = 8
n.append(list(q[x:x + h]))
h = 4; n = [['h', 'a', 'v', 'e'], ['a', 'n', 'i', 'c'], ['e', 'd', 'a', 'y']]; q = 'haveaniceday'; x = 8
x = [9, 11, 12, 5]
x.sort(key=int)
x = [5, 9, 11, 12]
l = 0; x = -1
x = l
l = 0; x = 0
e = ['a', 'ab']; n = [['a']]
n.append(e)
e = ['a', 'ab']; n = [['a'], ['a', 'ab']]
i = 0; u = 'bbb'
d[u[i]] = d.get(u[i], 0) + 1
d = {'b': 1}; i = 0; u = 'bbb'
a = [4, 3, 5, 1, 2]; c = {(4): 1, (3): 2}; i = 2
c[a[i]] = i + 1
a = [4, 3, 5, 1, 2]; c = {4: 1, 3: 2, 5: 3}; i = 2
d = [2, 2, 3]; h = [[1, 3, 4]]
h.append(d)
d = [2, 2, 3]; h = [[1, 3, 4], [2, 2, 3]]
f = 2; p = 'cd'; q = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 1, 'cdd': 1, 'ccdd': 1}
f += (q[p] - 1) * q[p] // 2
f = 5; p = 'cd'; q = {'c': 2, 'd': 2, 'cd': 3, 'ccd': 1, 'cdd': 1, 'ccdd': 1}
b = 'cdcd'; w = ['c', 'cd', 'cdc', 'cdcd', 'd', 'dc', 'dcd', 'c', 'cd']
w.append(b[-1])
b = 'cdcd'; w = ['c', 'cd', 'cdc', 'cdcd', 'd', 'dc', 'dcd', 'c', 'cd', 'd']
b = ['ba']; v = 'world'
b.append(v)
b = ['ba', 'world']; v = 'world'
d = {'c': 4, 'd': 4, 'e': 2}; i = 'e'
d[i] = d.get(i, 0) + 1
d = {'c': 4, 'd': 4, 'e': 3}; i = 'e'
d = [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
d[1] = 0
d = [0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
k = 12
d = [False] * (k + 1)
d = [False, False, False, False, False, False, False, False, False, False, False, False, False]; k = 12
f = ['e', 'f', 'b', 'a']; j = 2; z = 'a'
z = f[j]
f = ['e', 'f', 'b', 'a']; j = 2; z = 'b'
g = 'must'; j = 'wedowhatwedo'; n = 'wedowhatwe'
j = n + g
g = 'must'; j = 'wedowhatwemust'; n = 'wedowhatwe'
i = 2; j = 0; w = 'd'; y = 'abcd'
w = ''.join(sorted(y[j:j + i]))
i = 2; j = 0; w = 'ab'; y = 'abcd'
p = 7
p += 1
p = 8
i = 5; o = [3, 2, 1, 3, 2, 3]; v = [3, 2, 1, 3, 2]
v.append(o[i])
i = 5; o = [3, 2, 1, 3, 2, 3]; v = [3, 2, 1, 3, 2, 3]
l = [2, 5, 6]
l.sort(reverse=True)
l = [6, 5, 2]
o = ( '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 67 67 68 69 69 69 70 70 73 73 74 75 75 76 78 78 ' ); x = 79
o += str(x) + ' '
o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 67 67 68 69 69 69 70 70 73 73 74 75 75 76 78 78 79 '; x = 79
m = 1; y = [1, 0, 0, 1, 2]
m = y.pop()
m = 2; y = [1, 0, 0, 1]
f = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 0}; q = 'g'
f[q] += 1
f = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1}; q = 'g'
l = ['Q', 'B', '1']; r = 2
r = int(4 - int(l[2]))
l = ['Q', 'B', '1']; r = 3