start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
d = 3; e = 7; g = 17
|
g = d - 2 * e
|
d = 3; e = 7; g = -11
|
m = 'abc'; x = {'a': 1, 'ab': 1}
|
x[m] = 1
|
m = 'abc'; x = {'a': 1, 'ab': 1, 'abc': 1}
|
i = 0; j = 3; n = 1; s = [[1, 1, 1, 0]]
|
s[i][j] += s[i][j - n]
|
i = 0; j = 3; n = 1; s = [[1, 1, 1, 1]]
|
j = 4; k = 4
|
k = j + 1
|
j = 4; k = 5
|
i = 3; j = 8; l = 'h', 'i', 'l', 'u'; s = 'ifailuhkqq'
|
l = tuple(sorted(list(s[i:j])))
|
i = 3; j = 8; l = ('h', 'i', 'k', 'l', 'u'); s = 'ifailuhkqq'
|
b = [1, 1, 3]; i = 0; j = 0; k = 5; l = [1, 1, 2, 2, 3, 4]
|
b = [l[i], l[j], l[k]]
|
b = [1, 1, 4]; i = 0; j = 0; k = 5; l = [1, 1, 2, 2, 3, 4]
|
i = 3; q = 1
|
i = q + 1
|
i = 2; q = 1
|
d = 2; h = 'i'; i = 0; x = 'ifailuhkqq\n'
|
h = x[i:d]
|
d = 2; h = 'if'; i = 0; x = 'ifailuhkqq\n'
|
d = 4194299; i = 22
|
d = d ^ 1 << i
|
d = 8388603; i = 22
|
i = 3; o = 3; x = ['a', 't', 'c', 'g', 'a', 't', 'c', 'g', 'a']; z = 'cga'
|
z = ''.join(x[i:i + o])
|
i = 3; o = 3; x = ['a', 't', 'c', 'g', 'a', 't', 'c', 'g', 'a']; z = 'gat'
|
i = {(0): [], (1): [], (2): [], (3): []}; x = 4
|
i[x] = []
|
i = {0: [], 1: [], 2: [], 3: [], 4: []}; x = 4
|
c = ['2', '3']; f = 2; t = 1
|
t, f = [int(x) for x in c]
|
c = ['2', '3']; f = 3; t = 2
|
q = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]
|
h = q[0]
|
h = 3; q = [3, 4, 21, 36, 10, 28, 35, 5, 24, 42]
|
f = [[1, 1]]; z = [1, 1]
|
f.append(z)
|
f = [[1, 1], [1, 1]]; z = [1, 1]
|
v = 64
|
v <<= 1
|
v = 128
|
h = 1; k = {1, 2}
|
k.add(h)
|
h = 1; k = {1, 2}
|
i = 2; j = 'ha'; u = 'hack'
|
j = u[:i + 1]
|
i = 2; j = 'hac'; u = 'hack'
|
h = 3; i = 0; w = [[9], [7], [5]]
|
w[i].append(h)
|
h = 3; i = 0; w = [[9, 3], [7], [5]]
|
n = 2; z = [1, 0, 5]
|
y = (z[1] ^ lastAns) % n
|
n = 2; x = 90; y = 0; z = [1, 0, 5]
|
e = [1, 2, 4, 3, 5]
|
e.pop()
|
e = [1, 2, 4, 3]
|
i = 1; s = '{[(])}'; x = '{'
|
x = s[i]
|
i = 1; s = '{[(])}'; x = '['
|
j = 5; r = 'whatwemustbecausewecan'; v = 'w'
|
v += r[j]
|
j = 5; r = 'whatwemustbecausewecan'; v = 'we'
|
l = [-40, -40, -39, -39, -38, -38, -37, -37, -36, -36, 106, 107, 107, 108, 108, 109, 110, 111, 112]
|
list.pop(l, 0)
|
l = [-40, -39, -39, -38, -38, -37, -37, -36, -36, 106, 107, 107, 108, 108, 109, 110, 111, 112]
|
e = 3; i = [1, 3, 2]
|
e = i.index(max(i))
|
e = 1; i = [1, 3, 2]
|
i = 'xy'
|
e = -len(i)
|
e = -2; i = 'xy'
|
s = 2
|
s += 1
|
s = 3
|
w = [{'c': 1}]; z = {'c': 1, 'd': 1}
|
w.append(z)
|
w = [{'c': 1}, {'c': 1, 'd': 1}]; z = {'c': 1, 'd': 1}
|
s = '123'
|
n = len(s)
|
n = 3; s = '123'
|
i = 0
|
q += 2 ** i
|
i = 0; q = 33
|
d = {'bcdef': 1, 'abcdefg': 1}; l = 'bcde'
|
d[l] = d.get(l, 0) + 1
|
d = {'bcdef': 1, 'abcdefg': 1, 'bcde': 1}; l = 'bcde'
|
t = 2
|
t = t // 2
|
t = 1
|
b = 8; x = 4
|
b = b * x
|
b = 32; x = 4
|
f = ['lara', 'hackerrank.com']
|
l = f[0]
|
f = ['lara', 'hackerrank.com']; l = 'lara'
|
i = 3; m = 10; o = 0
|
o, m, i = 0, 1, 0
|
i = 0; m = 1; o = 0
|
d = 2; j = 2; s = [1, 1, 1, 1, 1, 1]
|
d = d + s[j]
|
d = 3; j = 2; s = [1, 1, 1, 1, 1, 1]
|
u = ['1', '4']
|
b = int(u[0])
|
b = 1; u = ['1', '4']
|
a = 3; b = 4; g = 1; i = 3; j = 4; w = [[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]]
|
d = w[i][a] + g + w[b][j]
|
a = 3; b = 4; d = 1; g = 1; i = 3; j = 4; w = [[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]]
|
d = 7
|
d += 1
|
d = 8
|
q = [3, 4]; x = 2
|
q.append(x)
|
q = [3, 4, 2]; x = 2
|
j = 'SOSSOT'
|
n = int(len(j) / 3)
|
j = 'SOSSOT'; n = 2
|
f = [20, 30, 100]; k = 3; m = 150; s = 30
|
s = m - f[0] - (k - 1) * f[0]
|
f = [20, 30, 100]; k = 3; m = 150; s = 90
|
a = 10; b = 100; i = 1; n = 4; s = {300}
|
s.add(i * a + (n - i - 1) * b)
|
a = 10; b = 100; i = 1; n = 4; s = {210, 300}
|
d = 5
|
d %= 5
|
d = 0
|
l = {(2): {(1): 8}, (1): {(2): 8}}; m = 1; q = 5; t = 0
|
l[m][t] = q
|
l = {2: {1: 8}, 1: {2: 8, 0: 5}}; m = 1; q = 5; t = 0
|
d = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1}; f = 'h'
|
d[f] = d[f] + 1 if f in d else 1
|
d = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1, 'h': 1}; f = 'h'
|
d = '3'; m = '6'; p = '20'; s = '85'
|
p, d, m, s = [int(p), int(d), int(m), int(s)]
|
d = 3; m = 6; p = 20; s = 85
|
j = 0; u = [False, False]
|
u[j] = True
|
j = 0; u = [True, False]
|
p = set(); s = 139784860731152, 139785322140928; y = array([1.5, 3.5])
|
p.add(s)
|
p = {(139784860731152, 139785322140928)}; s = (139784860731152, 139785322140928); y = array([1.5, 3.5])
|
i = 4; m = [1, 1, 2, 3, 2]; o = 1
|
o = m[i]
|
i = 4; m = [1, 1, 2, 3, 2]; o = 2
|
r = 12; x = [3, 6]
|
x.append(r)
|
r = 12; x = [3, 6, 12]
|
b = '1111111111'
|
b = b + '1'
|
b = '11111111111'
|
a = [1, 2, 1, 2, 1]
|
a.sort()
|
a = [1, 1, 1, 2, 2]
|
d = [1, 1, 1, 2, 3]; f = [1, 4, 1, 1]; p = [2, 3, 4]
|
x, b, u = [sum(d)], [sum(p)], [sum(f)]
|
b = [9]; d = [1, 1, 1, 2, 3]; f = [1, 4, 1, 1]; p = [2, 3, 4]; u = [7]; x = [8]
|
a = 3; x = 3
|
j = x - a
|
a = 3; j = 0; x = 3
|
n = 81; t = 'okffng-'
|
t += chr(n)
|
n = 81; t = 'okffng-Q'
|
c = 2; x = 1
|
x = c - 1
|
c = 2; x = 1
|
f = 'f'; g = 2; v = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1}
|
g = v[f]
|
f = 'f'; g = 1; v = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 2, 'f': 1, 'g': 1, 'h': 1, 'i': 1}
|
r = [62, 98, 114, 108]; t = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43]]
|
t.append(r)
|
r = [62, 98, 114, 108]; t = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]
|
k = {(0): -1, (1): -1, (2): 0}; x = 0
|
k[x] = -1
|
k = {0: -1, 1: -1, 2: 0}; x = 0
|
i = 2; j = 1; s = 'cdcd'; z = 'cdd'
|
z = ''.join(sorted(s[i:i + j]))
|
i = 2; j = 1; s = 'cdcd'; z = 'c'
|
i = 1
|
t.append(i)
|
i = 1; t = [1]
|
k = [1, 1, 1]
|
n = min(k)
|
k = [1, 1, 1]; n = 1
|
a = ['Malika', '52', '56', '60']; d = {'Krishna': ['67', '68', '69'], 'Arjun': ['70', '98', '63']}
|
d[a[0]] = [a[1], a[2], a[3]]
|
a = ['Malika', '52', '56', '60']; d = {'Krishna': ['67', '68', '69'], 'Arjun': ['70', '98', '63'], 'Malika': ['52', '56', '60']}
|
s = '7891011'; w = 2; z = '7'
|
z = s[:w]
|
s = '7891011'; w = 2; z = '78'
|
h = 1; u = [1, 1]; v = [1, 1]
|
u = v[:h]
|
h = 1; u = [1]; v = [1, 1]
|
i = 0; n = {'a': 3}; x = 'a'
|
n[x[i]] = n.get(x[i], 0) + 1
|
i = 0; n = {'a': 4}; x = 'a'
|
e = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 1; j = 2; m = 17
|
m += e[i][j]
|
e = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 1; j = 2; m = 20
|
w = 'lmno'
|
l = len(w)
|
l = 4; w = 'lmno'
|
e = 3; z = 4
|
j = abs(z - e)
|
e = 3; j = 1; z = 4
|
c = [3, 4, 3]; i = 2; j = 0; x = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
|
c[j] += x[i][j]
|
c = [6, 4, 3]; i = 2; j = 0; x = [[1, 3, 1], [2, 1, 2], [3, 3, 3]]
|
k = 3; s = 4
|
w = s // k + 1
|
k = 3; s = 4; w = 2
|
i = 'ive'; m = {'ive': 1, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1}
|
m[i] -= 1
|
i = 'ive'; m = {'ive': 0, 'got': 1, 'a': 1, 'lovely': 1, 'bunch': 1, 'of': 1, 'coconuts': 1}
|
i = 4; w = [100, 100, 0, 0, -100]; x = 200
|
x = x + w[i]
|
i = 4; w = [100, 100, 0, 0, -100]; x = 100
|
h = 204
|
m.append(h)
|
h = 204; m = [204]
|
v = '{[()]}'
|
s = len(v)
|
s = 6; v = '{[()]}'
|
l = [1, 2, 3, 4, 5, 6]; w = 1
|
l = list(range(1, w + 1))
|
l = [1]; w = 1
|
b = 1.043081283569336e-07
|
b /= 2
|
b = 5.21540641784668e-08
|
s = 'hackerra'; t = 'hackerrank'
|
s += t[len(s)]
|
s = 'hackerran'; t = 'hackerrank'
|
c = {(0): {0}, (1): {1}, (2): {2}, (3): {3}}; s = {0, 2}; v = 0
|
c[v] = s
|
c = {0: {0, 2}, 1: {1}, 2: {2}, 3: {3}}; s = {0, 2}; v = 0
|
b = 241
|
b = b ** 0.5
|
b = 15.524174696260024
|
q = ['47', '58', '74']; x = 344
|
x += int(q[0])
|
q = ['47', '58', '74']; x = 391
|
a = 3; i = 3; l = [1, 2, 3, 7, 12, 14, 21, 21]
|
a = l[i]
|
a = 7; i = 3; l = [1, 2, 3, 7, 12, 14, 21, 21]
|
d = 5; p = 25
|
d = int(p ** 0.5) + 1
|
d = 6; p = 25
|
l = ['-', 'that', 'is', 'the']; v = ' be'
|
v = ' ' + ' '.join(l)
|
l = ['-', 'that', 'is', 'the']; v = ' - that is the'
|
l = 2; x = 1; z = 9
|
l = min(x, z)
|
l = 1; x = 1; z = 9
|
g = 2; t = 0
|
t = g
|
g = 2; t = 2
|
a = -6461594; i = 2; k = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
|
a = k[i]
|
a = -3916237; i = 2; k = [-7330761, -6461594, -3916237, -3620601, -357920, -520, -470, -20, 30, 266854, 6246457, 7374819]
|
a = 4; j = 0; q = [1, 2, 3, 4, 5]; s = 5
|
s, a = q[j], q[j + 1]
|
a = 2; j = 0; q = [1, 2, 3, 4, 5]; s = 1
|
a = 3; g = 'aaa'; i = 1; n = 'bbb'
|
a += abs(g.count(chr(97 + i)) - n.count(chr(97 + i)))
|
a = 6; g = 'aaa'; i = 1; n = 'bbb'
|
s = [0]; t = 0
|
t = s.pop(0)
|
s = []; t = 0
|
i = 3; u = 11
|
i = len(str(u))
|
i = 2; u = 11
|
d = 3
|
o = 9 * d
|
d = 3; o = 27
|
c = 5
|
c += 1
|
c = 6
|
d = {('c',): 1}; o = 'd',
|
d[o] = 0
|
d = {('c',): 1, ('d',): 0}; o = ('d',)
|
d = ['A', 'B', 'A', 'B', 'A', 'B', 'A', 'B', '\n']; u = 'BABABA\n'
|
d = list(u)
|
d = ['B', 'A', 'B', 'A', 'B', 'A', '\n']; u = 'BABABA\n'
|
a = '10001'; c = ['1', None, None, None, None]; i = 1
|
c[i] = a[i]
|
a = '10001'; c = ['1', '0', None, None, None]; i = 1
|
i = 1; j = 6; l = 0; z = 0
|
z = i * j + l
|
i = 1; j = 6; l = 0; z = 6
|
i = 1; z = [10, 1, 10, 1, 10]
|
v = abs(z[i] - z[i - 1])
|
i = 1; v = 9; z = [10, 1, 10, 1, 10]
|
i = 1; k = [0, 0, 0, 0]; l = 0
|
k[i] = l + 1
|
i = 1; k = [0, 1, 0, 0]; l = 0
|
i = 15; p = 'hACKERrANK.COM '; s = 'HackerRank.com presents "Pythonist 2".'
|
p += s[i].upper()
|
i = 15; p = 'hACKERrANK.COM P'; s = 'HackerRank.com presents "Pythonist 2".'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.