start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
a = [5, 8, 14]; i = 9; j = 0; y = [[0, 8], [3, 8], [6, 8]]
|
y.append([abs(a[j] - i), i])
|
a = [5, 8, 14]; i = 9; j = 0; y = [[0, 8], [3, 8], [6, 8], [4, 9]]
|
m = [3, 4, 1, 3]; t = 2
|
t = m.pop()
|
m = [3, 4, 1]; t = 3
|
a = [0, 2]; t = 6
|
a.append(t)
|
a = [0, 2, 6]; t = 6
|
a = [2]; i = 7
|
a.append(i)
|
a = [2, 7]; i = 7
|
d = [1, 1, 1, 1, 1, 1, 1, 1, 1]; i = 9; j = 1; x = [(2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1)]
|
d.append(x[i][j])
|
d = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; i = 9; j = 1; x = [(2, 1), (3, 1), (4, 1), (5, 1), (6, 1), (7, 1), (17, 1), (18, 1), (19, 1), (20, 1), (21, 1), (22, 1)]
|
c = 6; g = 12; s = [1, 2, 3, 7, 12, 14, 21, 21]
|
g = s[c]
|
c = 6; g = 21; s = [1, 2, 3, 7, 12, 14, 21, 21]
|
e = [1, 1, 2, 6, 24, 120, 720, 272481214, 713985458, 269199917, 75195247, 286129051, 595484846, 133605669]; f = 1000000007; i = 60
|
e.append(e[-1] * i % f)
|
e = [1, 1, 2, 6, 24, 120, 720, 272481214, 713985458, 269199917, 75195247, 286129051, 595484846, 133605669, 16340084]; f = 1000000007; i = 60
|
b = '1'; s = '11111111111111111111111111111'
|
s += b
|
b = '1'; s = '111111111111111111111111111111'
|
a = [{'data': 5, 'left': 6, 'right': 7, 'height': 3}, {'data': 6, 'left': None, 'right': 8, 'height': 4}]; e = {'data': 4, 'left': 5, 'right': None, 'height': 3}
|
e = a.pop(0)
|
a = [{'data': 6, 'left': None, 'right': 8, 'height': 4}]; e = {'data': 5, 'left': 6, 'right': 7, 'height': 3}
|
i = 28; p = 'hACKERrANK.COM PRESENTS "pYT'; s = 'HackerRank.com presents "Pythonist 2".'
|
p = p + s[i].upper()
|
i = 28; p = 'hACKERrANK.COM PRESENTS "pYTH'; s = 'HackerRank.com presents "Pythonist 2".'
|
w = 28
|
w = w + 1
|
w = 29
|
a = 9; b = 6
|
a, b = b, a % b
|
a = 6; b = 3
|
z = ['3', '3', '2']
|
r = int(z[0])
|
r = 3; z = ['3', '3', '2']
|
i = 1, 1, 1
|
x.append(sorted(i))
|
i = (1, 1, 1); x = [[1, 1, 1]]
|
d = 6.871947673599998e-26; f = 6.871947673599998e-26; l = 5
|
f = d / l
|
d = 6.871947673599998e-26; f = 1.3743895347199998e-26; l = 5
|
f = 100; i = 2; y = [0, 100, 100, 0, 0, -100]
|
f += y[i]
|
f = 200; i = 2; y = [0, 100, 100, 0, 0, -100]
|
p = 14; s = 43
|
s = s - p
|
p = 14; s = 29
|
e = 1.2
|
e += 1
|
e = 2.2
|
a = [3, 4]; b = 3
|
a.remove(b)
|
a = [4]; b = 3
|
a = 1001; b = 0; f = 3; i = 4; p = [(0, 0), (999, 0), (1000, 0), (1001, 0), (3, 999)]
|
a, b = p[i + 1 - f]
|
a = 1000; b = 0; f = 3; i = 4; p = [(0, 0), (999, 0), (1000, 0), (1001, 0), (3, 999)]
|
i = 2; n = [2]
|
n.remove(i)
|
i = 2; n = []
|
a = 999; b = 0; p = 3; r = 2, 1000
|
r = b + p, a
|
a = 999; b = 0; p = 3; r = (3, 999)
|
i = 0; p = [4, 3, 5, 1, 2]
|
z[p[i]] = i + 1
|
i = 0; p = [4, 3, 5, 1, 2]; z = {4: 1}
|
o = False; x = [True]
|
x.append(o)
|
o = False; x = [True, False]
|
c = [3, 1]; k = 3
|
c = c[k:]
|
c = []; k = 3
|
d = [1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'h'
|
d[ord(i) - 97] += 1
|
d = [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; i = 'h'
|
i = 113; o = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p']
|
o.append(chr(i))
|
i = 113; o = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q']
|
a = 60; g = 100; o = 210; p = 100
|
p = g + o - a
|
a = 60; g = 100; o = 210; p = 250
|
k = 0; v = 2
|
c = v, k + 1
|
c = (2, 1); k = 0; v = 2
|
c = 55; w = 34
|
w = c
|
c = 55; w = 55
|
o = []
|
o.append(2)
|
o = [2]
|
c = [5329.0, 5184.0, 0.0]; h = [73.0, 72.0, 76.0]; j = 2
|
c[j] += h[j] * h[j]
|
c = [5329.0, 5184.0, 5776.0]; h = [73.0, 72.0, 76.0]; j = 2
|
h = [0, 1, 1, 1, 999]; i = 1; v = [0, 0, 0, 0, 0]
|
v[i] = v[i - 1] + h[i]
|
h = [0, 1, 1, 1, 999]; i = 1; v = [0, 1, 0, 0, 0]
|
x = 11
|
x += 1
|
x = 12
|
b = {0, 1, 4, 6}; x = 12
|
b.add(x * 2)
|
b = {0, 1, 4, 6, 24}; x = 12
|
o = 0.0048828125
|
o /= 2
|
o = 0.00244140625
|
x = '7'
|
n = int(x)
|
n = 7; x = '7'
|
a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101]; i = 10; w = 6469693230
|
w = w * a[i]
|
a = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101]; i = 10; w = 200560490130
|
a = [4, 4, 4]; i = 5
|
a = [i, i, i]
|
a = [5, 5, 5]; i = 5
|
i = 0; k = 3; v = [4, 2, 6, 1, 10]; w = 3
|
i = v[w] % k
|
i = 1; k = 3; v = [4, 2, 6, 1, 10]; w = 3
|
m = 7; p = 12
|
p = m
|
m = 7; p = 7
|
g = ['6\n', '\n', '\n']
|
m = g.__iter__()
|
g = ['6\n', '\n', '\n']; m = <list_iterator object at 0x7f1bf43a83d0>
|
k = 5
|
q = [(0) for i in range(k)]
|
k = 5; q = [0, 0, 0, 0, 0]
|
f = 1; h = [0, 3, 3, 1, 1]
|
h.append(f)
|
f = 1; h = [0, 3, 3, 1, 1, 1]
|
d = ['{', '{', '[', '[']; z = '('
|
z = d.pop()
|
d = ['{', '{', '[']; z = '['
|
a = 2; i = 2; k = [2, 1, 1]
|
a = a + k[i]
|
a = 3; i = 2; k = [2, 1, 1]
|
a = 2; f = 2; m = [2, 2, 2]
|
f = f - m[a]
|
a = 2; f = 0; m = [2, 2, 2]
|
u = 2
|
u = u + 1
|
u = 3
|
r = 3
|
r = r - 1
|
r = 2
|
i = 2; j = 2; k = [[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]]; s = 2
|
s = k[i + 1][j + 1]
|
i = 2; j = 2; k = [[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]]; s = 4
|
i = 'S'; j = {'S': 1, 'N': 1, 'L': 0, 'R': 2, 'NE': 1, 'NW': 1, 'SE': 2, 'SW': 2}
|
s += j[i]
|
i = 'S'; j = {'S': 1, 'N': 1, 'L': 0, 'R': 2, 'NE': 1, 'NW': 1, 'SE': 2, 'SW': 2}; s = -75
|
i = 3; j = [1, 3, 4, 5]; l = [1, 3, 4, 5, 6, 2]
|
j.extend(l[i + 1:])
|
i = 3; j = [1, 3, 4, 5, 6, 2]; l = [1, 3, 4, 5, 6, 2]
|
b = [1]; u = [7, 4, 6, 5, 9]
|
b = sorted(u)
|
b = [4, 5, 6, 7, 9]; u = [7, 4, 6, 5, 9]
|
j = 1; v = 0
|
j, v = v, j
|
j = 0; v = 1
|
f = 2.9103830456733704e-10
|
f /= 2
|
f = 1.4551915228366852e-10
|
d = 6; f = [0, 0, 0, 0, 2, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
f[d] += 1
|
d = 6; f = [0, 0, 0, 0, 2, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
b = '0'; p = ['1', '1']
|
p.append(b)
|
b = '0'; p = ['1', '1', '0']
|
d = {(1): 1}; e = 2
|
d[e] = 1
|
d = {1: 1, 2: 1}; e = 2
|
f = [1, 2, 3, 4, 8, 12, 16, 15, 14]; i = 0; n = 4; t = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]
|
f.append(t[n - 1][i])
|
f = [1, 2, 3, 4, 8, 12, 16, 15, 14, 13]; i = 0; n = 4; t = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]
|
h = [1, 1, 2, 3, 5, 8, 13, 286725742, 722019349, 8745084, 730764433, 739509517, 470273943, 209783453]; u = 1000000007
|
h.append((h[-1] + h[-2]) % u)
|
h = [1, 1, 2, 3, 5, 8, 13, 286725742, 722019349, 8745084, 730764433, 739509517, 470273943, 209783453, 680057396]; u = 1000000007
|
d = 6; h = 36
|
h -= d
|
d = 6; h = 30
|
s = '9'; x = 10
|
s = str(x)
|
s = '10'; x = 10
|
f = 6765; s = 10946; t = 10946
|
t = f + s
|
f = 6765; s = 10946; t = 17711
|
l = 'h'; s = [2, 2, 2, 2, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
s[ord(l) - 97] += 1
|
l = 'h'; s = [2, 2, 2, 2, 2, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
c = 'abcd'; e = 4
|
e = len(c) - 1
|
c = 'abcd'; e = 3
|
b = [5, 2, 1, 8]
|
b.sort(reverse=True)
|
b = [8, 5, 2, 1]
|
g = 0; y = ['IJKL']
|
g = sum(map(len, y))
|
g = <map object at 0x7f1bf42248d0>; y = ['IJKL']
|
l = {(1): []}; o = 2
|
l[o] = []
|
l = {1: [], 2: []}; o = 2
|
b = 4; w = {(1): True, (2): True, (3): True}
|
w[b] = True
|
b = 4; w = {1: True, 2: True, 3: True, 4: True}
|
x = 'a'
|
j = d.get(x, 0)
|
d = {}; j = 0; x = 'a'
|
p = 6
|
p = int(bin(p)[3:], 2)
|
p = 2
|
n = 2; z = 5.2
|
z += n / 2
|
n = 2; z = 6.2
|
i = 0; k = '07895462130'; s = ['07895462130', '919875641230', '9195969878']
|
s[i] = '+91 ' + k[1:6] + ' ' + k[6:]
|
i = 0; k = '07895462130'; s = ['+91 78954 62130', '919875641230', '9195969878']
|
a = 3; v = [0, 1, 2]
|
a = v.pop()
|
a = 2; v = [0, 1]
|
m = 1
|
m = m + 1
|
m = 2
|
b = 1; t = 1
|
t += b
|
b = 1; t = 2
|
i = 0; k = 1; t = 3
|
t = i // k + 1
|
i = 0; k = 1; t = 1
|
m = 4
|
l = m - 1
|
l = 3; m = 4
|
n = 5
|
z = [False] * n
|
n = 5; z = [False, False, False, False, False]
|
g = 4; k = 4; m = 4; x = [[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 = x[g + 1][k + 1]
|
g = 4; k = 4; m = 0; x = [[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]]
|
a = 'ababaa'; b = 'abaa'; l = 5
|
l = min(len(a), len(b))
|
a = 'ababaa'; b = 'abaa'; l = 4
|
d = 2; n = 1
|
d = n % 10
|
d = 1; n = 1
|
n = 4
|
i = [[float('inf') for i in range(n + 1)] for j in range(n + 1)]
|
i = []; n = -44
|
w = {2, 11, 4, 12}; x = {9, 2, 4, 5}
|
n = x.intersection(w)
|
n = {2, 4}; w = {2, 11, 4, 12}; x = {9, 2, 4, 5}
|
d = {'c': 1}; k = 'd'
|
d[k] = 1
|
d = {'c': 1, 'd': 1}; k = 'd'
|
p = '(?<= )(&&|\\|\\|)(?= )'; t = '(?<= )(&&|\\|\\|)(?= )'
|
t = p
|
p = '(?<= )(&&|\\|\\|)(?= )'; t = '(?<= )(&&|\\|\\|)(?= )'
|
d = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 16; v = 'u'
|
v = d[i - 1]
|
d = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 16; v = 'v'
|
j = '11111111111111111111111111111011'
|
t = int(j, 2)
|
j = '11111111111111111111111111111011'; t = 4294967291
|
i = 10
|
s[i] = 1
|
i = 10; s = {10: 1}
|
g = [187, 0, 7, 1]; w = 0
|
g[w] += 1
|
g = [188, 0, 7, 1]; w = 0
|
w = 'aabaacaba'
|
d = d + list(w)[0]
|
d = '92ibf1mtPXE8a'; w = 'aabaacaba'
|
c = 2; i = 1; x = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
x[i] = max(x[i], c)
|
c = 2; i = 1; x = [1, 2, 0, 0, 0, 0, 0, 0, 0, 0]
|
o = '1 5 3 4 2 \n'
|
p = [int(i) for i in o.split()]
|
o = '1 5 3 4 2 \n'; p = [1, 5, 3, 4, 2]
|
i = 12; s = 7
|
s = i
|
i = 12; s = 12
|
b = 10; q = 98
|
b = q
|
b = 98; q = 98
|
s = ['a', 'aa', 'aaa', 'aaaa', 'aaaaa', 'aaaaaa', 'aaaaaaa']; z = 'aaaaaaaa',
|
s.append(''.join(z))
|
s = ['a', 'aa', 'aaa', 'aaaa', 'aaaaa', 'aaaaaa', 'aaaaaaa', 'aaaaaaaa']; z = ('aaaaaaaa',)
|
a = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; n = 31
|
a.append(n % 2)
|
a = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]; n = 31
|
b = [1, 2]; k = [3, 4, 5]
|
b.append(k.pop(0))
|
b = [1, 2, 3]; k = [4, 5]
|
i = 5; y = [0, 9, 27, 63, 135, 279]
|
y.append(y[-1] + 9 * 2 ** i)
|
i = 5; y = [0, 9, 27, 63, 135, 279, 567]
|
f = 1.2000000000000009e-55
|
f = f / 10
|
f = 1.200000000000001e-56
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.