Dataset Viewer
Auto-converted to Parquet Duplicate
data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1\\nn\\n\", \"1\\nm\\n\", \"1\\nl\\n\", \"1\\nk\\n\", \"1\\no\\n\", \"1\\np\\n\", \"2\\nu\\nu\\n\", \"2\\nv\\nu\\n\"], \"outputs\": [\"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\nu1\\n\", \"OK\\nOK\\n\"]}" }
{ "split": "train", "index": 1538, "prompt": "Solve the programming task below in a Python markdown code block.\nA new e-mail service \"Berlandesk\" is going to be opened in Berland in the near future. The site administration wants to launch their project as soon as possible, that's why they ask you to help. You'...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n\", \"1 2\\n\", \"1 1\\n\", \"7 9\\n\", \"4 6\\n\", \"8 2\\n\", \"1 0\\n\", \"9 7\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"240\\n\", \"36\\n\", \"16\", \"0\", \"240\"]}" }
{ "split": "train", "index": 10446, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nYou have two positive integers w and h. Your ...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"functional\": \"_inputs = [[1], [2], [3], [4], [5], [6], [10], [10000000]]\\n_outputs = [[4], [10], [20], [35], [56], [83], [244], [489999753]]\\nimport math\\ndef _deep_eq(a, b, tol=1e-5):\\n if isinstance(a, float) or isinstance(b, float):\\n return math.isclose(a,...
{ "split": "train", "index": 8766, "prompt": "Solve the programming task below in a Python markdown code block.\nMany years ago, Roman numbers were defined by only `4` digits: `I, V, X, L`, which represented `1, 5, 10, 50`. These were the only digits used. The value of a sequence was simply the sum of digits in i...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"0 4 3 1\\n0 7 8 0\\n5 10 2 12\\n9 13 14 0\", \"0 4 3 1\\n6 7 8 0\\n5 12 0 0\\n9 13 14 15\", \"0 4 3 0\\n6 7 8 0\\n5 1 11 12\\n9 13 14 0\", \"2 3 0 0\\n6 0 8 0\\n5 10 11 0\\n9 13 0 15\", \"0 4 3 0\\n0 7 8 0\\n5 10 2 12\\n9 13 14 0\", \"0 4 3 1\\n6 7 8 0\\n5 10 0 0\...
{ "split": "train", "index": 7184, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nThe goal of the 15 puzzle problem is to comple...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"z\\n\", \"a\\n\", \"P\\n\", \"A\\n\", \"y\\n\", \"O\\n\", \"x\\n\", \"N\\n\"], \"outputs\": [\"Z\\n\", \"A\\n\", \"P\\n\", \"A\\n\", \"Y\", \"O\", \"X\", \"N\"]}" }
{ "split": "train", "index": 5349, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nCapitalization is writing a word with its firs...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n2 3\"], \"outputs\": [\"YES\"]}" }
{ "split": "train", "index": 4005, "prompt": "Solve the programming task below in a Python markdown code block.\nYou are given an unweighted, undirected graph. Write a program to check if it's a tree topology.\n\n-----Input-----\n\nThe first line of the input file contains two integers N and M --- number of nodes...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"4 2 6 4\\n\", \"3 3 2 4\\n\", \"4 2 4 3\\n\", \"3 3 2 6\\n\", \"1 1 1 1\\n\", \"5 5 1 1\\n\", \"3 6 2 4\\n\", \"3 3 3 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"3\\n\", \"0\\n\"]}" }
{ "split": "train", "index": 4696, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nMonocarp has decided to buy a new TV set and h...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1\\n1000000000\\n\", \"1\\n1000100000\\n\", \"1\\n1010100000\\n\", \"1\\n0010100000\\n\", \"1\\n0010110000\\n\", \"1\\n0010100010\\n\", \"1\\n1010100010\\n\", \"1\\n0010100110\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", ...
{ "split": "train", "index": 8338, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nThere are n cities in the Kingdom of Autumn, n...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\", \"1 1\\n0\", \"1 2\\n0\", \"1 2\\n1\", \"1 3\\n1\", \"1 4\\n1\", \"5 1\\n00010\", \"5 1\\n00000\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"4\", \"5\\n\"]}" }
{ "split": "train", "index": 8515, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nN people are arranged in a row from left to ri...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"3 1 5\\n1 2 5\\n4\\n\", \"3 1 5\\n1 2 3\\n4\\n\", \"5 2 7\\n0 0 1 2 4\\n3 5\\n\", \"5 2 7\\n0 0 1 2 4\\n3 0\\n\", \"4 3 2\\n1 1 1 1\\n1 1 2\\n\", \"4 3 2\\n1 1 1 1\\n0 1 2\\n\", \"4 3 2\\n1 2 1 1\\n0 1 2\\n\", \"4 3 2\\n1 1 1 1\\n0 1 1\\n\"], \"outputs\": [\"0 1 4...
{ "split": "train", "index": 4695, "prompt": "Solve the programming task below in a Python markdown code block.\nThe Smart Beaver from ABBYY invented a new message encryption method and now wants to check its performance. Checking it manually is long and tiresome, so he decided to ask the ABBYY Cup contestants fo...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"3\\n1\\n10\\n101\"], \"outputs\": [\"1\\n5\\n44\"]}" }
{ "split": "train", "index": 6562, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nLittle Chef is learning differentiation and is...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n0\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n0\\n1\\n\", \"1 1\\n5\\n5\\n\", \"1 1\\n0\\n-1\\n\", \"2 2\\n0 2\\n0 1\\n\", \"1 5\\n1\\n1 2 3 4 5\\n\", \"3 3\\n0 0 0\\n0 0 0\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"3\\n\", ...
{ "split": "train", "index": 3293, "prompt": "Solve the programming task below in a Python markdown code block.\nThere are two small spaceship, surrounded by two groups of enemy larger spaceships. The space is a two-dimensional plane, and one group of the enemy spaceships is positioned in such a way that they all...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2\\n37 3 13\\n35 37 7\\n\\nEMPMAS\", \"2\\n46 3 13\\n35 66 7\\n\\nEMPMAS\", \"2\\n24 10 57\\n50 8 1\\n\\nEMPMAS\", \"2\\n46 3 13\\n25 66 7\\n\\nEMPMAS\", \"2\\n37 3 33\\n30 37 10\\n\\nSAMPME\", \"2\\n37 3 33\\n42 37 18\\n\\nSAMPME\", \"2\\n41 0 57\\n48 74 18\\n\\n...
{ "split": "train", "index": 11002, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nThis question is straight-forward.\n\nGiven l...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 0 1\\n1 0\\n1 1 1\\n0 0\\n3 0 0\\n1 3\\n4 3 1\\n2 2\\n5 4 3\\n3 1\\n\", \"5\\n1 0 1\\n1 0\\n1 1 1\\n0 0\\n3 0 0\\n1 3\\n4 3 1\\n4 2\\n5 4 3\\n3 1\\n\", \"5\\n1 0 1\\n0 0\\n1 1 1\\n0 0\\n3 0 0\\n1 3\\n4 6 1\\n4 2\\n5 4 3\\n3 1\\n\", \"5\\n1 0 1\\n1 0\\n1 1 1\...
{ "split": "train", "index": 10754, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nYou have a board represented as a grid with 2...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"7\\n3\\n0\\n3\\n5\\n1\\n0\\n6\\n1\\n3\\n4\", \"7\\n3\\n0 3 5\\n1 0 6\\n1 3 4\\n\\nSAMPLE\"], \"outputs\": [\"3\\n2\\n\", \"3\\n2\"]}" }
{ "split": "train", "index": 6008, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nRamesh and Suresh's previous attempt to decide...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2\\n3\\n2 2 2\\n3 5 5\\n2\\n3 2\\n2 1 1\"], \"outputs\": [\"4.000000000\\n3.000000000\"]}" }
{ "split": "train", "index": 11947, "prompt": "Solve the programming task below in a Python markdown code block.\nRead problems statements in Mandarin chinese, Russian and Vietnamese as well. \n\nThere is a straight road that passes through N short tunnels. At the entrance to the first tunnel, there are C cars li...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"5 4\\n1 2\\n2 3\\n3 4\\n3 5\", \"5 4\\n1 2\\n2 3\\n1 4\\n3 5\", \"5 5\\n1 2\\n2 3\\n3 4\\n3 5\", \"9 5\\n1 3\\n2 3\\n3 4\\n3 5\", \"9 5\\n1 2\\n2 3\\n3 4\\n3 5\", \"5 5\\n1 2\\n2 3\\n3 4\\n2 5\", \"10 4\\n1 2\\n2 3\\n3 4\\n3 5\", \"10 4\\n1 2\\n2 4\\n3 4\\n4 5\"],...
{ "split": "train", "index": 11449, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nCompany trip\n\nProblem Statement\n\nYour com...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"5\\n3 2 4 1 2\\n\", \"7\\n1 2 3 1000000000 4 5 6\\n\", \"10\\n10 71 84 33 6 47 23 25 52 64\\n\", \"4\\n877914575 602436426 24979445 861648772\\n\", \"190\\n36 78 456830918 3 629 107032 61198 76 162882927 83332903 540 6366 444168 421 5 729599821 27591 6423528 5 893...
{ "split": "train", "index": 8847, "prompt": "Solve the programming task below in a Python markdown code block.\nSnuke has an integer sequence A of length N.\nHe will make three cuts in A and divide it into four (non-empty) contiguous subsequences B, C, D and E.\nThe positions of the cuts can be freely chosen.\nL...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"3 1\\nabc\\na\\nab\\n\", \"3 1\\nabc\\na\\nba\\n\", \"3 1\\nabb\\na\\nba\\n\", \"10 10\\np\\ne\\nh\\ni\\ni\\na\\na\\nc\\nb\\nb\\n\", \"7 4\\nrubik\\nfurik\\nabab\\nbaba\\naaabbbababa\\nabababababa\\nzero\\n\", \"10 1\\nxl\\nv\\nwga\\nhbjb\\njysiehz\\nptntiwa\\nikn...
{ "split": "train", "index": 11489, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nThe Little Elephant loves strings very much. ...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1\\n2000 1139 818658270\\n\", \"1\\n2000 2000 1000000006\\n\", \"2\\n1398 1034 726329524\\n602 156 640769482\\n\", \"7\\n3 3 2\\n2 1 10\\n6 3 10\\n6 4 10\\n100 1 1\\n4 4 0\\n69 4 20\\n\", \"3\\n763 499 769431935\\n827 50 784148915\\n410 241 11071818\\n\", \"4\\n18...
{ "split": "train", "index": 5235, "prompt": "Solve the programming task below in a Python markdown code block.\nThis is the easy version of the problem. The difference is the constraints on $n$, $m$ and $t$. You can make hacks only if all versions of the problem are solved.\n\nAlice and Bob are given the numbers...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 2 3 5\\n1 2013 3 31\"], \"outputs\": [\"4\\n1\"]}" }
{ "split": "train", "index": 3544, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nLittle Chief loves math. Most of all, he loves...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"7 3 4\\n2 3 3\\n656 3\\n\", \"0 5 0\\n5 5 5\\n327 9\\n\", \"1 2 2\\n3 2 6\\n20 15\\n\", \"1 1 1\\n2 2 2\\n10 10\\n\", \"1 4 15\\n2 2 2\\n13 7\\n\", \"7 3 4\\n2 1 3\\n656 3\\n\", \"4 6 10\\n4 3 2\\n9 920\\n\", \"10 7 3\\n3 4 4\\n331 2\\n\"], \"outputs\": [\"64697.0...
{ "split": "train", "index": 4096, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nVasya plays the Power Defence. \n\nHe must pas...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"5\", \"2\", \"7\", \"1\", \"4\", \"8\", \"3\", \"6\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "split": "train", "index": 12872, "prompt": "Solve the programming task below in a Python markdown code block.\nWhen Mr. Kay was browsing a certain SNS as usual, the problem that \"there are people who can solve IQ150 or more\" came to the timeline. Mr. Kay has an IQ of over 150, so he solved the problem in an ...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2\\n3\\n5\\n\\nSAMPLE\", \"2\\n1\\n5\\n\\nSAMPLE\", \"2\\n1\\n9\\n\\nSBMQLE\", \"2\\n3\\n1\\n\\nSAMPLE\", \"2\\n1\\n3\\n\\nRAMQLE\", \"2\\n3\\n5\\n\\nSAMPME\", \"2\\n1\\n1\\n\\nSAMPLD\", \"2\\n1\\n7\\n\\nELQMBR\"], \"outputs\": [\"3 5\\n20 30\\n\", \"0 0\\n20 30\\...
{ "split": "train", "index": 11636, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nKing Tle4Ever of Time Limit Exceeded is reall...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"4\\n3\\n1 0 1\\n1\\n0\\n2\\n1 1\\n4\\n1 1 0 1\\n\"], \"outputs\": [\"16\\n0\\n6\\n120\\n\"]}" }
{ "split": "train", "index": 10894, "prompt": "Solve the programming task below in a Python markdown code block.\nFor an array A of length N, let F(A) denote the sum of the product of all the subarrays of A. Formally,\n\nF(A) = \\sum_{L=1}^N \\sum_{R=L}^N (\\prod_{i=L}^R A_{i}\\right )\n\nFor example, let A = [1...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1 0 1\\n4 1 2\\n1 0 1\", \"1 8 6\\n2 9 7\\n1 7 7\", \"0 8 8\\n0 8 8\\n0 0 8\", \"2 2 2\\n2 1 0\\n2 2 2\", \"1 0 1\\n4 1 2\\n0 0 1\", \"1 8 6\\n4 9 7\\n1 7 7\", \"0 8 2\\n0 8 8\\n0 0 8\", \"1 0 1\\n4 1 4\\n0 0 1\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"...
{ "split": "train", "index": 3103, "prompt": "Solve the programming task below in a Python markdown code block.\nWe have a 3 \\times 3 grid. A number c_{i, j} is written in the square (i, j), where (i, j) denotes the square at the i-th row from the top and the j-th column from the left.\n\nAccording to Takahashi,...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 772\\n\", \"1 1\\n1 629\\n\", \"2 1\\n3 2\\n4 0\\n\", \"1 1\\n1 200000\\n\", \"1 1\\n200000 0\\n\", \"1 2\\n1 100000\\n\", \"1 1\\n1 179419\\n\", \"3 2\\n1 1\\n1 4\\n3 2\\n\"], \"outputs\": [\"772\\n\", \"629\\n\", \"-1\", \"200000\", \"-1\", \"0\", \"1794...
{ "split": "train", "index": 10233, "prompt": "Solve the programming task below in a Python markdown code block.\nThis problem consists of three subproblems: for solving subproblem C1 you will receive 4 points, for solving subproblem C2 you will receive 4 points, and for solving subproblem C3 you will receive 8 p...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n0\\n/.\", \"2 2\\n..\\n..\", \"1 2\\n..\\n..\", \"1 0\\n..\\n..\", \"1 1\\n..\\n..\", \"1 0\\n-.\\n..\", \"1 0\\n-/\\n..\", \"1 0\\n-/\\n./\"], \"outputs\": [\"Second\\n\", \"Second\", \"First\\n\", \"Second\\n\", \"First\\n\", \"Second\\n\", \"Second\\n\", ...
{ "split": "train", "index": 828, "prompt": "Solve the programming task below in a Python markdown code block. Each time, given inputs through STDIN (like those in the Input section), the program produces outputs through STDOUT (like those in the Output section).\n\nExample\n\nInput\n\n2 2\n..\n..\n\n\nOutput\n\n...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"6\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 1 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n1 1 1\\n\", \"6\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 3 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n2 1 1\\n\", \"6\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 1 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n2 1 1\\n...
{ "split": "train", "index": 7571, "prompt": "Solve the programming task below in a Python markdown code block.\nThe only difference between easy and hard versions is constraints.\n\nYou are given a sequence $a$ consisting of $n$ positive integers.\n\nLet's define a three blocks palindrome as the sequence, consis...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n1 2 0\\n\", \"2 1\\n1 2 1\\n\", \"2 1\\n1 2 0\\n\", \"4 4\\n1 2 1\\n1 3 0\\n2 3 1\\n3 4 1\\n\", \"4 4\\n1 2 1\\n1 3 0\\n2 3 1\\n3 4 1\\n\", \"5 6\\n1 2 0\\n3 2 0\\n5 1 1\\n1 3 1\\n5 3 0\\n4 3 1\\n\", \"6 6\\n1 2 1\\n2 3 1\\n3 4 1\\n3 5 1\\n4 6 1\\n4 5 1\\n\"...
{ "split": "train", "index": 10811, "prompt": "Solve the programming task below in a Python markdown code block.\nBreaking Good is a new video game which a lot of gamers want to have. There is a certain level in the game that is really difficult even for experienced gamers.\n\nWalter William, the main character o...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"inputs\": [\"2\\n5\\n1 1 1 1 1\\n1\\n10\"], \"outputs\": [\"10\\n0\"]}" }
{ "split": "train", "index": 12373, "prompt": "Solve the programming task below in a Python markdown code block.\nPriya loves bitwise AND, but she hates programming. Help her solve this problem.\n\nGiven an array $A$ of size $N$, let $B_{ij}$ denote the [bitwise AND] of $A[i]$ and $A[j]$. You have to find the nu...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"functional\": \"_inputs = [[3], [4], [100], [97], [101], [120], [130]]\\n_outputs = [[[2, 5]], [[3, 5]], [[97, 101]], [[89, 101]], [[97, 103]], [[113, 127]], [[127, 131]]]\\nimport math\\ndef _deep_eq(a, b, tol=1e-5):\\n if isinstance(a, float) or isinstance(b, float):\\n ...
{ "split": "train", "index": 10379, "prompt": "Solve the programming task below in a Python markdown code block.\nWe need a function ```prime_bef_aft()``` that gives the largest prime below a certain given value ```n```, \n\n```befPrime or bef_prime``` (depending on the language), \n\nand the smallest prime large...
code
[ { "role": "system", "content": "You are a helpful programming assistant. The user will ask you a question and you as the assistant solve it. The assistant first thinks how to solve the task through reasoning and then provides the user with the final answer. The reasoning process and answer are enclosed with...
coding
{ "style": "rule", "ground_truth": "{\"functional\": \"_inputs = [['anna'], ['walter'], [12321], [123456]]\\n_outputs = [[True], [False], [True], [False]]\\nimport math\\ndef _deep_eq(a, b, tol=1e-5):\\n if isinstance(a, float) or isinstance(b, float):\\n return math.isclose(a, b, rel_tol=tol, abs_tol=tol...
{ "split": "train", "index": 12160, "prompt": "Solve the programming task below in a Python markdown code block.\n# Palindrome strings\n\nA palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward. This includes capital letters, punctuation, and word dividers....
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
17