start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
a = 2; b = 3; k = {(0): {1, 2}, (1): {0}, (2): {0, 3}, (3): set(), (4): set()} | k[b].add(a) | a = 2; b = 3; k = {0: {1, 2}, 1: {0}, 2: {0, 3}, 3: {2}, 4: set()} |
m = 82; p = 6 | m += p | m = 88; p = 6 |
c = '4' | c = int(c) | c = 4 |
e = -1; i = 0; j = 0; t = [[0, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] | t[i + 1][j + 1] = e | e = -1; i = 0; j = 0; t = [[0, inf, inf, inf, inf], [inf, -1, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf], [inf, inf, inf, inf, inf]] |
t = '111111111111111111' | t = t + '1' | t = '1111111111111111111' |
i = 'abd'; n = 2; x = 'ab' | x += i[n] | i = 'abd'; n = 2; x = 'abd' |
n = 1 | g = n | g = 1; n = 1 |
n = 2; q = [1] | q.append(n) | n = 2; q = [1, 2] |
i = 0; x = {'a': 1, 'b': 0}; z = 'abba' | x[z[i]] = 1 | i = 0; x = {'a': 1, 'b': 0}; z = 'abba' |
l = '55555' | l += '5' | l = '555555' |
a = 0 | a += 1 | a = 1 |
p = 1.1218930038411512e-183 | p /= 42 | p = 2.6711738186694076e-185 |
i = 11; p = [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800] | p += [p[-1] * i] | i = 11; p = [1, 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, 39916800] |
c = 2 | c -= 1 | c = 1 |
i = 0; j = 0; 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]] | r = k[i][j] + k[i][j + 1] + k[i][j + 2] + k[i + 1][j + 1] + k[i + 2][j] + k[ i + 2][j + 1] + k[i + 2][j + 2] | i = 0; j = 0; 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]]; r = 7 |
x = ['0', '3'] | j = int(x[1]) | j = 3; x = ['0', '3'] |
e = [1, 1, 8, 64]; r = 2 | e = [pow(c, r, MOD) for c in row_comb] | e = []; r = 2; w = [] |
n = {'a': 2, 'b': 2, 'c': 1, 'd': 1}; s = 'c'; y = {(2): 2} | y[n[s]] = 1 | n = {'a': 2, 'b': 2, 'c': 1, 'd': 1}; s = 'c'; y = {2: 2, 1: 1} |
i = 4, 7, 7; j = 2; s = 65 | s += i[j] ** 2 | i = (4, 7, 7); j = 2; s = 114 |
o = 45; x = 'O' | o = ord(x) | o = 79; x = 'O' |
d = 5; f = [11, 2] | f.append(d) | d = 5; f = [11, 2, 5] |
g = ' '; j = 3 | g = str(' ') * (j - 2) | g = ' '; j = 3 |
i = 1; j = 0; l = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; q = 4 | q += min(l[i][j], l[i][j + 1]) | i = 1; j = 0; l = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; q = 6 |
g = 0.018 | g /= 10 | g = 0.0018 |
v = 5; w = [5, 6, 7] | w.remove(v) | v = 5; w = [6, 7] |
r = 2; u = 1 | d = r - u | d = 1; r = 2; u = 1 |
b = 538380543; u = 1000000007 | b = b * b % u | b = 51999600; u = 1000000007 |
j = 3; n = [1, 3, 4, 2, 5, 6] | n[j - 1], n[j] = n[j], n[j - 1] | j = 3; n = [1, 3, 2, 4, 5, 6] |
i = 1; n = [0, 1, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2] | n[i] += 1 | i = 1; n = [0, 2, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 2, 1, 0, 3, 2, 1, 1, 0, 1, 0, 1, 0, 2, 2] |
d = 2; h = 2; n = 2; v = 11 | v += h * (n // d + 1) | d = 2; h = 2; n = 2; v = 15 |
b = [[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]]; f = 1; i = 0; j = 1 | f = f + b[i][j] | b = [[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]]; f = 2; i = 0; j = 1 |
j = 'm'; l = 'middle-Outz' | i = l.index(j) | i = 0; j = 'm'; l = 'middle-Outz' |
i = 2; w = 0 | w = i | i = 2; w = 2 |
a = 'Tina'; b = 37.2; l = [['Harry', 37.21], ['Berry', 37.21]] | l.append([a, b]) | a = 'Tina'; b = 37.2; l = [['Harry', 37.21], ['Berry', 37.21], ['Tina', 37.2]] |
i = {(0): 1, (2): 1, (4): 2, (6): 2}; q = {(0): 1, (8): 1, (9): 2, (2): 1}; w = 10 | q[w] = i.get(w, 0) + 1 | i = {0: 1, 2: 1, 4: 2, 6: 2}; q = {0: 1, 8: 1, 9: 2, 2: 1, 10: 1}; w = 10 |
i = 2; o = 2; p = [1, 0, 2, 6] | p[i] -= o | i = 2; o = 2; p = [1, 0, 0, 6] |
n = [95, 84, 90]; p = [73, 48, 95, 95, 33, 47, 98, 91] | p.append(n[0]) | n = [95, 84, 90]; p = [73, 48, 95, 95, 33, 47, 98, 91, 95] |
a = ['1112', '1912', '1892', '1234']; i = 1; j = 0; l = [1, 1, 1, 2] | l.append(int(a[i][j])) | a = ['1112', '1912', '1892', '1234']; i = 1; j = 0; l = [1, 1, 1, 2, 1] |
x = '3,7' | m = int(x.split(',')[1]) | m = 7; x = '3,7' |
b = [7.5, 7.7, 7.9, 8.1, 8.3]; e = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; o = 0 | w.append(b[o] * e[3][o]) | b = [7.5, 7.7, 7.9, 8.1, 8.3]; e = [[10.0, 30.0, 20.0, 40.0, 50.0], [11.0, 9.0, 5.0, 19.0, 29.0], [21.0, 9.0, 15.0, 19.0, 39.0], [91.0, 9.0, 75.0, 19.0, 89.0], [81.0, 99.0, 55.0, 59.0, 89.0]]; o = 0; w = [682.5] |
g = [[32, 62], [42, 68], [12, 98]]; i = 0 | g = {i[0]: i[1] for i in g} | g = {32: 62, 42: 68, 12: 98}; i = 0 |
l = {2, 3} | m = max(l) | l = {2, 3}; m = 3 |
j = set(); t = 139706992722928, 139707451921664; z = array([-10.0, -8.0, 4.0, 3.0, 2.0, 1.0]) | j.add(t) | j = {(139706992722928, 139707451921664)}; t = (139706992722928, 139707451921664); z = array([-10., -8., 4., 3., 2., 1.]) |
e = 'ifailuhkqq'; i = 1; j = 4; s = 'afi' | s = ''.join(sorted(e[i:j + 1])) | e = 'ifailuhkqq'; i = 1; j = 4; s = 'afil' |
a = '1'; e = '16'; f = '9'; h = '8' | a, f, h, e = [int(a), int(f), int(h), int(e)] | a = 1; e = 16; f = 9; h = 8 |
i = 1; k = 0 | k = i | i = 1; k = 1 |
b = ['i', 'l', 'u', 'h', 'k', 'q', 'q'] | b.sort() | b = ['h', 'i', 'k', 'l', 'q', 'q', 'u'] |
i = 2; t = {(3): 2} | t[i] = 1 if i not in t else t[i] + 1 | i = 2; t = {3: 2, 2: 1} |
d = 5; g = 6 | g += d | d = 5; g = 11 |
i = 28; n = 2562892 | n |= 1 << i | i = 28; n = 270998348 |
a = [[[1, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 1]], [2, 2, 3], [1, 2, 4]]; d = 4; i = 1; j = 0 | d = a[i][j] | a = [[[1, 0, 0, 0], [1, 1, 1, 0], [1, 1, 1, 1]], [2, 2, 3], [1, 2, 4]]; d = 2; i = 1; j = 0 |
j = 2; p = 1000000000; u = [1, 3, 3, 4] | u[j] = (u[j] + u[j - 1]) % p | j = 2; p = 1000000000; u = [1, 3, 6, 4] |
s = 'a9cc8c' | s = s.replace('8', 'i') | s = 'a9ccic' |
c = 'a'; d = 105 | d = ord(c) | c = 'a'; d = 97 |
i = 2; q = [2, 1, 3, 5, 4] | q[i + 1], q[i + 2] = q[i + 2], q[i + 1] | i = 2; q = [2, 1, 3, 4, 5] |
e = 2; s = 120 | s += e | e = 2; s = 122 |
i = 2; j = 98; n = [98, 74, 12] | j ^= n[i] | i = 2; j = 110; n = [98, 74, 12] |
i = 1; k = 1; x = [3, 2, 1, 4] | k = x.index(i) | i = 1; k = 2; x = [3, 2, 1, 4] |
c = [3, 4, 1, 2, 1, 3]; f = [1, 2, 3, 4, 1]; i = 4; j = 5 | i, j = len(f), len(c) | c = [3, 4, 1, 2, 1, 3]; f = [1, 2, 3, 4, 1]; i = 5; j = 6 |
b = 0; s = [1, 4] | b = s.pop() | b = 4; s = [1] |
k = 2 | p = '1' + k * '0' | k = 2; p = '100' |
k = 0; r = 1 | t += r - k | k = 0; r = 1; t = -95 |
i = 0; l = '11'; u = 11 | u = int(u) + int(l[i]) | i = 0; l = '11'; u = 12 |
k = '62 98 114 108\n'; n = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43]] | n.append(list(map(int, k.split()))) | k = '62 98 114 108\n'; n = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]] |
m = 2; y = 1 | w = m - y | m = 2; w = 1; y = 1 |
b = 5; i = 4 | b += dx[i] | b = 11; i = 4; r = [-3, -9, 0, -2, 6] |
g = 4; r = 2 | g *= r | g = 8; r = 2 |
a = 4; y = [2, 3] | y.append(a) | a = 4; y = [2, 3, 4] |
d = [True, False, True, True]; z = 1 | d[z] = True | d = [True, True, True, True]; z = 1 |
i = 2; j = 7; l = 'hkq'; s = 'ifailuhkqq' | l = ''.join(sorted(s[j:j + i + 1])) | i = 2; j = 7; l = 'kqq'; s = 'ifailuhkqq' |
h = [2, 0, 0, 0]; k = 2 | k = sum(h[2:]) | h = [2, 0, 0, 0]; k = 0 |
j = 2; x = [0, 0, 2, 2, 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] | k += x[j] | j = 2; k = 18; x = [0, 0, 2, 2, 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] |
s = ['9875', '4'] | s = s[0].strip() | s = '9875' |
b = [0, 0, 0, 0]; g = 2; j = 1 | b[g] += j | b = [0, 0, 1, 0]; g = 2; j = 1 |
r = 6; s = '3' | r += int(s) | r = 9; s = '3' |
a = 11; b = 35; q = 41 | q = a ^ b | a = 11; b = 35; q = 40 |
u = [[], [], [], [], []]; x = 2; z = 1 | u[z].append(x) | u = [[], [2], [], [], []]; x = 2; z = 1 |
h = [10, 20, 30, 40, 50]; x = 4 | h[x] += (h[x - 1] + h[0]) % 1000000007 | h = [10, 20, 30, 40, 100]; x = 4 |
a = 2; b = 10; i = 19; r = 5242904 | r += a ^ b << i | a = 2; b = 10; i = 19; r = 10485786 |
a = [[1, 1, 1, 1, 1, 0]]; i = 0; j = 5 | a[i][j] = temp | a = [[1, 1, 1, 1, 1, 12]]; i = 0; j = 5; y = 12 |
a = 1; g = 9; w = 17 | g += w - a | a = 1; g = 25; w = 17 |
f = 0.0018; n = 9.998000000000001 | n += f % 10 | f = 0.0018; n = 9.9998 |
e = 6; j = 2; l = [3, 4, 5, 7, 7, 2] | l[j + 1] = e | e = 6; j = 2; l = [3, 4, 5, 6, 7, 2] |
b = 8.0; m = 1.0; x = 4; y = 11.0 | y = m * x + b | b = 8.0; m = 1.0; x = 4; y = 12.0 |
a = 1; b = 7; c = 8 | a, b = b, c | a = 7; b = 8; c = 8 |
c = [2, 2, 1, 1] | c.append(1) | c = [2, 2, 1, 1, 1] |
i = 13; x = '1100' | x = str(bin(i))[2:] | i = 13; x = '1101' |
a = 0; w = 1 | m = a + w * w | a = 0; m = 1; w = 1 |
n = '3' | n = n + '3' | n = '33' |
i = 1; j = 1; k = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; n = 2; t = 289 | t += max(k[i][j], k[2 * n - i - 1][j], k[2 * n - i - 1][2 * n - j - 1], k[i ][2 * n - j - 1]) | i = 1; j = 1; k = [[112, 42, 83, 119], [56, 125, 56, 49], [15, 78, 101, 43], [62, 98, 114, 108]]; n = 2; t = 414 |
q = 26; x = 4 | q = q + x | q = 30; x = 4 |
d = 'a'; u = {'a': 2, 'b': 2, 'ab': 2, 'bb': 1, 'abb': 2, 'aabb': 1} | r += (u[d] - 1) * u[d] // 2 | d = 'a'; r = 0; u = {'a': 2, 'b': 2, 'ab': 2, 'bb': 1, 'abb': 2, 'aabb': 1} |
i = 1; l = ['a']; s = ['a', 'b', 'c', 'd'] | l.append(s[i]) | i = 1; l = ['a', 'b']; s = ['a', 'b', 'c', 'd'] |
a = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1]; i = 12 | a[i] = a[i] + 1 | a = [0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1]; i = 12 |
g = 1; q = 5 | g -= q | g = -4; q = 5 |
f = [-2, -3, -1, -4, -6]; i = 3; x = -1 | x = x + f[i] | f = [-2, -3, -1, -4, -6]; i = 3; x = -5 |
p = 0.1597803519999994; s = 1.0319560704 | p += s | p = 1.1917364223999993; s = 1.0319560704 |
f = [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]; i = 21 | f.append(i) | f = [1, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21]; i = 21 |
e = 4 | e += 1 | e = 5 |
i = 3; w = 'defgab'; x = 'f' | x = w[i] | i = 3; w = 'defgab'; x = 'g' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.