start
stringlengths
5
368
code
stringlengths
5
143
end
stringlengths
5
527
d = 1; h = [0, 2, -3]; i = 1
h[i] += d
d = 1; h = [0, 3, -3]; i = 1
i = 10; x = 81
x = i * i
i = 10; x = 100
j = 2; n = 0; y = 1; z = 6
z = j + n + y
j = 2; n = 0; y = 1; z = 3
b = 7; n = 3; v = 1
n += (b - v) // 5
b = 7; n = 4; v = 1
j = 5; u = 0
u = j % 3
j = 5; u = 2
i = 5; o = [3]
o.append(i)
i = 5; o = [3, 5]
a = []; b = [[], []]; y = 5
a.append(y)
a = [5]; b = [[], []]; y = 5
a = [5, 1, 2, 3, 4]; i = 2; n = 3
n = a[i]
a = [5, 1, 2, 3, 4]; i = 2; n = 2
w = ['3', '2', '5']
w[0] = int(w[0])
w = [3, '2', '5']
h = [0]; y = 1
h.append(y)
h = [0, 1]; y = 1
b = 5; i = 170
i += b * b
b = 5; i = 195
i = 2; x = [6, 6, 6, -1, -2]
x[i + 1] += x[i]
i = 2; x = [6, 6, 6, 5, -2]
i = 0; j = 0; w = [[0, 1, 1], [0, 0, 1]]
w[i][j] = 1
i = 0; j = 0; w = [[1, 1, 1], [0, 0, 1]]
v = -297
v *= 2
v = -594
r = [1, 2, 3, 1, 2]; y = 3; z = 3
z = r[y]
r = [1, 2, 3, 1, 2]; y = 3; z = 1
j = [2]; n = 1
n = len(j)
j = [2]; n = 1
f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; i = 0; r = [[], []]; t = 0
r[t].append(f[t][t + i])
f = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; i = 0; r = [[1], []]; t = 0
i = 2; j = 3; l = [['c'], ['c', 'd'], ['c', 'c', 'd'], ['c', 'c', 'd', 'd'], ['d'], ['c', 'd'], ['c', 'd', 'd']]; s = 'cdcd'
l.append(sorted(list(s[i:j])))
i = 2; j = 3; l = [['c'], ['c', 'd'], ['c', 'c', 'd'], ['c', 'c', 'd', 'd'], ['d'], ['c', 'd'], ['c', 'd', 'd'], ['c']]; s = 'cdcd'
j = 2; p = 10
t += p // j
j = 2; p = 10; t = -34
b = 0; i = 2; k = 2; t = [1, 1, 1, 2, 2]
b = t[i + k - 1] - t[i]
b = 1; i = 2; k = 2; t = [1, 1, 1, 2, 2]
h = ['{', '{']; n = '['
n = h.pop()
h = ['{']; n = '{'
g = 1; j = {'0': [5], '1': []}; y = 7
j[str(g)].append(y)
g = 1; j = {'0': [5], '1': [7]}; y = 7
u = ['2', '4', '11', '12']
o = list(map(int, u))
o = [2, 4, 11, 12]; u = ['2', '4', '11', '12']
a = [4, 1, 2]; g = deque([2]); s = [4, 1]
s.append(a[g[len(g) - 1]])
a = [4, 1, 2]; g = deque([2]); s = [4, 1, 2]
y = 2
y >>= 1
y = 1
i = 4; m = {2, 3}
m.add(i)
i = 4; m = {2, 3, 4}
n = [37.21, 37.21, 37.2, 41.0]; v = 39.0
n.append(v)
n = [37.21, 37.21, 37.2, 41.0, 39.0]; v = 39.0
j = ['22', '79', '21']
j = [int(number) for number in j]
j = [22, 79, 21]
c = 'b'; l = [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]
l[ord(c) - 97] += 1
c = 'b'; l = [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]
d = 1.4901161193847656e-07; k = 2.980232238769531e-07
k = d % 2
d = 1.4901161193847656e-07; k = 1.4901161193847656e-07
a = 100; n = 100
a += n
a = 200; n = 100
n = '4294967294'; v = '2147483648\n'
v += n + '\n'
n = '4294967294'; v = '2147483648\n4294967294\n'
c = '0'; x = '91'
x += c
c = '0'; x = '910'
n = 9; z = {1, 2, 3, 4, 6, 8}
z.add(n)
n = 9; z = {1, 2, 3, 4, 6, 8, 9}
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0}; i = 10
d[chr(ord('a') + i)] = 0
d = {'a': 0, 'b': 0, 'c': 0, 'd': 0, 'e': 0, 'f': 0, 'g': 0, 'h': 0, 'i': 0, 'j': 0, 'k': 0}; i = 10
g = [[5], [7]]; l = [7]; n = 2; x = 0
l = g[(x ^ last) % n]
a = 24; g = [[5], [7]]; l = [5]; n = 2; x = 0
g = 100; i = 6; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
g = l[i + k - 1]
g = 200; i = 6; k = 4; l = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
k = 5
k = float('inf')
k = inf
t = [3, 6, 9]
t = [int(i) for i in str(sum(t))]
t = [1, 8]
a = [1, 2, 3, 4, 5]; s = None
s = len(a)
a = [1, 2, 3, 4, 5]; s = 5
i = 0; j = 2; n = ['011\n', '110\n', '110\n', '\n', '\n', '\n']; r = [1, 0, 0]
r[i] += int(n[i][j])
i = 0; j = 2; n = ['011\n', '110\n', '110\n', '\n', '\n', '\n']; r = [2, 0, 0]
b = 2
b = 32 - b
b = 30
m = [-1, 0, 1, 1, 2]; x = 2
x = m[x]
m = [-1, 0, 1, 1, 2]; x = 1
d = [33.0, 59.0, 79.0]; j = 0; t = [311.0, 326.0, 343.0]
t[j] += d[j]
d = [33.0, 59.0, 79.0]; j = 0; t = [344.0, 326.0, 343.0]
p = 6; x = 12; y = 11
p = x ^ y
p = 7; x = 12; y = 11
i = 3; j = 2; m = 6; u = [[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]]
m = sum(u[i][j:j + 3])
i = 3; j = 2; m = 10; u = [[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]]
b = [1]; i = 3
b.append(i)
b = [1, 3]; i = 3
g = 1; h = [(1, 12)]; n = 12
g, n = h.pop()
g = 1; h = []; n = 12
d = [3, 5, 7, 9]; z = [3, 5, 7, 9]
d = z
d = [3, 5, 7, 9]; z = [3, 5, 7, 9]
y = []
r = y.append
r = <built-in method append of list object at 0x7f1c77ade500>; y = []
a = ['i came from', 'the moon he', 'went to the', 'other room she', 'came from the', 'moon he went', 'to the other']; n = ['room', 'she', 'went']
a.append(' '.join(n))
a = ['i came from', 'the moon he', 'went to the', 'other room she', 'came from the', 'moon he went', 'to the other', 'room she went']; n = ['room', 'she', 'went']
k = 1; s = [4, 5, 3, 7, 2]
c = c + str(s[k]) + ' '
c = 'BhCh65 '; k = 1; s = [4, 5, 3, 7, 2]
n = 1; r = 1; u = {(0, 0): 1, (1, 0): 1, (1, 1): 1}; w = 2
u[n, r] = w
n = 1; r = 1; u = {(0, 0): 1, (1, 0): 1, (1, 1): 2}; w = 2
a = '7891011'; s = ['9', '8', '9', '9', '1', '0', '0']
a = ''.join(map(str, s[:]))
a = '9899100'; s = ['9', '8', '9', '9', '1', '0', '0']
i = 11; k = 0
k = int(i)
i = 11; k = 11
d = {(1): [], (2): []}; i = 2
d[i + 1] = []
d = {1: [], 2: [], 3: []}; i = 2
e = [9, 11, 10]
e = list()
e = []
a = 1; j = 1; n = 2; t = 2
t = a * n - j
a = 1; j = 1; n = 2; t = 1
g = 1; i = 0; l = 1
l = g - i
g = 1; i = 0; l = 1
e = 0; r = 0, 3; x = -2, 4; y = 2
x = r[0] + e, r[1] + y
e = 0; r = (0, 3); x = (0, 5); y = 2
l = 4
l = l >> 1
l = 2
c = 3; s = 7
s = s + c
c = 3; s = 10
a = [1, 2, 3, 4, 5]; i = 4
j.append(a[i])
a = [1, 2, 3, 4, 5]; i = 4; j = [5]
c = [[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]]; d = 1; i = 1; j = 2
d = c[i + 1][j + 1]
c = [[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]]; d = 0; i = 1; j = 2
i = 2; n = [20, 30, 10]; t = 80
t += (i + 1) * n[i]
i = 2; n = [20, 30, 10]; t = 110
a = 2; p = [1, 3, 2]; y = 1
a = p[y]
a = 3; p = [1, 3, 2]; y = 1
c = 5; i = 2; x = ['a', 'ab', 'abc', 'b', 'bc', 'c']; y = ['a', 'b', 'c']
c = c + pow(len(x[i]), len(y))
c = 32.0; i = 2; x = ['a', 'ab', 'abc', 'b', 'bc', 'c']; y = ['a', 'b', 'c']
g = 1; i = 4; x = {(4): 1, (3): 2, (5): 3}
x[g] = i
g = 1; i = 4; x = {4: 1, 3: 2, 5: 3, 1: 4}
m = Counter({(1): 1, (5): 1, (3): 1}); q = 5; u = 2
u -= m[q]
m = Counter({1: 1, 5: 1, 3: 1}); q = 5; u = 1
i = 5; r = 'ifailuhkqq'; w = 2; z = 3486786588
z -= (w + 1) ** (ord(r[i]) - ord('a'))
i = 5; r = 'ifailuhkqq'; w = 2; z = 2187
i = 0; j = 2; x = 'aa'; y = ['a']
y.append(x[i:j])
i = 0; j = 2; x = 'aa'; y = ['a', 'aa']
a = ['10', '3']
a = list(map(int, a))
a = [10, 3]
d = -1; e = 2; k = 2; s = 6; t = 32
t += k * s * pow(2, d) * pow(2, e)
d = -1; e = 2; k = 2; s = 6; t = 56.0
j = 1; q = [5, '2', '3', '1']
q[j] = int(q[j])
j = 1; q = [5, 2, '3', '1']
c = 2; z = 3
c = z + 1
c = 4; z = 3
h = [1, 1, 1, 1, 0]
h.append(1)
h = [1, 1, 1, 1, 0, 1]
l = [['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', '.', '.', 'O', 'O'], ['O', 'O', 'O', '.', '.', 'O'], ['.', '.', 'O', '.', 'O', 'O'], ['.', '.', '.', 'O', 'O', 'O'], ['.', '.', '.', 'O', 'O', 'O']]; m = 'OO.....'; r = 0
m = ''.join(l[r])
l = [['O', 'O', 'O', 'O', 'O', 'O'], ['O', 'O', '.', '.', 'O', 'O'], ['O', 'O', 'O', '.', '.', 'O'], ['.', '.', 'O', '.', 'O', 'O'], ['.', '.', '.', 'O', 'O', 'O'], ['.', '.', '.', 'O', 'O', 'O']]; m = 'OOOOOO'; r = 0
f = [1, 2, 1, 3]; i = 0; s = [0, 0, 0, 0]
s[f[i]] += 1
f = [1, 2, 1, 3]; i = 0; s = [0, 1, 0, 0]
i = ['{', '[', '(']; r = ']'
i.append(r)
i = ['{', '[', '(', ']']; r = ']'
j = 2
z += j
j = 2; z = 93
g = 29; j = [2, 3, 5, 7, 11, 13, 17, 19, 23]
j.append(g)
g = 29; j = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]
l = ['5', '6']
m = int(l[0])
l = ['5', '6']; m = 5
b = 'AABBC_C'
b = b.replace(b[0], '')
b = 'BBC_C'
a = {(1): {(2): 1}, (2): {(1): 1, (3): 1}, (3): {(2): 1, (4): 1}, (4): {(3): 1, (5): 1}, (5): {(4): 1}}; l = 5; v = 6
a[l][v] = 1
a = {1: {2: 1}, 2: {1: 1, 3: 1}, 3: {2: 1, 4: 1}, 4: {3: 1, 5: 1}, 5: {4: 1, 6: 1}}; l = 5; v = 6
c = [1, 2, 3, 4, 4]; d = 4; i = 3
u = c[i - d]
c = [1, 2, 3, 4, 4]; d = 4; i = 3; u = 4
b = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44, 1, 47, 0, 48]; i = 49
b.append(b[-1] ^ i)
b = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 0, 36, 1, 39, 0, 40, 1, 43, 0, 44, 1, 47, 0, 48, 1]; i = 49
f = 2; k = [-1, -1, -1, -1, -1, -1]; s = [0, 0]
k[f] = s[f - 1]
f = 2; k = [-1, -1, 0, -1, -1, -1]; s = [0, 0]
c = [1, 1, 1, 1, 1]; i = 1; j = 0
c[i] = max(c[i], c[j] + 1)
c = [1, 2, 1, 1, 1]; i = 1; j = 0
i = 3; r = -3620601; z = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
r = z[i + 1]
i = 3; r = -357920; z = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
i = 1; m = [3, 1, 0]
m[i] += 1
i = 1; m = [3, 2, 0]
t = ['a', 'b']
z = t[0]
t = ['a', 'b']; z = 'a'
g = ['h']; i = 7; j = 1; s = 'ifailuhkqq'
g = sorted(s[i:i + j])
g = ['k']; i = 7; j = 1; s = 'ifailuhkqq'
a = 34; b = 55
a, b = b, a + b
a = 55; b = 89
i = 't'; z = 'hACKERrANK.COM PRESENTS "pY'
z = z + i.upper()
i = 't'; z = 'hACKERrANK.COM PRESENTS "pYT'
z = 1.9073486328125e-05
z /= 2
z = 9.5367431640625e-06
l = 'aaa',; s = ['a', 'aa']
s.append(''.join(l))
l = ('aaa',); s = ['a', 'aa', 'aaa']
j = 12; n = 11.0
n = float(j)
j = 12; n = 12.0
o = [[3, 2, 1], [1, 2, 3]]; p = [3, 2, 1]
o.append(p)
o = [[3, 2, 1], [1, 2, 3], [3, 2, 1]]; p = [3, 2, 1]
b = 14216; i = 3; r = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]
b = r[i]
b = 14470; i = 3; r = [4978, 11735, 14216, 14470, 38120, 51135, 64630, 67060, 73429, 99233]
i = 4; j = 6; l = [2, -1, 2, 3, 4, -5]; z = 6
z = j + l[i]
i = 4; j = 6; l = [2, -1, 2, 3, 4, -5]; z = 10