data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 852958660\\n\", \"2 3\\n1 32\\n2 63\\n1 6\", \"4 3\\n2 5\\n2 49\\n2 12\", \"4 3\\n2 5\\n4 49\\n1 12\", \"2 3\\n2 4\\n1 7\\n2 528\", \"5 2\\n1 63\\n4 63\\n0 9\", \"2 3\\n1 32\\n2 63\\n1 4\", \"2 3\\n2 39\\n2 0\\n1 12\"], \"outputs\": [\"000001000001\\n\", ...
{ "index": "code_r1_train_1700" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2\\n12 19\\n25 45\\n\", \"3\\n1 2\\n12 19\\n25 45\\n\", \"3\\n2 2\\n12 19\\n25 45\\n\", \"2\\n100 150\\n5 100000\\n\", \"2\\n100 150\\n5 100000\\n\", \"2\\n100 150\\n2 100000\\n\", \"2\\n100 150\\n3 100000\\n\", \"2\\n100 150\\n2 100010\\n\"], \"outputs\": ...
{ "index": "code_r1_train_1701" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\nR\\n\", \"1 1\\nR\\n\", \"1 2\\nRB\\n\", \"1 2\\nRG\\n\", \"1 2\\nRG\\n\", \"1 2\\nRB\\n\", \"1 3\\nGRB\\n\", \"1 3\\nRGG\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1702" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2 2 3\\n2 0 4\", \"3\\n1 2 3\\n2 0 4\", \"3\\n2 2 3\\n2 -1 4\", \"3\\n2 4 5\\n2 -1 4\", \"3\\n3 4 5\\n2 -1 4\", \"3\\n6 4 5\\n2 -1 4\", \"3\\n6 5 5\\n2 -1 4\", \"3\\n6 5 5\\n2 -1 3\"], \"outputs\": [\"3.000000\\n2.236068\\n2.080084\\n2.000000\\n\", \"4.000000...
{ "index": "code_r1_train_1703" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\nA sample input\\n9\\nforward word\\ndelete char\\nforward word\\ndelete char\\nforward word\\ndelete char\\nbackward word\\nbackward word\\nforward word\\nHallow, Word.\\n7\\nforward char\\ndelete word\\ninsert \\\"ello, \\\"\\nforward word\\nbackward char\\n...
{ "index": "code_r1_train_1704" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_1705" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"aabaaa\\n4\\nab\\nba\\nbb\\nxyz\", \"aabaaa\\n4\\nab\\nba\\nba\\nxyz\", \"aabaaa\\n4\\nba\\nbb\\nac\\nzyx\", \"aabaaa\\n4\\nca\\nab\\nba\\nzyx\", \"aacaaa\\n4\\nba\\nb`\\nac\\nzyx\", \"aacaaa\\n4\\nca\\nb`\\nac\\nzyx\", \"aabaaa\\n4\\na`\\nab\\nca\\nyzx\", \"aada...
{ "index": "code_r1_train_1706" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n??\\n\", \"2\\n??\\n\", \"4\\n0523\\n\", \"4\\n1928\\n\", \"4\\n00??\\n\", \"4\\n50??\\n\", \"4\\n99??\\n\", \"4\\n??99\\n\"], \"outputs\": [\"Bicarp\\n\", \"Bicarp\\n\", \"Bicarp\\n\", \"Bicarp\\n\", \"Monocarp\\n\", \"Monocarp\\n\", \"Monocarp\\n\", \"Monoc...
{ "index": "code_r1_train_1707" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 110\\n10 12\\n14 16\\n2 82\\n12 13\\n18 20\\n4\\n1 100\\n6 22\\n1 1000\\n6 22\\n1 10000\\n6 22\\n1 100000\\n6 22\\n16\\n1 100000000\\n6 7\\n1 100000000\\n7 8\\n1 100000000\\n8 9\\n1 110000000\\n9 10\\n1 100000000\\n10 11\\n1 100000000\\n11 12\\n1 100000000\...
{ "index": "code_r1_train_1708" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"3 2\\n2 1 2\\n1 3\\n\", \"3 2\\n1 2\\n2 1 3\\n\", \"3 2\\n1 2\\n2 1 3\\n\", \"3 2\\n2 1 2\\n1 3\\n\", \"5 3\\n1 4\\n3 1 2 3\\n1 5\\n\", \"5 3\\n1 4\\n3 1 2 3\\n1 5\\n\"], \"outputs\": [\"0\\n\", \"0\", \"1\\n\", \"3\\n\", \"3\"...
{ "index": "code_r1_train_1709" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n0 2 5 0 0\", \"5\\n0 2 5 1 0\", \"5\\n0 2 5 1 0\\n\", \"6\\n0 7 -7 -4 0 0\", \"6\\n0 2 -7 -1 -5 0\", \"6\\n0 4 -7 -1 -3 0\", \"6\\n0 4 -7 -1 -1 0\", \"6\\n0 5 -7 -2 -1 0\"], \"outputs\": [\"2\\n\", \"3\", \"3\\n\", \"7\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"4\...
{ "index": "code_r1_train_1710" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9\\n9 8 7 6 5 4 3 2 1\\n1 1 1\\n3 2 2\\n3 3 3\\n4 4 4\\n5 5 5\\n6 6 6\\n7 7 7\\n8 8 8\\n9 9 9\", \"9\\n9 8 7 6 5 4 3 2 1\\n1 1 1\\n3 4 2\\n3 3 3\\n4 4 4\\n5 5 5\\n6 6 6\\n7 7 7\\n8 8 8\\n9 9 9\", \"9\\n9 8 7 6 5 4 3 2 1\\n1 1 1\\n2 2 2\\n3 3 3\\n4 4 4\\n5 5 5\\n5...
{ "index": "code_r1_train_1711" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"BBBAAAABA\\nBBBBA\\n4\\n7 9 2 5\\n7 9 1 4\\n1 7 2 5\\n1 6 2 4\", \"BBBAAAABA\\nBBBBA\\n4\\n7 3 2 5\\n7 9 1 4\\n1 7 2 5\\n1 6 2 4\", \"BBBAAAABA\\nABBBB\\n4\\n7 9 2 5\\n7 9 1 4\\n1 7 2 5\\n1 7 2 4\", \"BBBAAAABA\\nABBBB\\n4\\n7 9 2 5\\n7 9 1 4\\n2 7 2 5\\n1 7 2 4\...
{ "index": "code_r1_train_1712" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"2\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n9 0\\n\", \"3\\n0 0 1\\n\", \"3\\n1 0 0\\n\", \"3\\n1 4 0\\n\", \"3\\n0 0 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"90\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1713" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 2\\n1\\n3\\n3\\n9\\n4\", \"5 2\\n2\\n3\\n3\\n9\\n4\", \"5 2\\n6\\n0\\n3\\n9\\n6\", \"5 0\\n6\\n0\\n3\\n5\\n4\", \"5 2\\n3\\n3\\n3\\n9\\n4\", \"5 2\\n6\\n3\\n3\\n9\\n4\", \"5 2\\n6\\n3\\n3\\n9\\n6\", \"5 2\\n0\\n3\\n3\\n9\\n4\"], \"outputs\": [\"2\", \"2\\n\", \...
{ "index": "code_r1_train_1714" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"8\\n\", \"1\\n\", \"9\\n\", \"6\\n\", \"2\\n\", \"3\\n\", \"7\\n\", \"4\\n\"], \"outputs\": [\"40 73\\n\", \"17 17\\n\", \"41 81\\n\", \"34 57\\n\", \"22 25\\n\", \"27 33\\n\", \"47 65\\n\", \"28 41\\n\"]}" }
{ "index": "code_r1_train_1715" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"8\", \"3\", \"7\", \"1\", \"5\", \"6\", \"9\", \"4\"], \"outputs\": [\"15\\n\", \"3\\n\", \"7\\n\", \"1\\n\", \"7\\n\", \"7\\n\", \"15\\n\", \"7\"]}" }
{ "index": "code_r1_train_1716" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n0\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 3\\n111\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1717" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 0\\n\", \"2 0\\n\", \"3 0\\n\", \"35 0\\n\", \"30 0\\n\", \"30 0\\n\", \"35 0\\n\", \"3 1\\n2 > 3\\n\"], \"outputs\": [\"9\\n\", \"3\\n\", \"9\\n\", \"16677181699666569\\n\", \"68630377364883\\n\", \"68630377364883\\n\", \"16677181699666569\", \"1\\n\"]}" }
{ "index": "code_r1_train_1718" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n19 22 1\\n7\\n93 26 38 43 66 4 3\", \"3\\n19 22 1\\n7\\n93 26 38 43 36 4 3\", \"3\\n19 22 0\\n7\\n93 26 38 3 66 80 1\", \"3\\n19 22 0\\n7\\n93 26 38 43 36 4 3\", \"3\\n19 22 1\\n7\\n93 26 38 3 66 80 1\", \"3\\n19 20 2\\n7\\n56 26 2 43 31 12 7\", \"3\\n19 22 0...
{ "index": "code_r1_train_1719" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n7\\n\", \"1\\n6\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1720" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"2\\n1 3\\n\", \"2\\n1 2\\n\", \"2\\n3 4\\n\", \"2\\n2 3\\n\", \"2\\n6 7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1721" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n0 2\\n1 2\", \"2\\n2 1\\n2 6\", \"2\\n3 2\\n1 2\", \"3\\n1 1\\n5 2\\n6 3\", \"3\\n1 1\\n6 0\\n1 3\", \"3\\n4 1\\n5 2\\n6 3\", \"3\\n1 2\\n5 0\\n14 3\", \"3\\n1 4\\n5 0\\n14 3\"], \"outputs\": [\"3 4\", \"2 3\", \"1 4\", \"0 1\", \"4 9\", \"0 1\", \"1 6\", \"1...
{ "index": "code_r1_train_1722" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n4 1\\n0011\\n0011\\n1 4\\n\", \"1\\n4 1\\n0011\\n0111\\n1 4\\n\", \"1\\n4 1\\n0011\\n0011\\n4 4\\n\", \"1\\n4 1\\n0011\\n0110\\n1 4\\n\", \"1\\n4 1\\n0011\\n0011\\n2 4\\n\", \"1\\n4 1\\n0011\\n0100\\n1 4\\n\", \"1\\n4 1\\n0011\\n0100\\n2 4\\n\", \"1\\n4 1\\n0...
{ "index": "code_r1_train_1723" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"8\\n\", \"9\\n\", \"7\\n\", \"4\\n\", \"3\\n\", \"6\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"8\\n\", \"13\\n\", \"8\\n\", \"4\\n\", \"4\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1724" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 2\\n1\\n1\\n2\\n6\", \"4 2\\n1\\n1\\n3\\n1\", \"4 2\\n1\\n1\\n3\\n0\", \"4 2\\n1\\n4\\n3\\n0\", \"3 4\\n1\\n0\\n2\\n6\", \"4 2\\n1\\n1\\n3\\n6\", \"4 2\\n1\\n2\\n3\\n0\", \"4 2\\n1\\n0\\n2\\n6\"], \"outputs\": [\"6\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"2\\n\", ...
{ "index": "code_r1_train_1725" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n2 1\\n\", \"1 2\\n2 1\\n\", \"1 2\\n3 1\\n\", \"1 2\\n3 2\\n\", \"1 1\\n2 1\\n\", \"1 29\\n2 8\\n\", \"1 1\\n1 10\\n\", \"1 2\\n2 10\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"8\\n\", \"10\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_1726" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4\\n1\\n0\", \"2\\n2\\n6\\n0\", \"2\\n0\\n6\\n0\", \"2\\n7\\n0\\n0\", \"2\\n2\\n1\\n0\", \"2\\n1\\n8\\n0\", \"2\\n4\\n6\\n0\", \"2\\n0\\n8\\n0\"], \"outputs\": [\"1\\n2\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n\", \"1\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n3\\n\", \"...
{ "index": "code_r1_train_1727" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n\", \"1\\n6\\n\", \"1\\n8\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\"], \"outputs\": [\"6\\n\", \"6\\n\", \"8\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1728" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n2\\n\", \"1 1\\n3\\n\", \"1 1\\n59\\n\", \"1 1\\n59\\n\", \"1 1\\n18\\n\", \"100 1\\n1\\n\", \"1 1\\n100\\n\", \"50 1\\n75\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1729" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n8\\n\", \"1\\n1\\n\", \"1\\n8\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1730" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1 2 10\\n2 3 10\\n3 3 2\\n1 3 13\\n6\\n1 20 1000\\n3 25 10000\\n5 30 5000\\n22 300 5500\\n7 295 9000\\n7 7 6000\\n8\\n32 251 2261\\n123 281 1339\\n188 235 5641\\n174 217 7273\\n22 255 7851\\n60 198 9190\\n119 274 878\\n122 173 8640\\n0\", \"4\\n1 2 10\\n2 3 1...
{ "index": "code_r1_train_1731" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"7 1\\n3\\n\", \"8 1\\n8\\n\", \"1 1\\n1\\n\", \"2 1\\n2\\n\", \"4 1\\n1\\n\", \"3 1\\n2\\n\", \"5 1\\n1\\n\", \"6 1\\n5\\n\"], \"outputs\": [\"27\\n\", \"34\\n\", \"0\\n\", \"4\\n\", \"14\\n\", \"7\\n\", \"19\\n\", \"22\\n\"]}" }
{ "index": "code_r1_train_1732" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n\", \"3 2\\n\", \"3 3\\n\", \"0 2\\n\", \"3 3\\n\", \"0 2\\n\", \"1 3\\n\", \"1 6\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"7\\n\", \"1\\n\", \"7\", \"1\", \"4\\n\", \"32\\n\"]}" }
{ "index": "code_r1_train_1733" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 3\\n5\\n\", \"1 1\\n3\\n\", \"1 2\\n3\\n\", \"1 5\\n5\\n\", \"1 1\\n3\\n\", \"1 2\\n3\\n\", \"1 5\\n5\\n\", \"1 1\\n1\\n\"], \"outputs\": [\"4 \", \"2 \", \"2 \", \"4 \", \"2\\n\", \"2\\n\", \"4\\n\", \"0\"]}" }
{ "index": "code_r1_train_1734" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 2\\n1 1 1 1\\n1 1 -1 -1\\n1 2\\n3 4\\n\", \"4 4\\n4 1 2 3\\n0 2 -3 1\\n1 2\\n2 3\\n3 4\\n4 2\\n\", \"2 1\\n273747 996499\\n565109 -976650\\n2 1\\n\", \"4 6\\n14121 332351 255931 165916\\n198395 696843 64607 388580\\n4 1\\n4 2\\n3 1\\n4 3\\n2 3\\n2 1\\n\", \"11 ...
{ "index": "code_r1_train_1735" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n1 1 3\\n2 2 3\\n3 2\\n2 3 2\\n1 2 1\\n0 0\", \"3 2\\n1 1 2\\n2 2 3\\n3 2\\n2 3 2\\n1 2 0\\n0 0\", \"4 2\\n1 0 3\\n1 2 3\\n3 2\\n2 3 2\\n2 2 1\\n0 0\", \"3 2\\n1 1 3\\n1 2 3\\n3 2\\n2 1 2\\n1 2 0\\n0 0\", \"3 2\\n1 0 3\\n1 2 3\\n3 2\\n2 1 2\\n1 2 0\\n0 0\", ...
{ "index": "code_r1_train_1736" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"3\\n5 0 -5\\n\", \"3\\n5 0 -5\\n\", \"4\\n0 0 0 0\\n\", \"3\\n6 -1 -5\\n\", \"4\\n-1 0 1 0\\n\", \"4\\n1 2 3 -6\\n\"], \"outputs\": [\"0\\n\", \"0\", \"1\\n\", \"1\", \"0\\n\", \"2\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1737" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 5\\n\", \"2 4\\n\", \"5 3\\n\", \"1 6\\n\", \"5 1\\n\", \"6 3\\n\", \"2 3\\n\", \"5 6\\n\"], \"outputs\": [\"3 0 3\\n\", \"2 1 3\\n\", \"2 1 3\\n\", \"3 0 3\\n\", \"3 1 2\\n\", \"2 0 4\\n\", \"2 0 4\\n\", \"5 0 1\\n\"]}" }
{ "index": "code_r1_train_1738" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n3 3\\n-3 -2 -1\\n0 -2 0\\n-3 -2 -1\\n\", \"1\\n3 3\\n0 -1 -2\\n-8 -4 -3\\n-3 0 -1\\n\", \"1\\n3 3\\n0 -1 -4\\n-8 -4 -3\\n-3 0 -1\\n\", \"1\\n3 3\\n0 -1 -4\\n-8 -4 -3\\n-1 0 -1\\n\", \"1\\n3 3\\n-3 -2 -2\\n0 -2 -1\\n-3 -2 -1\\n\", \"1\\n3 3\\n-1 -2 -2\\n0 -2 -...
{ "index": "code_r1_train_1739" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n?\\n\", \"1 2\\n?\\n\", \"1 4\\n?\\n\", \"3 1\\n??W\\n\", \"6 1\\nW??\\n\", \"5 1\\n??W\\n\", \"6 1\\nW@?\\n\", \"6 1\\n??W\\n\"], \"outputs\": [\"W\\n\", \"NO\\n\", \"NO\\n\", \"DDW\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1740" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 1 1\\n3\\n1 1\\n2 1\\n1 1\\n\", \"3\\n1 1 1\\n3\\n2 1\\n2 1\\n1 1\\n\", \"3\\n2 1 1\\n3\\n1 1\\n2 1\\n1 1\\n\", \"3\\n1 1 2\\n3\\n2 1\\n2 1\\n1 1\\n\", \"3\\n1 1 1\\n3\\n2 2\\n2 1\\n1 1\\n\", \"3\\n1 1 0\\n3\\n2 1\\n2 1\\n1 1\\n\", \"3\\n1 1 1\\n3\\n1 1\\n2...
{ "index": "code_r1_train_1741" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3367\", \"2206\", \"1291\", \"1211\", \"2352\", \"2340\", \"2265\", \"2454\"], \"outputs\": [\"NA\\n\", \"YYMM\\n\", \"MMYY\\n\", \"AMBIGUOUS\\n\", \"NA\\n\", \"NA\\n\", \"NA\\n\", \"NA\\n\"]}" }
{ "index": "code_r1_train_1742" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"2\\n1 3\\n\", \"2\\n1 1\\n\", \"2\\n1 4\\n\", \"2\\n2 4\\n\", \"2\\n1 2\\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 6\\n\"], \"outputs\": [\"2\\n\", \"4\\n\", \"2\\n\", \"5\\n\", \"6\\n\", \"2\\n\", \"4\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1743" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"2 3\\n2 0\\n\", \"2 3\\n2 0\\n\", \"4 4\\n2 2 0 1\\n\", \"4 4\\n2 2 0 1\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1744" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"?0?\", \"?/?\", \"??0\", \"??/\", \"?.?\", \"??1\", \"?-?\", \"?,?\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1745" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\na\\na\\n\", \"1\\n1\\na\\na\\n\", \"1\\n1\\na\\nb\\n\", \"1\\n1\\nb\\na\\n\", \"3\\n2\\naa\\naa\\n2\\nab\\nab\\n2\\nab\\nba\\n\", \"3\\n2\\naa\\naa\\n2\\nab\\nab\\n2\\nab\\nba\\n\", \"3\\n2\\naa\\naa\\n2\\nab\\nab\\n2\\naa\\nba\\n\", \"3\\n2\\naa\\naa\\n2...
{ "index": "code_r1_train_1746" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n1 2 1\\n\", \"3 1\\n1 2 1\\n\", \"2 1\\n1 2 0\\n\", \"2 1\\n1 1 1\\n\", \"3 1\\n2 2 1\\n\", \"3 3\\n1 2 1\\n1 3 2\\n2 3 1\\n\", \"3 3\\n1 2 1\\n1 3 2\\n2 3 0\\n\", \"3 3\\n1 2 1\\n1 3 2\\n1 3 1\\n\"], \"outputs\": [\"1 2\\n\", \"-1\\n\", \"1 2\\n\", \"-1\\n...
{ "index": "code_r1_train_1747" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"z\\n\", \"1\\n\", \"0\\n\", \"a\\n\", \"y\\n\", \"w\\n\", \"w\\n\", \"0\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1748" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4 15 1\\n3 2 3 2\\n2 1 2\\n2 75\\n2 5 1\\n8 49\", \"3\\n4 9 3\\n3 52 56 1\\n2 1 2\\n7 75\\n2 5 9\\n6 8\", \"3\\n4 9 3\\n3 52 56 1\\n2 1 2\\n7 75\\n2 5 9\\n6 49\", \"3\\n4 9 3\\n3 52 56 1\\n2 1 2\\n7 75\\n2 5 6\\n6 49\", \"3\\n4 9 1\\n3 52 56 1\\n2 1 2\\n7 75\...
{ "index": "code_r1_train_1749" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n\", \"1\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"3\\n1 2\\n1 3\\n\", \"3\\n1 2\\n1 3\\n\", \"3\\n1 2\\n2 3\\n\", \"5\\n1 2\\n1 3\\n2 4\\n2 5\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\", \"1 1\\n\", \"1 1\", \"2 2\\n\", \"2 2\", \"1 1\\n\", \"3 2\\n\"]}" }
{ "index": "code_r1_train_1750" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"2\\n5 1\\n\", \"2\\n5 1\\n\", \"2\\n5 0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1751" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"7\\n\", \"4\\n\", \"5\\n\", \"9\\n\", \"8\\n\", \"2\\n\", \"3\\n\", \"0\\n\"], \"outputs\": [\"7\\n\", \"4\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1752" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n69 74\\n\", \"1\\n99 101\\n\", \"1\\n3947394 7\\n\", \"1\\n3534 1834\\n\", \"1\\n9999999 0\\n\", \"1\\n12345 12345\\n\", \"1\\n112311 11332\\n\", \"1\\n1223111 133212\\n\"], \"outputs\": [\"218\\n\", \"302\\n\", \"3947409\\n\", \"7203\\n\", \"10000000\\n\", \...
{ "index": "code_r1_train_1753" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n\", \"5\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"6\\n\"], \"outputs\": [\"2\\n\", \"-3\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"-2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1754" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2\\n5 -5\\n2\\n-5 5\\n3\\n1 2 -3\", \"3\\n1\\n5 -5\\n2\\n-5 5\\n3\\n1 2 -3\", \"3\\n2\\n5 -5\\n2\\n-5 5\\n3\\n0 3 -3\", \"3\\n1\\n5 -5\\n1\\n-5 5\\n2\\n1 3 -4\", \"3\\n1\\n5 -5\\n2\\n-8 8\\n2\\n1 2 -3\", \"3\\n1\\n5 -5\\n1\\n-5 5\\n3\\n1 2 -3\", \"3\\n2\\n5 -...
{ "index": "code_r1_train_1755" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n4 7\\n2 1 4 2\\n3 2 4 1\\n4 1 2 2\\n3 20\\n2 1 8 1\\n3 1 0 2\\n5 50\\n1 3 100 1\\n1 5 6 2\\n2 4 123 2\\n5 4 55 1\\n2 100\\n1 2 954 1\\n\", \"4\\n4 2\\n2 1 4 2\\n3 2 4 1\\n4 1 2 2\\n3 20\\n2 1 8 1\\n3 1 0 2\\n5 50\\n1 3 100 1\\n1 5 6 2\\n2 4 123 2\\n5 4 55 1\\...
{ "index": "code_r1_train_1756" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2\\n3 4\\n5 6\\n\", \"3\\n1 1\\n2 2\\n3 3\\n\", \"3\\n1 2\\n1 2\\n3 3\\n\", \"3\\n1 1\\n1 1\\n1 1\\n\", \"5\\n1 2\\n6 6\\n4 4\\n3 3\\n3 3\", \"5\\n1 2\\n2 2\\n3 4\\n5 5\\n6 6\", \"5\\n1 2\\n6 6\\n4 1\\n3 3\\n3 2\", \"5\\n1 2\\n2 2\\n3 4\\n9 5\\n6 6\"], \"ou...
{ "index": "code_r1_train_1757" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\nadd\\n\", \"1\\nadd\\n\", \"2\\nfor 4\\nend\\n\", \"2\\nfor 62\\nend\\n\", \"2\\nfor 15\\nend\\n\", \"2\\nfor 14\\nend\\n\", \"2\\nfor 16\\nend\\n\", \"2\\nfor 24\\nend\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\",...
{ "index": "code_r1_train_1758" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\na\\n1 1\\nz\\n\", \"2\\n1 1\\na\\n1 1\\nz\\n\", \"2\\n1 1\\na\\n1 1\\ny\\n\", \"2\\n1 1\\nb\\n1 1\\nz\\n\", \"2\\n1 1\\nb\\n1 1\\ny\\n\", \"2\\n1 1\\nb\\n1 1\\nx\\n\", \"2\\n1 1\\nb\\n1 1\\nw\\n\", \"2\\n3 3\\n...\\n.a.\\n...\\n2 2\\nbb\\ncc\\n\"], \"ou...
{ "index": "code_r1_train_1759" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n\", \"2 0\\n\", \"6 0\\n\", \"50 0\\n\", \"49 0\\n\", \"49 0\\n\", \"50 0\\n\", \"6 1\\n4 1\\n\"], \"outputs\": [\"YES\\n1\\n1 1\\n\", \"YES\\n2\\n1 2\\n1 2\\n\", \"YES\\n6\\n1 2\\n1 3\\n2 4\\n3 5\\n4 6\\n5 6\\n\", \"YES\\n50\\n1 2\\n1 3\\n2 4\\n3 5\\n4 6\\...
{ "index": "code_r1_train_1760" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n4\\n1 2 3 34\\n\", \"2\\n3\\n1 2 1\\n4\\n1 1 1 1\\n\", \"3\\n4\\n1 2 1 2\\n3\\n2 4 2\\n5\\n1 2 3 4 5\\n\", \"1\\n13\\n1 2 3 4 5 6 7 8 9 10 11 12 13\\n\", \"1\\n30\\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\\n\", \"1\\n43\\n1 1 1 1 1 1 1 1 1...
{ "index": "code_r1_train_1761" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1 1\\n\", \"4 1 1 9\\n\", \"4 5 1 1\\n\", \"3 3 3 8\\n\", \"4 1 1 4\\n\", \"1 2 1 1\\n\", \"5 3 3 8\\n\", \"1 1 1 2\\n\"], \"outputs\": [\"1\", \"7\", \"1\", \"3\", \"4\\n\", \"1\\n\", \"3\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1762" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 3 2 3\\n\", \"1 1 1 1\\n\", \"1 2 1 2\\n\", \"1 1 2 2\\n\", \"1 2 1 2\\n\", \"1 1 1 1\\n\", \"1 1 2 2\\n\", \"5 3 2 1\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_1763" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n3 5\\n1 2\\n\", \"2\\n3 5\\n1 2\\n\", \"2\\n3 4\\n1 2\\n\", \"1\\n1 100000\\n\", \"1\\n1 100000\\n\", \"3\\n1 1\\n2 2\\n3 3\\n\", \"3\\n2 5\\n3 4\\n2 3\\n\", \"3\\n3 6\\n2 4\\n1 5\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"-1\...
{ "index": "code_r1_train_1764" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 50\\n1 4 3 1\", \"1 52\\n5 9 7 8\", \"1 50\\n1 7 6 3\", \"1 30\\n5 4 2 30\", \"1 30\\n6 4 2 30\", \"1 30\\n3 2 3 30\", \"1 30\\n6 6 2 30\", \"1 30\\n5 4 10 6\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1765" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 3 4\\n1 2\\n\", \"2 4 1\\n1 2\\n\", \"2 2 1\\n1 2\\n\", \"2 3 1\\n1 2\\n\", \"2 3 4\\n1 2\\n\", \"2 4 1\\n1 2\\n\", \"2 3 1\\n1 2\\n\", \"2 2 1\\n1 2\\n\"], \"outputs\": [\"3\\n\", \"4\\n\", \"2\\n\", \"3\\n\", \"3\", \"4\", \"3\", \"2\"]}" }
{ "index": "code_r1_train_1766" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"7 1 4\\n\", \"1 2 3\\n\", \"1 3 2\\n\", \"4 2 6\\n\", \"6 9 3\\n\", \"8 1 9\\n\", \"3 5 4\\n\", \"2 1 3\\n\"], \"outputs\": [\"6\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1767" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2 1\\n\", \"1 1 1\\n\", \"1 5 6\\n\", \"1 5 6\\n\", \"1 2 1\\n\", \"1 1 1\\n\", \"1 0 1\\n\", \"3 0 4\\n\"], \"outputs\": [\"0\", \"0\", \"16\", \"16\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"30\\n\"]}" }
{ "index": "code_r1_train_1768" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n3 2 1\\n1 1\\n1 1\\n\", \"3\\n3 2 1\\n1 2 3\\n1 1\\n1 2\\n\", \"3\\n3 2 1\\n1 2 3\\n1 1\\n1 4\\n\", \"3\\n1 2 3\\n3 2 0\\n1 1\\n1 1\\n\", \"3\\n3 2 1\\n1 2 3\\n1 1\\n2 4\\n\", \"3\\n3 0 1\\n1 2 3\\n1 1\\n2 4\\n\", \"3\\n3 2 1\\n1 2 3\\n1 1\\n1 2\\n\",...
{ "index": "code_r1_train_1769" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n67\", \"1 1\\n42\", \"1 1\\n50\", \"2 0\\n1 1\", \"2 0\\n1 3\", \"3 1\\n1 1 1\", \"3 0\\n1 1 1\", \"45 1\\n6 55 85 55 74 20 90 67 40 70 39 89 91 50 16 24 14 43 24 8 25 9 89 45 41 16 3 11 61 8 167 72 62 67 42 26 36 66 4 87 59 91 4 24 4\"], \"outputs\": [\"1\...
{ "index": "code_r1_train_1770" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n4\\n\", \"1 1\\n4\\n\", \"2 2\\n7 5\\n\", \"2 2\\n7 5\\n\", \"2 2\\n6 5\\n\", \"2 2\\n12 5\\n\", \"4 1\\n2 3 4 1\\n\", \"3 2\\n34 3 75\\n\"], \"outputs\": [\"0\\n\", \"0\", \"2\\n\", \"2\", \"1\\n\", \"7\\n\", \"0\\n\", \"72\\n\"]}" }
{ "index": "code_r1_train_1771" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n1\\n\", \"1 8\\n1\\n\", \"1 3\\n1\\n\", \"1 4\\n2\\n\", \"1 8\\n1\\n\", \"1 4\\n2\\n\", \"1 2\\n1\\n\", \"1 3\\n1\\n\"], \"outputs\": [\"1\\n\", \"7\\n\", \"2\\n\", \"3\\n\", \"7\\n\", \"3\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1772" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n2\\n\", \"2\\n2 1\\n2 2\\n\", \"2\\n2 1\\n1 1\\n\", \"2\\n1 2\\n1 1\\n\", \"2\\n1 2\\n2 2\\n\", \"2\\n2 1\\n1 2\\n\", \"4\\n1 2 3 4\\n1 1 1 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"Y...
{ "index": "code_r1_train_1773" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n.\\n\", \"1 1\\n*\\n\", \"1 2\\n**\\n\", \"1 3\\n*.*\\n\", \"2 1\\n*\\n*\\n\", \"2 1\\n.\\n.\\n\", \"1 3\\n...\\n\", \"2 1\\n)\\n*\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\\n\"]}" }
{ "index": "code_r1_train_1774" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n1 6\\n3 1\", \"2 2\\n2 6\\n3 1\", \"2 2\\n1 1\\n1 1\", \"2 2\\n1 3\\n3 1\", \"2 2\\n1 3\\n3 1\\n\", \"2 2\\n1 1\\n1 1\\n\", \"4 4\\n0 4 5 6\\n3 4 5 6\", \"4 4\\n0 4 5 6\\n3 4 5 0\"], \"outputs\": [\"2\\n\", \"1\\n\", \"6\", \"3\", \"3\\n\", \"6\\n\", \"8\\n...
{ "index": "code_r1_train_1775" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n1 1\\n\", \"3\\n2 1 1\\n\", \"3\\n2 1 1\\n\", \"4\\n3 2 1 1\\n\", \"4\\n3 2 1 1\\n\", \"6\\n5 2 1 1 2 2\\n\", \"6\\n5 3 1 1 2 2\\n\"], \"outputs\": [\"1\\n2 \", \"1\\n2\\n\", \"1\\n3 \", \"1\\n3\\n\", \"1\\n4 \", \"1\\n4\\n\", \"2\\n5 4 \", \"...
{ "index": "code_r1_train_1776" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n00\\n\", \"2 1\\n00\\n\", \"3 2\\n000\\n\", \"3 1\\n010\\n\", \"3 1\\n010\\n\", \"3 1\\n000\\n\", \"3 1\\n001\\n\", \"2 1\\n001\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1777" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2016\\n\", \"2000\\n\", \"1000\\n\", \"1900\\n\", \"1899\\n\", \"1004\\n\", \"2100\\n\", \"1313\\n\"], \"outputs\": [\"2044\\n\", \"2028\\n\", \"1006\\n\", \"1906\\n\", \"1905\\n\", \"1032\\n\", \"2106\\n\", \"1319\\n\"]}" }
{ "index": "code_r1_train_1778" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"2 1\\n2 1\\n\", \"2 1\\n2 1\\n\", \"2 1\\n2 1\\n\", \"2 1\\n1 2\\n\", \"4 1\\n2 1\\n\", \"4 1\\n4 1\\n\", \"3 1\\n2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1779" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2 4\\n1\\n3\\n\", \"3 2 4\\n1\\n1\\n\", \"6 4 8\\n1\\n4\\n\", \"2 1 3\\n1\\n3\\n\", \"3 2 4\\n1\\n3\\n\", \"3 2 4\\n1\\n1\\n\", \"2 1 3\\n1\\n3\\n\", \"6 4 8\\n1\\n4\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\", \"0\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_1780" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n4 4\\n\", \"2 2\\n4 4\\n\", \"2 2\\n5 4\\n\", \"2 2\\n1000 4\\n\", \"2 2\\n1000 4\\n\", \"2 2\\n0000 4\\n\", \"3 3\\n4 1000 4\\n\", \"3 3\\n4 1000 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"996\\n\", \"996\\n\", \"4\\n\", \"996\\n\", \"996\\n\"]...
{ "index": "code_r1_train_1781" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 6\\n\", \"1 1\\n\", \"1 1\\n\", \"1 2\\n\", \"9 6\\n\", \"6 6\\n\", \"14 8\\n\", \"1 22\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1782" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4 4\\n\", \"4 4 8\\n\", \"1 80 7\\n\", \"1 10 2\\n\", \"6 19 5\\n\", \"12 23 3\\n\", \"2 1000 4\\n\", \"1 124 11\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"3\\n\", \"5\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1783" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"2 2\\n1\\n2\\n\", \"2 2\\n1\\n4\\n\", \"1 2\\n1\\n4\\n\", \"2 2\\n1\\n2\\n\", \"1 1\\n1000\\n\", \"1 1\\n1000\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n2\\n\", \"2\\n2\\n\", \"1\\n1\\n\", \"2\\n2\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1784" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n\", \"5\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"7\\n\", \"9\\n\"], \"outputs\": [\"1\", \"70\", \"2\", \"6\", \"20\", \"252\", \"924\", \"12870\"]}" }
{ "index": "code_r1_train_1785" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n1 0\\n\", \"1\\n2 1\\n\", \"2\\n6 1\\n1 6\\n\", \"2\\n6 1\\n1 8\\n\", \"2\\n6 1\\n1 6\\n\", \"3\\n3 5\\n2 1\\n4 2\\n\"], \"outputs\": [\"Friendship is magic!^^\", \"Friendship is magic!^^\\n\", \"Mishka\\n\", \"Mishka\\n\", \"F...
{ "index": "code_r1_train_1786" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 20\\n5 9\\n4 0\", \"2 20\\n5 28\\n4 8\", \"2 20\\n5 14\\n4 8\", \"2 20\\n5 14\\n5 8\", \"2 20\\n5 28\\n1 8\", \"2 20\\n5 9\\n4 10\", \"2 20\\n5 14\\n4 10\", \"2 20\\n5 28\\n1 10\"], \"outputs\": [\"9\\n\", \"4\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"9\", \"5\\n\"...
{ "index": "code_r1_train_1787" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1 2\\n0\\n\", \"1 1 1 2\\n2\\n\", \"1 1 0 2\\n1\\n\", \"1 1 2 2\\n0\\n\", \"1 1 2 2\\n1\\n\", \"1 1 0 2\\n2\\n\", \"1 1 1 2\\n1\\n\", \"1 0 1 2\\n1\\n\"], \"outputs\": [\"0\", \"0\", \"1\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1788" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 5 1 1 5 4\\n\", \"6 2 6 1 1 2\\n\", \"6 6 1 1 1 6\\n\", \"5 5 1 1 5 3\\n\", \"6 6 1 1 6 1\\n\", \"5 4 1 4 5 1\\n\", \"4 5 1 1 4 5\\n\", \"5 5 1 5 4 1\\n\"], \"outputs\": [\"Second\\n\", \"Second\\n\", \"Second\\n\", \"First\\n\", \"Second\\n\", \"Second\\n\", \...
{ "index": "code_r1_train_1789" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n.*\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n.....\\n..*..\\n.....\\n.*...\\n.....\\n4\\n....\\n....\\n*...\\n*...\\n\", \"6\\n4\\n..*.\\n....\\n*...\\n....\\n2\\n*.\\n.*\\n2\\n*.\\n.*\\n3\\n*.*\\n...\\n...\\n5\\n........
{ "index": "code_r1_train_1790" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4\\n2 3 5 7\\n1 2 7\\n1 3 9\\n1 3 6\\n3 4 18\", \"4 4\\n2 3 5 7\\n1 2 7\\n1 3 9\\n2 3 21\\n3 4 18\", \"4 4\\n2 3 1 7\\n1 2 7\\n1 3 9\\n2 3 12\\n3 4 18\", \"4 4\\n2 3 5 7\\n1 4 7\\n1 2 9\\n1 3 15\\n3 4 18\", \"4 4\\n2 3 5 7\\n1 2 7\\n1 3 9\\n1 3 21\\n3 4 18\", \...
{ "index": "code_r1_train_1791" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 3\\n1 1\\n\", \"3 2\\n0 0\\n\", \"3 3\\n1 0\\n\", \"4 3\\n1 1\\n\", \"5 5\\n2 2\\n\", \"6 3\\n1 1\\n\", \"2 1\\n0 0\\n\", \"3 3\\n1 0\\n\"], \"outputs\": [\"1 6\\n\", \"1 3\\n\", \"9 9\\n\", \"1 12\\n\", \"1 25\\n\", \"1 18\\n\", \"1 2\\n\", \"9 9\\n\"]}" }
{ "index": "code_r1_train_1792" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 1 1 1\\n\", \"1\\n1 2 1 1\\n\", \"1\\n1 2 2 1\\n\", \"1\\n1 2 0 1\\n\", \"1\\n0 2 0 1\\n\", \"1\\n1 2 0 2\\n\", \"1\\n0 2 0 2\\n\", \"1\\n2 2 0 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1793" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"101 2 5\", \"100 2 5\", \"111 2 5\", \"000 2 5\", \"010 2 8\", \"000 2 8\", \"101 2 8\", \"100 2 8\"], \"outputs\": [\"0\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"2\\n\", \"7\\n\", \"0\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1794" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2\\n1 1\\n\", \"1\\n3\\n2 3 6\\n\", \"1\\n3\\n4 6 12\\n\", \"1\\n2\\n3 1000\\n\", \"1\\n5\\n2 3 6 6 6\\n\", \"1\\n4\\n2 2 1 1000\\n\", \"1\\n4\\n1 1 1 1000\\n\", \"1\\n5\\n1 1 6 20 45\\n\"], \"outputs\": [\"4\\n\", \"3\\n\", \"-1\\n\", \"3\\n\", \"3\\n\", \"7...
{ "index": "code_r1_train_1795" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2 4\", \"2 2 2\", \"3 2 0\", \"3 4 0\", \"3 7 0\", \"8 0 1\", \"3 7 1\", \"6 4 0\"], \"outputs\": [\"3\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1796" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"2\\n6 2\\n\", \"2\\n4 6\\n\", \"2\\n2 6\\n\", \"2\\n8 2\\n\", \"2\\n3 6\\n\", \"2\\n7 3\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"Bob\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Bob\\n\", \"Bob\\n\", \"Alice\\n\", \"Bob\\n\"]}" }
{ "index": "code_r1_train_1797" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\na\\n\", \"1\\na\\n\", \"1\\nb\\n\", \"12\\ntoosmallword\\n\", \"12\\ntoosmallworc\\n\", \"12\\ntoosmallword\\n\", \"25\\nnxYTzLFwzNolAumjgcAboyxAj\\n\", \"25\\nabcdefghijklmnopqrstuvwxy\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\...
{ "index": "code_r1_train_1798" }
code_r1
[ { "role": "system", "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.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n3 3\\n0 2 1\\n3 1 2 3\\n1 7\\n2 4 7\\n4 7\\n0 1 3 0 1 0 0\\n1 7\\n3 9 4 5\\n7 1 2 3 4 5 6 7\\n1 1\", \"2\\n3 3\\n0 2 1\\n3 1 2 3\\n1 7\\n2 4 7\\n4 7\\n0 1 2 0 1 0 0\\n1 7\\n3 9 4 5\\n7 1 2 3 4 5 6 7\\n1 1\", \"2\\n3 3\\n0 2 1\\n3 1 2 3\\n1 7\\n2 4 7\\n4 7\\n0...
{ "index": "code_r1_train_1799" }