start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 4; k = 1; t = 3; u = [[1, 2, 2], [1, 1, 0], [1, 2, 1]]
|
u[i % 3][k] = t
|
i = 4; k = 1; t = 3; u = [[1, 2, 2], [1, 3, 0], [1, 2, 1]]
|
c = 10; s = 3, 4
|
c -= s[1]
|
c = 6; s = (3, 4)
|
n = 1.2000000000000014e-81
|
n = n / 10
|
n = 1.2000000000000014e-82
|
i = 10; n = 4; s = 'haveaniceday'; u = ['hae', 'and', 'vi', 'ec']
|
u[i % n] += s[i]
|
i = 10; n = 4; s = 'haveaniceday'; u = ['hae', 'and', 'via', 'ec']
|
g = {1, 2, 3, 5, 2178309, 8, 13, 144, 75025, 21, 2584, 46368, 34, 832040, 17711, 121393, 514229, 55, ...}; z = 14930352
|
g.add(z)
|
g = {1, 2, 3, 2178309, 5, 8, 13, 144, 75025, 21, 2584, 46368, 34, 832040, 17711, 14930352, 121393, 514229, 55, Ellipsis}; z = 14930352
|
c = [1, 1, 1, 1, 1, 1, 2]; x = 3; y = 1
|
c.append(abs(x - y))
|
c = [1, 1, 1, 1, 1, 1, 2, 2]; x = 3; y = 1
|
c = 1; i = 0; j = 1; q = [[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 = q[i + 1][j + 1]
|
c = 0; i = 0; j = 1; q = [[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]]
|
g = 1; l = 1
|
s = l + g
|
g = 1; l = 1; s = 2
|
j = 1; n = 3; r = 2
|
f = min(r, n - j) + min(j, n - r)
|
f = 3; j = 1; n = 3; r = 2
|
h = '#e'; i = 1; s = 'eededdeedede'
|
h += '#' + s[i]
|
h = '#e#e'; i = 1; s = 'eededdeedede'
|
f = 'b'; r = {'a'}
|
r.add(f)
|
f = 'b'; r = {'a', 'b'}
|
i = 2; m = 12; p = [20, 8, 7, 5, 2]
|
m = p[i] - p[i + 1]
|
i = 2; m = 2; p = [20, 8, 7, 5, 2]
|
a = [['A', 2, 0]]; n = ['A', 2, 0]; x = ['A', 2, 0]
|
a[-1][2] = 1
|
a = [['A', 2, 1]]; n = ['A', 2, 0]; x = ['A', 2, 0]
|
l = 6; m = 3
|
m = l
|
l = 6; m = 6
|
v = [[0, 0, 0], [0, 0, 1], [0, 1, 0]]; x = 1; y = 0; z = 0
|
v.append([x, y, z])
|
v = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0]]; x = 1; y = 0; z = 0
|
f = 2; k = 3
|
f = f * k
|
f = 6; k = 3
|
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 2500, 2601, 2704, 2809, 2916, 3025, 3136, 3249, 3364, 3481]; x = 3600
|
a.append(x)
|
a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100, 2500, 2601, 2704, 2809, 2916, 3025, 3136, 3249, 3364, 3481, 3600]; x = 3600
|
c = 1; n = '0111010'
|
c = c + n.count('010')
|
c = 2; n = '0111010'
|
a = ['2', '1']
|
a = [int(x) for x in a]
|
a = [2, 1]
|
h = 1000; u = 3
|
u = len(str(h))
|
h = 1000; u = 4
|
a = 2
|
a = a + 1
|
a = 3
|
s = 'aba'
|
a = s.count('a')
|
a = 2; s = 'aba'
|
i = 4; t = [3]
|
t.append(i)
|
i = 4; t = [3, 4]
|
d = [1, 2, 3, 7, 12, 14, 21, 21]
|
k = max(d)
|
d = [1, 2, 3, 7, 12, 14, 21, 21]; k = 21
|
i = 1; j = 1; m = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]]
|
a = [m[i - 1][j], m[i + 1][j], m[i][j - 1], m[i][j + 1]]
|
a = [1, 8, 1, 1]; i = 1; j = 1; m = [[1, 1, 1, 2], [1, 9, 1, 2], [1, 8, 9, 2], [1, 2, 3, 4]]
|
u = [2, 2, 3, 7]
|
m = min(u)
|
m = 2; u = [2, 2, 3, 7]
|
b = 1; t = 2
|
t = b
|
b = 1; t = 1
|
r = 'abc'; s = 1
|
j.append([s, r])
|
j = [[1, 'abc']]; r = 'abc'; s = 1
|
r = 4; u = [0, 1, 2, 1, 0]
|
u.append(r - 1)
|
r = 4; u = [0, 1, 2, 1, 0, 3]
|
j = 2; k = '99'; m = 3; p = '99100101102'; s = '99910001001'
|
p, k, m = s[:j + 1], s[:j + 1], 0
|
j = 2; k = '999'; m = 0; p = '999'; s = '99910001001'
|
s = ['abc', 'c', 'b', 'a']; y = '3'
|
s.append(y)
|
s = ['abc', 'c', 'b', 'a', '3']; y = '3'
|
m = [[19, 19, -12], [5, 8, -14]]; t = [-12, -11, 9]
|
m.append(t)
|
m = [[19, 19, -12], [5, 8, -14], [-12, -11, 9]]; t = [-12, -11, 9]
|
a = 2; i = 1; l = 4
|
i = l - a
|
a = 2; i = 2; l = 4
|
c = [1]; j = 2; r = 0
|
c.append(r + j)
|
c = [1, 2]; j = 2; r = 0
|
i = 1; j = 5; u = 9; z = 2
|
u = z * (j - i)
|
i = 1; j = 5; u = 8; z = 2
|
m = 3.141592653589793; n = 6; r = 0.05840734641020706; t = 18
|
r = abs(m - float(t) / float(n))
|
m = 3.141592653589793; n = 6; r = 0.14159265358979312; t = 18
|
a = 2; b = 4; n = {(1): [2]}
|
n[a] = [b]
|
a = 2; b = 4; n = {1: [2], 2: [4]}
|
s = 'abccddde'
|
r = ord(s[0]) - ord('a') + 1
|
r = 1; s = 'abccddde'
|
a = {'a': 1, 'b': 2, 'c': 3, 'd': 4}; i = 4
|
a[letters[i]] = i + 1
|
a = {'a': 1, 'b': 2, 'c': 3, 'd': 4, 3: 5}; i = 4; o = [-9, -1, 0, 5, 3]
|
i = 5; u = {(0): [], (1): [], (2): [], (3): [], (4): []}
|
u[i] = []
|
i = 5; u = {0: [], 1: [], 2: [], 3: [], 4: [], 5: []}
|
i = 0; n = 4
|
f = {i: {} for i in range(n)}
|
f = {0: {}, 1: {}, 2: {}, 3: {}}; i = 0; n = 4
|
c = 'a'
|
u.add(ord(c) - 96)
|
c = 'a'; u = {1}
|
a = 10946; b = 17711
|
a, b = b, a + b
|
a = 17711; b = 28657
|
c = 3; x = 2
|
x *= c
|
c = 3; x = 6
|
a = 'aa'; b = 'a'; l = 2
|
l = min(len(a), len(b))
|
a = 'aa'; b = 'a'; l = 1
|
i = ['give', 'one', 'grand', 'today']; j = 2; l = {'give': 0, 'me': 1, 'one': 0, 'grand': 1, 'today': 1, 'night': 1}
|
l[i[j]] -= 1
|
i = ['give', 'one', 'grand', 'today']; j = 2; l = {'give': 0, 'me': 1, 'one': 0, 'grand': 0, 'today': 1, 'night': 1}
|
s = 5
|
a = s
|
a = 5; s = 5
|
i = 8
|
p = p ^ i
|
i = 8; p = -17
|
g = 10; i = 1; u = [10, 20, 30, 100, 200, 300, 1000]
|
q = q + (u[i] * i - g)
|
g = 10; i = 1; q = -10; u = [10, 20, 30, 100, 200, 300, 1000]
|
k = deque([1, 5, 9, 13, 14, 15, 16, 12, 8]); l = 0; n = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; s = 3
|
k.append(n[l][s])
|
k = deque([1, 5, 9, 13, 14, 15, 16, 12, 8, 4]); l = 0; n = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]; s = 3
|
c = [[0, 0, 0, 0, 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]]; i = 2
|
c[i][:] = c[i - 1][:]
|
c = [[0, 0, 0, 0, 0, 0], [1, 0, 0, 0, 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]]; i = 2
|
x = 59; z = 32589158477190044730
|
z = z * x
|
x = 59; z = 1922760350154212639070
|
i = 2; j = 0; q = [2, 1, 5, 3, 4]
|
a = q[i + j]
|
a = 5; i = 2; j = 0; q = [2, 1, 5, 3, 4]
|
i = [0, 1, 1, 2, 3, 5, 8, 13, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986]; t = 102334155
|
i.append(t)
|
i = [0, 1, 1, 2, 3, 5, 8, 13, 2178309, 3524578, 5702887, 9227465, 14930352, 24157817, 39088169, 63245986, 102334155]; t = 102334155
|
i = 2
|
i *= 2
|
i = 4
|
g = [[], [], [], []]; i = 1; j = 2
|
g[i - 1].append(j - 1)
|
g = [[1], [], [], []]; i = 1; j = 2
|
o = [6, 5]; p = [6, 5, 8, 4, 7, 10, 9]; x = 3
|
o.append(p[x])
|
o = [6, 5, 4]; p = [6, 5, 8, 4, 7, 10, 9]; x = 3
|
b = 2; j = 16; n = -11.0; y = 14.0
|
n = j - b * y
|
b = 2; j = 16; n = -12.0; y = 14.0
|
b = 2; c = -2.0; j = 7; y = 5.0
|
c = j - b * y
|
b = 2; c = -3.0; j = 7; y = 5.0
|
i = 0
|
i += w
|
i = 81; w = 81
|
a = 1; i = 3; y = [0, 0, 1, 1, 1, 0, 1, 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]
|
a += y[i]
|
a = 2; i = 3; y = [0, 0, 1, 1, 1, 0, 1, 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]
|
d = {'Harry': 37.21, 'Berry': 37.21, 'Tina': 37.2}; t = 'Akriti'; x = 41.0
|
d[t] = x
|
d = {'Harry': 37.21, 'Berry': 37.21, 'Tina': 37.2, 'Akriti': 41.0}; t = 'Akriti'; x = 41.0
|
c = ['the', 'other', 'room']; j = 9; o = ['from', 'the', 'moon', 'he', 'went', 'to', 'the', 'she', 'went', 'to', 'the', 'drawing', 'room', '']
|
c = o[j:j + 3]
|
c = ['to', 'the', 'drawing']; j = 9; o = ['from', 'the', 'moon', 'he', 'went', 'to', 'the', 'she', 'went', 'to', 'the', 'drawing', 'room', '']
|
o = 'Tina'; t = [['Harry', 37.21], ['Berry', 37.21]]; w = 37.2
|
t.append([o, w])
|
o = 'Tina'; t = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2]]; w = 37.2
|
a = '292292'; i = 2; v = 9
|
v = int(a[i])
|
a = '292292'; i = 2; v = 2
|
f = []; i = ['}', ')', ']', '(', '[', '{']
|
f = [i.pop()]
|
f = ['{']; i = ['}', ')', ']', '(', '[']
|
p = 10; r = [2, 4, 7]; x = 2
|
p = (x + 1) * (r[-1] - (r[x - 1] if x - 1 >= 0 else 0))
|
p = 9; r = [2, 4, 7]; x = 2
|
b = '1'; s = '111111111111111111111'
|
s += b
|
b = '1'; s = '1111111111111111111111'
|
c = [3, 2, 7]; i = 1
|
l = c[i - 1]
|
c = [3, 2, 7]; i = 1; l = 3
|
i = 0; l = """1\n2 3\n1 1\n2 3\n\n\n\n"""; n = 0
|
l = [(0) for i in range(n + 1)]
|
i = 0; l = [0]; n = 0
|
g = [[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]]; i = 4; j = 1; y = 0
|
y = g[i][j - 1] if j >= 1 else 0
|
g = [[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]]; i = 4; j = 1; y = 0
|
q = 4
|
d = [q, 0]
|
d = [4, 0]; q = 4
|
c = 2; d = 0; i = 1; j = 2; m = deque([[0, 2, 0, 1, 2]]); x = 2
|
i, j, d, c, x = m.popleft()
|
c = 1; d = 0; i = 0; j = 2; m = deque([]); x = 2
|
v = 4.0
|
k = v >= 0 and v % 1 == 0
|
k = True; v = 4.0
|
p = [[5], []]; x = []; y = 7
|
x.append(y)
|
p = [[5], []]; x = [7]; y = 7
|
h = 1
|
t[h - 1] += 1
|
h = 1; t = [1, 3, -8, -7]
|
d = 1; g = 1000000007
|
d = (d * 10 + 1) % g
|
d = 11; g = 1000000007
|
i = 27; p = 'hACKERrANK.COM PRESENTS "pY'; s = 'HackerRank.com presents "Pythonist 2".'
|
p = p + s[i].upper()
|
i = 27; p = 'hACKERrANK.COM PRESENTS "pYT'; s = 'HackerRank.com presents "Pythonist 2".'
|
i = 3; w = {(1): [], (2): []}
|
w[i] = []
|
i = 3; w = {1: [], 2: [], 3: []}
|
a = [1, 1, 2, 3, 5, 8, 13, 316290802, 267570670, 583861472, 851432142, 435293607, 286725742, 722019349]; w = 1000000007
|
a.append((a[-1] + a[-2]) % w)
|
a = [1, 1, 2, 3, 5, 8, 13, 316290802, 267570670, 583861472, 851432142, 435293607, 286725742, 722019349, 8745084]; w = 1000000007
|
d = 5; e = 21; l = 2; r = [1, 3, 5, 7, 9]; x = 3; y = 5
|
e = e + r[d - 1 - y - x] * l
|
d = 5; e = 27; l = 2; r = [1, 3, 5, 7, 9]; x = 3; y = 5
|
x = 1
|
k = x - 1
|
k = 0; x = 1
|
u = 5
|
u += 1
|
u = 6
|
m = [1, 2, 3]; q = [1, 2, 3, 2, 3, 3]
|
q = [m[:]]
|
m = [1, 2, 3]; q = [[1, 2, 3]]
|
l = ['[email protected]', '[email protected]', '[email protected]']
|
l.sort()
|
l = ['[email protected]', '[email protected]', '[email protected]']
|
a = [0, 4, 4, 3, 2, 0]; i = 6; m = 5
|
a.insert(i, (a[i - 2] + a[i - 1]) % m)
|
a = [0, 4, 4, 3, 2, 0, 2]; i = 6; m = 5
|
c = 'a'
|
a[c] = 1
|
a = {'a': 1}; c = 'a'
|
g = [151, 0, 7, 1]; w = 0
|
g[w] += 1
|
g = [152, 0, 7, 1]; w = 0
|
i = 20; x = [17, 16, 14]
|
x = [i - 2, i - 3, i - 5]
|
i = 20; x = [18, 17, 15]
|
a = [17, 28, '30']; i = 2
|
a[i] = int(a[i])
|
a = [17, 28, 30]; i = 2
|
k = 3; z = [2]
|
z.append(k)
|
k = 3; z = [2, 3]
|
h = [[1, 3], [2, 4], [3, 3], [4, 3]]; i = 3; l = [3, 3]
|
l = h[i]
|
h = [[1, 3], [2, 4], [3, 3], [4, 3]]; i = 3; l = [4, 3]
|
i = 0; q = ['1', '2', '3', '4', '10', '11']
|
s += int(q[i])
|
i = 0; q = ['1', '2', '3', '4', '10', '11']; s = 3
|
d = {(1): 5, (2): 4, (3): 5, (6): 4, (5): 4, (4): 5, (8): 1}; e = 5
|
d[e] += 1
|
d = {1: 5, 2: 4, 3: 5, 6: 4, 5: 5, 4: 5, 8: 1}; e = 5
|
c = [0, 1, 2]; i = 1; k = {(0): 2, (1): 0, (2): 0}; o = 3
|
k[c.index(i)] = k[c.index(i)] + o - 1 - c.index(i)
|
c = [0, 1, 2]; i = 1; k = {0: 2, 1: 1, 2: 0}; o = 3
|
j = 1; m = [0, 2]; x = [0, 0]
|
x[j] += m[j]
|
j = 1; m = [0, 2]; x = [0, 2]
|
i = 1; p = [1, 4, 3, 5, 6, 2]
|
s = p[i]
|
i = 1; p = [1, 4, 3, 5, 6, 2]; s = 4
|
n = 3; x = 2; y = 1; z = 1
|
u = (n - z) * y + z * x
|
n = 3; u = 4; x = 2; y = 1; z = 1
|
c = '('; i = 3; s = '{[()]}'
|
c = s[i]
|
c = ')'; i = 3; s = '{[()]}'
|
a = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, 'ij']]; i = 4
|
a[i][1] = '-'
|
a = [[0, '-'], [6, '-'], [0, '-'], [6, '-'], [4, '-']]; i = 4
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.