start
stringlengths 5
368
| code
stringlengths 5
143
| end
stringlengths 5
527
|
---|---|---|
i = 2; s = 16; u = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
|
s = s + u[i][i]
|
i = 2; s = 4; u = [[11, 2, 4], [4, 5, 6], [10, 8, -12]]
|
g = 1; q = 6
|
g = q
|
g = 6; q = 6
|
d = 0; n = 1.0
|
j = 2 ** n - 1 - d % 2
|
d = 0; j = 1.0; n = 1.0
|
v = [3, 7, 1]
|
f = min(v)
|
f = 1; v = [3, 7, 1]
|
k = '111'
|
k += '1'
|
k = '1111'
|
c = [0, 1, 2, 1, 2, 1, 2, 1, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; i = 4; p = 4
|
p += c[i]
|
c = [0, 1, 2, 1, 2, 1, 2, 1, 2, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; i = 4; p = 6
|
o = 0
|
r = o
|
o = 0; r = 0
|
t = '111'; u = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937', '3084193741082938']
|
u.append(t)
|
t = '111'; u = ['1', '2', '100', '12303479849857341718340192371', '3084193741082937', '3084193741082938', '111']
|
j = 0
|
j += 1
|
j = 1
|
g = 1; w = 0
|
w = g
|
g = 1; w = 1
|
j = '200\n'; x = [1, 2, 3, 4, 10, 20, 30, 40, 100]
|
x.append(int(j))
|
j = '200\n'; x = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]
|
i = 1; n = 0; z = ['h', 'k', 'd', 'c']
|
z[i:] = z[len(z) - 1:n:-1]
|
i = 1; n = 0; z = ['h', 'c', 'd', 'k']
|
b = [[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]]; e = [2, 5, 3, 6]; i = 7; j = 3; x = 1
|
x = b[i - e[j]][j] if i - e[j] >= 0 else 0
|
b = [[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]]; e = [2, 5, 3, 6]; i = 7; j = 3; x = 0
|
d = 4; n = [3, 2, 1, 3]
|
d = max(n[len(n) - 1], n[0])
|
d = 3; n = [3, 2, 1, 3]
|
b = 4
|
b *= 2
|
b = 8
|
m = 0; z = [5, 3, 2]
|
r = z[m + 1:].index(max(z[m + 1:]))
|
m = 0; r = 0; z = [5, 3, 2]
|
b = [[0, 1], [1], [2]]; h = [2, 0, 2]; k = [3, 1]; m = 0
|
b[h[k[0] - 1]].append(m)
|
b = [[0, 1], [1], [2, 0]]; h = [2, 0, 2]; k = [3, 1]; m = 0
|
h = [1, 2]; k = 3
|
k = max(h)
|
h = [1, 2]; k = 2
|
t = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1]; x = 2; y = 3
|
t.append(abs(x - y))
|
t = [1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1]; x = 2; y = 3
|
a = 58; n = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28, 46, 45, 44, 35, 34, 33, 32, 39, 38, 37, 36, 59]
|
n += [a]
|
a = 58; n = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28, 46, 45, 44, 35, 34, 33, 32, 39, 38, 37, 36, 59, 58]
|
b = [0, 0]; i = 0; k = 1; t = 1
|
b[i] = t * k + (i % k + 1)
|
b = [2, 0]; i = 0; k = 1; t = 1
|
l = 'h'; q = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1}
|
q[l] = 1
|
l = 'h'; q = {'i': 2, 'f': 1, 'a': 1, 'l': 1, 'u': 1, 'h': 1}
|
j = 1; o = [0, 1, 0]; s = [0, 1, 1]
|
o[j + 1] = s[j] + 1
|
j = 1; o = [0, 1, 2]; s = [0, 1, 1]
|
e = 0.3010299956639812; k = 11; p = 0.7092699609758308
|
p = k * e % 1
|
e = 0.3010299956639812; k = 11; p = 0.31132995230379334
|
i = 0; j = 3; r = [102, 105]; s = 'ifailuhkqq'
|
r = [ord(x) for x in s[i:i + j]]
|
i = 0; j = 3; r = [105, 102, 97]; s = 'ifailuhkqq'
|
x = [(2, 0), (2, 1), (10000000, -1), (10000000, -1)]
|
a, b, c = x[0][1], x[1][1], x[2][1]
|
a = 0; b = 1; c = -1; x = [(2, 0), (2, 1), (10000000, -1), (10000000, -1)]
|
c = 2; n = 10
|
v = n / c
|
c = 2; n = 10; v = 5.0
|
f = 1
|
u += str(f + 1) + ' '
|
f = 1; u = 'oBqskzr3Gu2 '
|
k = 3; o = 1; s = 21; x = [9, 7, 5, 3, 1]
|
s += x[k] * (o + 1)
|
k = 3; o = 1; s = 27; x = [9, 7, 5, 3, 1]
|
d = 1; k = 4; x = 14
|
x -= k - d + 1
|
d = 1; k = 4; x = 10
|
h = 'hACKERrANK.COM PRESENTS "pYTHONI'; i = 's'
|
h = h + i.upper()
|
h = 'hACKERrANK.COM PRESENTS "pYTHONIS'; i = 's'
|
q = 3; y = [3, 4]
|
q = y[1]
|
q = 4; y = [3, 4]
|
i = 'd'; p = 'abc'
|
p += i
|
i = 'd'; p = 'abcd'
|
b = '1'; s = '111111'
|
s += b
|
b = '1'; s = '1111111'
|
a = 0; t = 2
|
a += t * (t - 1)
|
a = 2; t = 2
|
d = {(1): 4, (2): 4, (3): 4, (6): 3, (5): 4, (4): 4}; e = 6
|
d[e] += 1
|
d = {1: 4, 2: 4, 3: 4, 6: 4, 5: 4, 4: 4}; e = 6
|
i = 1; k = 3; u = [{1, 2, 3}, {1, 2, 3}, {3}]
|
u[k - 1] = u[k - 1].union(u[i])
|
i = 1; k = 3; u = [{1, 2, 3}, {1, 2, 3}, {1, 2, 3}]
|
x = 5
|
x //= 2
|
x = 2
|
j = 5; t = [1, 3, 4, 5, 6, 2]
|
t[j] = t[j - 1]
|
j = 5; t = [1, 3, 4, 5, 6, 6]
|
d = 3
|
m = d
|
d = 3; m = 3
|
i = 3; q = 3
|
q ^= i
|
i = 3; q = 0
|
b = 6; j = [(2, 3), (-1, 4), (5, -1), (6, -1), (7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)]; l = 6; r = -1
|
l, r = j[b - 1]
|
b = 6; j = [(2, 3), (-1, 4), (5, -1), (6, -1), (7, 8), (-1, 9), (-1, -1), (10, 11), (-1, -1), (-1, -1), (-1, -1)]; l = -1; r = 9
|
c = 'i'; d = 111
|
d = ord(c)
|
c = 'i'; d = 105
|
a = [5, 2]
|
j = a[0]
|
a = [5, 2]; j = 5
|
c = 5; g = 4; h = [1, 2, 3, 4, 5]; n = 1
|
c = g * h[n]
|
c = 8; g = 4; h = [1, 2, 3, 4, 5]; n = 1
|
b = -1572
|
b *= 2
|
b = -3144
|
b = ')'; p = ['}', '}', ']', ']']
|
b = p.pop()
|
b = ']'; p = ['}', '}', ']']
|
s = 'kq'; x = {'fi': 1, 'af': 1, 'ai': 1, 'il': 1, 'lu': 1, 'hu': 1, 'hk': 1}
|
x[s] = 1
|
s = 'kq'; x = {'fi': 1, 'af': 1, 'ai': 1, 'il': 1, 'lu': 1, 'hu': 1, 'hk': 1, 'kq': 1}
|
i = 5
|
i += 3
|
i = 8
|
j = 2.8421709430404007e-13; u = 1.4210854715202004e-13
|
j = u % 2
|
j = 1.4210854715202004e-13; u = 1.4210854715202004e-13
|
h = [5, 2, 8]; i = 0; j = 2
|
h[i] = h[j]
|
h = [8, 2, 8]; i = 0; j = 2
|
b = 4; g = 129
|
g += b * b
|
b = 4; g = 145
|
j = 2; k = [69440.0, 70713.0, 76528.0]; u = [70.0, 70.0, 78.0]
|
k[j] += u[j] * u[j]
|
j = 2; k = [69440.0, 70713.0, 82612.0]; u = [70.0, 70.0, 78.0]
|
a = 6; n = [0, 7]
|
n += [a]
|
a = 6; n = [0, 7, 6]
|
h = [5, 8, 14]; i = 2; o = 1.0
|
o = h[i] - h[i - 1]
|
h = [5, 8, 14]; i = 2; o = 6
|
u = [2, 2, 3, 7]
|
q = min(u)
|
q = 2; u = [2, 2, 3, 7]
|
n = 1
|
n += 1
|
n = 2
|
i = 1; j = 1; k = 1; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0]]
|
o.append([i, j, k])
|
i = 1; j = 1; k = 1; o = [[0, 0, 0], [0, 0, 1], [0, 1, 0], [1, 0, 0], [1, 1, 1]]
|
k = 'abc'; r = []
|
r.append((1, len(k)))
|
k = 'abc'; r = [(1, 3)]
|
g = 0; h = 11; x = [2]
|
h += (g + 1) * x.pop(0)
|
g = 0; h = 13; x = []
|
a = 0
|
g.add(a)
|
a = 0; g = {0}
|
q = deque(['42'])
|
q.popleft()
|
q = deque([])
|
n = 5
|
p = 8 * [2 * n]
|
n = 5; p = [10, 10, 10, 10, 10, 10, 10, 10]
|
s = [1, 1, 2, 3, 5, 8, 13, 701408733, 134903163, 836311896, 971215059, 807526948, 778742000, 586268941]; x = 1000000007
|
s.append((s[-1] + s[-2]) % x)
|
s = [1, 1, 2, 3, 5, 8, 13, 701408733, 134903163, 836311896, 971215059, 807526948, 778742000, 586268941, 365010934]; x = 1000000007
|
h = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 13; o = 'r'
|
o = h[i - 1]
|
h = ['c', 'd', 'e', 'f', 'g', 'h', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w']; i = 13; o = 's'
|
a = [2, 3, 4, 4, 5, 6]; b = ['', '', '']; i = 2; j = 3; k = 2
|
b[i] = a[j] // k
|
a = [2, 3, 4, 4, 5, 6]; b = ['', '', 2]; i = 2; j = 3; k = 2
|
i = 2; l = [0, 1, 2, 3, 3, 5, 6, 7, 8, 999992, 999993, 999994, 999995, 999996, 999997, 999998, 999999, 1000000]; n = 3
|
l[n * i] = min((l[n] + 1, l[n * i]))
|
i = 2; l = [0, 1, 2, 3, 3, 5, 4, 7, 8, 999992, 999993, 999994, 999995, 999996, 999997, 999998, 999999, 1000000]; n = 3
|
a = 2; b = 10; i = 6; s = 638
|
s += a ^ b << i
|
a = 2; b = 10; i = 6; s = 1280
|
g = {'D': 2, 'F': 1, 'Q': 2}; i = 'Q'
|
g[i] += 1
|
g = {'D': 2, 'F': 1, 'Q': 3}; i = 'Q'
|
p = 1
|
u = p, -1, -1
|
p = 1; u = (1, -1, -1)
|
i = 10; l = 12; m = False
|
i = (i + 1, l)[m]
|
i = 11; l = 12; m = False
|
k = 16
|
k = int(k / 10)
|
k = 1
|
d = 22
|
d += 1
|
d = 23
|
f = '(?<=\\s)(&&|\\|\\|)(?=\\s)'; p = '(?<=\\s)(&&|\\|\\|)(?=\\s)'
|
f = p
|
f = '(?<=\\s)(&&|\\|\\|)(?=\\s)'; p = '(?<=\\s)(&&|\\|\\|)(?=\\s)'
|
i = 0; j = 6; k = 2
|
x += (int(i / k) + 1) * j
|
i = 0; j = 6; k = 2; x = -34
|
r = '7.00'; s = 7.0
|
r = r + ' + %.2f' % s + 'i'
|
r = '7.00 + 7.00i'; s = 7.0
|
r = 2
|
d[r] = []
|
d = {2: []}; r = 2
|
d = 9; h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; j = 3; p = 2
|
d = d + (h[j] - h[p])
|
d = 10; h = [1, 2, 3, 4, 10, 20, 30, 40, 100, 200]; j = 3; p = 2
|
n = 7
|
n = n // 10
|
n = 0
|
i = 0; t = [0, 0, 0, 0]
|
t[i] = '-'
|
i = 0; t = ['-', 0, 0, 0]
|
a = [2, 1, 1, 3]; y = 2
|
y = a.pop()
|
a = [2, 1, 1]; y = 3
|
a = 62; u = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28, 34, 33, 32, 39, 38, 37, 36, 59, 58, 57, 56, 63]
|
u += [a]
|
a = 62; u = [0, 7, 6, 5, 4, 27, 26, 25, 24, 31, 30, 29, 28, 34, 33, 32, 39, 38, 37, 36, 59, 58, 57, 56, 63, 62]
|
f = 0
|
f += 1
|
f = 1
|
a = ['b', 'c']; e = 'abcd'; j = 1; k = 3
|
a = list(e[j:k + 1])
|
a = ['b', 'c', 'd']; e = 'abcd'; j = 1; k = 3
|
i = 0; k = [0, 0, 1, 2, 3]; x = 4
|
x = k[i]
|
i = 0; k = [0, 0, 1, 2, 3]; x = 0
|
i = 2; l = [1]
|
l.append(i)
|
i = 2; l = [1, 2]
|
e = [1, 5, 9, 10]
|
e.pop()
|
e = [1, 5, 9]
|
l = [[2, 2, 3], [3, 1, 4], [4, 4, 4]]
|
h = l[0][0]
|
h = 2; l = [[2, 2, 3], [3, 1, 4], [4, 4, 4]]
|
g = '9'; i = 4; s = '99100'
|
g = s[0:i]
|
g = '9910'; i = 4; s = '99100'
|
r = 5; u = 0
|
u, r = r, u
|
r = 0; u = 5
|
k = [[1, 2, 3, -1, -2], [-5, -8, -1, 2, -150], [1, 2, 3, -250, 100]]; y = [1, 1, 1, 1, 20]
|
k.append(y)
|
k = [[1, 2, 3, -1, -2], [-5, -8, -1, 2, -150], [1, 2, 3, -250, 100], [1, 1, 1, 1, 20]]; y = [1, 1, 1, 1, 20]
|
d = 25; i = 0; l = 1.7320508075688772
|
l = pow(d - i * i, 0.5)
|
d = 25; i = 0; l = 5.0
|
d = {'a', 'ba', 'ab', 'b', 'aa'}; e = 'aba'
|
d.add(e)
|
d = {'ba', 'aa', 'b', 'a', 'ab', 'aba'}; e = 'aba'
|
l = 832040; p = 514229
|
p = l
|
l = 832040; p = 832040
|
m = 2
|
m -= 1
|
m = 1
|
m = 97; w = [97]
|
m = w[-1]
|
m = 97; w = [97]
|
m = 2; u = ['4']
|
m = int(u[0])
|
m = 4; u = ['4']
|
i = 's'; n = 'hACKERrANK.COM PRESENT'
|
n = n + i.upper()
|
i = 's'; n = 'hACKERrANK.COM PRESENTS'
|
a = [2, 24]; q = []
|
q.append(a)
|
a = [2, 24]; q = [[2, 24]]
|
i = 3; j = 0
|
j = i
|
i = 3; j = 3
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.