messages listlengths 1 1 | ground_truth stringlengths 88 726k | dataset stringclasses 2
values |
|---|---|---|
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nDrazil is playing a math game wi... | [{"type": "stdin_stdout", "input": "15\n989898989898989\n", "output": "777777777777777333333333333333322222222222222222222222222222\n"}, {"type": "stdin_stdout", "input": "15\n999999999999990\n", "output": "77777777777777333333333333333333333333333322222222222222\n"}, {"type": "stdin_stdout", "input": "15\n997953296764... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe famous global economic crisi... | [{"type": "stdin_stdout", "input": "10 10\n###..#.#.#\n#....####.\n##1###.#.#\n#.11######\n##11#####.\n..#####..#\n####...#.3\n.#.#..2223\n#####..#33\n#.########\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "10 10\n##.#..#.#2\n...###....\n#..#....##\n.....#....\n.#........\n.....#####\n...#..#...\n....###..... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nHDD hard drives group data by se... | [{"type": "stdin_stdout", "input": "100\n11 9 35 34 51 74 16 67 26 21 14 80 84 79 7 61 28 3 53 43 42 5 56 36 69 30 22 88 1 27 65 91 46 31 59 50 17 96 25 18 64 55 78 2 63 24 95 48 93 13 38 76 89 94 15 90 45 81 52 87 83 73 44 49 23 82 85 75 86 33 47 19 58 97 37 20 40 10 92 4 6 68 77 54 71 12 62 60 100 39 41 99 72 29 57 8... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAlice and Bob are playing a game... | [{"type": "stdin_stdout", "input": "100\n591 417 888 251 792 847 685 3 182 461 102 348 555 956 771 901 712 878 580 631 342 333 285 899 525 725 537 718 929 653 84 788 104 355 624 803 253 853 201 995 536 184 65 205 540 652 549 777 248 405 677 950 431 580 600 846 328 429 134 983 526 103 500 963 400 23 276 704 570 757 410 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFor a sequence a of n integers b... | [{"type": "stdin_stdout", "input": "1000000 1000000\n", "output": "247171672\n"}, {"type": "stdin_stdout", "input": "500 500\n", "output": "383255233\n"}, {"type": "stdin_stdout", "input": "1000000 1\n", "output": "1000001\n"}, {"type": "stdin_stdout", "input": "1 1000000\n", "output": "2000000\n"}, {"type": "stdin_std... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nKatya studies in a fifth grade. ... | [{"type": "stdin_stdout", "input": "1471603981\n", "output": "1082809138447524180 1082809138447524181\n"}, {"type": "stdin_stdout", "input": "1593985157\n", "output": "1270394340368157324 1270394340368157325\n"}, {"type": "stdin_stdout", "input": "1253161456\n", "output": "392603408701009983 392603408701009985\n"}, {"t... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nMike has always been thinking ab... | [{"type": "stdin_stdout", "input": "100\n1 1 1 1 1 1 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 7 7 7 7 7 7 7 7 8 8 8 8 8 8 8 9 9 9 9 9 9 10 10 10 10 10 10 10 10 10 10 10 10 10\n10 10 10 10 10 10 10 10 10 10 10 10 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIvan is developing his own compu... | [{"type": "stdin_stdout", "input": "10\n2\n2\n3\n4\n5\n3\n11\n8\n9\n10\n", "output": "1\n1\n2\n3\n4\n2\n13\n8\n10\n12\n"}, {"type": "stdin_stdout", "input": "10\n1\n2\n3\n4\n5\n6\n7\n8\n9\n10\n", "output": "0\n1\n2\n3\n4\n6\n7\n8\n10\n12\n"}, {"type": "stdin_stdout", "input": "10\n1\n2\n3\n4\n5\n3\n7\n8\n9\n10\n", "out... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given n Γ m table. Each ... | [{"type": "stdin_stdout", "input": "5 50\n1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\n1 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 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\n1 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 1 1 1 1 1 1 1 1 1 1 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nProgrammer Vasya is studying a n... | [{"type": "stdin_stdout", "input": "10\ntypedef &void**** youdyfpinzk\ntypeof &youdyfpinzk***\ntypedef &&&&youdyfpinzk****** nfbsgpjzhxzskmxc\ntypeof nfbsgpjzhxzskmxc***\ntypedef &&&void*** puerqioirikxej\ntypeof &puerqioirikxej********\ntypedef &puerqioirikxej******** xzgzsamjdufuyxz\ntypeof &xzgzsamjdufuyxz******\nty... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nConsider a rooted tree. A rooted... | [{"type": "stdin_stdout", "input": "20\n1\n1\n1\n1\n2\n2\n2\n3\n3\n3\n4\n4\n4\n5\n5\n5\n1\n1\n1\n", "output": "Yes\n"}, {"type": "stdin_stdout", "input": "20\n1\n1\n1\n1\n4\n2\n2\n3\n3\n3\n4\n4\n4\n10\n5\n5\n1\n1\n1\n", "output": "NO\n"}, {"type": "stdin_stdout", "input": "20\n1\n1\n1\n1\n4\n2\n2\n3\n3\n3\n4\n4\n4\n5\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nTwo neighboring kingdoms decided... | [{"type": "stdin_stdout", "input": "100\nRUURUURRUURUUUUURRUUURRRRUURRURRURRRRUUUUUURRUURRRRURUUURUURURRRRRURUURRUURUURRUUURUUUUUURRUUUURUUUR\n", "output": "3\n"}, {"type": "stdin_stdout", "input": "100\nRUUURUUUURRUUUUUURUUURRUURUURRUURURRRRRURUURUUURURRRRUURRUUUUUURRRRURRURRUURRRRUUURRUUUUURUURRUURUUR\n", "output": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a following proces... | [{"type": "stdin_stdout", "input": "1000 10\n999 999 998 34 454 546 343 35 34 1000\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "1000 10\n999 999 998 34 454 546 343 69 34 1000\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "1000 10\n999 999 998 34 454 546 343 67 34 1000\n", "output": "0\n"}, {"type"... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarp lives on a coordinate l... | [{"type": "stdin_stdout", "input": "100 50 1\n1 2\n3 4\n5 6\n7 8\n9 10\n11 12\n13 14\n15 16\n17 18\n19 20\n21 22\n23 24\n25 26\n27 28\n29 30\n31 32\n33 34\n35 36\n37 38\n39 40\n41 42\n43 44\n45 46\n47 48\n49 50\n51 52\n53 54\n55 56\n57 58\n59 60\n61 62\n63 64\n65 66\n67 68\n69 70\n71 72\n73 74\n75 76\n77 78\n79 80\n81 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe Monk learned about priority ... | [{"type": "stdin_stdout", "input": "10\n3 10 9 1 27 2 12 18 3 5", "output": "-1\n-1\n270\n270\n2430\n2430\n3240\n5832\n5832\n5832\n"}, {"type": "stdin_stdout", "input": "10\n2 8 9 1 27 2 10 13 3 5", "output": "-1\n-1\n144\n144\n1944\n1944\n2430\n3510\n3510\n3510\n"}, {"type": "stdin_stdout", "input": "10\n3 8 9 1 27 2 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nRecently in a class of Computer ... | [{"type": "stdin_stdout", "input": "10\n<=>?@ABCDE", "output": "1334961\n"}, {"type": "stdin_stdout", "input": "10\nEDCBA@?>=<", "output": "1334961\n"}, {"type": "stdin_stdout", "input": "10\nEDBBA@?>=<", "output": "1334961\n"}, {"type": "stdin_stdout", "input": "10\n<=>?@ABBDE", "output": "1334961\n"}, {"type": "stdin... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have N logs of lengths A_1,A_... | [{"type": "stdin_stdout", "input": "10 10\n158260522 877914575 1013896555 24979445 861648772 623690081 433933447 476190629 262703497 374010847", "output": "337965519\n"}, {"type": "stdin_stdout", "input": "10 10\n158260522 877914575 1013896555 25358811 861648772 623690081 825664159 476190629 262703497 374010847", "outp... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have N+M balls, each of which... | [{"type": "stdin_stdout", "input": "-1 -173", "output": "15052\n"}, {"type": "stdin_stdout", "input": "-1 -295", "output": "43661\n"}, {"type": "stdin_stdout", "input": "560 1", "output": "156520\n"}, {"type": "stdin_stdout", "input": "-1 -118", "output": "7022\n"}, {"type": "stdin_stdout", "input": "0 -295", "output":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a knight - the chess pi... | [{"type": "stdin_stdout", "input": "1279413 999999", "output": "825914746\n"}, {"type": "stdin_stdout", "input": "593126 1184107", "output": "321508604\n"}, {"type": "stdin_stdout", "input": "728601 999999", "output": "197453690\n"}, {"type": "stdin_stdout", "input": "123395 134890", "output": "905248722\n"}, {"type": ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nKizahashi, who was appointed as ... | [{"type": "stdin_stdout", "input": "30\n384 8895\n1725 9791\n170 1024\n4 11105\n2 6\n578 1815\n702 3352\n143 5141\n1420 11731\n24 1602\n849 999\n76 7586\n85 5570\n444 4991\n719 11090\n470 10708\n1137 4547\n455 9003\n110 9901\n15 8578\n718 3692\n104 1286\n3 4\n366 12143\n7 6649\n610 2374\n152 7324\n4 7042\n292 11386\n33... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe will play a one-player game u... | [{"type": "stdin_stdout", "input": "3 7\n-10 -1 0 9 -100 2 17", "output": "18\n"}, {"type": "stdin_stdout", "input": "3 7\n-10 -3 0 9 -100 2 18", "output": "19\n"}, {"type": "stdin_stdout", "input": "2 7\n-8 -1 0 18 -100 2 17", "output": "26\n"}, {"type": "stdin_stdout", "input": "2 7\n-10 -2 0 9 -100 2 17", "output": ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nMr. Infinity has a string S cons... | [{"type": "stdin_stdout", "input": "299792458\n16007747457388278", "output": "2\n"}, {"type": "stdin_stdout", "input": "299792458\n16265126384663115", "output": "2\n"}, {"type": "stdin_stdout", "input": "299792458\n27784678339588086", "output": "2\n"}, {"type": "stdin_stdout", "input": "299792458\n11289796998184320", "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWrite a program which replace al... | [{"type": "stdin_stdout", "input": "this is b pen.", "output": "THIS IS B PEN.\n"}, {"type": "stdin_stdout", "input": "tiis is b pen.", "output": "TIIS IS B PEN.\n"}, {"type": "stdin_stdout", "input": "tiis is a pen.", "output": "TIIS IS A PEN.\n"}, {"type": "stdin_stdout", "input": "tiis it a pen.", "output": "TIIS IT... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nproblem\n\nYou are a traveler tr... | [{"type": "stdin_stdout", "input": "7 5\n2\n0\n1\n1\n2\n-1\n2\n-1\n2\n2\n-3", "output": "10\n"}, {"type": "stdin_stdout", "input": "7 0\n1\n-1\n1\n3\n1\n-1\n3\n-2\n-1\n1\n0", "output": "0\n"}, {"type": "stdin_stdout", "input": "7 0\n1\n-1\n1\n2\n1\n-1\n3\n-2\n-1\n1\n0", "output": "0\n"}, {"type": "stdin_stdout", "input... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCosmic market, commonly known as... | [{"type": "stdin_stdout", "input": "5 5 4\n0 0 1\n0 0 0\n0 2 0\n1 1 1\n1 0 0\n5 5 5\n1 4 0\n0 1 1\n0 4 1\n1 3 0\n0 3 1\n5 5 5\n1 0 0\n0 3 1\n1 2 1\n0 4 0\n1 1 1\n0 0 0", "output": "5\n0\n13\n12\n"}, {"type": "stdin_stdout", "input": "5 14 5\n2 0 2\n0 0 0\n0 0 1\n1 2 1\n1 0 0\n5 5 5\n1 4 1\n0 1 1\n1 1 1\n1 3 0\n1 3 0\n5... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nNicholas Y. Alford was a cat lov... | [{"type": "stdin_stdout", "input": "6 7\n2 0\n6 -1\n13 2\n6 3\n0 5\n1 7\n1 3\n2 3\n3 4\n4 1\n5 1\n5 4\n5 6", "output": "10.385164807135\n"}, {"type": "stdin_stdout", "input": "6 7\n2 0\n6 -1\n13 2\n6 3\n0 5\n1 7\n1 3\n2 3\n3 4\n5 1\n5 1\n5 4\n5 6", "output": "10.770329614269\n"}, {"type": "stdin_stdout", "input": "6 7\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nProblem Statement\n\nYou are now... | [{"type": "stdin_stdout", "input": "2 1 1 1 10\n1 2 2\n2 4\n2 1 1 1 12\n1 2 3\n2 0\n4 2 2 4 50\n1 2 5\n3 4 5\n2 15\n3 15\n4 6 3 1 29\n1 2 20\n3 2 13\n4 1 5\n3 1 5\n2 4 3\n3 0 4\n2 1\n4 5\n3 3\n0 0 0 0 0", "output": "1\n1\n1\n2\n"}, {"type": "stdin_stdout", "input": "2 1 1 1 10\n0 2 2\n2 4\n2 1 1 1 12\n1 2 3\n2 0\n4 2 2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPoints:10\nThe Indian Heights Sc... | [{"type": "stdin_stdout", "input": "2\n2 1\n52 34", "output": "2\n42671977361650\n"}, {"type": "stdin_stdout", "input": "2\n1 4\n39 20", "output": "1\n68923264410\n"}, {"type": "stdin_stdout", "input": "2\n2 1\n34 15", "output": "2\n1855967520\n"}, {"type": "stdin_stdout", "input": "2\n1 4\n39 13", "output": "1\n812242... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are n points on the plane,... | [{"type": "stdin_stdout", "input": "10\n100 34\n27 17\n17 73\n12 60\n53 25\n46 31\n61 86\n22 91\n82 91\n8 41\n", "output": "173\n"}, {"type": "stdin_stdout", "input": "10\n100 34\n27 17\n17 73\n12 60\n53 25\n46 31\n51 86\n22 91\n82 91\n8 41\n", "output": "173\n"}, {"type": "stdin_stdout", "input": "10\n110 34\n27 17\n1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarp took n videos, the dura... | [{"type": "stdin_stdout", "input": "6 3\n3 3 1 4 1 6\n", "output": "Yes\n2 3 1 \n"}, {"type": "stdin_stdout", "input": "3 3\n1 1 1\n", "output": "Yes\n1 1 1 \n"}, {"type": "stdin_stdout", "input": "3 1\n1 10 100\n", "output": "Yes\n3 \n"}, {"type": "stdin_stdout", "input": "6 3\n5 3 1 4 1 6\n", "output": "No\n"}, {"typ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a tree consisting ... | [{"type": "stdin_stdout", "input": "8\n9 4 1 7 10 1 1 10\n1 2\n2 3\n1 4\n1 5\n5 6\n5 7\n5 8\n", "output": "121\n"}, {"type": "stdin_stdout", "input": "8\n9 4 1 8 10 1 1 10\n1 2\n2 3\n1 4\n1 5\n5 6\n5 7\n5 8\n", "output": "124\n"}, {"type": "stdin_stdout", "input": "8\n9 3 1 8 10 1 1 10\n1 2\n2 3\n1 4\n1 5\n5 6\n5 7\n5 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAn array of integers p_1, p_2, .... | [{"type": "stdin_stdout", "input": "5\n-1 2 -3 -1\n", "output": "4 3 5 2 1 "}, {"type": "stdin_stdout", "input": "5\n-4 1 2 -1\n", "output": "5 1 2 4 3 "}, {"type": "stdin_stdout", "input": "5\n3 -2 1 -3\n", "output": "2 5 3 4 1 "}, {"type": "stdin_stdout", "input": "5\n1 1 -3 4\n", "output": "2 3 4 1 5 "}, {"type": "s... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou have a garden consisting ent... | [{"type": "stdin_stdout", "input": "3 150\nGGGWGGGGWWGGGGGGGGGGGGGWGGWGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGWGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGWGGGGGGGWGGGGGGGGGGGGGGGGGWGGGGGGGGGGGGGGGGGGW\nGGGGGGGGGGGGWGGGGGGGGGWGGGGGGGGGGGGWGGGGGWGGGGGGGWGGGGGGGWGGGGGWGGGGGGGGGGGGGGGGGGGGGGGGWGGGGWGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou have a given picture with si... | [{"type": "stdin_stdout", "input": "10 10\n..........\n..........\n....*.....\n....*.....\n.*******..\n....*.....\n....*.....\n..........\n....*.....\n..........\n", "output": "NO\n"}, {"type": "stdin_stdout", "input": "10 10\n..........\n..........\n....*.....\n....*.....\n.*******..\n....*.....\n....*.....\n............ | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nJack is working on his jumping s... | [{"type": "stdin_stdout", "input": "-1000000000\n", "output": "44723\n"}, {"type": "stdin_stdout", "input": "-1028109475\n", "output": "45346\n"}, {"type": "stdin_stdout", "input": "-1050321888\n", "output": "45835\n"}, {"type": "stdin_stdout", "input": "-245245154\n", "output": "22147\n"}, {"type": "stdin_stdout", "in... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLet's define a balanced multiset... | [{"type": "stdin_stdout", "input": "10 20\n13 41 38 21 33 19 50 3 18 32\n1 2 44\n2 4 7\n1 8 35\n1 8 47\n2 4 4\n1 9 10\n1 9 47\n2 5 9\n2 2 2\n2 6 9\n1 3 24\n2 1 10\n2 1 7\n2 2 10\n2 2 10\n1 10 29\n1 2 23\n1 6 36\n2 6 8\n1 1 14\n", "output": "40\n-1\n52\n-1\n66\n32\n32\n40\n40\n83\n"}, {"type": "stdin_stdout", "input": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are a rebel leader and you a... | [{"type": "stdin_stdout", "input": "5\n1 1000000000 999999998\n1 1000000000 999999999\n1 1000000000 1000000000\n1000000000 1000000000 2\n1000000000 1000000000 1000000000\n", "output": "REBEL\nREBEL\nOBEY\nOBEY\nOBEY\n"}, {"type": "stdin_stdout", "input": "5\n1 1000000000 999999998\n1 1000000001 999999999\n1 1000000000 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPetya has come to the math exam ... | [{"type": "stdin_stdout", "input": "10\n3 5 1 3\n0 0 1\n2 1 4\n2 5 2 3\n1 0\n3 2\n1 20 2 4\n0\n16\n6 20 2 5\n1 1 0 1 0 0\n0 8 2 9 11 6\n4 12 3 6\n1 0 1 1\n8 3 5 6\n6 20 3 12\n0 1 0 0 1 0\n20 11 3 20 16 17\n7 17 1 6\n1 1 0 1 0 0 0\n1 8 0 11 15 15 10\n6 17 2 6\n0 0 1 0 0 1\n7 11 2 7 10 12\n5 17 2 5\n1 1 1 1 0\n17 11 10 6... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThis is the easy version of the ... | [{"type": "stdin_stdout", "input": "2\nbyklvkupcupkhibyklvkupcupkhibyklvkupcupkhiihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybbyklvkupcupkhibyklvkupcupkhiihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybbyklvkupcupkhibyklvkupcupkhiihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybihkpucpukvlkybb... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nHilbert's Hotel is a very unusua... | [{"type": "stdin_stdout", "input": "10\n3\n-15 -40 79\n16\n45 -62 19 85 69 -64 93 -101 0 -53 2 -52 -55 66 33 -60\n2\n28 -2\n4\n-65 -76 5 25\n5\n55 -33 63 -66 -35\n5\n-87 59 78 2 -10\n1\n25\n1\n-19\n1\n-8\n12\n32 34 43 -83 57 8 -86 62 -25 96 22 -44\n", "output": "NO\nNO\nYES\nNO\nNO\nNO\nYES\nYES\nYES\nNO\n"}, {"type": ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an array a[0 β¦ n-1... | [{"type": "stdin_stdout", "input": "4\n4\n6 4 7 6\n3\n3 2 6\n1\n7\n3\n4 14 2 1 18 3 0\n", "output": "-1\n1\n-1\n-1\n"}, {"type": "stdin_stdout", "input": "4\n4\n3 2 0 6\n3\n6 4 4\n1\n7\n7\n7 7 2 1 18 1 2\n", "output": "-1\n-1\n-1\n-1\n"}, {"type": "stdin_stdout", "input": "4\n4\n3 2 7 8\n3\n6 2 8\n1\n7\n7\n6 13 2 1 19 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nCaptain Flint and his crew keep ... | [{"type": "stdin_stdout", "input": "2\n11405\n58469\n", "output": "9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAutumn came late to the kingdom ... | [{"type": "stdin_stdout", "input": "9 9\n", "output": "13\nAAA.BCCC.\n.ABBB.CD.\n.AE.BFCD.\nEEEFFFDDD\nG.E.HFIII\nGGGJHHHI.\nGK.JHL.IM\n.KJJJLMMM\nKKK.LLL.M\n"}, {"type": "stdin_stdout", "input": "9 8\n", "output": "12\nAAA.BCCC\n.ABBBDC.\nEA.FBDC.\nEEEFDDDG\nEHFFFGGG\n.HHHIIIG\nJHKKKIL.\nJJJK.IL.\nJ..K.LLL\n"}, {"type... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThis is an interactive problem.\... | [{"type": "stdin_stdout", "input": "10\n1 2 1 1 1 2 2 3 1 1 2 1 2 3 3 1 1 1 1 1 1 3 1 1 2 3 1 1 1 1 1 1 1 1 1 2 1 1 1 1 3 1 1 1 1 1 1 2 2 3 3 1 2 2 1 2 2 2 3 1 3 3 2 3 1 3 2 2 1 1 1 2 1 1 1 1 1 3 1 3 1 3 1 1 1 2 1 2 1 1 3 3 1 3 1 1 1 1 1 1\n", "output": "2 1 2\n1 1 1\n2 1 4\n2 1 6\n2 1 8\n1 1 3\n1 1 5\n1 1 7\n2 1 10\n2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe Berland University is prepar... | [{"type": "stdin_stdout", "input": "97\n0 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 0 -1 0 0 0 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 -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\n", "output": "-1\n"}, {"type": "stdin_stdout", "input": "97\n0 0 0 0 0 0 0 0 0 0 0 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLittle Vasya loves orange juice ... | [{"type": "stdin_stdout", "input": "100\n100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 101 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA dice is a cube, its faces cont... | [{"type": "stdin_stdout", "input": "100\n3\n6 5\n1 5\n2 1\n5 1\n6 5\n5 1\n6 2\n1 2\n6 5\n5 1\n5 1\n1 5\n2 6\n6 2\n5 6\n1 2\n1 5\n5 6\n1 5\n1 2\n2 6\n1 2\n6 2\n1 5\n6 2\n2 6\n1 5\n6 2\n6 5\n5 6\n1 5\n5 6\n5 1\n5 1\n2 1\n1 2\n5 6\n6 5\n1 5\n5 1\n1 2\n1 5\n1 2\n2 6\n5 1\n2 6\n2 6\n5 6\n2 6\n6 5\n6 5\n1 5\n2 1\n5 6\n5 6\n1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIn the evenings Donkey would joi... | [{"type": "stdin_stdout", "input": "5\n27/18 27/17\n91659 76441\n96317 38081\n99805 94867\n79758 84753\n96445 53616\n", "output": "0\n"}, {"type": "stdin_stdout", "input": "5\n27/18 27/17\n27746 42830\n22071 47985\n44242 62799\n16038 48367\n85158 21622\n", "output": "1\n"}, {"type": "stdin_stdout", "input": "5\n27/18 2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIt is known that there are k fis... | [{"type": "stdin_stdout", "input": "100 50 10\n7 8 7 1 6 7 9 2 4 6 7 7 3 9 4 5 1 7 8 10 4 1 3 6 8 10 4 6 6 1 6 12 7 4 10 3 10 1 3 2 10 6 9 9 5 2 9 2 9 8 10 2 10 3 3 2 3 8 6 2 7 10 7 2 7 2 8 9 6 2 5 4 4 5 3 3 9 10 9 4 9 3 9 5 3 6 6 1 3 6 10 3 10 2 6 10 10 10 4 8\n3 3 2 9 4 4 10 2 7 3 3 2 6 3 3 4 7 4 1 2 3 8 1 6 7 7 2 10... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a new TV game on BerTV.... | [{"type": "stdin_stdout", "input": "18\n112233445566778899112233445566778899\n", "output": "HHHHHHHHHHHHHHHHMMHHMMMMMMMMMMMMMMMM\n"}, {"type": "stdin_stdout", "input": "18\n101011411002041200101000000000001000\n", "output": "HHHHHHMHHHHHHMHMHHMHMHHMMMMMMMMMMMMM\n"}, {"type": "stdin_stdout", "input": "18\n78999876889668... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nSereja has an array a, consistin... | [{"type": "stdin_stdout", "input": "10 10\n1 2 3 4 1 2 3 4 100000 99999\n1\n2\n3\n4\n5\n6\n7\n7\n9\n10\n", "output": "6\n6\n6\n6\n6\n5\n4\n4\n2\n1\n"}, {"type": "stdin_stdout", "input": "10 10\n1 2 3 4 1 2 3 6 100000 99999\n1\n2\n3\n4\n5\n6\n7\n7\n9\n10\n", "output": "7\n7\n7\n7\n6\n5\n4\n4\n2\n1\n"}, {"type": "stdin_s... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nInna loves sweets very much. She... | [{"type": "stdin_stdout", "input": "10 3 6\n0010010010\n1 3\n4 6\n7 9\n1 6\n4 9\n1 9\n", "output": "0\n0\n0\n0\n0\n0\n"}, {"type": "stdin_stdout", "input": "10 3 6\n0010010110\n1 3\n4 6\n7 9\n1 6\n4 9\n1 9\n", "output": "0\n0\n1\n0\n1\n1\n"}, {"type": "stdin_stdout", "input": "10 3 6\n1010010010\n1 3\n4 6\n7 9\n1 6\n4 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe R1 company wants to hold a w... | [{"type": "stdin_stdout", "input": "80 50\n15160 6853 20254 11358 19535 27691 2983 31650 9219 11833 32053 31695 21511 4320 4384 24843 1454 31543 18796 13815 1546 27926 16276 14315 12542 25370 24890 29647 1730 17867 12446 15072 19852 30207 16361 7964 5343 398 10837 31114 9252 12767 15098 22562 32637 31823 8160 12658 642... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nDevu and his brother love each o... | [{"type": "stdin_stdout", "input": "10 10\n23 101 38 38 73 54 59 69 44 150\n100 100 100 100 100 100 100 100 100 100\n", "output": "402\n"}, {"type": "stdin_stdout", "input": "10 10\n23 101 38 38 73 54 59 69 44 150\n100 100 100 100 100 100 100 101 100 100\n", "output": "403\n"}, {"type": "stdin_stdout", "input": "10 10\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nNotice that the memory limit is ... | [{"type": "stdin_stdout", "input": "50\n97 97\n61 61\n59 59\n29 29\n13 13\n7 7\n5 5\n3 3\n1 1\n3 3\n1 1\n13 13\n11 11\n9 9\n3 3\n1 1\n1 1\n1 1\n27 27\n25 25\n1 1\n21 21\n19 19\n17 17\n15 15\n5 5\n1 1\n1 1\n7 7\n1 1\n3 3\n1 1\n15 15\n13 13\n1 1\n9 9\n7 7\n5 5\n3 3\n1 1\n15 15\n5 5\n1 1\n1 1\n3 3\n1 1\n1 1\n1 1\n1 1\n1 1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOne Big Software Company has n e... | [{"type": "stdin_stdout", "input": "20\n-1 100\n1 35\n2 22\n3 28\n3 2\n4 8\n3 17\n2 50\n5 37\n5 25\n4 29\n9 21\n10 16\n10 39\n11 41\n9 28\n9 30\n12 36\n13 26\n19 17\n", "output": "459\n"}, {"type": "stdin_stdout", "input": "20\n-1 100\n1 1\n2 22\n3 28\n3 2\n4 8\n3 17\n2 50\n5 37\n5 25\n4 29\n9 21\n10 16\n10 39\n11 41\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an array of positi... | [{"type": "stdin_stdout", "input": "100 10000000\n300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 300 30... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVladik and Chloe decided to dete... | [{"type": "stdin_stdout", "input": "10000\n", "output": "10000 10001 100010000 "}, {"type": "stdin_stdout", "input": "17554\n", "output": "17554 17555 308160470\n"}, {"type": "stdin_stdout", "input": "10023\n", "output": "10023 10024 100470552\n"}, {"type": "stdin_stdout", "input": "19176\n", "output": "19176 19177 367... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA breakthrough among computer ga... | [{"type": "stdin_stdout", "input": "1000000\n", "output": "1209197264797\n"}, {"type": "stdin_stdout", "input": "1010000\n", "output": "1233502153639\n"}, {"type": "stdin_stdout", "input": "1010100\n", "output": "1233746427001\n"}, {"type": "stdin_stdout", "input": "999811\n", "output": "1208740231393\n"}, {"type": "st... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAt regular competition Vladik an... | [{"type": "stdin_stdout", "input": "1000000000 1000000000\n", "output": "Vladik\n"}, {"type": "stdin_stdout", "input": "1000000000 1387445955\n", "output": "Vladik\n"}, {"type": "stdin_stdout", "input": "1000000000 1000000001\n", "output": "Vladik\n"}, {"type": "stdin_stdout", "input": "1000000000 1214716107\n", "outpu... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nOne very important person has a ... | [{"type": "stdin_stdout", "input": "30 100 101\n60 34\n29 82\n89 77\n39 1\n100 100\n82 12\n57 87\n93 43\n78 50\n38 55\n37 9\n67 5\n100 100\n100 100\n82 47\n3 71\n100 100\n19 26\n25 94\n89 5\n100 100\n32 1\n100 100\n34 3\n40 99\n100 100\n36 12\n100 100\n100 100\n100 100\n", "output": "10039\n"}, {"type": "stdin_stdout",... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarpus takes part in the \"F... | [{"type": "stdin_stdout", "input": "42\n*****o*******t********************oo******\n10\nvcrccobltkeidtxhsxhccaslkjhfyeqsetoowaemso\nuimjsoxifamvctkgqmrwhyjrgmlydczzqjoobnnwch\nuvmjsoqizfavctkxemrpaycngmlyemzzqjoobszwbh\nusmjsoviskzvctkljmrlmylugmlydfzzqvoobzawgh\nfeqweodinkhiatqmfokaxwcmlmbmvskssyookgcrax\ntackfosjhxeq... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nA flower shop has got n bouquets... | [{"type": "stdin_stdout", "input": "25\n742168 377547 485672 437223 96307 902863 759104 747933 512899 410317 588598 666688 823202 257684 520631 910066 168864 71499 899972 565350 764848 754913 929040 864132 289976\n", "output": "10\n"}, {"type": "stdin_stdout", "input": "25\n742168 755062 391542 437223 96307 902863 7591... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAarav has just graduated from th... | [{"type": "stdin_stdout", "input": "37\n7 -14\n18 -6\n-20 -20\n-15 12\n5 18\n6 7\n-10 -2\n-17 -17\n9 -8\n-14 -16\n12 -4\n17 -2\n-7 -2\n-13 19\n20 -9\n18 5\n19 -4\n3 -4\n-20 1\n9 19\n-14 5\n18 -4\n-18 -8\n-14 2\n-14 14\n20 -19\n-11 6\n18 15\n13 14\n9 -12\n-20 10\n-9 -11\n-19 12\n-16 14\n2 -13\n12 6\n-18 8", "output": "2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nEach digit of a number is repres... | [{"type": "stdin_stdout", "input": "2\n-XX-XXXX-XXX-\n-XX--XXXX---XXX-\n\nSAMPLE", "output": "243\n204003\n"}, {"type": "stdin_stdout", "input": "2\n-XXXXX-X-XXX-\n-XX--XXXX---XXX-\n\nSAMPLE", "output": "513\n204003\n"}, {"type": "stdin_stdout", "input": "2\n-XXXXX-X-XXX-\n-XXX---XXXX--XX-\n\nSAMPLE", "output": "513\n3... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are N points on the 2D pla... | [{"type": "stdin_stdout", "input": "3\n-2 -2\n2 -1\n-29 1", "output": "33\n"}, {"type": "stdin_stdout", "input": "3\n-1 -4\n1 -1\n-23 4", "output": "30\n"}, {"type": "stdin_stdout", "input": "3\n-1 -4\n1 -1\n-23 0", "output": "26\n"}, {"type": "stdin_stdout", "input": "3\n-2 -2\n-2 0\n11 3", "output": "18\n"}, {"type":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nGiven is an integer N. Find the ... | [{"type": "stdin_stdout", "input": "100010", "output": "90909\n"}, {"type": "stdin_stdout", "input": "100000", "output": "90909"}, {"type": "stdin_stdout", "input": "339", "output": "249\n"}, {"type": "stdin_stdout", "input": "312", "output": "222\n"}, {"type": "stdin_stdout", "input": "359", "output": "269\n"}, {"type... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an integer N. Find... | [{"type": "stdin_stdout", "input": "100", "output": "388130742"}, {"type": "stdin_stdout", "input": "15", "output": "478366600\n"}, {"type": "stdin_stdout", "input": "14", "output": "127504505\n"}, {"type": "stdin_stdout", "input": "20", "output": "580025381\n"}, {"type": "stdin_stdout", "input": "24", "output": "60411... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have a directed weighted grap... | [{"type": "stdin_stdout", "input": "6\n43 35\n97 26\n77 48\n133 16\n110 5\n154 15", "output": "140\n"}, {"type": "stdin_stdout", "input": "6\n43 35\n97 26\n77 48\n133 31\n110 5\n154 15", "output": "155\n"}, {"type": "stdin_stdout", "input": "6\n43 35\n97 26\n77 48\n133 36\n110 5\n154 15", "output": "160\n"}, {"type": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nWe have a long seat of width X c... | [{"type": "stdin_stdout", "input": "100010 0 -1", "output": "-100011\n"}, {"type": "stdin_stdout", "input": "100010 1 0", "output": "100010\n"}, {"type": "stdin_stdout", "input": "110010 1 0", "output": "110010\n"}, {"type": "stdin_stdout", "input": "108320 205 44", "output": "434\n"}, {"type": "stdin_stdout", "input":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a frequency operation i... | [{"type": "stdin_stdout", "input": "10\n2 5 1 -1 3 4 27 0 -2 6\n0", "output": "2\n10 10 10 10 10 10 10 10 10 10\n"}, {"type": "stdin_stdout", "input": "10\n2 1 0 0 3 5 0 0 0 12\n0", "output": "3\n10 10 10 10 10 10 10 10 10 10\n"}, {"type": "stdin_stdout", "input": "10\n2 5 1 0 3 4 27 0 -2 10\n0", "output": "2\n8 8 8 2 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nMobile phones are equipped with ... | [{"type": "stdin_stdout", "input": "1\nben mikes bananas eht best among many fruits bec`use bananas are sweet and cheao\nb\n1\nwinners get to visit aizu and eht uvinersity of ahuz amd maje amnx friends as wlel\na\n3\nask alex about\nthe answer for the\nassignmdnt pn diordn` `pps\na\n2\ngnimmargorp si both\na sport aod ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nTwo players, A and B, play the g... | [{"type": "stdin_stdout", "input": "3\n13 1\n1 4\n1 4\n3\n20 1\n6 7\n1 1\n3\n15 1\n5 5\n1 8\n0", "output": "14 10\n22 14\n21 14\n"}, {"type": "stdin_stdout", "input": "3\n13 1\n1 4\n1 4\n3\n20 1\n6 8\n1 1\n3\n15 1\n5 5\n1 8\n0", "output": "14 10\n22 15\n21 14\n"}, {"type": "stdin_stdout", "input": "3\n13 1\n1 4\n0 4\n3... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nProfessor Random, known for his ... | [{"type": "stdin_stdout", "input": "4\n6 4\n6 4\n6 4\n6 4\n2\n5 3\n5 3\n1\n4 2\n4 2\n4 2\n6 2\n4 2\n4 2\n4 2\n4 2\n6\n4 6\n1 5\n2 3\n6 3\n2 4\n4 2\n0", "output": "0 1 1 0 0 1\n1 0 0 0 1 0\n0 0 0 1 0 0\n2 1 0 0 0 0\n1 0 0 1 0 0\n2 1 1 1 0 0\n"}, {"type": "stdin_stdout", "input": "4\n6 4\n6 4\n6 4\n6 4\n2\n5 3\n5 3\n1\n4... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe goddess of programming is re... | [{"type": "stdin_stdout", "input": "14\n04/21 09:00 I 000\n04/21 09:00 I 001\n04/21 09:15 I 002\n04/21 90:30 O 001\n04/21 09:45 O 000\n12/40 10:00 O 002\n04/28 09:00 I 003\n04/28 09:15 I 000\n04/28 09:30 I 004\n04/28 09:45 P 004\n04/28 10:00 O 000\n04/28 10:15 O 003\n04/29 20:00 I 002\n04/29 21:30 O 002\n20\n06/01 09:0... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nNathan O. Davis is challenging a... | [{"type": "stdin_stdout", "input": "100 100 1 1\n78 1 50 100 21\n640 295 1 2\n1 -1 640 480 100\n0 0 0 0", "output": "Yes\nYes\n"}, {"type": "stdin_stdout", "input": "100 100 1 0\n78 1 50 100 21\n640 295 1 2\n1 -1 640 480 100\n0 0 0 0", "output": "Yes\nYes\n"}, {"type": "stdin_stdout", "input": "100 100 1 0\n78 1 50 100... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThe range search problem consist... | [{"type": "stdin_stdout", "input": "6\n0 1\n4 0\n5 0\n6 4\n3 2\n11 6\n2\n-1 4 -1 2\n0 8 0 5", "output": "0\n1\n4\n\n0\n1\n2\n3\n4\n\n"}, {"type": "stdin_stdout", "input": "6\n2 1\n2 2\n4 2\n4 2\n3 3\n5 4\n2\n2 4 0 4\n4 10 2 5", "output": "0\n1\n2\n3\n4\n\n2\n3\n5\n\n"}, {"type": "stdin_stdout", "input": "6\n0 1\n4 2\n5... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nVasya has got a magic matrix a o... | [{"type": "stdin_stdout", "input": "13 8\n3 2 1 4 8 2 5 9\n8 2 10 8 9 3 2 8\n3 6 8 3 11 7 6 4\n4 2 10 5 7 5 1 3\n10 9 3 6 4 10 10 2\n10 3 7 1 4 5 7 10\n5 3 1 6 1 10 3 6\n10 7 6 8 1 8 4 1\n7 8 1 10 8 5 3 6\n3 8 10 6 7 6 5 5\n1 5 9 8 4 8 5 10\n6 9 10 7 5 10 5 4\n3 9 2 4 8 2 5 4\n8 1\n", "output": "140693813\n"}, {"type":... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou stumbled upon a new kind of ... | [{"type": "stdin_stdout", "input": "10\n16 92 81 8 70 28 72 91 87 13\n32 17 93 83 5 69 27 74 89 88\n43 31 22 99 79 4 65 26 71 90\n50 41 29 15 98 80 9 68 24 73\n59 51 38 35 18 96 82 6 67 25\n57 60 49 45 37 19 97 85 7 66\n76 53 61 46 40 36 14 95 86 3\n11 75 55 58 48 44 34 20 94 84\n2 10 77 56 62 52 39 30 23 100\n64 1 12 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou're given an array a. You sho... | [{"type": "stdin_stdout", "input": "50 48\n26 87 99 27 2 2 94 10 21 9 6 7 85 10 66 56 16 55 101 51 16 151 100 28 93 70 33 84 50 87 55 36 93 84 63 94 119 2 42 84 37 54 34 76 38 78 14 21 6 4\n", "output": "2\n2\n2\n1\n2\n1\n4\n2\n5\n5\n1\n1\n5\n1\n2\n1\n1\n4\n8\n1\n3\n1\n1\n7\n3\n4\n6\n2\n6\n1\n2\n6\n1\n5\n1\n1\n18\n32\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nToday at the lesson of mathemati... | [{"type": "stdin_stdout", "input": "3\n2 1\n5 6\n4 1\n", "output": "10\n42\n28\n"}, {"type": "stdin_stdout", "input": "3\n2 1\n5 6\n4 2\n", "output": "10\n42\n29\n"}, {"type": "stdin_stdout", "input": "3\n2 3\n5 5\n9 1\n", "output": "12\n41\n73\n"}, {"type": "stdin_stdout", "input": "3\n2 1\n2 6\n4 2\n", "output": "10\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFinished her homework, Nastya de... | [{"type": "stdin_stdout", "input": "4291 2145\n", "output": "15017\n"}, {"type": "stdin_stdout", "input": "5000 3378\n", "output": "16622\n"}, {"type": "stdin_stdout", "input": "5000 2653\n", "output": "17347\n"}, {"type": "stdin_stdout", "input": "3068 1534\n", "output": "10737\n"}, {"type": "stdin_stdout", "input": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are n shovels in the nearb... | [{"type": "stdin_stdout", "input": "9 4 8\n12 13 5 1 12 1 2 2 2\n9 4\n8 4\n5 3\n9 7\n", "output": "28\n"}, {"type": "stdin_stdout", "input": "9 4 8\n6 13 5 1 10 1 1 2 1\n9 4\n8 4\n5 3\n9 7\n", "output": "19\n"}, {"type": "stdin_stdout", "input": "9 4 8\n6 13 5 1 12 1 1 2 2\n9 4\n8 4\n5 3\n9 5\n", "output": "21\n"}, {"t... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nAuthors guessed an array a consi... | [{"type": "stdin_stdout", "input": "100\n3 3 2 2 3 2 3 2 2 2 2 3 3 2 2 2 2 2 3 3 3 2 3 3 3 2 2 2 3 3 2 3 2 2 3 2 3 2 2 2 3 2 3 3 3 2 3 3 3 2 2 3 3 3 3 3 2 3 2 2 2 3 3 3 2 3 3 3 3 2 2 3 2 3 2 3 2 3 3 2 3 2 3 3 3 2 2 2 2 3 2 2 3 2 3 2 3 3 2 2 3 2 3 3 2 2 2 2 3 2 3 2 2 2 3 3 2 3 3 3 3 2 2 3 2 3 3 2 3 3 3 2 3 2 3 2 2 3 2 2... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFinally, a basketball court has ... | [{"type": "stdin_stdout", "input": "100\n1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4\n4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 1 4 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou're given an undirected graph... | [{"type": "stdin_stdout", "input": "1460 5\n100 300\n200 735\n420 117\n559 450\n435 900\n", "output": "795\n"}, {"type": "stdin_stdout", "input": "1460 5\n101 300\n200 735\n420 117\n559 450\n435 900\n", "output": "794\n"}, {"type": "stdin_stdout", "input": "1460 5\n100 300\n200 735\n420 117\n559 450\n435 460\n", "outpu... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given a non-empty string... | [{"type": "stdin_stdout", "input": "10\nonetwonetwooneooonetwooo\ntwo\none\ntwooooo\nttttwo\nttwwoo\neoono\nonnne\noneeeee\noneeeeeeetwooooo\n", "output": "6\n2 6 10 13 18 21 \n1\n2 \n1\n2 \n1\n2 \n1\n5 \n0\n\n0\n\n0\n\n1\n2 \n2\n2 11 \n"}, {"type": "stdin_stdout", "input": "10\nonetwonetwooneooonetwooo\nuwo\none\ntwoo... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nIn this problem, we will deal wi... | [{"type": "stdin_stdout", "input": "50\n01110100101100100100011001100001110010010000000101\n50\n27 18 7\n22 35 2\n50 35 1\n41 16 1\n27 5 5\n11 6 33\n7 19 2\n9 12 33\n14 37 4\n1 22 8\n22 3 5\n50 42 1\n50 38 1\n29 20 2\n20 34 17\n20 4 29\n16 21 3\n11 43 3\n15 45 1\n12 28 3\n31 34 13\n43 1 8\n3 41 1\n18 3 13\n29 44 6\n47 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nUnary is a minimalistic Brainfuc... | [{"type": "stdin_stdout", "input": ",]+>.],,+->+>-[]][><,-]><]++<.,-[.>.<+.[.<,[-,,[<]+>]->>]>]-+-+<][].,.]+][[<,-.+][+<<-+.],,,<,.]-].-\n", "output": "859903\n"}, {"type": "stdin_stdout", "input": ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n", "output": "20887... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is an undirected tree of n... | [{"type": "stdin_stdout", "input": "4\n8 4 7\n1 2\n2 3\n1 4\n4 5\n4 6\n1 7\n7 8\n4 3 2\n4 3\n1 2\n2 3\n9 3 5\n1 2\n2 3\n3 4\n1 5\n5 6\n6 7\n1 8\n8 9\n16 15 12\n1 2\n2 3\n1 4\n4 5\n5 6\n6 7\n4 8\n10 9\n8 13\n10 11\n11 12\n11 13\n13 14\n10 15\n15 16\n", "output": "YES\nNO\nNO\nYES\n"}, {"type": "stdin_stdout", "input": "... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere is a square of size 10^6 Γ... | [{"type": "stdin_stdout", "input": "3 3\n2 3 1000000\n4 0 4\n3 0 1000000\n4 0 1\n2 0 5\n3 1 1000000\n", "output": "7\n"}, {"type": "stdin_stdout", "input": "3 3\n2 3 1000000\n4 0 4\n3 0 1000000\n4 0 1\n2 0 5\n3 2 1000000\n", "output": "7\n"}, {"type": "stdin_stdout", "input": "3 3\n2 3 1000000\n7 0 4\n3 0 1000000\n4 0 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nFor a given sequence of distinct... | [{"type": "stdin_stdout", "input": "109\n74 18 237 179 195 112 156 11 72 68 173 202 78 250 224 251 107 55 186 144 57 62 28 210 132 64 93 6 211 0 174 163 248 226 167 246 46 102 253 180 121 56 151 35 150 254 168 201 242 118 190 158 196 30 75 116 187 96 215 244 192 73 12 175 33 222 131 256 181 230 114 165 128 234 63 90 44... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou are given an array a_1, a_2,... | [{"type": "stdin_stdout", "input": "4\n6 6\n2 4 8 22 10 2\n10 16\n1 2 1 2 2 4 5 8 10 7\n1 1\n884\n2 4\n2 4\n", "output": "1\n10\n1\n2\n"}, {"type": "stdin_stdout", "input": "4\n6 5\n1 2 8 3 11 6\n10 13\n1 1 1 6 3 3 4 8 6 13\n1 1\n1131\n2 2\n4 4\n", "output": "4\n10\n1\n1\n"}, {"type": "stdin_stdout", "input": "4\n6 6\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nThere are three cells on an infi... | [{"type": "stdin_stdout", "input": "7\n\n2 2\n0 3\n-1 2\n\n2 5\n2 2\n0 3\n\n1000 144\n1000 2\n1000 0000\n\n0 2\n3 10\n2 10\n\n0 13\n12 8\n2 10\n\n0 1\n4 1\n1 2\n\n2 413\n0 10\n1 0\n", "output": "3\n3\n142\n11\n17\n4\n405\n"}, {"type": "stdin_stdout", "input": "7\n\n2 2\n1 3\n-1 2\n\n2 5\n2 1\n2 3\n\n1000 144\n1000 1\n1... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPolycarpus is an amateur program... | [{"type": "stdin_stdout", "input": "20\n5 9 11 12 13 13 13 13 13 13 13 13 13 6 12 11 11 8 6 4\n", "output": "19\n5 13\n4 13\n3 13\n3 13\n2 13\n2 13\n2 13\n15 15\n15 17\n15 17\n15 17\n15 18\n15 18\n2 19\n1 19\n1 20\n1 20\n1 20\n1 20\n"}, {"type": "stdin_stdout", "input": "20\n5 9 11 12 13 13 13 13 13 13 13 13 13 6 12 11... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nPetya and Vasya are tossing a co... | [{"type": "stdin_stdout", "input": "100 100 1 1\n", "output": "4950\n2 1\n3 1\n3 2\n4 1\n4 2\n4 3\n5 1\n5 2\n5 3\n5 4\n6 1\n6 2\n6 3\n6 4\n6 5\n7 1\n7 2\n7 3\n7 4\n7 5\n7 6\n8 1\n8 2\n8 3\n8 4\n8 5\n8 6\n8 7\n9 1\n9 2\n9 3\n9 4\n9 5\n9 6\n9 7\n9 8\n10 1\n10 2\n10 3\n10 4\n10 5\n10 6\n10 7\n10 8\n10 9\n11 1\n11 2\n11 3\... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nYou have a set of dominoes. Each... | [{"type": "stdin_stdout", "input": "96\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n3 4\n4 5\n5 6\n6 1\n1 2\n2 3\n... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nSpecial Agent Smart Beaver works... | [{"type": "stdin_stdout", "input": "1023456789??????????????????????????????????????ABCDIFGHIJ\n", "output": "362880000000000000000000000000000000000000000"}, {"type": "stdin_stdout", "input": "?GJ??\n", "output": "81000\n"}, {"type": "stdin_stdout", "input": "BA?C?\n", "output": "64800\n"}, {"type": "stdin_stdout", "i... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nConsider a table G of size n Γ m... | [{"type": "stdin_stdout", "input": "1000000000000 1000000000000 116\n1587924000 7 2 3 4 5 6 1 56 9 10 1 12 13 2 105 16 1 18 1 620 3 14 1 24 25 26 27 4 203 30 1 32 3 2 5 252 1 2 39 40 1 6 7 4 45 2 1 48 1 350 93 52 1 54 5 8 21 58 1 60 1 2 9 224 65 6 1 4 3 10 7 72 1 2 75 4 1 546 1 80 81 62 1 12 35 2 87 8 1 90 13 28 3 2 5 ... | code_stdio |
[
{
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\n\nSolve the following coding problem using the programming language python:\n\nLevko loves tables that consist ... | [{"type": "stdin_stdout", "input": "100 1000\n", "output": "1000 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 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 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 0 0 0 \n0 1000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ... | code_stdio |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.