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\\n\", \"1 1\\n1\\n\", \"1 0\\n1\\n\", \"1 0\\n0\\n\", \"1 2\\n1\\n\", \"5 314\\n0 310 942 628 0\\n\", \"5 314\\n0 310 942 628 1\\n\", \"5 314\\n1 310 942 628 1\\n\"], \"outputs\": [\"2 \\n\", \"2 \", \"1\\n\", \"0\\n\", \"3\\n\", \"314 628 1256 942 1570 \...
{ "index": "code_r1_train_1300" }
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\", \"9\\n\", \"4\\n\", \"6\\n\", \"3\\n\", \"2\\n\", \"25\\n\", \"24\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n1\\n1\\n0\\n\", \"NO\\n\", \"YES\\n1\\n3\\n1\\n145\\n\"]}" }
{ "index": "code_r1_train_1301" }
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\": [\"q\\nq\\n\", \"z\\na\\n\", \"w\\nw\\n\", \"q\\nr\\n\", \"z\\n`\\n\", \"x\\nw\\n\", \"r\\nq\\n\", \"z\\n_\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1302" }
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 5\", \"4 2\", \"2 2\", \"2 3\", \"0 3\", \"1 3\", \"0 9\", \"0 6\"], \"outputs\": [\"4\\n\", \"2\\n\", \"0\\n\", \"-1\\n\", \"-3\\n\", \"-2\\n\", \"-9\\n\", \"-6\\n\"]}" }
{ "index": "code_r1_train_1303" }
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 4 2\\nccccc\", \"5 2 2\\nccbcc\", \"5 2 2\\nccccc\", \"10 2 0\\nabccabaabb\", \"10 1 0\\nabccabaabb\", \"10 2 1\\nabccabaabb\", \"10 2 1\\nbbaacaccba\", \"10 1 3\\nabccabaabb\"], \"outputs\": [\"No\\nNo\\nNo\\nNo\\nNo\\n\", \"No\\nNo\\nYes\\nNo\\nNo\\n\", \"No\...
{ "index": "code_r1_train_1304" }
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\\n1\\n2\\n2 1\\n3\\n3 2 1\\n4\\n1 3 2 4\", \"4\\n1\\n1\\n2\\n2 1\\n3\\n3 1 1\\n4\\n1 3 2 4\", \"4\\n0\\n1\\n2\\n0 1\\n3\\n6 2 1\\n4\\n1 3 0 4\", \"4\\n0\\n1\\n2\\n0 1\\n3\\n0 1 2\\n4\\n1 3 2 4\", \"4\\n1\\n1\\n2\\n0 1\\n3\\n3 1 1\\n4\\n1 3 2 4\", \"4\\n0\\n...
{ "index": "code_r1_train_1305" }
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\\n1 1 1\\n2 2 2\\n3 3 3\\n4 4 4\\n10 5 8\\n\", \"5\\n1 1 1\\n2 2 2\\n3 3 3\\n4 4 4\\n10 5 8\\n\", \"5\\n1 1 1\\n2 2 2\\n0 3 3\\n4 4 4\\n10 5 8\\n\", \"5\\n1 1 1\\n2 4 2\\n0 3 3\\n4 1 4\\n10 5 8\\n\", \"5\\n1 1 1\\n1 2 2\\n3 3 3\\n4 4 4\\n10 5 8\\n\", \"5\\n1 1 ...
{ "index": "code_r1_train_1306" }
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\\n2\\n3\\n4\\n5\", \"5 1\\n0\\n2\\n3\\n4\\n5\", \"0 1\\n1\\n2\\n3\\n4\\n5\", \"1 0\\n1\\n2\\n3\\n4\\n5\", \"1 0\\n1\\n2\\n3\\n4\\n4\", \"1 0\\n1\\n2\\n3\\n7\\n4\", \"1 0\\n1\\n3\\n3\\n7\\n4\", \"0 0\\n1\\n3\\n3\\n7\\n4\"], \"outputs\": [\"0\\n\", \"10\\n\...
{ "index": "code_r1_train_1307" }
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\", \"4\", \"6\", \"8\", \"7\", \"9\", \"4\", \"6\"], \"outputs\": [\"16\\n\", \"6\\n\", \"12\\n\", \"24\\n\", \"64\\n\", \"36\\n\", \"6\\n\", \"12\\n\"]}" }
{ "index": "code_r1_train_1308" }
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\", \"9 3\", \"9 6\", \"4 3\", \"5 7\", \"6 7\", \"9 1\", \"5 1\"], \"outputs\": [\"2\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"5\\n\", \"6\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1309" }
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 3\\n1 3\\n2 3\", \"1 1\\n3 2\\n4 3\", \"1 2\\n3 2\\n4 3\", \"1 2\\n2 2\\n4 3\", \"3 2\\n2 4\\n1 4\", \"1 1\\n3 2\\n4 1\", \"1 4\\n2 2\\n4 3\", \"3 2\\n3 4\\n1 4\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \...
{ "index": "code_r1_train_1310" }
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\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"6\\n\", \"4\\n\", \"2\\n\"], \"outputs\": [\"8\\n\", \"6\\n\", \"4\\n\", \"2\\n\", \"10\\n\", \"2\\n\", \"4\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_1311" }
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\", \"0\", \"3\", \"5\", \"8\", \"6\", \"9\", \"7\"], \"outputs\": [\"64\\n\", \"0\\n\", \"27\\n\", \"125\\n\", \"512\\n\", \"216\\n\", \"729\\n\", \"343\\n\"]}" }
{ "index": "code_r1_train_1312" }
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 001 1334\\n\", \"1\\n2 001 1334\\n\", \"1\\n2 011 1334\\n\", \"1\\n2 111 1334\\n\", \"1\\n98 101 9313\\n\", \"1\\n671 011 4442\\n\", \"1\\n671 011 7638\\n\", \"1\\n136 011 7638\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO...
{ "index": "code_r1_train_1313" }
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\\n2 3\\n4 5\", \"3\\n2 2\\n2 3\\n2 5\", \"3\\n2 2\\n2 1\\n4 5\", \"3\\n4 2\\n2 3\\n2 5\", \"3\\n4 2\\n2 6\\n2 5\", \"3\\n2 2\\n2 3\\n5 5\", \"3\\n2 2\\n2 3\\n2 6\", \"3\\n2 2\\n2 1\\n4 6\"], \"outputs\": [\"12\\n26\\n312\", \"12\\n26\\n78\\n\", \"12\\n2\\...
{ "index": "code_r1_train_1314" }
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 2\\n3 2\\n\", \"1\\n3 2\\n3 2\\n\", \"1\\n3 2\\n3 1\\n\", \"1\\n6 2\\n6 2\\n\", \"1\\n6 2\\n6 1\\n\", \"1\\n6 2\\n6 3\\n\", \"4\\n3 2\\n3 1\\n8 6\\n8 7 6 5 3 2\\n9 6\\n9 8 5 4 3 1\\n1 1\\n1\\n\", \"4\\n1 1\\n1\\n3 2\\n3 1\\n8 6\\n8 7 6 5 3 2\\n9 6\\n9 8 5 4...
{ "index": "code_r1_train_1315" }
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\\naba\\nabac\\nabcd\", \"3\\naba\\nabac\\naacd\", \"3\\nbca\\nb`dc\\naabd\", \"3\\ncdd\\n_a_a\\n_ed[\", \"3\\nfda\\n`a`a\\nb`Ze\", \"3\\naba\\nabac\\ndaca\", \"3\\naba\\nabac\\ndaac\", \"3\\naba\\nabac\\nadac\"], \"outputs\": [\"YES\\nNO\\nNO\", \"YES\\nNO\\nNO...
{ "index": "code_r1_train_1316" }
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 100\\n\", \"1 2\\n1 100\\n\", \"1 3000\\n670 56891830\\n\", \"1 3000\\n918 548706881\\n\", \"1 3000\\n918 548706881\\n\", \"1 3000\\n670 548706881\\n\", \"1 3000\\n670 141077449\\n\", \"1 3000\\n2006 226621946\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"56...
{ "index": "code_r1_train_1317" }
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\": [\"50 50 1\\n1 50\\n\", \"50 50 1\\n1 50\\n\", \"50 41 1\\n1 50\\n\", \"50 50 1\\n2 50\\n\", \"50 47 1\\n1 50\\n\", \"50 50 1\\n2 23\\n\", \"5 3 5\\n4 4\\n3 5\\n2 4\\n3 4\\n3 5\\n\", \"5 5 5\\n4 4\\n3 5\\n2 4\\n3 4\\n3 5\\n\"], \"outputs\": [\"49\\n\", \"49\\n\", \"...
{ "index": "code_r1_train_1318" }
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 5\\n2 6\\n4 7\\n\", \"3\\n1 5\\n2 6\\n3 7\\n\", \"3\\n1 5\\n2 6\\n3 12\\n\", \"3\\n3 9\\n20 30\\n1 3\\n\", \"3\\n3 9\\n20 30\\n0 3\\n\", \"3\\n3 9\\n20 55\\n0 3\\n\", \"3\\n3 13\\n20 55\\n0 3\\n\", \"3\\n3 10\\n20 30\\n0 3\\n\"], \"outputs\": [\"0\\n\\n\", ...
{ "index": "code_r1_train_1319" }
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\", \"6\\n\", \"8\\n\", \"9\\n\", \"2\\n\", \"4\\n\", \"7\\n\", \"96\\n\"], \"outputs\": [\"17 17\\n\", \"34 57\\n\", \"40 73\\n\", \"41 81\\n\", \"22 25\\n\", \"28 41\\n\", \"47 65\\n\", \"144 777\\n\"]}" }
{ "index": "code_r1_train_1320" }
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 1\\n8 1\\n3 7\\n2 4 7\", \"2\\n2 2\\n3 8\\n3 7\\n8 16 7\", \"2\\n2 1\\n5 8\\n3 7\\n8 16 7\", \"2\\n2 2\\n5 8\\n2 7\\n7 16 7\", \"2\\n2 2\\n5 8\\n3 7\\n8 11 7\", \"2\\n2 2\\n5 1\\n2 7\\n8 16 7\", \"2\\n2 2\\n5 8\\n2 7\\n8 21 7\", \"2\\n2 3\\n5 8\\n3 7\\n8 11...
{ "index": "code_r1_train_1321" }
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\\n0 1\", \"2 3\\n1\\n0 2\", \"2 4\\n1\\n0 1\", \"2 4\\n0\\n0 1\", \"4 4\\n0\\n0 1\", \"6 4\\n0\\n0 1\", \"3 3\\n1\\n0 1\", \"4 3\\n1\\n0 1\"], \"outputs\": [\"20\", \"16\", \"48\", \"56\", \"320\", \"920\", \"59\", \"130\"]}" }
{ "index": "code_r1_train_1322" }
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\\n5 2 8\", \"3\\n5 3 8\", \"3\\n5 2 7\", \"3\\n3 3 8\", \"3\\n5 2 4\", \"3\\n5 2 4\\n\", \"3\\n3 3 11\", \"3\\n3 5 11\"], \"outputs\": [\"4\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"3\", \"3\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1323" }
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 2\\n2 4 7\\n5 3\\n1 2 3 4 5\", \"2\\n3 2\\n2 4 7\\n3 3\\n1 2 3 4 5\", \"2\\n3 2\\n2 4 7\\n3 3\\n1 2 3 4 9\", \"2\\n3 2\\n2 4 7\\n3 3\\n1 2 3 4 7\", \"2\\n4 2\\n1 4 7\\n5 3\\n1 2 3 4 9\", \"2\\n4 1\\n1 4 7\\n5 6\\n1 2 5 6 9\", \"2\\n4 2\\n1 4 5\\n5 6\\n1 2 3...
{ "index": "code_r1_train_1324" }
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\\n\", \"1\\n4\\n\", \"1\\n1\\n\", \"1\\n87\\n\", \"1\\n87\\n\", \"1\\n79\\n\", \"1\\n41\\n\", \"1\\n52\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1325" }
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\": [\"l\\n\", \"r\\n\", \"l\\n\", \"r\\n\", \"llrlr\\n\", \"rrlll\\n\", \"lrlrr\\n\", \"rlrll\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n5\\n4\\n2\\n1\\n\", \"1\\n2\\n5\\n4\\n3\\n\", \"2\\n4\\n5\\n3\\n1\\n\", \"1\\n3\\n5\\n4\\n2\\n\"]}" }
{ "index": "code_r1_train_1326" }
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 4 2 1\\n\", \"2\\n1 4 4 2\\n\", \"2\\n1 2 4 2\\n\", \"2\\n3 4 2 1\\n\", \"3\\n6 3 2 5 4 1\\n\", \"3\\n5 4 1 6 3 2\\n\", \"3\\n5 4 1 6 3 2\\n\", \"3\\n6 1 2 5 4 2\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"\\n-1\\n\", \"3\\n\", \"2\\n\", \"2\\n\...
{ "index": "code_r1_train_1327" }
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 3 1\\n\", \"4 2 3\\n\", \"4 3 2\\n\", \"3 3 3\\n\", \"4 4 2\\n\", \"3 4 1\\n\", \"4 4 4\\n\", \"3 5 1\\n\"], \"outputs\": [\"12\\n\", \"24\\n\", \"48\\n\", \"72\\n\", \" 432\", \" ...
{ "index": "code_r1_train_1328" }
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\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n2\\n\", \"2 1 2\\n01\\n\", \"2 2 1\\n01\\n\", \"2 1 2\\n10\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_1329" }
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 2 3 55\\n\", \"1\\n2 2 3 43\\n\", \"1\\n2 2 3 33\\n\", \"1\\n2 2 4 33\\n\", \"1\\n2 4 4 33\\n\", \"1\\n2 4 5 33\\n\", \"1\\n2 8 5 33\\n\", \"1\\n1 8 5 33\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\...
{ "index": "code_r1_train_1330" }
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\\n5 2\\n0 4 1 3 1\", \"1\\n5 0\\n0 4 0 7 1\", \"1\\n5 0\\n1 0 0 0 0\", \"1\\n5 3\\n2 4 1 3 1\", \"1\\n5 3\\n2 4 0 3 1\", \"1\\n5 3\\n0 4 0 3 1\", \"1\\n5 3\\n0 4 1 3 1\", \"1\\n5 2\\n0 4 1 5 1\"], \"outputs\": [\"0\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"1\\n\", ...
{ "index": "code_r1_train_1331" }
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\\n\", \"3\\n\", \"8\\n\", \"9\\n\", \"1\\n\", \"3\\n\", \"5\\n\", \"9\\n\"], \"outputs\": [\"0\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\\n\"]}" }
{ "index": "code_r1_train_1332" }
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\\n1 3\\n2 0 1\\n\", \"3\\n1 2\\n1 3\\n1 -1 1\\n\", \"3\\n1 2\\n1 3\\n1 -1 2\\n\", \"3\\n1 2\\n1 3\\n2 -1 1\\n\", \"3\\n1 2\\n1 3\\n1 -1 3\\n\", \"3\\n1 2\\n1 3\\n2 -1 3\\n\", \"3\\n1 2\\n1 3\\n1 -1 1\\n\", \"5\\n2 3\\n4 5\\n2 5\\n1 3\\n0 2 1 4 3\\n\"], \"...
{ "index": "code_r1_train_1333" }
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\\n2 1\\n1 2\\n1 1\\n\", \"2 2\\n1 2\\n1 2\\n1 1\\n\", \"2 2\\n2 1\\n1 1\\n1 1\\n\", \"2 2\\n2 1\\n1 1\\n2 1 2\\n\", \"2 2\\n1 2\\n1 2\\n2 1 2\\n\", \"4 2\\n1 2\\n1 3\\n2 4\\n1 3\\n1 4\\n\", \"4 2\\n1 2\\n2 3\\n3 4\\n4 1 2 3 4\\n1 1\\n\", \"10 2\\n5 6\\n4 7\\n...
{ "index": "code_r1_train_1334" }
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 2\\n\", \"1\\n1 3\\n\", \"1\\n0 1\\n\", \"1\\n2 1\\n\", \"1\\n2 2\\n\", \"1\\n2 0\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1335" }
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 2 0\\n1 2 3\\n4 5 6\\n7 8 9\\n1 2 3\\n6 5 4\\n7 8 9\\n11\\n4\\n7\\n5\\n10\\n9\\n2\\n1\\n3\\n8\", \"3 2 4 10\\n1 2 3\\n4 5 6\\n7 8 9\\n1 2 3\\n6 5 4\\n7 8 9\\n11\\n4\\n7\\n5\\n10\\n9\\n2\\n1\\n3\\n8\", \"3 3 4 11\\n1 2 3\\n8 5 6\\n7 8 9\\n1 2 3\\n8 5 4\\n7 8 9...
{ "index": "code_r1_train_1336" }
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 1\\n\", \"2\\n0 0\\n\", \"2\\n3 3\\n\", \"2\\n1 0\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n1 0\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1337" }
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 3\\n0 5 17\", \"7 3\\n0 4 17\", \"7 3\\n0 4 28\", \"7 3\\n0 8 28\", \"7 3\\n1 8 31\", \"9 3\\n0 5 17\", \"7 3\\n0 8 17\", \"7 3\\n0 2 28\"], \"outputs\": [\"-5\\n\", \"-6\\n\", \"-17\\n\", \"-13\\n\", \"-16\\n\", \"-3\\n\", \"-2\\n\", \"-19\\n\"]}" }
{ "index": "code_r1_train_1338" }
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\\n5 2 2 5 6 7\\n\", \"1\\n7 6 5 8 9 0\\n\", \"1\\n2 5 9 6 7 9\\n\", \"1\\n6 3 1 9 4 9\\n\", \"1\\n1 9 8 3 7 8\\n\", \"1\\n4 6 9 8 2 7\\n\", \"1\\n5 3 8 0 2 6\\n\", \"1\\n7 9 5 0 4 6\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"1\", \"1\", \"0\", \"0\", \"0\"]}" ...
{ "index": "code_r1_train_1339" }
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\\n0 0 0 2\", \"4\\n2 0 0 0\", \"4\\n0 0 0 1\", \"4\\n0 0 0 0\", \"4\\n1 0 0 0\", \"4\\n1 0 0 1\", \"4\\n2 0 -1 1\", \"4\\n2 -1 1 2\"], \"outputs\": [\"1\\n4\\n\", \"1\\n1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n1\\n\", \"2\\n1\\n4\\n\"]}" }
{ "index": "code_r1_train_1340" }
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\\n\", \"6\\n\", \"5\\n\", \"8\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"10\\n\"], \"outputs\": [\"7\\n\", \"11\\n\", \"9\\n\", \"13\\n\", \"8\\n\", \"5\\n\", \"3\\n\", \"16\\n\"]}" }
{ "index": "code_r1_train_1341" }
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 4\\n2\\n\", \"1 5\\n1\\n\", \"1 2\\n1\\n\", \"1 5\\n2\\n\", \"1 3\\n0\\n\", \"1 3\\n1\\n\", \"1 5\\n0\\n\"], \"outputs\": [\"0\\n1\\n\", \"0\\n2\\n\", \"0\\n1\\n\", \"0\\n1\\n\", \"0\\n2\\n\", \"0\\n0\\n\", \"0\\n1\\n\", \"0\\n0\\n\"]}" }
{ "index": "code_r1_train_1342" }
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\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n0\\n1\\n\", \"2\\n10\\n01\\n\", \"2\\n10\\n00\\n\", \"2\\n10\\n01\\n\", \"2\\n10\\n00\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1343" }
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\\n8\\n\", \"1\\n662\\n\", \"1\\n937\\n\", \"1\\n150\\n\", \"1\\n719\\n\", \"1\\n940\\n\", \"1\\n435\\n\"], \"outputs\": [\"9\\n\", \"9\\n\", \"729\\n\", \"972\\n\", \"243\\n\", \"729\\n\", \"972\\n\", \"729\\n\"]}" }
{ "index": "code_r1_train_1344" }
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\\n45 70\\n\", \"1 1\\n45 70\\n\", \"1 1\\n-35 -8\\n\", \"1 1\\n-35 -8\\n\", \"1 1\\n45 113\\n\", \"1 1\\n-40 -8\\n\", \"1 1\\n-79 -51\\n\", \"1 1\\n-79 -51\\n\"], \"outputs\": [\"26\\n\", \" 26\\n\"...
{ "index": "code_r1_train_1345" }
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 0\\n\", \"2 0\\n\", \"1 1\\n1\\n\", \"2 1\\n1\\n\", \"2 1\\n1\\n\", \"1 1\\n1\\n\", \"10 1\\n1\\n\", \"10 1\\n1\\n\"], \"outputs\": [\"YES\", \"YES\\n\", \"NO\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1346" }
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 9\\n1 4\\n3 7\\n\", \"5\\n1 4\\n5 6\\n1 4\\n4 4\\n1 2\\n2 2\\n1 1\\n1 7\\n1 4\\n3 4\\n\", \"5\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"5\\n1 2\\n1 1\\n1 3\\n2 4\\n1 5\\n2 6\\n2 7\\n3 5\\n3 6\\n1 1\\n1 1\\n\", \"4\\n4 3\\n1 3\\n7 9...
{ "index": "code_r1_train_1347" }
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\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"3\\n\", \"1\\n\", \"4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1348" }
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\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1349" }
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 5 -1\", \"3\\n2 5 -2\", \"3\\n3 5 -2\", \"3\\n3 2 -2\", \"3\\n0 2 -2\", \"3\\n0 3 -2\", \"3\\n0 3 -4\", \"3\\n0 6 -5\"], \"outputs\": [\"12\\n6\\n10\\n\", \"14\\n8\\n10\\n\", \"14\\n10\\n10\\n\", \"8\\n10\\n6\\n\", \"8\\n4\\n4\\n\", \"10\\n4\\n6\\n\", \"14\...
{ "index": "code_r1_train_1350" }
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\": [\"x\\n\", \"a\\n\", \"z\\n\", \"i\\n\", \"xxwx\", \"gpne\", \"wxwx\", \"gpnd\"], \"outputs\": [\"x\\n\", \"x\\n\", \"x\\n\", \"x\\n\", \"xxxx\\n\", \"xxxx\\n\", \"xxxx\\n\", \"xxxx\\n\"]}" }
{ "index": "code_r1_train_1351" }
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\\n2\\n3\\n4\\n\", \"4\\n1\\n2\\n3\\n8\\n\", \"4\\n1\\n2\\n1\\n4\\n\", \"4\\n2\\n2\\n3\\n5\\n\", \"4\\n1\\n2\\n4\\n4\\n\", \"4\\n1\\n3\\n1\\n4\\n\", \"4\\n1\\n2\\n5\\n4\\n\", \"4\\n1\\n3\\n3\\n5\\n\"], \"outputs\": [\"1\\n1\\n2\\n2\\n\", \"1\\n1\\n2\\n4\\n\"...
{ "index": "code_r1_train_1352" }
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 0\\n0\\n\", \"1 1 1\\n2\\n\", \"1 1 1\\n0\\n\", \"1 1 0\\n2\\n\", \"1 1 1\\n1\\n\", \"1 0 1\\n0\\n\", \"5 3 3\\n8 5 5 1 14\\n\", \"5 3 3\\n8 5 5 2 14\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"22\\n\", \"22\\n\"]}" }
{ "index": "code_r1_train_1353" }
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 2\\n\", \"2\\n1 1\\n1 1\\n\", \"2\\n1 2\\n1 3\\n\", \"2\\n1 2\\n1 3\\n\", \"2\\n1 4\\n1 3\\n\", \"2\\n1 2\\n1 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\nNO\\n\", \"YES\\nYES\\n\", \"YES\\nYES\\n\", \"YE...
{ "index": "code_r1_train_1354" }
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\\n2\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n8\\n\", \"1\\n4\\n\", \"1\\n10\\n\", \"1\\n10\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\"]}" }
{ "index": "code_r1_train_1355" }
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\": [\"STTTSS\", \"SSSTTT\", \"TTTSSS\", \"TSTSST\", \"SSTTTS\", \"TSSTST\", \"STTSST\", \"TSSSTT\"], \"outputs\": [\"4\\n\", \"0\\n\", \"6\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1356" }
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\\n\", \"5 4\\n\", \"7 2\\n\", \"7 6\\n\", \"5 0\\n\", \"5 3\\n\", \"7 1\\n\", \"5 2\\n\"], \"outputs\": [\"3\\n\", \"25\\n\", \"49\\n\", \"343\\n\", \"625\\n\", \"5\\n\", \"823543\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1357" }
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\": [\"c\\n\", \"a\\n\", \"b\\n\", \"z\\n\", \"d\\n\", \"`\\n\", \"e\\n\", \"{\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_1358" }
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\": [\"aaa\\nbb\\n\", \"aaaab\\naaa\\n\", \"aaaaa\\naaa\\n\", \"coed\\nforces\\n\", \"coed\\nfoecrs\\n\", \"coed\\nfofcrs\\n\", \"coed\\nsrcgof\\n\", \"coed\\nsrdgof\\n\"], \"outputs\": [\"\\n24\\n\", \"11\\n\", \"\\n0\\n\", \"1552\\n\", \"1670\\n\", \"1922\\n\", \"2078...
{ "index": "code_r1_train_1359" }
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\\n1\\n\", \"1 0\\n1\\n\", \"2 1\\n2 1\\n2 2\\n\", \"2 1\\n2 1\\n1 2\\n\", \"2 1\\n2 1\\n1 2\\n\", \"2 1\\n2 1\\n2 2\\n\", \"3 2\\n1 2\\n2 3\\n1 2 1\\n\", \"3 2\\n1 2\\n2 3\\n1 2 2\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"2\\n1\\n2\\n\"...
{ "index": "code_r1_train_1360" }
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\", \"0\", \"7\", \"4\", \"5\", \"8\", \"6\", \"3\"], \"outputs\": [\"1\\n\", \"0\\n\", \"12\\n\", \"4\\n\", \"6\\n\", \"16\\n\", \"9\", \"2\"]}" }
{ "index": "code_r1_train_1361" }
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\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n8\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1362" }
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\\n\", \"1\\n3\\n\", \"1\\n10\\n\", \"2\\n2 1\\n\", \"2\\n2 3\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n2 2\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"10\\n\", \"3\\n\", \"7\\n\", \"4\\n\", \"2\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1363" }
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\\n7\\n\", \"2\\n49 1\\n\", \"2\\n49 1\\n\", \"2\\n15 1\\n\", \"3\\n1 2 39\\n\", \"3\\n1 2 39\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1364" }
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 2\\n\", \"1\\n1 1\\n\", \"1\\n0 2\\n\", \"1\\n2 2\\n\", \"1\\n2 4\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n2 3\\n\", \"2\\n1 1\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1365" }
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\": [\"d\\ny\\n\", \"r\\nl\\n\", \"s\\nl\\n\", \"s\\nm\\n\", \"s\\nn\\n\", \"d\\nx\\n\", \"d\\nz\\n\", \"ba\\nba\\n\"], \"outputs\": [\"-1\\n\", \"l\\n\", \"l\\n\", \"m\\n\", \"n\\n\", \"-1\\n\", \"-1\\n\", \"ba\\n\"]}" }
{ "index": "code_r1_train_1366" }
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 2\\n\", \"2 2\\n1 2\\n\", \"3 2\\n1 3 2\\n\", \"3 3\\n1 2 3\\n\", \"3 3\\n1 2 3\\n\", \"3 2\\n1 3 2\\n\", \"3 2\\n2 3 2\\n\", \"3 2\\n2 3 0\\n\"], \"outputs\": [\"2 \", \"2\", \"3 \", \"3 \", \"3\", \"3\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1367" }
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\", \"6\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"7\\n\", \"8\\n\", \"9\\n\"], \"outputs\": [\"8\", \"28\", \"0\", \"0\", \"8\", \"28\", \"52\", \"64\"]}" }
{ "index": "code_r1_train_1368" }
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\\n2 4\\n1 5\\n3 6\\n6 11\\n8 9\\n9 3\\n7 36\\n314159265 541984339\", \"8\\n1 4\\n10 8\\n4 3\\n4 8\\n8 7\\n22 6\\n7 36\\n314159265 96636036\", \"8\\n2 4\\n6 9\\n3 1\\n5 11\\n4 9\\n16 1\\n6 57\\n314159265 75457060\", \"8\\n1 4\\n10 5\\n3 3\\n4 11\\n8 9\\n1 3\\n8 ...
{ "index": "code_r1_train_1369" }
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\\n8 5\\n1 2\\n4 4\\n3 9\\n\", \"4\\n8 5\\n1 2\\n4 5\\n3 9\\n\", \"4\\n8 5\\n1 2\\n1 5\\n3 9\\n\", \"4\\n8 0\\n1 2\\n1 5\\n3 9\\n\", \"4\\n8 0\\n1 2\\n1 5\\n2 9\\n\", \"4\\n7 0\\n1 2\\n1 5\\n2 9\\n\", \"4\\n6 0\\n1 2\\n1 5\\n2 9\\n\", \"4\\n6 0\\n2 2\\n1 5\\n2 9...
{ "index": "code_r1_train_1370" }
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\\n0 1\\n\", \"2 1\\n1 0\\n\", \"2 1\\n1 1\\n\", \"2 1\\n0 0\\n\", \"2 1\\n1 0\\n\", \"2 1\\n0 1\\n\", \"2 1\\n1 1\\n\", \"2 1\\n0 0\\n\"], \"outputs\": [\"0\", \"1\", \"1\", \"1\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1371" }
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\", \"3\\n\", \"1\\n\", \"6\\n\", \"4\\n\", \"6\\n\", \"1\\n\", \"3\\n\"], \"outputs\": [\"aa\\n\", \"aab\\n\", \"a\\n\", \"aabbaa\\n\", \"aabb\\n\", \"aabbaa\\n\", \"a\\n\", \"aab\\n\"]}" }
{ "index": "code_r1_train_1372" }
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,20\\n2,20\\n3,30\\n4,10\\n5,10\\n6,20\\n0,0\\n1\\n2\\n4\\n1\", \"1,20\\n2,20\\n3,30\\n4,10\\n5,10\\n0,26\\n0,0\\n1\\n2\\n4\\n1\", \"1,20\\n2,20\\n3,30\\n4,10\\n5,10\\n0,26\\n0,0\\n0\\n2\\n4\\n1\", \"1,20\\n2,20\\n3,30\\n4,10\\n5,10\\n0,26\\n0,0\\n1\\n2\\n4\\n0\...
{ "index": "code_r1_train_1373" }
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\\nwiite 4\\nblacj 19\\n5\\nblack\\netihw\", \"2\\nwihte 4\\nblacj 19\\n5\\nblack\\netihw\", \"2\\nwieth 4\\nblacj 19\\n5\\nblack\\netihw\", \"2\\nwieth 8\\nblacj 19\\n5\\nblack\\netihw\", \"2\\nwieth 8\\nblacj 19\\n8\\nblack\\netihw\", \"2\\nwieth 8\\nblacj 19\...
{ "index": "code_r1_train_1374" }
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 0 2\\nb\\na\\n1 a\\n1 b\\n\", \"1 1 1 1\\na\\nb: a 1\\n1 a\\n\", \"1 1 1 1\\na\\nc: a 1\\n1 a\\n\", \"1 1 1 1\\na\\nc: a 2\\n1 a\\n\", \"10 1 1 3\\na\\nb: a 2\\n1 a\\n1 a\\n1 a\\n\", \"20 1 1 3\\na\\nb: a 2\\n1 a\\n1 a\\n1 a\\n\", \"10 1 1 3\\na\\nc: a 2\\n1 ...
{ "index": "code_r1_train_1375" }
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 3 5\\n\", \"3\\n2 3 8\\n\", \"3\\n4 3 8\\n\", \"3\\n3 3 8\\n\", \"3\\n5 3 8\\n\", \"3\\n6 3 8\\n\", \"3\\n2 3 5\\n\", \"3\\n6 3 11\\n\"], \"outputs\": [\"22 3\", \"37 3\\n\", \"35 3\\n\", \"34 3\\n\", \"12 1\\n\", \"37 3\\n\", \"22 3\", \"52 3\\n\"]}" }
{ "index": "code_r1_train_1376" }
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\\n\", \"1 7\\n\", \"1 1\\n\", \"2 8\\n\", \"314 1592\\n\", \"237891668 1\\n\", \"1 1000000000\\n\", \"17890722 23878637\\n\"], \"outputs\": [\"0\\n\", \"5\\n\", \"1\\n\", \"0\\n\", \"496080\\n\", \"237891666\\n\", \"999999998\\n\", \"427205972767200\\n\"]}" }
{ "index": "code_r1_train_1377" }
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\\nbdd\\n3\\n3 2 1\\nDDDA\\n5\\n3 1 4 5 2\\ndcdkIlkP\\n0\", \"2\\n1 2\\nbdd\\n3\\n3 2 2\\nDDDA\\n5\\n3 1 4 5 2\\ndcdkIlkP\\n0\", \"2\\n1 2\\nbdd\\n3\\n5 2 2\\nDDDA\\n5\\n3 1 4 5 2\\ndcdkIlkP\\n0\", \"2\\n1 2\\nddb\\n3\\n3 2 1\\nDDDA\\n5\\n3 1 4 5 3\\ndcdkI...
{ "index": "code_r1_train_1378" }
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 0\\n0\\n\", \"1\\n0 0\\n0\\n\", \"1\\n0 0\\n1\\n\", \"1\\n0 0\\n-1\\n\", \"1\\n0 0\\n-9876\\n\", \"1\\n0 0\\n-9876\\n\", \"1\\n0 1\\n-9876\\n\", \"2\\n0 0\\n1 0\\n-1 0\\n\"], \"outputs\": [\"YES\\n0 0\\n\", \"YES\\n0 0\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\",...
{ "index": "code_r1_train_1379" }
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 1\\n1 2 1 1\\n1 1000000000\\n1 1\", \"2 1 0\\n1 2 1 1\\n1 1000000100\\n1 1\", \"2 1 0\\n1 2 1 1\\n1 1000000000\\n1 1\", \"2 1 0\\n1 2 1 1\\n1 1000000000\\n1 1\\n\", \"2 1 1\\n1 2 2 1\\n1 1000000000\\n-1 0\", \"2 1 1\\n1 2 -1 2\\n0 1000000000\\n0 2\", \"2 1 0\...
{ "index": "code_r1_train_1380" }
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\\n3\\n1\\n\", \"1\\n2\\n3\\n5\\n\", \"9\\n9\\n7\\n5\\n\", \"1\\n2\\n2\\n1\\n\", \"1\\n1\\n1\\n1\\n\", \"2\\n1\\n1\\n3\\n\", \"1\\n3\\n2\\n1\\n\", \"1\\n5\\n6\\n1\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"42\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0...
{ "index": "code_r1_train_1381" }
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\\naa\\nbb\\ncd\\n\", \"3\\naa\\nbc\\ncd\\n\", \"3\\naa\\ncc\\ncd\\n\", \"3\\naa\\ncc\\ndd\\n\", \"3\\naa\\ncd\\ndd\\n\", \"3\\naa\\nbb\\ncd\\n\", \"6\\naab\\nabcac\\ndffe\\ned\\naa\\naade\\n\", \"6\\naab\\nabcbc\\ndffe\\ned\\naa\\nabde\\n\"], \"outputs\": [\"1\...
{ "index": "code_r1_train_1382" }
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 1\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 3\\n\", \"3\\n1 0 3\\n\", \"3\\n1 2 2\\n\", \"3\\n0 0 3\\n\", \"3\\n1 3 2\\n\", \"3\\n1 2 1\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1383" }
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\": [\"15\\n2\\n6\\n7\\n0\\n1\\n9\\n8\\n7\\n3\\n8\\n9\\n4\\n8\\n4\\n2\\n3\\n9\\n1\\n5\\n0\", \"15\\n2\\n6\\n7\\n0\\n0\\n9\\n8\\n7\\n3\\n8\\n9\\n4\\n8\\n2\\n2\\n3\\n9\\n1\\n5\\n0\", \"15\\n2\\n6\\n7\\n0\\n1\\n9\\n8\\n7\\n3\\n8\\n9\\n4\\n8\\n4\\n2\\n3\\n9\\n1\\n2\\n0\", \...
{ "index": "code_r1_train_1384" }
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\\n8 8\\n0 0\\n0 1\\n3 3\\n1 2 5\\n2 8 3\\n0 1 2\\n0 0\\n2 2\\n3 3\\n1 2 5\\n2 8 6\\n0 1 2\\n0 0\\n1 2\\n2 2\\n1 2\\n3 4\\n0 0\\n0 1\\n2 3\\n1 2 3\\n4 5 6\\n0 0\\n1 2\\n0 0\", \"1 2\\n8 8\\n0 0\\n0 1\\n3 3\\n1 2 5\\n2 8 3\\n0 1 2\\n0 0\\n2 2\\n3 3\\n1 2 5\\n2 ...
{ "index": "code_r1_train_1385" }
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\\n2\\n4 3\\n3\\n3 2 3\\n1\\n1\\n1\\n2\\n1\\n6\\n1\\n4\\n1\\n751699\\n5\\n1 8 9 9 11\\n\", \"8\\n2\\n1 3\\n3\\n3 2 3\\n1\\n1\\n1\\n2\\n1\\n6\\n1\\n1\\n1\\n751699\\n5\\n1 8 9 9 11\\n\", \"8\\n2\\n2 3\\n3\\n3 4 5\\n1\\n1\\n1\\n2\\n1\\n3\\n1\\n4\\n1\\n606626\\n5\\n...
{ "index": "code_r1_train_1386" }
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\\n\", \"5 15\\n\", \"1050 0\\n\", \"148 35\\n\", \"602 293\\n\", \"446 491\\n\", \"2500 3750\\n\", \"2500 7500\\n\"], \"outputs\": [\"6\\n\", \"1\\n\", \"1\\n\", \"666\\n\", \"43365\\n\", \"118173\\n\", \"4691251\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1387" }
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 2 2\\n2 3 1\", \"3 2\\n1 3 2\\n2 3 1\", \"3 2\\n1 3 2\\n2 0 1\", \"3 2\\n1 2 2\\n2 0 1\", \"3 2\\n2 2 2\\n2 0 1\", \"3 2\\n1 1 1\\n2 3 1\", \"3 2\\n1 3 2\\n2 1 1\", \"3 2\\n1 3 3\\n2 1 1\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", ...
{ "index": "code_r1_train_1388" }
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 3\\n0 4 2\\n2 2\\n\", \"4 3\\n0 4 2\\n2 2\\n\", \"4 3\\n0 4 2\\n4 2\\n\", \"4 3\\n0 4 2\\n2 4\\n\", \"4 3\\n0 4 2\\n4 4\\n\", \"13 4\\n0 3 7 13\\n9 9\\n\", \"4 5\\n0 3 1 2 4\\n1 1\\n\", \"4 5\\n0 3 1 2 4\\n2 1\\n\"], \"outputs\": [\"6\", \"6\", \"4\\n\", \"8\\n...
{ "index": "code_r1_train_1389" }
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\": [\"X\\n\", \"RXLR\\n\", \"RLXR\\n\", \"XLRR\\n\", \"RRLX\\n\", \"LXRR\\n\", \"RXLLRLRR\\n\", \"RXRLRLLR\\n\"], \"outputs\": [\"0.000000\\n\", \"50.000000\\n\", \"50.000000\\n\", \"50.000000\\n\", \"50.000000\\n\", \"50.000000\\n\", \"58.333333\\n\", \"70.000000\\n\"...
{ "index": "code_r1_train_1390" }
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 0 1\\n2\\n0 1 4 1\\n3 0 3 3\", \"2 0 2\\n2\\n0 1 4 1\\n3 0 3 3\", \"2 0 2\\n2\\n0 1 4 2\\n3 0 3 3\", \"2 0 2\\n2\\n0 1 4 2\\n3 0 5 3\", \"2 0 2\\n1\\n0 1 4 2\\n3 0 5 3\", \"2 0 2\\n1\\n0 1 4 0\\n3 0 5 3\", \"2 0 2\\n1\\n0 1 8 0\\n1 0 5 3\", \"2 0 2\\n1\\n0 2 8 ...
{ "index": "code_r1_train_1391" }
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\\n100\\n\", \"1\\n100000000\\n1\\n\", \"5\\n5 4 3 7 3\\n7 7 14 57 94\\n\", \"5\\n5 4 3 7 3\\n7 7 14 45 94\\n\", \"5\\n5 8 3 7 3\\n7 7 14 45 94\\n\", \"5\\n99 65 5 94 25\\n1 5 6 2 3\\n\", \"5\\n99 65 93 94 17\\n1 5 6 2 3\\n\", \"5\\n99 65 93 94 25\\n1 5 6 2 ...
{ "index": "code_r1_train_1392" }
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\\n2\\n1 2\\n2 3\\n\", \"3\\n1 2 3\\n2\\n1 2\\n2 6\\n\", \"3\\n1 2 3\\n2\\n1 2\\n1 3\\n\", \"3\\n1 2 3\\n2\\n1 2\\n2 5\\n\", \"3\\n1 2 3\\n2\\n1 3\\n2 6\\n\", \"3\\n1 2 3\\n2\\n1 2\\n2 3\\n\", \"3\\n2 1 3\\n3\\n2 3\\n1 1\\n1 3\\n\", \"3\\n2 1 3\\n3\\n2 3...
{ "index": "code_r1_train_1393" }
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\\n3\\n0\", \"3\\n2\\n0\", \"3\\n9\\n0\", \"3\\n6\\n0\", \"3\\n1\\n0\", \"3\\n0\\n0\", \"3\\n4\\n0\", \"3\\n5\\n0\"], \"outputs\": [\"7\\n7\\n\", \"7\\n1\\n\", \"7\\n19\\n\", \"7\\n8\\n\", \"7\\n0\\n\", \"7\\n\", \"7\\n2\\n\", \"7\\n5\\n\"]}" }
{ "index": "code_r1_train_1394" }
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 1\\n\", \"3\\n2 1 2\\n\", \"3\\n5 9 5\\n\", \"3\\n3 1 2\\n\", \"3\\n1 9 4\\n\", \"3\\n2 1 3\\n\", \"3\\n9 3 6\\n\", \"3\\n2 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1395" }
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\\n1\\n\", \"1 2\\n1\\n1\\n\", \"1 1\\n1\\n1\\n\", \"1 2\\n1\\n1\\n\", \"1 3\\n1\\n1\\n\", \"2 3\\n2 1\\n2 1\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 2\\n2 1\\n1 2\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \...
{ "index": "code_r1_train_1396" }
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\": [\"?\\na\\n\", \"a\\na\\n\", \"b\\na\\n\", \"a\\naa\\n\", \"?\\ncb\\n\", \"b\\naa\\n\", \"?\\nca\\n\", \"?\\ncc\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1397" }
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\\n>'======#======~\\n>^Q=Q=Q=Q=Q=Q=Q=Q=Q=~~\\n>'===#===>~\", \"3\\n>'======#======~\\n>QQ=^=Q=Q=Q=Q=Q=Q=Q=~~\\n>'===#===>~\", \"3\\n>(======#======~\\n~~=Q=Q=Q=Q=Q=Q=Q=^=QQ>\\n>'===#==~>=\", \"3\\n>'======#======~\\n>QQ=^=Q=Q=Q=Q=Q=Q=Q=~~\\n>'===#==~>=\", \"3\\...
{ "index": "code_r1_train_1398" }
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\\n1\\n3\\n0\", \"5\\n1\\n6\\n1\", \"5\\n1\\n3\\n8\", \"5\\n1\\n1\\n6\", \"5\\n2\\n7\\n0\", \"5\\n1\\n8\\n8\", \"5\\n6\\n7\\n8\", \"5\\n12\\n7\\n8\"], \"outputs\": [\"0\\n0\\n0\\n0\\n\", \"0\\n0\\n14\\n0\\n\", \"0\\n0\\n0\\n4\\n\", \"0\\n0\\n0\\n14\\n\", \"0\\n0...
{ "index": "code_r1_train_1399" }