start stringlengths 5 368 | code stringlengths 5 143 | end stringlengths 5 527 |
|---|---|---|
m = 0; u = 1 | g.append(tuple([u, m])) | g = [(1, 0)]; m = 0; u = 1 |
m = ' ' | o = m[1] | m = ' '; o = ' ' |
c = 'C', 'K'; m = ['AC', 'AH', 'AK', 'CH'] | m.append(''.join(c)) | c = ('C', 'K'); m = ['AC', 'AH', 'AK', 'CH', 'CK'] |
n = '9'; o = '10' | n = ''.join([n, o]) | n = '910'; o = '10' |
a = [[], [2, 3], [1], [], []]; g = 1; m = 3 | a[m].append(g) | a = [[], [2, 3], [1], [1], []]; g = 1; m = 3 |
k = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; w = 'o' | k[ord(w) - ord('a')] += 1 | k = [1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0]; w = 'o' |
j = 1 | k = j | j = 1; k = 1 |
k = 13 | k = int(k / 10) | k = 1 |
n = 2 | t[n] = 1 | n = 2; t = {2: 1} |
c = 4; r = 4 | l = int(min(r, c) // 2) | c = 4; l = 2; r = 4 |
a = 2; b = 10; i = 86; k = 773712524553362671811952798 | k += a ^ b << i | a = 2; b = 10; i = 86; k = 1547425049106725343623905440 |
c = 0; m = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 'y']]; r = 0 | n = n + m[r][c] | c = 0; m = [['h', 'a', 'e'], ['a', 'n', 'd'], ['v', 'i', 'a'], ['e', 'c', 'y']]; n = 'AajQYedlh'; r = 0 |
a = 'ababaa '; d = ['ababaa ', 'babaa ', 'abaa ', 'baa ']; i = 4 | d.append(a[i:]) | a = 'ababaa '; d = ['ababaa ', 'babaa ', 'abaa ', 'baa ', 'aa ']; i = 4 |
i = 1; y = {(0): [], (1): [1, 7, 4], (2): [2]} | v += len(y[i]) | i = 1; v = -10; y = {0: [], 1: [1, 7, 4], 2: [2]} |
i = 10; s = 7 | s = i | i = 10; s = 10 |
c = 6; g = 10; m = 5 | g = m + c | c = 6; g = 11; m = 5 |
i = 1; p = 6; s = [6, 5, 2] | p = p + (x + 1) * s[i] | i = 1; p = 271; s = [6, 5, 2]; x = 52 |
i = 1; j = [2, 0, 0, 0]; v = 2 | v += j[i - 1] | i = 1; j = [2, 0, 0, 0]; v = 4 |
g = 11; n = 3 | g = 4 * n | g = 12; n = 3 |
k = 0; w = [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, 0, 0, 0, 0, 0] | w[k] = str(x) | k = 0; w = ['-58', 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, 0, 0, 0, 0]; x = -58 |
i = 0; j = 1; r = [0, 0, 0] | r[i] = j + 1 | i = 0; j = 1; r = [2, 0, 0] |
h = 3; k = 8 | h = k // 2 | h = 4; k = 8 |
c = [5, 8, 14]; i = 1 | b = c[i] - c[i - 1] | b = 3; c = [5, 8, 14]; i = 1 |
a = 2; b = [7]; x = 0; y = [[5], [7]] | b = y[(x ^ lastAns) % a] | a = 2; b = [7]; e = -41; x = 0; y = [[5], [7]] |
b = [999] | t = ''.join(list(map(str, b))) | b = [999]; t = '999' |
y = 6 | y = y + 1 | y = 7 |
i = ['came', 'from', 'the', 'moon', 'he', 'went', 'to', 'went', 'to', 'the', 'drawing', 'room', '']; j = 0; y = ['drawing', 'room', ''] | y = i[j:j + 3] | i = ['came', 'from', 'the', 'moon', 'he', 'went', 'to', 'went', 'to', 'the', 'drawing', 'room', '']; j = 0; y = ['came', 'from', 'the'] |
g = 0, 1; o = 1, 1 | o = o[0] + g[0], o[1] + g[1] | g = (0, 1); o = (1, 2) |
a = {(2): 5, (3): 1}; f = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; w = 'g' | a[f[w]] += 1 | a = {2: 6, 3: 1}; f = {'a': 2, 'b': 2, 'c': 2, 'd': 2, 'e': 3, 'f': 2, 'g': 2, 'h': 2}; w = 'g' |
a = [-3, 1, 17, 68, 71] | s = abs(a[0] - a[1]) | a = [-3, 1, 17, 68, 71]; s = 4 |
c = 7; u = 9 | u += mult * c | c = 7; k = -35; u = -236 |
x = '0' | s.append(int(x)) | s = [0]; x = '0' |
i = 2; j = 99; s = '999100010001' | j = int(s[:i + 1]) | i = 2; j = 999; s = '999100010001' |
j = 'e'; z = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 1, 'f': 2, 'g': 2, 'h': 2} | z[j] += 1 | j = 'e'; z = {'a': 1, 'b': 1, 'c': 1, 'd': 1, 'e': 2, 'f': 2, 'g': 2, 'h': 2} |
x = 64 | x *= 2 | x = 128 |
i = 0; j = 3; x = 'aba'; y = ['a', 'ab'] | y.append(x[i:j]) | i = 0; j = 3; x = 'aba'; y = ['a', 'ab', 'aba'] |
h = 3; i = 2; t = [1, 1, 0] | t[i % h] += 1 | h = 3; i = 2; t = [1, 1, 1] |
n = 210; p = 11 | n *= p | n = 2310; p = 11 |
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 0; r = 37 | r += abs(a[i][j] - a[i - 1][j]) | a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 2; j = 0; r = 38 |
i = 2; s = 74 | s += i | i = 2; s = 76 |
j = ['10\n', '1 42\n', '2\n', '1 14\n', '3\n', '1 28\n', '3\n', '1 78\n', '2\n', '2\n', '\n', '\n', '\n'] | x = j[0] | j = ['10\n', '1 42\n', '2\n', '1 14\n', '3\n', '1 28\n', '3\n', '1 78\n', '2\n', '2\n', '\n', '\n', '\n']; x = '10\n' |
n = 10; y = 1 | y = n | n = 10; y = 10 |
a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 1; j = 2; t = 34 | t += abs(a[i][j] - a[i][j - 1]) | a = [[1, 3, 4], [2, 2, 3], [1, 2, 4]]; i = 1; j = 2; t = 35 |
z = [[1]] | q = len(z[0]) | q = 1; z = [[1]] |
a = 3; b = 999; e = 2; g = [(0, 0), (999, 0), (1000, 0), (1001, 0), (3, 999)]; o = 4 | a, b = g[o + 1 - e] | a = 1001; b = 0; e = 2; g = [(0, 0), (999, 0), (1000, 0), (1001, 0), (3, 999)]; o = 4 |
a = [2, 2, 4, 3]; i = 3; u = {(2): 0, (4): 2} | u[a[i]] = i | a = [2, 2, 4, 3]; i = 3; u = {2: 0, 4: 2, 3: 3} |
l = [1, 1, 1, 2, 3, 5] | l.sort(reverse=True) | l = [5, 3, 2, 1, 1, 1] |
s = [3, 2, 1, 1, 1] | del s[0] | s = [2, 1, 1, 1] |
h = 'a'; m = {'a': {}} | m = m[h] | h = 'a'; m = {} |
q = 'AAAA' | n = len(q) | n = 4; q = 'AAAA' |
q = {(1): 1}; x = 1 | q[x] += 1 | q = {1: 2}; x = 1 |
i = 1; s = ['h', 'k', 'd', 'c'] | s[i:] = reversed(s[i:]) | i = 1; s = ['h', 'c', 'd', 'k'] |
e = [3, 4, 5, 6, 7, 2]; j = 5 | e[j - 1], e[j] = e[j], e[j - 1] | e = [3, 4, 5, 6, 2, 7]; j = 5 |
x = ['{', '[', '(', ')', ']', '}'] | x.reverse() | x = ['}', ']', ')', '(', '[', '{'] |
y = {'3', '1', '2'}; z = '6' | y.add(z) | y = {'3', '1', '2', '6'}; z = '6' |
h = 4 | h += 1 | h = 5 |
c = 'AAAA'; i = 0 | y = c[i] | c = 'AAAA'; i = 0; y = 'A' |
b = '14'; i = 0; j = 0 | j = len(b) - i - 1 | b = '14'; i = 0; j = 1 |
b = '0'; s = '100000000000' | s += b | b = '0'; s = '1000000000000' |
m = 5702887; z = 3524578 | z = m | m = 5702887; z = 5702887 |
y = ['3', '7'] | f = int(y[0]) | f = 3; y = ['3', '7'] |
l = '^[0-9]{6}$'; p = '^[0-9]{6}$' | l = p | l = '^[0-9]{6}$'; p = '^[0-9]{6}$' |
p = 3.0; t = 3.0 | p = t | p = 3.0; t = 3.0 |
g = '2 7' | g = g.split(' ') | g = ['2', '7'] |
q = deque([]); s = 0 | q.append(s) | q = deque([0]); s = 0 |
l = 1; v = [0] | l = v.pop() | l = 0; v = [] |
k = 2 | i = k | i = 2; k = 2 |
a = [2, 1, 1, 1]; b = [2, 1, 1, 1]; d = 1000000007; p = [5, 3, 3, 0] | p[3] = (a[2] * b[1] + a[3] * b[3]) % d | a = [2, 1, 1, 1]; b = [2, 1, 1, 1]; d = 1000000007; p = [5, 3, 3, 2] |
f = 7; i = 5; p = [6, 5, 8, 4, 7, 10, 9] | f = p[i] | f = 10; i = 5; p = [6, 5, 8, 4, 7, 10, 9] |
s = ['a', 'b'] | n = len(s) | n = 2; s = ['a', 'b'] |
a = 1; e = [[1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0]]; j = 1; y = 0 | e[y + 1][a] += e[y + 1][a - j] | a = 1; e = [[1, 0, 0, 0, 0], [1, 1, 0, 0, 0], [1, 0, 0, 0, 0], [1, 0, 0, 0, 0]]; j = 1; y = 0 |
c = 0; p = 1 | p, c = 0, 0 | c = 0; p = 0 |
i = 33; l = [1, 1, 2, 6, 24, 120, 720, 459042011, 394134213, 35757887, 36978716, 109361473, 390205642, 486580460]; s = 1000000007 | l.append(l[-1] * i % s) | i = 33; l = [1, 1, 2, 6, 24, 120, 720, 459042011, 394134213, 35757887, 36978716, 109361473, 390205642, 486580460, 57155068]; s = 1000000007 |
l = 'AABBC_C'; v = 'AABBC' | v = l.replace('_', '') | l = 'AABBC_C'; v = 'AABBCC' |
e = 4.333333333333333 | e = round(e, 2) | e = 4.33 |
c = {(1, 2), (2, 3)}; m = 1; n = 3 | m, n = c.pop() | c = {(2, 3)}; m = 1; n = 2 |
c = 'a'; n = 'abc'; t = 0 | t = n.count(c) | c = 'a'; n = 'abc'; t = 1 |
i = 6; t = 'ifailuhkqq'; u = 4296015872; x = 3 | u += (x + 1) ** (ord(t[i + x]) - ord('a')) | i = 6; t = 'ifailuhkqq'; u = 8590983168; x = 3 |
n = 6 | p = n & 1 | n = 6; p = 0 |
z = 'HACK' | z = sorted(z) | z = ['A', 'C', 'H', 'K'] |
t = 9; x = [12] | t = min(x) | t = 12; x = [12] |
n = 1.2000000000000002e-07; s = 3.3333331999999998 | s += n % 10 | n = 1.2000000000000002e-07; s = 3.33333332 |
j = [1, 1, 2, 3, 5, 8, 13, 21, 34, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269]; n = 1000000007 | j.append((j[-1] + j[-2]) % n) | j = [1, 1, 2, 3, 5, 8, 13, 21, 34, 28657, 46368, 75025, 121393, 196418, 317811, 514229, 832040, 1346269, 2178309]; n = 1000000007 |
a = [999, 1, 1, 1, 0]; i = 2; s = [0, 0, 0, 1, 0] | s[i] = s[i + 1] + a[i] | a = [999, 1, 1, 1, 0]; i = 2; s = [0, 0, 2, 1, 0] |
i = 3; j = 7; s = 'ifailuhkqq'; v = 'ilu' | v = ''.join(sorted(s[i:j])) | i = 3; j = 7; s = 'ifailuhkqq'; v = 'hilu' |
k = 5 | n.append(k) | k = 5; n = [5] |
i = 19; t = {128, 1, 2, 256, 4, 512, 1024, 2048, 8, 4096, 32768, 131072, 262144, 8192, 16, 16384, 32, 64, 65536} | t.add(2 ** i) | i = 19; t = {128, 1, 2, 256, 4, 512, 1024, 2048, 8, 4096, 32768, 131072, 262144, 524288, 8192, 16, 16384, 32, 64, 65536} |
c = 2; e = {(1): 1, (0): 0, (2): 1}; n = 1 | e[n] = c | c = 2; e = {1: 2, 0: 0, 2: 1}; n = 1 |
i = 29; w = 2 | i += w | i = 31; w = 2 |
i = 5; r = [2, 3, 5, 2, 3, 4] | r.append(i) | i = 5; r = [2, 3, 5, 2, 3, 4, 5] |
i = 1; j = 5; o = [[0, 0, 0, 0, 0, 0], [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, 0, 0, 0, 0, 0]] | o[i][j] = o[i - 1][j - 1] + 1 | i = 1; j = 5; o = [[0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 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]] |
l = [4, 4, 4]; w = 3 | w = l[0] | l = [4, 4, 4]; w = 4 |
f = 'd'; j = {'c': 1} | j[f] = j.get(f, 0) + 1 | f = 'd'; j = {'c': 1, 'd': 1} |
a = ['z', '{', '{', '[', '[']; u = '(' | u = a[len(a) - 1] | a = ['z', '{', '{', '[', '[']; u = '[' |
v = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1, 'bcd': 1, 'c': 1}; x = 'cd' | v[x] = 1 | v = {'a': 1, 'ab': 1, 'abc': 1, 'abcd': 1, 'b': 1, 'bc': 1, 'bcd': 1, 'c': 1, 'cd': 1}; x = 'cd' |
b = 1; i = 1; r = [1, 2, 3, 4] | b += r[i] | b = 3; i = 1; r = [1, 2, 3, 4] |
f = 'abcdde\n' | y = set(f) | f = 'abcdde\n'; y = {'c', '\n', 'd', 'b', 'a', 'e'} |
a = 'cde' | b = sorted(set(a)) | a = 'cde'; b = ['c', 'd', 'e'] |
e = [2, 5, 3, 6]; i = 2; j = 0; l = [[1, 1, 1, 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]]; x = 0 | x = l[i - e[j]][j] if i - e[j] >= 0 else 0 | e = [2, 5, 3, 6]; i = 2; j = 0; l = [[1, 1, 1, 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]]; x = 1 |
g = 1; q = '116'; x = 1 | g = g + int(q[x]) | g = 2; q = '116'; x = 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.