start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
|---|---|---|
f = 'qA2'; i = 0
|
s.append(f[i].isdigit())
|
f = 'qA2'; i = 0; s = [False]
|
l = 26; v = 2
|
v = 32 - l
|
l = 26; v = 6
|
d = 5
|
d = d - 1
|
d = 4
|
i = 1; p = 4; x = 4
|
p = x - i
|
i = 1; p = 3; x = 4
|
i = 4; n = 2; y = 6
|
n = n + y - i
|
i = 4; n = 4; y = 6
|
a = 1; x = 3
|
a = x
|
a = 3; x = 3
|
b = 1.2000000000000002e-06
|
b /= 10
|
b = 1.2000000000000002e-07
|
a = 1; i = 1; m = 2; q = 1; 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]]
|
q = q + u[m][a + i] + u[m + 2][a + i]
|
a = 1; i = 1; m = 2; q = 2; 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]]
|
g = [1, 5, 4, 3, 2, 6]; x = [2, 3, 4, 5]
|
e = g[x[0] - 1:x[len(x) - 1]]
|
e = [5, 4, 3, 2]; g = [1, 5, 4, 3, 2, 6]; x = [2, 3, 4, 5]
|
o = {(5, 9), (5, 4), (6, 4), (5, 5), (4, 6), (6, 6), (5, 6), (5, 7), (6, 3), (6, 5), (6, 2), (5, 8), ...}; x = 6; y = 7
|
o.add((x, y))
|
o = {(5, 9), (5, 4), (6, 4), (6, 7), (4, 6), (5, 5), (6, 6), (5, 6), (5, 8), (5, 7), (6, 3), (6, 2), Ellipsis, (6, 5)}; x = 6; y = 7
|
n = [3, 2, 2, 0]; s = 2; y = 3
|
s = n[y]
|
n = [3, 2, 2, 0]; s = 0; y = 3
|
s = '01011000'
|
s = hex(int(s, 2))[2:]
|
s = '58'
|
h = [1, 3, 6, 0]; i = 2; y = 3
|
h[y] += 2 ** i
|
h = [1, 3, 6, 4]; i = 2; y = 3
|
o = 'APPLE JUICE'; y = 'CANDY 5'
|
o = ' '.join(y.split()[0:-1])
|
o = 'CANDY'; y = 'CANDY 5'
|
a = 1; b = 2; d = 4; i = 4; j = 4
|
i, j = a + (j - b), b + (d - (i - a))
|
a = 1; b = 2; d = 4; i = 3; j = 3
|
x = [2]
|
del x[0]
|
x = []
|
n = 99913; y = '7'
|
n = int(y) + 1
|
n = 8; y = '7'
|
o = 4; t = [3, 4, 2, 3, 6, 1, 3, 6, 9, 10]; x = 3
|
o = t[x - 1]
|
o = 2; t = [3, 4, 2, 3, 6, 1, 3, 6, 9, 10]; x = 3
|
a = {'c', 'db', 'dbac', 'ba', 'b', 'bac', 'ac', 'a', 'd', 'dba'}
|
a = ''.join(sorted(list(a)))
|
a = 'aacbbabaccddbdbadbac'
|
g = [2, 5, 4, 5, 2]
|
v = max(g)
|
g = [2, 5, 4, 5, 2]; v = 5
|
i = 10; s = 512
|
s = 2 ** i
|
i = 10; s = 1024
|
f = '10 5'
|
f = f.split()
|
f = ['10', '5']
|
b = {(32): ['31415926535897932384626433832795'], (1): []}; d = 1; s = '1'
|
b[d].append(s)
|
b = {32: ['31415926535897932384626433832795'], 1: ['1']}; d = 1; s = '1'
|
q = ['4', '1']
|
l = int(q[0])
|
l = 4; q = ['4', '1']
|
i = 0; n = 2; x = [2, 1]
|
j = x.index(n - i)
|
i = 0; j = 0; n = 2; x = [2, 1]
|
c = [3, 3, 2]; d = {(3): 2}; i = 2
|
d[c[i]] = 1
|
c = [3, 3, 2]; d = {3: 2, 2: 1}; i = 2
|
i = 12; s = 'saveChangesInTheEditor'; w = 'I'
|
w = s[i]
|
i = 12; s = 'saveChangesInTheEditor'; w = 'n'
|
a = [1]
|
a.pop()
|
a = []
|
a = 'a'; i = 1; s = 'acab'
|
t = s.find(a, i)
|
a = 'a'; i = 1; s = 'acab'; t = 2
|
c = 'd'; o = {'a': 2, 'b': 2, 'c': 1}
|
o[c] = o.get(c, 0) + 1
|
c = 'd'; o = {'a': 2, 'b': 2, 'c': 1, 'd': 1}
|
w = [1, 5, 10, 12, 111, 200, 1000]; y = 50
|
y -= w[answer]
|
v = -1; w = [1, 5, 10, 12, 111, 200, 1000]; y = -950
|
i = 2; l = [1, 5, 1]
|
l[i] = l[i] + l[i - 1]
|
i = 2; l = [1, 5, 6]
|
i = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 63, 0, 64, 1, 67, 0, 68, 1, 71, 0, 72, 1, 75, 0]; x = 76
|
i.append(i[-1] ^ x)
|
i = [0, 1, 3, 0, 4, 1, 7, 0, 8, 1, 11, 0, 12, 1, 15, 63, 0, 64, 1, 67, 0, 68, 1, 71, 0, 72, 1, 75, 0, 76]; x = 76
|
h = 1; i = '2'
|
h = h + int(i)
|
h = 3; i = '2'
|
i = 56; o = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1444, 1600, 1764, 1936, 2116, 2304, 2500, 2704, 2916]
|
o.append(i * i)
|
i = 56; o = [4, 16, 36, 64, 100, 144, 196, 256, 324, 400, 1444, 1600, 1764, 1936, 2116, 2304, 2500, 2704, 2916, 3136]
|
f = 0; s = [3, 2]
|
s.append(f)
|
f = 0; s = [3, 2, 0]
|
i = 1; k = '8'; s = '7891011'; u = '1001'
|
u = s[i:i + len(k)]
|
i = 1; k = '8'; s = '7891011'; u = '8'
|
i = 2; o = []
|
o.append(i)
|
i = 2; o = [2]
|
y = 17
|
y += 1
|
y = 18
|
i = {'i': 2, 'f': 1, 'a': 1}; j = 'l'
|
i[j] = 1
|
i = {'i': 2, 'f': 1, 'a': 1, 'l': 1}; j = 'l'
|
f = 1.2000000000000001e-20; w = 1.2000000000000002e-21
|
f = w % 10
|
f = 1.2000000000000002e-21; w = 1.2000000000000002e-21
|
i = 'aa'; s = 'aa'
|
k = s.find(i)
|
i = 'aa'; k = 0; s = 'aa'
|
d = 8; r = 2
|
d -= r
|
d = 6; r = 2
|
r = [(1, 1, 2), (-1, 1, 2)]; v = 4; x = -1; y = -1
|
r.append((x, y, v))
|
r = [(1, 1, 2), (-1, 1, 2), (-1, -1, 4)]; v = 4; x = -1; y = -1
|
i = 3; j = 3
|
j = i + 1
|
i = 3; j = 4
|
a = [1, 4, 5, 3, 2]; e = {(1): 1, (4): 2}; i = 2; y = 3
|
e[a[i]] = y
|
a = [1, 4, 5, 3, 2]; e = {1: 1, 4: 2, 5: 3}; i = 2; y = 3
|
k = '4'; q = '4'
|
q, k = [int(q), int(k)]
|
k = 4; q = 4
|
a = 2; b = 3; e = '-1 -1'
|
a, b = [int(n) for n in e.split()]
|
a = -1; b = -1; e = '-1 -1'
|
f = [1, 2, 2, 3, 3, 1]; h = 2; j = 4
|
h = f[j]
|
f = [1, 2, 2, 3, 3, 1]; h = 3; j = 4
|
a = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; i = 4; p = [1, 1, 1, 1, 0, 0]
|
p[a[i] - 1] += 1
|
a = [1, 2, 3, 4, 5, 4, 3, 2, 1, 3, 4]; i = 4; p = [1, 1, 1, 1, 1, 0]
|
m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47]; x = 95
|
m.append(x)
|
m = [73, 48, 95, 95, 33, 47, 98, 91, 95, 93, 70, 85, 33, 47, 95]; x = 95
|
n = 7
|
h = [0] * n
|
h = [0, 0, 0, 0, 0, 0, 0]; n = 7
|
x = '\\w'
|
v = ESCAPES.get(x)
|
r = {}; v = None; x = '\\w'
|
k = 'times'; w = {'two': 0, 'times': 1, 'three': 1, 'is': 1, 'not': 1, 'four': 1}
|
w[k] -= 1
|
k = 'times'; w = {'two': 0, 'times': 0, 'three': 1, 'is': 1, 'not': 1, 'four': 1}
|
u = 1
|
u += 1
|
u = 2
|
f = 1073741824; i = 34; m = 64
|
f = 1 << m - i - 1
|
f = 536870912; i = 34; m = 64
|
b = 1
|
b -= 1
|
b = 0
|
k = 1; t = 'fg'
|
t = t[k] + t[0:k] + t[k + 1:]
|
k = 1; t = 'gf'
|
a = 10; b = 1010; i = 23; x = 8472493280
|
x = x + (a ^ b << i)
|
a = 10; b = 1010; i = 23; x = 16944987370
|
c = 4; o = 2; q = 3; v = 4; x = 1; y = 2
|
x, y = c - v, o - q
|
c = 4; o = 2; q = 3; v = 4; x = 0; y = -1
|
i = 10; u = 't'; x = 'middle-Outz'
|
u = x[i]
|
i = 10; u = 'z'; x = 'middle-Outz'
|
b = 204; y = {(203): 1, (204): 1}
|
y[b] = y.get(b, 0) + 1
|
b = 204; y = {203: 1, 204: 2}
|
i = 1; j = '999'; s = '7891011'
|
j = s[0:i]
|
i = 1; j = '7'; s = '7891011'
|
b = 'hACKERrANK.'; i = 11; s = 'HackerRank.com presents "Pythonist 2".'
|
b += s[i].upper()
|
b = 'hACKERrANK.C'; i = 11; s = 'HackerRank.com presents "Pythonist 2".'
|
h = [1, 1, 2, 3, 5, 8, 13, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733, 1134903170]
|
h.append(h[-2] + h[-1])
|
h = [1, 1, 2, 3, 5, 8, 13, 63245986, 102334155, 165580141, 267914296, 433494437, 701408733, 1134903170, 1836311903]
|
f = 6; i = 5; o = 0
|
i = (o + f) // 2
|
f = 6; i = 3; o = 0
|
j = [[1, 0]]; p = [[2, 0], [2, 0]]
|
p.append(j.pop(0))
|
j = []; p = [[2, 0], [2, 0], [1, 0]]
|
d = 3; l = 7
|
l += d // 2
|
d = 3; l = 8
|
e = 225; i = 1; k = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
e = e - k[i]
|
e = 196; i = 1; k = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'failuhkqq', 'a', 'ai', 'ail', 'ailu', 'ailuh']; x = 'ailuhk'
|
b.append(x)
|
b = ['i', 'if', 'ifa', 'ifai', 'ifail', 'ifailu', 'ifailuh', 'failuhkqq', 'a', 'ai', 'ail', 'ailu', 'ailuh', 'ailuhk']; x = 'ailuhk'
|
y = 97
|
y = y - 1
|
y = 96
|
g = '07:05:45PM'
|
n = int(g[:2]) + 12
|
g = '07:05:45PM'; n = 19
|
v = 4.484155085839415e-43
|
v /= 2
|
v = 2.2420775429197073e-43
|
a = 0; m = [4, 1, 0, 1, 1, 0, 1]
|
a = sum(m)
|
a = 8; m = [4, 1, 0, 1, 1, 0, 1]
|
h = [[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]]; x = 0; y = 0
|
s = sum(h[y][x:x + 3]) + h[y + 1][x + 1] + sum(h[y + 2][x:x + 3])
|
h = [[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 = 7; x = 0; y = 0
|
n = 4; s = 4
|
t = n - s
|
n = 4; s = 4; t = 0
|
i = 7; k = 12
|
i = k + 1
|
i = 13; k = 12
|
i = 2; s = 'aeiouuoiea'; t = [1, 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]
|
t[ord(s[i]) - ord('a')] += 1
|
i = 2; s = 'aeiouuoiea'; t = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
s = 4.0; v = 2
|
s += v * (v - 1) / 2
|
s = 5.0; v = 2
|
i = 30; s = [10, 20]
|
s.append(i)
|
i = 30; s = [10, 20, 30]
|
j = ['6', '5', '8', '4', '7', '10', '9']; k = 6; u = [6, 5, 8, 4, 7, 10]
|
u.append(int(j[k]))
|
j = ['6', '5', '8', '4', '7', '10', '9']; k = 6; u = [6, 5, 8, 4, 7, 10, 9]
|
h = 21
|
h -= 1
|
h = 20
|
m = []; w = 1
|
m.append(w)
|
m = [1]; w = 1
|
c = 1.2000000000000005e-31; p = 1.2000000000000005e-30
|
p = c % 10
|
c = 1.2000000000000005e-31; p = 1.2000000000000005e-31
|
i = 4; s = '010203'
|
s = s[i:]
|
i = 4; s = '03'
|
i = 8; j = 10; q = 'q'; s = 'ifailuhkqq'
|
q = ''.join(sorted(s[i:j]))
|
i = 8; j = 10; q = 'qq'; s = 'ifailuhkqq'
|
n = 'a'
|
v += n
|
n = 'a'; v = 'MFNGBhFb34ya'
|
o = 4; w = ['UPDATE', '1', '1', '1', '23']; x = 2; y = 2; z = 2
|
x, y, z, o = tuple([int(x) for x in w[1:]])
|
o = 23; w = ['UPDATE', '1', '1', '1', '23']; x = 1; y = 1; z = 1
|
i = 0; j = 2
|
p = [i, j]
|
i = 0; j = 2; p = [0, 2]
|
i = 1; j = 0; w = [12, 5]
|
w[j] = w[i]
|
i = 1; j = 0; w = [5, 5]
|
a = ['6', 'o6', '6', '110']; c = [['1', 'o1', '1', '1'], ['2', 'o2', '2', '10'], ['3', 'o3', '3', '11'], ['4', 'o4', '4', '100'], ['5', 'o5', '5', '101']]
|
c.append(a)
|
a = ['6', 'o6', '6', '110']; c = [['1', 'o1', '1', '1'], ['2', 'o2', '2', '10'], ['3', 'o3', '3', '11'], ['4', 'o4', '4', '100'], ['5', 'o5', '5', '101'], ['6', 'o6', '6', '110']]
|
q = ['14', '28']; x = '60'
|
q.append(x)
|
q = ['14', '28', '60']; x = '60'
|
p = 1.7999999999999992e-52
|
p /= 10
|
p = 1.7999999999999992e-53
|
s = 3
|
s = s + 1
|
s = 4
|
d = {'A': 1, 'T': 0, 'C': 0, 'G': 1}; l = 2; s = 'GAAATAAA'
|
d[s[l]] += 1
|
d = {'A': 2, 'T': 0, 'C': 0, 'G': 1}; l = 2; s = 'GAAATAAA'
|
f = 100; s = 2
|
s = f
|
f = 100; s = 100
|
m = '8 1\n'; x = ['1', '1']
|
x = m.strip().split(' ')
|
m = '8 1\n'; x = ['8', '1']
|
g = 1
|
g += 1
|
g = 2
|
s = '12'
|
j = int(s)
|
j = 12; s = '12'
|
b = 1; j = 2; q = [1, 2, 2, 3, 1, 1]
|
b = q[j]
|
b = 2; j = 2; q = [1, 2, 2, 3, 1, 1]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.