start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
c = '3'; k = [True, {'3': [False, {}]}]
|
k = k[1][c]
|
c = '3'; k = [False, {}]
|
h = ['a', 'b', 'c']; y = 'ab'
|
y = ''.join(h)
|
h = ['a', 'b', 'c']; y = 'abc'
|
a = {'c': 0, 'cd': 0, 'ccd': 0, 'ccdd': 0, 'd': 0}; i = 1; j = 2; s = 'cdcd'
|
a[''.join(sorted(s[i:i + j + 1]))] = 0
|
a = {'c': 0, 'cd': 0, 'ccd': 0, 'ccdd': 0, 'd': 0, 'cdd': 0}; i = 1; j = 2; s = 'cdcd'
|
g = {(869167): [-7330761]}; i = 1; l = [-7330761]; m = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]
|
l.append(m[i])
|
g = {869167: [-7330761]}; i = 1; l = [-7330761, -6461594]; m = [-7330761, -6461594, -3916237, -3620601, -357920, -20, 30, 266854, 6246457, 7374819]
|
b = 3; s = 4
|
b = s
|
b = 4; s = 4
|
i = ['0', 'to']; k = [5, 0, 0, 1, 2, 0, 4, 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]
|
k[int(i[0])] += 1
|
i = ['0', 'to']; k = [6, 0, 0, 1, 2, 0, 4, 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 = [1, 2, 1, 1, 2]; s = 'aabbccddeefghi'; x = 'e'
|
l.append(s.count(x))
|
l = [1, 2, 1, 1, 2, 2]; s = 'aabbccddeefghi'; x = 'e'
|
d = [{1}, {0}, set(), set()]; f = 2; p = 0
|
d[p].add(f)
|
d = [{1, 2}, {0}, set(), set()]; f = 2; p = 0
|
f = 6; i = 12
|
f = i
|
f = 12; i = 12
|
k = ' '
|
k += ' '
|
k = ' '
|
a = 1; b = 2; y = ['M', '2', '3']
|
a, b = int(y[1]), int(y[2])
|
a = 2; b = 3; y = ['M', '2', '3']
|
o = [3, 4]; x = [[1, 2]]
|
x.append(o)
|
o = [3, 4]; x = [[1, 2], [3, 4]]
|
g = 4; i = 0; n = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
d = n[i + g - 1] - n[i]
|
d = 3; g = 4; i = 0; n = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
d = {'a': 0, 'b': 0}; t = 'c'
|
d[t] = 0
|
d = {'a': 0, 'b': 0, 'c': 0}; t = 'c'
|
e = 7; i = 'ef'; l = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', 'cd', '', '', '', '', '', '', '', '', '', '', '', '', '']
|
l[e] = i
|
e = 7; i = 'ef'; l = ['ab', 'cd', 'ef', 'gh', 'ij', 'ab', 'cd', 'ef', '', '', '', '', '', '', '', '', '', '', '', '']
|
c = [('i', 'came', 'from'), ('came', 'from', 'the'), ('he', 'went', 'to')]; d = 'went', 'to', 'the'
|
c.append(d)
|
c = [('i', 'came', 'from'), ('came', 'from', 'the'), ('he', 'went', 'to'), ('went', 'to', 'the')]; d = ('went', 'to', 'the')
|
j = ['d']; k = 2; l = ['a', 'b', 'c', 'd']; q = 0
|
l[k] = j[q]
|
j = ['d']; k = 2; l = ['a', 'b', 'd', 'd']; q = 0
|
b = '11111111111'
|
b += '1'
|
b = '111111111111'
|
a = 6
|
u = ['B' * (a + 2)]
|
a = 6; u = ['BBBBBBBB']
|
i = 1; l = {(0): []}
|
l[i] = []
|
i = 1; l = {0: [], 1: []}
|
x = {(1, 2), (3, 0), (0, 0), (2, 3)}
|
d = id(x)
|
d = 139758037986432; x = {(1, 2), (3, 0), (0, 0), (2, 3)}
|
l = 1
|
h = 32 - l
|
h = 31; l = 1
|
k = 1e-15
|
k = k / 10
|
k = 1.0000000000000001e-16
|
k = 3; s = 6
|
s += k
|
k = 3; s = 9
|
x = 16
|
x += 1
|
x = 17
|
i = 2; p = [2, 1, 2]
|
p.append(i)
|
i = 2; p = [2, 1, 2, 2]
|
a = 2
|
l += a
|
a = 2; l = -35
|
b = [1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0]; o = 6; y = 8
|
b[y] += b[o]
|
b = [1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0]; o = 6; y = 8
|
k = 9223372036854775807; n = 3
|
k = n
|
k = 3; n = 3
|
i = 3; m = 6
|
m = i % 8
|
i = 3; m = 3
|
i = 'A'
|
b.append(i)
|
b = ['A']; i = 'A'
|
d = 72.3; i = 2; m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47, 95, 84, 43, 95, 54, 72]; u = [0.7000000000000028, -24.299999999999997]
|
u.append(m[i] - d)
|
d = 72.3; i = 2; m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47, 95, 84, 43, 95, 54, 72]; u = [0.7000000000000028, -24.299999999999997, 22.700000000000003]
|
c = 2; i = 4; n = ['c', 'g', 'a', 't', 'c', 'g']; v = 'tc'
|
v = ''.join(n[i:i + c])
|
c = 2; i = 4; n = ['c', 'g', 'a', 't', 'c', 'g']; v = 'cg'
|
e = 0
|
e += 1
|
e = 1
|
j = 2; n = [4, 3]
|
n.append(n[j - 1] - 1)
|
j = 2; n = [4, 3, 2]
|
i = 1; j = 3; s = ['a', 'b', 'c', 'd']; x = ['b', 'c']
|
x = s[i:j + 1]
|
i = 1; j = 3; s = ['a', 'b', 'c', 'd']; x = ['b', 'c', 'd']
|
g = [1, 0, 0, 1, 0, 1]; i = 6; k = 4; p = [1, 1, 1, 0, 1, 0, 0, 1, 1, 0]
|
g.append(g[i - k] ^ p[i - 1] ^ p[i])
|
g = [1, 0, 0, 1, 0, 1, 0]; i = 6; k = 4; p = [1, 1, 1, 0, 1, 0, 0, 1, 1, 0]
|
r = [False, False, False, True, False]
|
r[4] = True
|
r = [False, False, False, True, True]
|
s = 10
|
v[s] = 1
|
s = 10; v = {10: 1}
|
i = 3; j = 4; o = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 0], [0, 0, 0, 0, 0, 0]]
|
o[i + 1][j + 1] = max(o[i + 1][j], o[i][j + 1])
|
i = 3; j = 4; o = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0]]
|
j = '5 5'
|
j = j.split(' ')
|
j = ['5', '5']
|
c = '\n'; l = '3 4 100\n'
|
l = c
|
c = '\n'; l = '\n'
|
i = 1; x = ['1', '2']; z = [1]
|
z.append(int(x[i]))
|
i = 1; x = ['1', '2']; z = [1, 2]
|
i = 1; p = [1, 2, 1]
|
p.append(i)
|
i = 1; p = [1, 2, 1, 1]
|
e = 'abc'
|
e = e[:-1]
|
e = 'ab'
|
m = 2; w = 0
|
m = w
|
m = 0; w = 0
|
x = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; z = [0, 0, 0]
|
x.append(z)
|
x = [[1, 3, 4], [2, 2, 3], [1, 2, 4], [0, 0, 0]]; z = [0, 0, 0]
|
c = 't'; r = ' '
|
r = c.lower()
|
c = 't'; r = 't'
|
v = 2
|
r += v * (v - 1) / 2
|
r = -34.0; v = 2
|
a = ['B', 'A', 'B', 'A', 'B', 'A']; b = [66, 65, 66, 65]; i = 4
|
b.append(ord(a[i]))
|
a = ['B', 'A', 'B', 'A', 'B', 'A']; b = [66, 65, 66, 65, 66]; i = 4
|
p = 'abcd'; v = 'a'
|
p = p + v
|
p = 'abcda'; v = 'a'
|
n = 3; o = '0o2'
|
o = oct(n)
|
n = 3; o = '0o3'
|
n = 116
|
n //= 10
|
n = 11
|
i = 1; k = 2
|
i = k
|
i = 2; k = 2
|
d = 139638914197856; x = ['*', '.', 'M']
|
d = id(x)
|
d = 139758047122208; x = ['*', '.', 'M']
|
x = [3, 3, 4]
|
x.pop(0)
|
x = [3, 4]
|
c = 1; i = 2; w = [([], -1), ([2, 3], 1), ([1, 3], -1), ([1, 2], -1)]
|
w[i] = w[i][0], c
|
c = 1; i = 2; w = [([], -1), ([2, 3], 1), ([1, 3], 1), ([1, 2], -1)]
|
y = [[0, 3], [1, 9], [2, 6]]
|
k = y.pop(0)
|
k = [0, 3]; y = [[1, 9], [2, 6]]
|
i = 204; n = {(203): 0}
|
n[i] = 0
|
i = 204; n = {203: 0, 204: 0}
|
q = 2; x = 0
|
v = (x ^ lastAns) % q
|
q = 2; v = 0; x = 0; y = 64
|
m = 1; n = 0; u = {(0): 'hae', (1): ''}; v = {(0): 'have', (1): 'anic', (2): 'eday'}
|
u[m] += v[n][m]
|
m = 1; n = 0; u = {0: 'hae', 1: 'a'}; v = {0: 'have', 1: 'anic', 2: 'eday'}
|
d = {(0): 0, (1): 0, (2): 0, (3): 0, (4): 0, (5): 0, (6): 0, (7): 0, (8): 0, (9): 0, (10): 0, (11): 0, (12): 0, (13): 0, (14): 0}; i = 15
|
d[i] = 0
|
d = {0: 0, 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0, 9: 0, 10: 0, 11: 0, 12: 0, 13: 0, 14: 0, 15: 0}; i = 15
|
i = 0; t = [1, 3, 4, 2]; x = 2
|
x = t.index(i + 1)
|
i = 0; t = [1, 3, 4, 2]; x = 0
|
p = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377]
|
p.append(p[-2] + p[-1])
|
p = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610]
|
f = 'o'; h = 1; j = {'o': 1, 'p': 1}
|
h += j[f]
|
f = 'o'; h = 2; j = {'o': 1, 'p': 1}
|
g = 2
|
g += 1
|
g = 3
|
e = [2, 1, 3, 1, 2]; n = 0; w = 2
|
e[n + 1] = w
|
e = [2, 2, 3, 1, 2]; n = 0; w = 2
|
f = ['85', '79', '91']; n = 74139
|
n += int(f[0]) * int(f[2])
|
f = ['85', '79', '91']; n = 81874
|
b = 5571565017663523816808699092
|
b >>= 1
|
b = 2785782508831761908404349546
|
v = [1, 1, 1, 2, 3]
|
w = sum(v)
|
v = [1, 1, 1, 2, 3]; w = 8
|
c = 16; j = 1
|
c = c ^ j
|
c = 17; j = 1
|
f = ' update 2'; t = '10'; v = 'intersection_update'
|
v, t = f.split()
|
f = ' update 2'; t = '2'; v = 'update'
|
j = 24
|
j = j + 1
|
j = 25
|
s = ['no']
|
n = s[0] if s else None
|
n = 'no'; s = ['no']
|
g = 0; p = 3; s = 'cdcd'; t = 'cd'
|
t = ''.join(sorted(s[g:g + p]))
|
g = 0; p = 3; s = 'cdcd'; t = 'ccd'
|
f = 1000
|
f += 1
|
f = 1001
|
d = {(1): 1}; p = 1
|
d[p] += 1
|
d = {1: 2}; p = 1
|
l = 3
|
x = [None] * l
|
l = 3; x = [None, None, None]
|
i = [1]; l = [[1, 2, 3], [4], [1, 2], [1, 2, 3], [4, 5, 6]]
|
l.append(i)
|
i = [1]; l = [[1, 2, 3], [4], [1, 2], [1, 2, 3], [4, 5, 6], [1]]
|
h = 'ha'; i = 2; s = 'hackerhappy'
|
h += s[i]
|
h = 'hac'; i = 2; s = 'hackerhappy'
|
o = ( '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 65 67 67 68 69 69 69 70 70 73 73 74 75 75 76 78 ' ); x = 78
|
o += str(x) + ' '
|
o = '1 1 3 3 6 8 9 9 10 12 13 16 16 18 20 21 21 22 23... 65 67 67 68 69 69 69 70 70 73 73 74 75 75 76 78 78 '; x = 78
|
m = 1; n = 110
|
m = max(n, m)
|
m = 110; n = 110
|
d = ['{', '[', '(']
|
k = d.pop()
|
d = ['{', '[']; k = '('
|
j = 1; k = [1, 1, 4, 1, 1]
|
c += k[j - 1]
|
c = -56; j = 1; k = [1, 1, 4, 1, 1]
|
y = 3
|
g = max(g, y)
|
g = 3; y = 3
|
s = ['a', 'a', 'b', 'b', 'c', 'd']
|
x = set(s)
|
s = ['a', 'a', 'b', 'b', 'c', 'd']; x = {'a', 'b', 'c', 'd'}
|
f = []; p = 5
|
f.append(p)
|
f = [5]; p = 5
|
s = 1.2000000000000003e-24
|
s /= 10
|
s = 1.2000000000000003e-25
|
a = 1836311903; b = 2971215073
|
a, b = b, a + b
|
a = 2971215073; b = 4807526976
|
i = 2; k = 44; p = [1, 5, 10, 12, 111, 200, 1000]
|
k -= p[i]
|
i = 2; k = 34; p = [1, 5, 10, 12, 111, 200, 1000]
|
a = 'bacc'; j = ['b', 'a', 'c', 'ba', 'ac', 'bac']; k = 5; l = 1; p = ['b', 'a', 'c', 'ba', 'ac', 'bac']
|
a = p[k] + j[l]
|
a = 'baca'; j = ['b', 'a', 'c', 'ba', 'ac', 'bac']; k = 5; l = 1; p = ['b', 'a', 'c', 'ba', 'ac', 'bac']
|
e = 3
|
e += 2
|
e = 5
|
m = 0; r = [1, 2]; x = 1
|
x, m = r
|
m = 2; r = [1, 2]; x = 1
|
n = '31415926535897932384626433832795'
|
j.append(n)
|
j = ['31415926535897932384626433832795']; n = '31415926535897932384626433832795'
|
k = 5; l = 4; x = 3
|
k = max(x, l)
|
k = 4; l = 4; x = 3
|
i = 2; s = 4; w = {(1): [3], (2): [], (3): [1, 4], (4): [3], (5): [], (6): []}
|
w[i].append(s)
|
i = 2; s = 4; w = {1: [3], 2: [4], 3: [1, 4], 4: [3], 5: [], 6: []}
|
i = 3
|
s += i
|
i = 3; s = -93
|
a = 1; f = 1; h = [[2, 2, 3]]; z = 4
|
h.append([f, a, z])
|
a = 1; f = 1; h = [[2, 2, 3], [1, 1, 4]]; z = 4
|
i = 0; r = 2
|
r = i
|
i = 0; r = 0
|
b = '1111111111111110000111011011'
|
b = b + '1'
|
b = '11111111111111100001110110111'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.