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\\n0 0\\n\", \"1\\n8 9\\n\", \"1\\n8 17\\n\", \"1\\n16 17\\n\", \"2\\n1 2\\n1 3\\n\", \"2\\n1 3\\n1 6\\n\", \"2\\n1 3\\n2 4\\n\", \"2\\n2 2\\n1 3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2100"
} |
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\\n6\\n\", \"1\\n0\\n\", \"1\\n3\\n\", \"1\\n3\\n\", \"1\\n1\\n\", \"1\\n6\\n\", \"1\\n0\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2101"
} |
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\\n2 2\\n0 0\", \"1 1\\n2 0\\n0 0\", \"3 1\\n3 1\\n0 0\", \"4 1\\n1 1\\n0 0\", \"3 0\\n0 0\\n0 0\", \"3 1\\n0 0\\n0 0\", \"4 1\\n2 2\\n0 0\", \"2 1\\n2 3\\n0 0\"], \"outputs\": [\"yes\\nyes\\n\", \"no\\nyes\\n\", \"no\\nno\\n\", \"yes\\nno\\n\", \"yes\\n\", \"... | {
"index": "code_r1_train_2102"
} |
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 1\\n1 3 2\\n\", \"3 1\\n1 3 1\\n\", \"3 1\\n1 3 3\\n\", \"2 1\\n1 2 1\\n\", \"2 1\\n1 2 2\\n\", \"3 2\\n1 2 2\\n1 3 2\\n\", \"3 2\\n1 2 1\\n1 3 3\\n\", \"3 2\\n2 3 3\\n1 3 3\\n\"], \"outputs\": [\"2 0 2 \\n\", \"0 1 1 \\n\", \"3 3 0 \\n\", \"0 1 \\n\", \"2 0 \\... | {
"index": "code_r1_train_2103"
} |
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\": [\"40\\n9\\n5\\n29\\n79\\n133\\n9\\n266\\n0\", \"40\\n9\\n5\\n29\\n79\\n133\\n3\\n266\\n0\", \"40\\n9\\n5\\n29\\n79\\n133\\n3\\n332\\n0\", \"40\\n9\\n1\\n29\\n79\\n133\\n3\\n332\\n0\", \"40\\n14\\n9\\n29\\n79\\n133\\n9\\n241\\n0\", \"40\\n14\\n9\\n20\\n79\\n62\\n65\... | {
"index": "code_r1_train_2104"
} |
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\\n6\\n5\\n\", \"2\\n6\\n4\\n\", \"2\\n6\\n6\\n\", \"2\\n2\\n5\\n\", \"2\\n2\\n1\\n\", \"2\\n6\\n5\\n\", \"2\\n11\\n6\\n\", \"2\\n10\\n4\\n\"], \"outputs\": [\"YES\\nNO\\n\", \"YES\\nNO\\n\", \"YES\\nYES\\n\", \"NO\\nNO\\n\", \"NO\\nNO\\n\", \"YES\\nNO\\n\", \"N... | {
"index": "code_r1_train_2105"
} |
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 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n3 1 4 5\\n\", \"3\\n5 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 2\\n7 4\\n1 4 7 3 6 2 5\\n3 2 4 5\\n\", \"3\\n5 3\\n1 2 3 4 5\\n3 2 1\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n3 1... | {
"index": "code_r1_train_2106"
} |
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 5\\n.....\\n.#.#.\\n.###.\\n.#.#.\\n.....\", \"3 1\\n.....\\n.#.#.\\n.###.\\n.#.#.\\n.....\", \"2 5\\n.....\\n.#.#.\\n.###.\\n.#.#.\\n.....\", \"4 2\\n.....\\n.#.#/\\n.###.\\n.#.#.\\n.....\", \"0 1\\n.....\\n.#.#.\\n.###.\\n.#.#.\\n.....\", \"4 1\\n.....\\n.#.#... | {
"index": "code_r1_train_2107"
} |
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\\nESJ\\nESJ->TSJ\\n\", \"1\\nAAK\\nAAK->ABA\\n\", \"1\\nXYZ\\nXYZ->XYR\\n\", \"1\\nESJ\\nESJ->TSJ\\n\", \"1\\nAAK\\nAAK->ABA\\n\", \"1\\nXYZ\\nXYZ->XYR\\n\", \"1\\nAAK\\nAAK.>ABA\\n\", \"2\\nXMR\\nFAJ->XMR\\nXMR->FAJ\\n\"], \"outputs\": [\"contest\\n\", \"conte... | {
"index": "code_r1_train_2108"
} |
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\\n1\\n6\\n\", \"1\\n2\\n2\\n1\\n8\\n\", \"1\\n2\\n1\\n1\\n8\\n\", \"2\\n1\\n1\\n1\\n10\\n\", \"2\\n2\\n1\\n1\\n10\\n\", \"1\\n2\\n1\\n1\\n10\\n\", \"83\\n7\\n7\\n7\\n46\\n\", \"5\\n3\\n3\\n3\\n999\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"0\\... | {
"index": "code_r1_train_2109"
} |
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 0\\n0\\n\", \"1\\n1 0\\n0\\n\", \"1\\n1 0\\n1\\n\", \"1\\n1 1\\n4\\n\", \"1\\n1 0\\n2\\n\", \"1\\n1 1\\n1\\n\", \"1\\n1 2\\n4\\n\", \"1\\n1 0\\n4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2110"
} |
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\\n\\n.\\n\\n1 1\\n\", \"2 1 1\\n\\n.\\n\\n#\\n\\n1 1\\n\", \"1 1 10\\n\\n..........\\n\\n1 6\\n\", \"2 2 2\\n\\n#.\\n..\\n\\n.#\\n#.\\n\\n2 1\\n\", \"2 2 2\\n\\n#.\\n..\\n\\n.#\\n.#\\n\\n2 1\\n\", \"2 2 2\\n\\n.#\\n##\\n\\n..\\n..\\n\\n1 1\\n\", \"1 6 2\\n\... | {
"index": "code_r1_train_2111"
} |
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\\n1 4 3\\n2\\n7 2\", \"2\\n3\\n1 0 3\\n2\\n8 2\", \"2\\n3\\n1 4 3\\n2\\n42 7\", \"2\\n3\\n1 4 3\\n2\\n47 7\", \"2\\n3\\n1 4 3\\n2\\n20 7\", \"2\\n3\\n1 4 3\\n2\\n20 8\", \"2\\n3\\n1 0 2\\n2\\n1 17\", \"2\\n3\\n1 4 3\\n2\\n20 2\"], \"outputs\": [\"5\\n5\\n\"... | {
"index": "code_r1_train_2112"
} |
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\\nmike 1\\nandrew 5\\nmike 2\\n\", \"3\\nmike 1\\nandsew 5\\nmike 2\\n\", \"3\\nmike 3\\nandrew 5\\nmike 2\\n\", \"3\\neikm 0\\nwesdna 12\\nejkm 0\\n\", \"3\\nemki 0\\nwdsena 12\\nejmk 0\\n\", \"3\\nelkh 0\\nwdsema 12\\nemjk 0\\n\", \"3\\nmike 1\\nandsew 10\\nm... | {
"index": "code_r1_train_2113"
} |
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\\n2 0\\n0 0\\n\", \"1\\n2\\n2 2\\n1 1\\n\", \"1\\n2\\n5 6\\n1 2\\n\", \"1\\n2\\n2 0\\n0 0\\n\", \"1\\n2\\n5 6\\n1 2\\n\", \"1\\n2\\n2 2\\n1 1\\n\", \"1\\n2\\n2 0\\n1 1\\n\", \"1\\n2\\n5 6\\n0 2\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"... | {
"index": "code_r1_train_2114"
} |
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\\n2\\n1 1\\n\", \"1\\n3\\n1 1\\n\", \"1\\n3\\n1 2\\n\", \"1\\n3\\n0 2\\n\", \"1\\n3\\n0 3\\n\", \"1\\n3\\n0 1\\n\", \"1\\n4\\n1 2\\n\"], \"outputs\": [\"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n1\\n\", ... | {
"index": "code_r1_train_2115"
} |
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\\n\", \"1\\n2 5 6\\n\", \"1\\n5 5 5\\n\", \"1\\n6 6 6\\n\", \"1\\n1 3 2\\n\", \"1\\n6 6 6\\n\", \"1\\n1 1 1\\n\", \"1\\n1 3 2\\n\"], \"outputs\": [\"2\\n\", \"6\\n\", \"10\\n\", \"12\\n\", \"4\\n\", \"12\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2116"
} |
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\\nt\\n\", \"1\\nz\\n\", \"1\\nt\\n\", \"1\\nz\\n\", \"1\\na\\n\", \"1\\ns\\n\", \"1\\ny\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2117"
} |
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\\n1\\n100\\n\", \"1\\n100000000\\n1\\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 57 94\\n\", \"5\\n5 4 3 7 3\\n7 7 14 57 61\\n\", \"5\\n5 4 3 7 3\\n7 1 14 57 61\\n\"], \"outputs\": [\"10\\n\",... | {
"index": "code_r1_train_2118"
} |
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\\n1 1\\n\", \"3\\n1 3 1 3\", \"3\\n1 0 0 2\", \"3\\n1 3 2 1\", \"3\\n1 3 1 2\", \"3\\n1 0 1 2\", \"3\\n1 0 1 0\"], \"outputs\": [\"1\\n1\", \"1\\n1\\n\", \"3\\n5\\n4\\n1\\n\", \"3\\n4\\n3\\n1\\n\", \"3\\n6\\n4\\n1\\n\", \"3\\n5\\n4\\n1\\n\", \"3\\n... | {
"index": "code_r1_train_2119"
} |
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 1 1\\n2 1 4\\n3 0\\n4 1 3\", \"4\\n1 1 1\\n2 1 4\\n3 0\\n4 1 2\", \"4\\n1 1 3\\n2 1 4\\n3 0\\n4 1 3\", \"4\\n1 1 3\\n2 1 1\\n3 0\\n4 1 3\", \"4\\n1 1 2\\n2 1 4\\n3 0\\n4 1 2\", \"4\\n1 1 2\\n2 1 2\\n3 0\\n4 1 3\", \"4\\n1 1 1\\n2 1 1\\n3 0\\n4 1 2\", \"4\\n... | {
"index": "code_r1_train_2120"
} |
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\": [\"250 250 0 0\\n\", \"250 250 0 0\\n\", \"146 250 0 0\\n\", \"146 175 0 0\\n\", \"229 175 0 0\\n\", \"250 3500 0 0\\n\", \"250 3500 0 0\\n\", \"250 4386 0 0\\n\"], \"outputs\": [\"Tie\\n\", \"Tie\", \"Vasya\\n\", \"Vasya\\n\", \"Misha\\n\", \"Vasya\\n\", \"Vasya\",... | {
"index": "code_r1_train_2121"
} |
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\\n0\\n3\\n011\\n3\\n110\\n6\\n111000\\n6\\n001011\\n\", \"5\\n1\\n0\\n3\\n011\\n3\\n110\\n6\\n111100\\n6\\n001011\\n\", \"5\\n1\\n0\\n3\\n011\\n3\\n111\\n6\\n111100\\n6\\n001011\\n\", \"5\\n1\\n0\\n3\\n011\\n3\\n110\\n6\\n011000\\n6\\n001011\\n\", \"5\\n1\\... | {
"index": "code_r1_train_2122"
} |
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 6\\n\", \"4 1 5\\n\", \"7 3 6\\n\", \"5 1 6\\n\", \"6 1 5\\n\", \"5 1 5\\n\", \"4 4 5\\n\", \"6 1 6\\n\"], \"outputs\": [\"1\", \"1\", \"168\", \"1\\n\", \"15\\n\", \"5\\n\", \"4\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_2123"
} |
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\\nb\\n1\\nb:lala!\\n\", \"1\\n1\\nb\\n1\\nb:lala!\\n\", \"1\\n1\\nb\\n1\\n?:lala b!\\n\", \"1\\n1\\nb\\n1\\n?:lala b!\\n\", \"1\\n1\\nb\\n1\\n?:lal` b!\\n\", \"1\\n1\\nb\\n1\\n?:l`l` b!\\n\", \"1\\n1\\nb\\n2\\n?:lala hhe!\\nb:wat?\\n\", \"1\\n1\\nb\\n2\\n?:... | {
"index": "code_r1_train_2124"
} |
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\\n2 2\\n1\\n1\\n\", \"2\\n2\\n2 2\\n1\\n1\\n\", \"2\\n2\\n2 1\\n1\\n1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"2\\n5\\n1 1 1 1 1\\n4\\n1 1 1 1\\n\", \"2\\n5\\n1 1 1 1 1\\n4\\n1 1 1 1\\n\", \"2\\n5\\n1 1 2 1 1\\n4\\n1 1 1 1... | {
"index": "code_r1_train_2125"
} |
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 8\\n1 3 1 3\\n0 2 3\\n1 2 3 1\\n1 1 2 5\\n0 3 2\\n1 1 3 7\\n1 2 1 9\\n0 2 3\\n5 16\\n1 1 2 85440\\n1 1 3 4750\\n1 1 4 347392\\n1 1 5 2257\\n1 2 3 46435\\n1 2 5 545492\\n1 2 5 458\\n1 3 4 343983\\n1 3 1 1476667\\n1 4 5 2961\\n0 2 1\\n0 4 2\\n0 1 2\\n0 4 2\\n0 4 ... | {
"index": "code_r1_train_2126"
} |
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 5\\n1 2\\n\", \"2 2\\n4 5\\n2 2\\n\", \"2 4\\n2 5\\n2 2\\n\", \"2 4\\n4 5\\n1 2\\n\", \"2 2\\n4 5\\n1 1\\n\", \"2 0\\n4 5\\n1 1\\n\", \"2 0\\n4 9\\n1 1\\n\", \"2 2\\n4 9\\n1 1\\n\"], \"outputs\": [\"Yes\\n6 7\\n\", \"Yes\\n7 8\\n\", \"Yes\\n9 10\\n\", \"Y... | {
"index": "code_r1_train_2127"
} |
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\\naab\", \"3\\nbac\", \"3\\naaa\", \"3\\nabb\", \"3\\nbab\", \"3\\ncac\", \"3\\ndac\", \"3\\naba\"], \"outputs\": [\"5\\n\", \"7\\n\", \"3\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"7\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2128"
} |
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 5 0\\n0 1 1\\n0 2 4\\n1 2 2\\n2 3 1\\n1 3 2\", \"4 5 0\\n0 1 1\\n0 2 4\\n1 2 0\\n2 3 1\\n1 3 5\", \"4 5 0\\n0 1 1\\n1 2 4\\n1 1 0\\n2 3 1\\n1 3 2\", \"4 5 0\\n0 1 1\\n1 2 4\\n1 1 0\\n2 3 1\\n0 3 2\", \"4 5 0\\n0 1 1\\n1 2 5\\n1 1 0\\n2 3 1\\n0 3 2\", \"4 5 0\\n... | {
"index": "code_r1_train_2129"
} |
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\": [\".SSSSSSA\\n.SSSSSSS\\n.SSSSSSS\\n.SSSSSSS\\n.SSSSSSS\\n.SSSSSSS\\n.SSSSSSS\\nMSSSSSSS\\n\", \"S..SSSSA\\n...S.S.S\\n.SS.SS.S\\nSS....SS\\n.S.SSSS.\\n...S.S.S\\n..S..S..\\nMSSSSS.S\\n\", \".SSSS.SA\\n.SS.SSS.\\n..S.SS..\\nSSSS.SS.\\nS.S.....\\nS.S.SSSS\\nS..SS..S\... | {
"index": "code_r1_train_2130"
} |
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\", \"0\", \"94\", \"60\", \"49\", \"50\", \"75\", \"18\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2131"
} |
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\\n6 3 2\\n\", \"1\\n3\\n6 9 2\\n\", \"1\\n3\\n12 4 3\\n\", \"1\\n3\\n10 5 4\\n\", \"1\\n3\\n35 7 5\\n\", \"1\\n3\\n96 64 3\\n\", \"1\\n3\\n22 11 18\\n\", \"1\\n3\\n101 1 101\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n... | {
"index": "code_r1_train_2132"
} |
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\", \"2\", \"3\", \"4\", \"6\", \"6\\n\", \"2\\n\"], \"outputs\": [\"5\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\", \"3\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2133"
} |
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\\nb\\na\\n\", \"2 1\\nb\\n`\\n\", \"2 2\\nfb\\nye\\n\", \"2 2\\nfb\\ney\\n\", \"2 2\\nfb\\nez\\n\", \"2 2\\nfb\\nze\\n\", \"2 2\\nfc\\nez\\n\", \"2 3\\naxc\\nbxa\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n... | {
"index": "code_r1_train_2134"
} |
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\\n12 5\\n000000000000\\n\", \"1\\n12 5\\n000000000000\\n\", \"1\\n12 5\\n010000000000\\n\", \"1\\n12 4\\n010000000000\\n\", \"1\\n12 2\\n010000000000\\n\", \"1\\n12 2\\n000000000000\\n\", \"1\\n12 9\\n010000000000\\n\", \"1\\n12 6\\n010000000000\\n\"], \"output... | {
"index": "code_r1_train_2135"
} |
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 1 2 0 1 2\\n\", \"1 1 1 1 1 0\\n\", \"1 1 1 1 1 0\\n\", \"5 1 1 0 1 2\\n\", \"5 1 2 0 1 2\\n\", \"1 1 1 -1 -1 2\\n\", \"2 2 1 -2 -2 5\\n\", \"2 2 1 -2 -2 5\\n\"], \"outputs\": [\"3 1\", \"1 1\", \"1 1\\n\", \"3 5\\n\", \"3 1\\n\", \"1 1\", \"1 2\", \"1 2\\n\"]}... | {
"index": "code_r1_train_2136"
} |
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 42951\\n100000 132704\\n\", \"1\\n2 8\\n600349032 507824960\\n\", \"1\\n2 50000\\n90000 205032704\\n\", \"1\\n2 70000\\n70000 605032704\\n\", \"1\\n2 800000\\n800000 49872896\\n\", \"1\\n2 5\\n705032704 1000000000\\n\", \"1\\n2 444\\n902178848 98765432\\n\"... | {
"index": "code_r1_train_2137"
} |
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\", \"1\\n1 2 1 1\", \"1\\n1 1 359 1\", \"2\\n4 3 5 0\\n1 1 5 294\", \"2\\n4 3 5 0\\n1 1 5 262\", \"2\\n3 4 5 7\\n2 2 5 253\", \"2\\n4 5 5 0\\n4 7 1 457\", \"2\\n4 3 5 0\\n1 2 1 294\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"116\\n\", \"84\\n\", \"... | {
"index": "code_r1_train_2138"
} |
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\\n4\\n4\\n3\\n75116\\n\", \"5\\n1\\n4\\n4\\n3\\n52440\\n\", \"5\\n1\\n4\\n4\\n0\\n80298\\n\", \"5\\n1\\n4\\n3\\n1\\n86587\\n\", \"5\\n1\\n5\\n3\\n0\\n34153\\n\", \"5\\n1\\n5\\n3\\n0\\n13341\\n\", \"5\\n2\\n4\\n5\\n1\\n55511991\\n\", \"5\\n2\\n4\\n5\\n0\\n56... | {
"index": "code_r1_train_2139"
} |
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\", \"6\", \"8\", \"1\", \"2\", \"1\\n\", \"2\\n\"], \"outputs\": [\"9096\\n\", \"908\\n\", \"900993\\n\", \"90009092\\n\", \"9\", \"98\", \"9\\n\", \"98\\n\"]}"
} | {
"index": "code_r1_train_2140"
} |
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 50 50 0\", \"1 000 0 0\", \"2 100 0 0\", \"6 50 50 0\", \"5 50 50 0\", \"3 50 50 0\", \"4 100 0 0\", \"2 50 50 0\"], \"outputs\": [\"127441420\\n\", \"0\\n\", \"2\\n\", \"386718762\\n\", \"351562510\\n\", \"125000005\\n\", \"4\\n\", \"500000006\\n\"]}"
} | {
"index": "code_r1_train_2141"
} |
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\\n1 5\\n1 9\\n3 5\\n2 1\\n14 0\\n4 2\\n1 1010010000\\n1000100000 1\\n\", \"8\\n1 9\\n1 9\\n3 5\\n2 1\\n14 0\\n4 2\\n1 1010010000\\n1000100000 1\\n\", \"8\\n1 9\\n1 9\\n3 7\\n2 1\\n14 0\\n6 2\\n1 1010010000\\n1000100000 1\\n\", \"8\\n1 9\\n1 9\\n3 7\\n3 2\\n14 0... | {
"index": "code_r1_train_2142"
} |
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 1\\nabac\\n1 2 3\\n\", \"4 1\\nabac\\n1 2 3\\n\", \"1 2\\nz\\n1 1 1\\n1 1 1\\n\", \"1 2\\nz\\n1 1 1\\n1 1 1\\n\", \"7 4\\nabacaba\\n1 1 1\\n1 4 2\\n2 1 3\\n2 4 3\\n\", \"7 4\\nabacaba\\n1 1 1\\n2 4 2\\n2 1 3\\n2 4 3\\n\", \"7 4\\nabacaba\\n1 1 1\\n1 4 2\\n2 1 3... | {
"index": "code_r1_train_2143"
} |
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 3\\n###\\n###\\n###\\n###\\n0##\\n3 3\\n###\\n###\\n#0#\\n2 4\\n####\\n####\\n\", \"5\\n5 4\\n0000\\n0000\\n00#0\\n0000\\n0000\\n4 4\\n#000\\n00#0\\n#000\\n0000\\n4 3\\n000\\n0#0\\n#00\\n000\\n5 1\\n0\\n0\\n0\\n0\\n0\\n2 8\\n00#00000\\n000#000#\\n\", \"1\\n... | {
"index": "code_r1_train_2144"
} |
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\\n0 0\\n\", \"1 5\\n1 0\\n\", \"1 2\\n3 0\\n\", \"1 5\\n0 6\\n\", \"1 2\\n2 3\\n\", \"1 2\\n2 3\\n\", \"1 1\\n0 0\\n\", \"1 2\\n3 0\\n\"], \"outputs\": [\"0 2\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"0 2\\n\", \"0 0\\n\"]}"
} | {
"index": "code_r1_train_2145"
} |
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\\n1 2 x+2\\n2 2 2x+1\\n3 1 x+1\\n2 0\\n3 2\\n1 2 x\\n2 3 2\\n4 3\\n1 2 x^3+2x^2+3x+4\\n2 3 x^2+2x+3\\n3 4 x+2\\n0 0\", \"3 3\\n1 2 x+2\\n2 2 2x+1\\n3 1 x+1\\n2 0\\n3 2\\n1 2 x\\n2 3 1\\n4 3\\n1 2 x^3+2x^2+3x+4\\n2 3 x^2+2x+3\\n3 4 x+2\\n0 0\", \"3 3\\n1 2 x+2... | {
"index": "code_r1_train_2146"
} |
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\", \"3 3\\n5 4 6\\n\", \"6 3\\n1 2 3 2 2 3\\n\", \"6 3\\n1 2 4 1 2 3\\n\", \"1 1\\n1000000000000\\n\", \"3 3\\n14159 26535 89793\\n\", \"7 3\\n50 17 81 25 42 39 96\\n\", \"7 4\\n1 10000 1 1 1 1 10000\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"3\\n\", \... | {
"index": "code_r1_train_2147"
} |
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\\nZ\\n\", \"1\\nK\\n\", \"1\\nV\\n\", \"1\\nY\\n\", \"1\\nL\\n\", \"2\\nKV\\n\", \"2\\nVK\\n\", \"2\\nVL\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2148"
} |
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\\n2\\nab\\naa\\n2\\naa\\naa\\n2\\nab\\nba\\n2\\nbb\\nba\\n3\\naab\\nabb\\n\", \"5\\n2\\nab\\naa\\n2\\naa\\naa\\n2\\nab\\nba\\n2\\nbb\\nba\\n3\\naab\\nabb\\n\", \"5\\n2\\nab\\naa\\n2\\nab\\naa\\n2\\nab\\nba\\n2\\nbb\\nba\\n3\\naab\\nabb\\n\", \"5\\n2\\nab\\naa\\... | {
"index": "code_r1_train_2149"
} |
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\\nk\\n\", \"1\\nH\\n\", \"1\\nk\\n\", \"1\\na\\n\", \"1\\nH\\n\", \"1\\nj\\n\", \"1\\nb\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2150"
} |
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 3\", \"1 2\\n\", \"22 2\", \"15 2\", \"11 4\", \"25 2\", \"20 2\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"4\\n\", \"2\\n\", \"5\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2151"
} |
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 4 1\", \"3\\n1 3 4\", \"3\\n3 5 1\", \"3\\n3 5 2\", \"3\\n3 5 3\", \"3\\n3 7 3\", \"3\\n3 1 3\", \"3\\n3 3 1\"], \"outputs\": [\"2\", \"1\", \"2\", \"2\", \"2\", \"2\", \"2\", \"2\"]}"
} | {
"index": "code_r1_train_2152"
} |
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\\n12\\n\", \"2 1\\n31\\n\", \"2 1\\n33\\n\", \"2 1\\n99\\n\", \"3 1\\n123\\n\", \"3 1\\n898\\n\", \"3 2\\n798\\n\", \"3 2\\n192\\n\"], \"outputs\": [\"2\\n22\\n\", \"2\\n33\\n\", \"2\\n33\\n\", \"2\\n99\\n\", \"3\\n222\\n\", \"3\\n999\\n\", \"3\\n808\\n\", \"... | {
"index": "code_r1_train_2153"
} |
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\\nwall\\nstep\", \"2\\nllaw\\nstep\", \"2\\namlu\\nutfq\", \"2\\nwmck\\nmhqt\", \"2\\nllwa\\nstep\", \"2\\nllwa\\nstfp\", \"2\\nmlwa\\nstfp\", \"2\\nawlm\\nstfp\"], \"outputs\": [\"no such string\", \"no such string\\n\", \"u\\n\", \"m\\n\", \"no such string\\n... | {
"index": "code_r1_train_2154"
} |
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\": [\"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2155"
} |
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 4\\n0 1\\n\", \"2 2\\n0 1\\n\", \"2 4\\n0 0\\n\", \"2 1\\n0 0\\n\", \"2 2\\n0 0\\n\", \"2 4\\n1 0\\n\", \"2 4\\n-1 1\\n\", \"2 4\\n-1 0\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"5\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2156"
} |
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 1\\n1 2\\n3 2\\n4 2\\n1 6\\n5 6\", \"6 7\\n1 2\\n3 2\\n4 2\\n1 6\\n5 6\", \"6 2\\n1 2\\n3 2\\n4 2\\n1 6\\n5 2\", \"6 2\\n1 3\\n3 2\\n4 2\\n1 6\\n5 6\", \"6 2\\n0 3\\n3 2\\n4 2\\n1 6\\n5 6\", \"6 0\\n1 3\\n6 2\\n4 2\\n1 6\\n5 6\", \"6 7\\n1 2\\n3 4\\n4 2\\n1 6\\... | {
"index": "code_r1_train_2157"
} |
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(99+98)/97\\n(26+4)/10\\n(12+33)/15\\n(5+1)/7\\n\", \"4\\n(99+98)/97\\n(16+4)/10\\n(12+33)/15\\n(5+1)/7\\n\", \"4\\n(97+98)/99\\n(26+4)/10\\n(12+33)/15\\n(5+1)/7\\n\", \"4\\n(99+98)/97\\n(27+4)/10\\n(12+33)/15\\n(5+1)/7\\n\", \"4\\n(99+98)/97\\n(27+4)/10\\n(1... | {
"index": "code_r1_train_2158"
} |
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\", \"4 5\", \"4 2\", \"2 2\", \"2 1\", \"5 4\", \"4 8\", \"9 3\"], \"outputs\": [\"500000\\n\", \"0\\n\", \"200000\\n\", \"400000\\n\", \"500000\\n\", \"0\\n\", \"0\\n\", \"100000\\n\"]}"
} | {
"index": "code_r1_train_2159"
} |
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\": [\"10\\n10100\\n\", \"10\\n11100\\n\", \"11111111\\n1\\n\", \"11000000\\n0\\n\", \"10100110\\n1\\n\", \"11000000\\n1\\n\", \"101101\\n010\\n\", \"101101\\n000\\n\"], \"outputs\": [\"10\\n\", \"10\\n\", \"11111111\\n\", \"00000011\\n\", \"11110000\\n\", \"11000000\\n... | {
"index": "code_r1_train_2160"
} |
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 3\\n1\\n6\\n201449\\n16\\n7\\n60700\\n7\", \"6 3\\n1\\n6\\n201449\\n18\\n7\\n60700\\n7\", \"7 3\\n1\\n34\\n966369\\n7\\n9\\n40177\\n11\", \"7 3\\n1\\n62\\n334284\\n16\\n7\\n60700\\n7\", \"6 3\\n1\\n62\\n201449\\n16\\n7\\n60700\\n7\", \"6 1\\n1\\n62\\n190402\\n1... | {
"index": "code_r1_train_2161"
} |
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 3 3\\nw\\n\", \"1 2 6 3\\nw\\n\", \"1 2 6 5\\nw\\n\", \"1 3 6 5\\nw\\n\", \"1 3 3 3\\nw\\n\", \"1 3 6 3\\nw\\n\", \"4 2 3 16\\nwwhw\\n\", \"4 2 3 14\\nwwhw\\n\"], \"outputs\": [\"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2162"
} |
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 1 2\\n\", \"4\\n1 0 1 2\\n\", \"5\\n4 1 4 7 6\\n\", \"5\\n4 1 1 7 6\\n\", \"5\\n4 1 0 1 2\\n\", \"5\\n4 2 0 1 2\\n\", \"5\\n8 2 0 1 2\\n\", \"5\\n4 1 1 7 2\\n\"], \"outputs\": [\"0\\n0\\n1\\n\", \"1\\n1\\n3\\n\", \"4\\n5\\n9\\n17\\n\", \"4\\n5\\n6\\n14\\n... | {
"index": "code_r1_train_2163"
} |
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\\no\\n\", \"1\\no\\n\", \"1\\nn\\n\", \"1\\np\\n\", \"1\\nm\\n\", \"1\\nl\\n\", \"1\\nk\\n\", \"1\\nq\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_2164"
} |
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\", \"3\\n3 2 1\\n\", \"3\\n3 2 1\\n\", \"5\\n5 1 2 3 4\\n\", \"5\\n4 3 5 1 2\\n\", \"5\\n2 3 4 1 5\\n\", \"5\\n1 2 3 4 5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2165"
} |
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 2\", \"3 3 3\", \"0 3 2\", \"2 4 3\", \"3 4 2\", \"3 4 2\\n\", \"7 5 5\\n\", \"8 6 0\\n\"], \"outputs\": [\"8\\n\", \"7\\n\", \"1\\n\", \"4\\n\", \"8\", \"8\\n\", \"29\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_2166"
} |
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 9\\n\", \"5 2\\n\", \"1 2\\n\", \"2 2\\n\", \"2 2\\n\", \"1 2\\n\", \"9 9\\n\", \"9 2\\n\"], \"outputs\": [\"1\\n\", \"3\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_2167"
} |
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 0 4 1\\n\", \"0 0 1 0 2 1\\n\", \"0 0 0 1 1 0\\n\", \"0 0 1 0 3 1\\n\", \"0 0 1 0 2 2\\n\", \"0 0 1 0 0 1\\n\", \"2 3 4 5 3 6\\n\", \"0 0 4 0 0 1\\n\"], \"outputs\": [\"NEITHER\\n\", \"ALMOST\\n\", \"RIGHT\\n\", \"ALMOST\\n\", \"ALMOST\\n\", \"RIGHT\\n\", \... | {
"index": "code_r1_train_2168"
} |
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\": [\"xxxxxxxx\", \"xoxoxoxoxoxoxo\", \"oxoxowoxoxoxox\", \"oxoxowoooxoxxx\", \"xxxoxooowoxoxo\", \"xoxoxooxwoxoxo\", \"xoxoyoxoxoxoxo\", \"xxxoxoooooxwxo\"], \"outputs\": [\"NO\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_2169"
} |
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 2\\n1\\n\", \"1 0\\n1\\n\", \"1 3\\n1\\n\", \"1 6\\n1\\n\", \"1 5\\n1\\n\", \"1 7\\n1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2170"
} |
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\\nalex axle\\nparadise diapers\\nalice bob\", \"3\\nalex axle\\nesidarap diapers\\nalice bob\", \"3\\nelax axle\\nesidarap djapers\\nalice bob\", \"3\\nelax axle\\nesidarap diapers\\nalice bob\", \"3\\nelax ayle\\nesidarap djapers\\nalice bob\", \"3\\nelax ayle... | {
"index": "code_r1_train_2171"
} |
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 1\\n1 2 0\\n\", \"1 0 0\\n0 1 0\\n\", \"1 1 0\\n2 2 1\\n\", \"1 1 2\\n0 1 0\\n\", \"0 0 0\\n0 0 1\\n\", \"0 1 0\\n1 0 1\\n\", \"1 0 1\\n0 0 1\\n\", \"4 6 1\\n2 3 1\\n\"], \"outputs\": [\"1\", \"1\", \"0\", \"1\", \"0\", \"1\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_2172"
} |
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\\n\", \"2\\n2\\n\", \"2\\n1\\n\", \"6\\n1 2 6\\n\", \"6\\n1 5 6\\n\", \"6\\n1 4 5\\n\", \"6\\n3 5 6\\n\", \"6\\n3 4 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2173"
} |
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 145 10441 497785\\n\", \"1\\n4\\n1 143 10297 497785\\n\", \"5\\n3\\n1 10 100\\n4\\n4 8 9 13\\n5\\n0 0 0 8 13\\n6\\n2 4 8 16 32 64\\n7\\n0 0 0 0 0 0 0\\n\", \"1\\n104\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1... | {
"index": "code_r1_train_2174"
} |
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\\nacq\\nae\", \"1 2\\nacq\\nae\", \"4 1\\nabq\\nae\", \"1 1\\n`br\\n`e\", \"5 2\\naar\\nae\", \"5 1\\nacp\\nae\", \"5 3\\naar\\nae\", \"7 2\\n`ar\\n`e\"], \"outputs\": [\"6\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"10\\n\", \"5\\n\", \"15\\n\", \"14\\n\"]}"
} | {
"index": "code_r1_train_2175"
} |
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\", \"3 4\", \"3 1\", \"6 4\", \"2 4\", \"2 3\", \"2 5\", \"1 2\"], \"outputs\": [\"1\\n\", \"13\\n\", \"2\\n\", \"5\\n\", \"25\\n\", \"16\\n\", \"36\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2176"
} |
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\": [\"0111 1\", \"0111 0\", \"0011 1\", \"0001 1\", \"0011 2\", \"0101 5\", \"0011 0\", \"0101 1\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"1\\n\", \"4\"]}"
} | {
"index": "code_r1_train_2177"
} |
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\\n1 \\n2\\n1\", \"1\\n3\\n2 \\n2\\n1\", \"1\\n3\\n0 \\n2\\n0\", \"1\\n3\\n1 \\n4\\n1\", \"1\\n3\\n1 \\n8\\n1\", \"1\\n1\\n7 \\n6\\n1\", \"1\\n3\\n2 \\n1\\n1\", \"1\\n3\\n0 \\n1\\n0\"], \"outputs\": [\"2\", \"1\\n\", \"2\\n\", \"4\\n\", \"8\\n\", \"7\\n\", \... | {
"index": "code_r1_train_2178"
} |
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\": [\"AABABCAC\\nB\", \"AACABCAC\\nB\", \"AACABCAC\\nC\", \"AACAACAC\\nC\", \"@ACAACAC\\nC\", \"AABABCAC\\nA\", \"AbCdEfG\\naBcDeFh\", \"AbGdEfC\\naBcDeFh\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2179"
} |
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\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n5\\n\", \"2\\n0 0\\n\", \"2\\n0 5\\n\", \"2\\n0 5\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2180"
} |
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\\nb\\na\\n\", \"2 1\\nb\\na\\n\", \"2 1\\nc\\na\\n\", \"2 1\\nc\\nb\\n\", \"2 2\\nfb\\nye\\n\", \"2 2\\nfb\\nye\\n\", \"2 2\\nbf\\nye\\n\", \"2 3\\naxc\\nbxa\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2181"
} |
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\", \"4\", \"8\", \"6\", \"3\", \"7\", \"9\", \"5\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2182"
} |
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 4 6\", \"3\\n2 3 6\", \"3\\n2 1 6\", \"3\\n2 4 6\", \"3\\n0 1 10\", \"8\\n1 4 3 4 6 8 12 12\", \"8\\n1 8 3 4 6 8 12 12\", \"8\\n1 8 3 4 6 7 12 12\"], \"outputs\": [\"22\\n\", \"18\\n\", \"14\\n\", \"22\", \"10\\n\", \"327\\n\", \"383\\n\", \"585\\n\"]}"
} | {
"index": "code_r1_train_2183"
} |
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\\n6 1 2\", \"3\\n6 1 0\", \"3\\n6 2 0\", \"3\\n6 2 1\", \"3\\n6 2 2\", \"3\\n6 0 1\", \"3\\n1 0 0\", \"3\\n1 0 1\"], \"outputs\": [\"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2184"
} |
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 5\\n6\\n2\\n4\\n7\\n1\\n7 5\\n5\\n2\\n0\\n4\\n7\\n0 0\", \"7 5\\n6\\n2\\n4\\n7\\n1\\n7 5\\n5\\n2\\n0\\n1\\n7\\n0 0\", \"9 5\\n6\\n2\\n4\\n7\\n1\\n7 5\\n5\\n2\\n1\\n4\\n7\\n0 0\", \"7 5\\n6\\n2\\n3\\n7\\n1\\n7 5\\n6\\n2\\n0\\n4\\n7\\n0 0\", \"7 5\\n6\\n2\\n4\\n7... | {
"index": "code_r1_train_2185"
} |
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\", \"? - ? = 1\\n\", \"? = 1000010\\n\", \"? = 1010010\\n\", \"? = 1100000\\n\", \"? = 1000011\\n\", \"? = 1010011\\n\", \"? = 1010001\\n\"], \"outputs\": [\"Impossible\", \"Impossible\\n\", \"Possible\\n1000010 = 1000010\", \"Possible\\n1010010 = 10... | {
"index": "code_r1_train_2186"
} |
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\": [\"caaaba\\n5\\n1 1\\n1 4\\n2 3\\n2 6\\n4 5\\n\", \"caaaba\\n5\\n1 1\\n1 4\\n1 3\\n4 6\\n4 5\\n\", \"caaaba\\n5\\n1 1\\n1 1\\n2 3\\n2 6\\n4 5\\n\", \"caaaba\\n5\\n1 1\\n2 4\\n1 3\\n4 6\\n4 5\\n\", \"caaaba\\n5\\n1 1\\n1 1\\n3 3\\n2 6\\n4 5\\n\", \"caaaba\\n5\\n1 1\\... | {
"index": "code_r1_train_2187"
} |
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\\na`aa\\na\\naaa\\naa\", \"4\\na`ab\\na\\naaa\\naa\", \"4\\nb`aa\\na\\naaa\\naa\", \"4\\nc`aa\\na\\naaa\\naa\", \"4\\n`caa\\na\\naaa\\naa\", \"4\\n`caa\\na\\naab\\naa\", \"4\\n`caa\\na\\nbaa\\naa\", \"4\\n`caa\\n`\\naab\\naa\"], \"outputs\": [\"4\\n\", \"4\\n\"... | {
"index": "code_r1_train_2188"
} |
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\\n1\\n\", \"1 1\\n1\\n1\\n1\\n\", \"1 20\\n1\\n1\\n200000000\\n\", \"1 20\\n1\\n1\\n200000000\\n\", \"2 5\\n1 2\\n1\\n200000000\\n\", \"2 2\\n1 2\\n1\\n200000000\\n\", \"2 2\\n1 2\\n1\\n200000000\\n\", \"2 5\\n1 2\\n1\\n200000000\\n\"], \"outputs\": [... | {
"index": "code_r1_train_2189"
} |
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 10\\n1 13\\n\", \"1 10\\n1 13\\n\", \"1 16\\n1 13\\n\", \"1 235\\n15 210\\n\", \"1 235\\n15 210\\n\", \"1 235\\n23 210\\n\", \"1 235\\n23 340\\n\", \"3 5\\n1 8\\n2 19\\n3 11\\n\"], \"outputs\": [\"0\\n\", \" ... | {
"index": "code_r1_train_2190"
} |
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\\ns\\n\", \"1\\ns\\n\", \"2\\nh\\ns\\n\", \"2\\nh\\ns\\n\", \"4\\nssh\\nhs\\ns\\nhhhs\\n\", \"4\\nssh\\nhs\\ns\\nshhh\\n\", \"4\\nssh\\nhs\\ns\\nhhsh\\n\", \"4\\nshs\\nhs\\ns\\nshhh\\n\"], \"outputs\": [\"0\\n\", \"0\", \"1\\n\", \"1\", \"18\\n\", \"21\\n\", \"... | {
"index": "code_r1_train_2191"
} |
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\\n1\\n\", \"1 1 1\\n1\\n1\\n\", \"3 1 2\\n1 2 3\\n3 1 2\\n\", \"3 1 2\\n1 2 5\\n3 1 2\\n\", \"3 1 2\\n1 2 3\\n3 1 2\\n\", \"4 2 4\\n1 1 1 1\\n1 1 1 1\\n\", \"4 3 4\\n1 2 3 4\\n2 1 3 4\\n\", \"4 2 2\\n2 1 2 2\\n1 2 2 2\\n\"], \"outputs\": [\"TRUTH\\n\", ... | {
"index": "code_r1_train_2192"
} |
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\", \"7\\n\", \"9\\n\", \"7\\n\"], \"outputs\": [\"19\\n\", \"28\\n\", \"37\\n\", \"46\\n\", \"55\\n\", \"73\\n\", \"91\\n\", \"73\"]}"
} | {
"index": "code_r1_train_2193"
} |
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\\n95\\n\", \"1 2\\n96\\n\", \"1 2\\n54\\n\", \"1 3\\n289\\n\", \"1 3\\n250\\n\", \"2 1\\n2\\n0\\n\", \"2 1\\n2\\n1\\n\", \"3 1\\n1\\n2\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2194"
} |
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\\n10000000\\n10100000\", \"1 1\\n10001000\\n10100000\", \"4 5\\n1 2 3 4\\n5 6 7 4 9\", \"1 1\\n10001000\\n10110000\", \"4 5\\n1 1 3 4\\n5 6 7 4 9\", \"1 1\\n10001000\\n00110000\", \"4 5\\n1 2 3 8\\n5 6 7 8 9\", \"1 1\\n10010000\\n10100000\"], \"outputs\": [\"... | {
"index": "code_r1_train_2195"
} |
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\\no\\n\", \"1\\na\\n\", \"1\\ng\\n\", \"1\\nz\\n\", \"1\\no\\n\", \"1\\ng\\n\", \"1\\nz\\n\", \"1\\na\\n\"], \"outputs\": [\"o\\n\", \"a\\n\", \"g\\n\", \"z\\n\", \"o\\n\", \"g\\n\", \"z\\n\", \"a\\n\"]}"
} | {
"index": "code_r1_train_2196"
} |
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\\n9 5 0 5 1\\n0 -1 0 6 8 0\", \"1 1\\n10 5 0 8 9\\n0 0 0 9 12 0\", \"1 1\\n10 5 0 5 9\\n0 0 0 9 12 0\", \"1 1\\n10 5 1 8 7\\n0 0 0 17 12 0\", \"1 1\\n10 5 0 8 15\\n0 0 0 17 12 0\", \"5 1\\n0 10 0 3 2\\n0 19 2 5 5\\n0 30 0 1 22\\n0 8 0 1 32\\n1 50 0 5 24\\n0 1... | {
"index": "code_r1_train_2197"
} |
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\\n2\\n3\\n\", \"1 0\\n2\\n0\\n\", \"1 0\\n0\\n0\\n\", \"1 0\\n2\\n3\\n\", \"2 0\\n2 3\\n3 3\\n\", \"2 0\\n2 3\\n3 3\\n\", \"2 0\\n1 3\\n3 3\\n\", \"2 0\\n1 3\\n0 3\\n\"], \"outputs\": [\"3 \", \"0\\n\", \"0\\n\", \"3\\n\", \"3 3 \", \"3 3\\n\", \"3 3\\n\", \"... | {
"index": "code_r1_train_2198"
} |
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\", \"2\\n1 0\", \"2\\n0 0\", \"2\\n0 1\", \"2\\n3 0\", \"2\\n3 1\", \"2\\n2 1\", \"2\\n2 2\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2199"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.