data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nI'm peakly productive and this is deep.\n\nYou are given two permutations$^{\\text{βˆ—}}$ $a$ and $b$, both of length $n$.\n\nYou can perform th...
code
{ "ground_truth": [ { "input": "4\n1\n1\n1\n2\n1 2\n2 1\n3\n2 1 3\n3 2 1\n8\n7 8 3 5 4 6 1 2\n2 1 6 4 5 3 8 7", "metadata": { "func_name": null }, "output": "0\n\n-1\n2\n1 3\n7\n3 4 5 1 2 1 1", "testtype": "stdin" } ], "style": "rule" }
{ "index": 400, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nBoris Notkin composes melodies. He represents them as a sequence of notes, where each note is encoded as an integer from $0$ to $127$ inclusiv...
code
{ "ground_truth": [ { "input": "8\n2\n114 109\n2\n17 10\n3\n76 83 88\n8\n38 45 38 80 85 92 99 106\n5\n63 58 65 58 65\n8\n117 124 48 53 48 43 54 49\n5\n95 102 107 114 121\n10\n72 77 82 75 70 75 68 75 68 75", "metadata": { "func_name": null }, "output": "YES\nYES\nYES\nNO\nYES\nNO\nY...
{ "index": 401, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nArseniy came up with another business plan β€” to sell soda from a vending machine! For this, he purchased a machine with $n$ shelves, as well a...
code
{ "ground_truth": [ { "input": "4\n3 3\n2 6\n2 7\n1 15\n1 3\n2 6\n2 7\n1 15\n6 2\n1 7\n2 5\n190000 1\n1 1000", "metadata": { "func_name": null }, "output": "28\n15\n12\n1000", "testtype": "stdin" } ], "style": "rule" }
{ "index": 402, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nWhile rummaging through things in a distant drawer, Anya found a beautiful string $s$ consisting only of zeros and ones.\n\nNow she wants to m...
code
{ "ground_truth": [ { "input": "4\n100\n4\n1 1\n2 0\n2 0\n3 1\n1100000\n3\n6 1\n7 1\n4 1\n111010\n4\n1 1\n5 0\n4 1\n5 0\n0100\n4\n3 1\n1 1\n2 0\n2 1", "metadata": { "func_name": null }, "output": "NO\nNO\nNO\nNO\nYES\nYES\nNO\nNO\nYES\nYES\nYES\nNO\nNO\nNO\nNO", "testtype": "...
{ "index": 403, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nOne morning, Polycarp woke up and realized that $1543$ is the most favorite number in his life.\n\nThe first thing that Polycarp saw that day ...
code
{ "ground_truth": [ { "input": "8\n2 4\n1543\n7777\n2 4\n7154\n8903\n2 4\n3451\n8888\n2 2\n54\n13\n2 2\n51\n43\n2 6\n432015\n512034\n4 4\n5431\n1435\n5518\n7634\n6 4\n5432\n1152\n4542\n2432\n2302\n5942", "metadata": { "func_name": null }, "output": "1\n1\n0\n1\n0\n2\n2\n2", "...
{ "index": 404, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nA conspiracy of ancient sages, who decided to redirect rivers for their own convenience, has put the world on the brink. But before implementi...
code
{ "ground_truth": [ { "input": "3 4 4\n1 3 5 9\n4 6 5 3\n2 1 2 7\n3\n1 > 4\n2 < 8\n1 < 6\n2\n1 < 8\n2 > 8\n1\n3 > 5\n2\n4 > 8\n1 < 8", "metadata": { "func_name": null }, "output": "2\n-1\n3\n1", "testtype": "stdin" } ], "style": "rule" }
{ "index": 405, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nAlice has been giving gifts to Bob for many years, and she knows that what he enjoys the most is performing [bitwise XOR](http://tiny.cc/xor_w...
code
{ "ground_truth": [ { "input": "6\n1 3 1 0\n2 28 3 7\n15 43 1 0\n57 2007 1 0\n1010 1993 2 2\n1 1000000000 30 1543", "metadata": { "func_name": null }, "output": "2\n2\n13\n0\n4\n1000000519", "testtype": "stdin" } ], "style": "rule" }
{ "index": 406, "solution": "", "split": "test" }
codeforces
[ { "content": "You are a helpful assistant.", "role": "system" }, { "content": "Solve the following coding problem using the programming language python:\n\n\nThis is an interactive problem.\n\nThe Department of Supernatural Phenomena at the Oxenfurt Academy has opened the Library of Magic, which con...
code
{ "ground_truth": [ { "input": "2\n6\n\n0\n\n2\n\n3\n\n5\n\n3", "metadata": { "func_name": null }, "output": "xor 1 1\n\nxor 2 2\n\nxor 3 3\n\nxor 4 6\n\nans 2 3 5\n\nans 1 2 3", "testtype": "stdin" } ], "style": "rule" }
{ "index": 407, "solution": "", "split": "test" }