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\\n2\\n\", \"1 2\\n10\\n\", \"2 1\\n1 2\\n\", \"2 1\\n2 1\\n\", \"2 1\\n2 3\\n\", \"2 2\\n7 2\\n\", \"2 1\\n0 1\\n\"], \"outputs\": [\"1 1\\n\", \"2 2\\n\", \"-1\\n\", \"2 2\\n\", \"2 2\\n\", \"3 3\\n\", \"2 2\\n\", \"1 1\\n\"]}" }
{ "index": "code_r1_train_3200" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n00\\n\", \"2\\n44\\n\", \"2\\n55\\n\", \"2\\n02\\n\", \"2\\n36\\n\", \"2\\n11\\n\", \"2\\n00\\n\", \"2\\n55\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_3201" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n\", \"8 7\\n\", \"2 1\\n\", \"1 1\\n\", \"8 8\\n\", \"1 2\\n\", \"1 7\\n\", \"2 2\\n\"], \"outputs\": [\"0\\n\", \"35\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"6\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3202" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4 4\\n0 2 1\\n7 6 7\\n5 2 3\", \"1 2 1\\n2 4 4\\n1 2 1\\n7 6 2\\n5 3 3\", \"1 2 1\\n2 4 6\\n0 2 1\\n7 6 7\\n5 2 3\", \"1 2 1\\n2 4 4\\n1 2 1\\n7 0 2\\n5 3 3\", \"1 2 1\\n2 4 6\\n0 2 1\\n7 6 7\\n9 2 3\", \"1 2 1\\n2 4 7\\n3 2 2\\n7 6 7\\n5 4 3\", \"1 2 1...
{ "index": "code_r1_train_3203" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"f@IR, LATER, OCCASIONALLY CLOUDY.\", \"f@IR, LATER, YLLANOISACCO CLOUDY.\", \"f@IR, LATER, OLLANOISACCY CLOUDY.\", \"f@IR, LATER, OLKANOISACCY CLOUDY.\", \",RI@f LATER, OLKANOISACCY CLOUDY.\", \",RI@f KATER, OLKANOISACCY CLOUDY.\", \",RI@g KATER, OLKANOISACCY CLO...
{ "index": "code_r1_train_3204" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n1 1 1 1\\n1 1 1 1\\n\", \"1\\n6 4\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n1 1 1 1\\n1 1 1 1\\n\", \"1\\n6 4\\n0 1 1 1\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n1 1 1 1\\n1 1 1 1\\n\", \"1\\n6 4\\n0 1 1 0\\n0 1 1 0\\n1 1 1...
{ "index": "code_r1_train_3205" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n-3\\n\", \"1\\n-4\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3206" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n15 18\\n0 4\\n\", \"2 2\\n20 18\\n2 14\\n\", \"2 2\\n20 18\\n0 14\\n\", \"2 2\\n15 18\\n0 14\\n\", \"2 2\\n20 18\\n2 14\\n\", \"5 3\\n0 0 1 0 3\\n0 0 1\\n\", \"5 3\\n-1 0 1 0 3\\n0 0 1\\n\", \"5 3\\n-1 0 1 2 3\\n-1 0 1\\n\"], \"outputs\": [\"60\\n\", \"252\...
{ "index": "code_r1_train_3207" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 8\\n1 9\\n1 4\\n6 2\\n6 2\\n6 9\", \"6\\n2 8\\n1 9\\n1 5\\n6 2\\n6 2\\n6 9\", \"6\\n2 0\\n0 9\\n2 4\\n8 0\\n6 2\\n6 9\", \"6\\n2 8\\n2 9\\n1 5\\n6 2\\n6 2\\n6 9\", \"6\\n2 0\\n0 9\\n2 4\\n0 0\\n6 2\\n6 9\", \"6\\n2 8\\n5 9\\n2 4\\n10 4\\n6 1\\n6 5\", \"6\\n...
{ "index": "code_r1_train_3208" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n6\\n\", \"1 4\\n19\\n\", \"1 8\\n19\\n\", \"1 4\\n19\\n\", \"1 15\\n19\\n\", \"3 6\\n5 3 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"10\\n\", \"91\\n\", \"47\\n\", \"91\\n\", \"27\\n\", \"15\\n\"]}" }
{ "index": "code_r1_train_3209" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6 0\", \"2 0\", \"1 8\", \"4 0\", \"1 5\", \"3 0\", \"0 7\"], \"outputs\": [\"Brown\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\"]}" }
{ "index": "code_r1_train_3210" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 2\\nWLWLL\\n6 5\\nLLLWWL\\n7 1\\nLWLWLWL\\n15 5\\nWWWLLLWWWLLLWWW\\n40 7\\nLLWLWLWWWLWLLWLWWWLWLLWLLWLLLLWLLWWWLWWL\\n1 0\\nL\\n1 1\\nL\\n6 1\\nWLLWLW\\n\", \"8\\n5 2\\nWLWLL\\n6 5\\nLLLWWL\\n7 2\\nLWLWLWL\\n15 5\\nWWWLLLWWWLLLWWW\\n40 7\\nLLWLWLWWWLWLLWLWW...
{ "index": "code_r1_train_3211" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"9\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"8\\n\", \"9\\n\"], \"outputs\": [\"1\\n\", \"8\\n\", \"9\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"8\\n\", \"9\\n\"]}" }
{ "index": "code_r1_train_3212" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\nabcde\\nR++\\nR++\\nL++\\nL--\", \"6 2\\nabdde\\nR++\\nR++\\nL++\\nL--\", \"5 0\\nabcde\\nR++\\nR++\\nL++\\nL--\", \"6 1\\nabcde\\nR++\\nR++\\nL++\\nL--\", \"6 4\\nabdde\\nR++\\nR++\\nL++\\nL--\", \"2 4\\nabcde\\nR++\\nR++\\nL++\\nL--\", \"6 2\\neddba\\nR++...
{ "index": "code_r1_train_3213" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n1 0\\n2 0\", \"1 4\\n0 0\\n2 1\\n2 0\", \"3 8\\n0 0\\n0 0\\n2 0\", \"3 4\\n0 0\\n1 0\\n2 0\", \"3 4\\n0 0\\n1 1\\n2 0\", \"3 4\\n0 0\\n2 1\\n2 0\", \"1 4\\n0 0\\n2 1\\n2 1\", \"3 4\\n0 0\\n0 0\\n2 0\"], \"outputs\": [\"2\\n\", \"0\\n\", \"8\\n\", \"2\...
{ "index": "code_r1_train_3214" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"1\\n2\\n1 3\\n\", \"1\\n2\\n1 4\\n\", \"1\\n2\\n1 1\\n\", \"1\\n2\\n1 8\\n\", \"1\\n2\\n2 1\\n\", \"1\\n2\\n2 2\\n\", \"1\\n2\\n1 9\\n\"], \"outputs\": [\"T\\n\", \"T\\n\", \"T\\n\", \"HL\\n\", \"T\\n\", \"T\\n\", \"HL\\n\", \"T\\n\"]}" }
{ "index": "code_r1_train_3215" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"2\\n2 3\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n3 4\\n\", \"2\\n3 3\\n\", \"2\\n1 4\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3216" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 5\\n\", \"1\\n1 2 6\\n\", \"1\\n4 4 1\\n\", \"1\\n7 1 1\\n\", \"1\\n1 1 7\\n\", \"1\\n4 1 4\\n\", \"1\\n9 2 7\\n\", \"1\\n1 3 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_3217" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9 1\\n1\\n\", \"2 1\\n1\\n\", \"3 1\\n1\\n\", \"10 1\\n1\\n\", \"10 1\\n1\\n\", \"10 1\\n2\\n\"], \"outputs\": [\"1\\n\", \"1\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\"]}" }
{ "index": "code_r1_train_3218" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n3 1 2 7 4\\n6\\n2 2 3 2 1 3\\n4\\n7 9 3 0\\n2\\n1 1000\\n3\\n000 150 85\\n\", \"5\\n5\\n1 1 2 7 4\\n6\\n2 2 3 2 2 5\\n4\\n7 9 3 0\\n2\\n1 1000\\n3\\n000 150 85\\n\", \"5\\n5\\n3 1 2 7 4\\n6\\n2 2 3 2 1 3\\n4\\n2 9 3 0\\n2\\n1 1000\\n3\\n000 150 85\\n\", \...
{ "index": "code_r1_train_3219" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n2\\n\", \"1 1\\n2\\n\", \"2 1\\n2 2\\n\", \"2 2\\n2 2\\n\", \"2 2\\n2 2\\n\", \"2 1\\n2 2\\n\", \"2 2\\n3 2\\n\", \"2 3\\n6 2\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_3220" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 2\\n\", \"3 2\\n\", \"1 1\\n\", \"1 1\\n\", \"2 1\\n\", \"3 4\\n\", \"3 1\\n\"], \"outputs\": [\"5\\n\", \"5\\n\", \"9\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"34\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3221" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"20\\n1\\n0 7\", \"20\\n1\\n3 7\", \"20\\n1\\n2 7\", \"20\\n1\\n0 3\", \"20\\n1\\n4 6\", \"20\\n1\\n6 7\", \"20\\n1\\n0 4\", \"20\\n1\\n1 4\"], \"outputs\": [\"7\\n\", \"4\\n\", \"5\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"4\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3222" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n1 2 3 4 5\", \"8 5\\n1 3 4 6 10 11 12 13\", \"8 5\\n1 3 4 6 10 11 12 14\", \"8 3\\n1 3 4 6 10 11 12 13\", \"8 3\\n2 3 4 8 10 11 12 13\", \"8 5\\n1 3 4 5 10 11 12 13\", \"2 1100100000001\\n91876 1100011\", \"2 0100010000100\\n13404 1101001\"], \"outputs\": [...
{ "index": "code_r1_train_3223" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3\\n2 1 2\\n\", \"1\\n78261382\\n\", \"5\\n9 7 4 4 1\\n\", \"5\\n4 5 7 10 9\\n\", \"6\\n7 4 4 2 6 1\\n\", \"6\\n6 3 4 5 5 5\\n\", \"6\\n1 1 1 1 1 1\\n\"], \"outputs\": [\"2\\n\", \"500000005\\n\", \"1\\n\", \"825396833\\n\", \"966269851\\n\", \"...
{ "index": "code_r1_train_3224" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"3\\n0 1 0\\n\", \"3\\n1 1 0\\n\", \"3\\n0 1 1\\n\", \"3\\n0 1 0\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3225" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nD\\nT\", \"2\\nE\\nU\", \"2\\nF\\nU\", \"2\\nD\\nS\", \"2\\nC\\nU\", \"2\\nB\\nU\", \"2\\nD\\nV\", \"2\\nD\\nR\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3226" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"31\\n\", \"28\\n\", \"98\\n\", \"88\\n\"], \"outputs\": [\"9/4\\n\", \"3/2\\n\", \"2/1\\n\", \"7/3\\n\", \"222/29\\n\", \"85/13\\n\", \"317/16\\n\", \"1529/86\\n\"]}" }
{ "index": "code_r1_train_3227" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1\\n\", \"1\\n1\\n3\\n2\\n\", \"1\\n1\\n1\\n2\\n\", \"1\\n1\\n3\\n1\\n\", \"1\\n1\\n5\\n4\\n\", \"1\\n1\\n4\\n3\\n\", \"1\\n1\\n1\\n0\\n\", \"1\\n1\\n2\\n3\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n...
{ "index": "code_r1_train_3228" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"2 3\\n\", \"1 2\\n\", \"1 1\\n\", \"7 1\\n\", \"2 4\\n\", \"2 1\\n\", \"2 2\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"2\\n\", \"-1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3229" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4\\n1 1 1 0\\n5\\n4 3 2 1 0\\n9\\n4 1 4 3 1 0 2 1 0\\n\", \"3\\n4\\n1 1 1 0\\n5\\n4 3 2 1 0\\n9\\n4 1 4 2 1 0 2 0 0\\n\", \"3\\n4\\n1 1 1 0\\n5\\n2 3 2 1 0\\n9\\n3 1 4 1 1 0 2 1 0\\n\", \"3\\n4\\n1 1 1 0\\n5\\n4 3 2 1 0\\n9\\n4 2 4 3 1 0 2 1 0\\n\", \"3\\n4\\...
{ "index": "code_r1_train_3230" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n5\", \"1\\n0\\n1\", \"1\\n0\\n2\", \"1\\n0\\n4\", \"1\\n1\\n2\", \"1\\n0\\n3\", \"8\\n0\\n6\", \"1\\n1\\n4\"], \"outputs\": [\"8 0 7\\n4 5 6\\n3 10 2\\n\", \"1 0 2\\n2 1 0\\n0 2 1\\n\", \"1 0 5\\n6 2 -2\\n-1 4 3\\n\", \"1 0 11\\n14 4 -6\\n-3 8 7\\n\", \"1...
{ "index": "code_r1_train_3231" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 1 1\\n\", \"4 1\\n6 1 1\\n\", \"2 1\\n6 1 1\\n\", \"3 2\\n3 2 3\\n5 1 2\\n\", \"0 2\\n3 2 3\\n5 1 2\\n\", \"3 2\\n3 2 3\\n5 1 2\\n\", \"4 3\\n1 3 2\\n2 2 1\\n3 4 3\\n\", \"5 3\\n1 4 4\\n4 2 2\\n5 5 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"3\...
{ "index": "code_r1_train_3232" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"2\\n6\\n5\\n\", \"2\\n9\\n5\\n\", \"2\\n3\\n9\\n\", \"2\\n6\\n7\\n\", \"2\\n9\\n7\\n\", \"2\\n3\\n5\\n\", \"2\\n10\\n7\\n\"], \"outputs\": [\"1\\n2\\n\", \"3\\n2\\n\", \"4\\n2\\n\", \"1\\n4\\n\", \"3\\n3\\n\", \"4\\n3\\n\", \"1\\n2\\n\", \"5\\n3...
{ "index": "code_r1_train_3233" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9\\n9\\n\", \"1\\n2\\n\", \"9\\n0\\n\", \"0\\n1\\n\", \"0\\n0\\n\", \"1\\n0\\n\", \"0\\n0\\n\", \"9\\n9\\n\"], \"outputs\": [\"=\\n\", \"<\\n\", \">\\n\", \"<\\n\", \"=\\n\", \">\\n\", \"=\\n\", \"=\\n\"]}" }
{ "index": "code_r1_train_3234" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4 4\", \"3\\n4 3\", \"3\\n5 3\", \"3\\n9 3\", \"3\\n7 3\", \"3\\n0 3\", \"3\\n0 5\", \"3\\n0 6\"], \"outputs\": [\"-4 4\\n\", \"-3 4\\n\", \"-3 5\\n\", \"-3 9\\n\", \"-3 7\\n\", \"-3 0\\n\", \"-5 0\\n\", \"-6 0\\n\"]}" }
{ "index": "code_r1_train_3235" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ba\\n2\\n\", \"ab\\n2\\n\", \"aa\\n2\\n\", \"cba\\n6\\n\", \"cca\\n6\\n\", \"cca\\n1\\n\", \"acb\\n5\\n\", \"cba\\n1\\n\"], \"outputs\": [\"b\\n\", \"ab\\n\", \"a\\n\", \"cba\\n\", \"cca\\n\", \"a\\n\", \"c\\n\", \"a\\n\"]}" }
{ "index": "code_r1_train_3236" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 4\\n3 1 2 4 5 7 6\\n1 2\\n4 4\\n6 7\\n2 3\\n4 2\\n2 1 3 4\\n2 4\\n2 3\", \"2\\n7 4\\n6 1 2 4 5 7 6\\n1 2\\n4 4\\n6 7\\n2 3\\n4 2\\n2 1 3 4\\n2 4\\n2 3\", \"2\\n7 4\\n3 1 2 4 5 7 6\\n1 2\\n4 4\\n6 7\\n2 3\\n4 2\\n2 1 3 6\\n2 4\\n2 3\", \"2\\n7 4\\n6 1 2 4 5 ...
{ "index": "code_r1_train_3237" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n545\\n\", \"1 0\\n493\\n\", \"1 0\\n358\\n\", \"1 0\\n420\\n\", \"1 0\\n149\\n\", \"1 0\\n249\\n\", \"1 0\\n654\\n\", \"1 0\\n294\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3238" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 9 96\\n\", \"1\\n4\\n1 8 6 7\\n\", \"1\\n4\\n3 21 9 6\\n\", \"1\\n5\\n2 8 4 8 4\\n\", \"1\\n4\\n5 10 5 10\\n\", \"1\\n4\\n5 10 20 5\\n\", \"1\\n5\\n2 4 4 10 10\\n\", \"1\\n8\\n5 10 15 20 40 5 5 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", ...
{ "index": "code_r1_train_3239" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n+ 1\\n\", \"1\\n- 1\\n\", \"1\\n- 1\\n\", \"1\\n+ 1\\n\", \"1\\n- 2\\n\", \"1\\n+ 2\\n\", \"1\\n- 4\\n\", \"1\\n- 8\\n\"], \"outputs\": [\"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3240" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n2 0 2 3 2\\n0\\n4\\n2 1 6 8 5\\n0\\n6\\n2 0 1 8 5\\n3 1 4 1 4 1 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 1\\n0\\n6\\n2 3 1 8 5\\n3 1 4 1 4 1 2 9 1 1\", \"3\\n10\\n2 1 3 8 1\\n0\\n10\\n2 1 3 8 1\\n0\\n6\\n2 3 2 8 5\\n3 1 4 1 4 1 2 9 1 1\", \"3\\...
{ "index": "code_r1_train_3241" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\"], \"outputs\": [\"8\\n\", \"54\\n\", \"16\\n\", \"24\\n\", \"27\\n\", \"32\\n\", \"40\\n\", \"48\\n\"]}" }
{ "index": "code_r1_train_3242" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\", \"9\", \"3\", \"5\", \"6\", \"4\", \"7\"], \"outputs\": [\"8\\n\", \"2\\n\", \"9\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"4\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_3243" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 2 1\\n2 2\\n\", \"1 1 1\\n1 1\\n\", \"1 2 1\\n2 2\\n\", \"1 3 1\\n2 2\\n\", \"1 1 1\\n0 1\\n\", \"1 5 1\\n2 2\\n\", \"1 5 1\\n2 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3244" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"2 3 3\\n\", \"1 1 1\\n\", \"7 8 9\\n\", \"3 3 3\\n\", \"1 5 5\\n\", \"1 2 2\\n\", \"1 2 5\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"inf\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3245" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13\\n6 12 7 7 12 5 2 12 3 5 2 1 13\\n\", \"1\\n13\\n6 12 7 7 12 5 3 12 3 5 2 1 13\\n\", \"1\\n13\\n6 12 7 7 12 5 3 12 2 5 2 1 13\\n\", \"1\\n13\\n12 7 8 8 12 5 12 10 3 7 2 12 8\\n\", \"1\\n13\\n7 8 12 12 12 8 12 4 8 1 12 6 1\\n\", \"1\\n13\\n2 12 12 7 12 2 12...
{ "index": "code_r1_train_3246" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 3 0\\n\", \"4\\n1 0 1 4\\n\", \"4\\n0 0 4 0\\n\", \"4\\n0 0 1 3\\n\", \"4\\n1 3 4 4\\n\", \"4\\n2 2 4 5\\n\", \"4\\n1 3 3 6\\n\", \"4\\n1 3 4 4\\n\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n...
{ "index": "code_r1_train_3247" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n2 1\\n\", \"2 1\\n1 2\\n2 1\\n\", \"2 2\\n1 2\\n2 1\\n\", \"2 1\\n1 2\\n0 1\\n\", \"2 1\\n2 2\\n2 1\\n\", \"2 2\\n100 100\\n100 100\\n\", \"2 2\\n100 100\\n100 100\\n\", \"2 2\\n100 100\\n000 100\\n\"], \"outputs\": [\"2\\n\", \"2\", \"3\\n\", \"2\\n\...
{ "index": "code_r1_train_3248" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3 7\\n3 5 1\\n3\\n1 3 9\\n3 5 1\\n1\\n4\\n7\\n\", \"3\\n3\\n1 3 7\\n3 5 1\\n3\\n1 3 9\\n3 5 1\\n1\\n4\\n4\\n\", \"3\\n3\\n1 3 7\\n3 5 1\\n3\\n0 3 9\\n3 1 1\\n1\\n3\\n5\\n\", \"3\\n3\\n1 3 7\\n3 2 0\\n3\\n1 3 9\\n3 2 0\\n1\\n3\\n7\\n\", \"3\\n3\\n1 3 7\\...
{ "index": "code_r1_train_3249" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.001 0.001\\n\", \"1\\n0.900 0.900\\n\", \"1\\n1.100 1.200\\n\", \"1\\n0.061 0.330\\n\", \"1\\n0.001 0.001\\n\", \"1\\n0.900 0.900\\n\", \"1\\n1.100 1.200\\n\", \"1\\n0.061 0.330\\n\"], \"outputs\": [\"0.998\\n\", \"0.800\\n\", \"0.700\\n\", \"0.609\\n\", \"...
{ "index": "code_r1_train_3250" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\">\\n\", \">\\n\", \"]]\\n\", \"{}\\n\", \"{}\\n\", \"{]\\n\", \"{]\\n\", \"{]\\n\"], \"outputs\": [\"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3251" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n4 2\\n\", \"1 1\\n5 1\\n\", \"1 1\\n5 2\\n\", \"1 1\\n2 1\\n\", \"1 2\\n2 1\\n\", \"1 5\\n3 2\\n\", \"2 1\\n2 2\\n\", \"1 1\\n3 5\\n\"], \"outputs\": [\"26\", \"9\", \"13\", \"2\", \"3\", \"9\", \"3\", \"8\"]}" }
{ "index": "code_r1_train_3252" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n7\\n\", \"1\\n9\\n\", \"1\\n5\\n\"], \"outputs\": [\"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_3253" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"k nearest robhgien\", \"k tseraen robhgien\", \"l tseraeo robhgien\", \"l oearest robghien\", \"l oearest neihgbor\", \"l pearest neihgbor\", \"m pearest neihgbor\", \"m tseraep neihgbor\"], \"outputs\": [\"KNR\\n\", \"KTR\\n\", \"LTR\\n\", \"LOR\\n\", \"LON\\n\"...
{ "index": "code_r1_train_3254" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n1 1\\n\", \"1 1\\n1000000000\\n1 1\\n\", \"1 1\\n1010000000\\n1 1\\n\", \"1 1\\n1010000010\\n1 1\\n\", \"1 1\\n1010010000\\n1 1\\n\", \"1 1\\n1010100010\\n1 1\\n\", \"7 2\\n3 1 2 2 6 3 7\\n1 7\\n3 4\\n\", \"7 2\\n3 1 2 2 3 3 4\\n1 7\\n3 4\\n\"], \...
{ "index": "code_r1_train_3255" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"N\\n\", \"M\\n\", \"o2^\\\"t\\n\", \"p2^\\\"t\\n\", \"\\\\Pk|a\\\\'\\n\", \"aPk|\\\\\\\\'\\n\", \"s3=MS8%X\\n\", \"r3=MS8%X\\n\"], \"outputs\": [\"142\\n\", \"78\\n\", \"10\\n170\\n210\\n54\\n22\\n\", \"242\\n194\\n210\\n54\\n22\\n\", \"198\\n48\\n52\\n152\\n184\...
{ "index": "code_r1_train_3256" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 1\", \"3 1\\n3 2 1\", \"6 1\\n3 2 1\", \"4 1\\n2 2 1\", \"8 1\\n1 2 1\", \"6 1\\n1 1 1\", \"8 1\\n2 2 2\", \"3 1\\n3 3 1\"], \"outputs\": [\"3\\n\", \"2\\n\", \"5\\n\", \"4\\n\", \"7\\n\", \"6\\n\", \"8\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3257" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n10\\n2 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 2\\n0\", \"10\\n9 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 1\\n5 3\\n0 5\\n5 2\\n10\\n2 4\\n4 3\\n1 1\\n4 2\\n2 4\\n5 8\\n4 0\\n5 3\\n0 5\\n5 ...
{ "index": "code_r1_train_3258" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 6 10 30 30\\n\", \"1\\n5\\n2 6 11 30 30\\n\", \"1\\n5\\n6 7 15 30 30\\n\", \"1\\n5\\n2 6 10 41 30\\n\", \"1\\n5\\n30 30 27 7 6\\n\", \"1\\n5\\n2 9 10 41 30\\n\", \"1\\n5\\n30 55 27 7 6\\n\", \"1\\n5\\n30 30 15 10 6\\n\"], \"outputs\": [\"30\\n\", \"41\\...
{ "index": "code_r1_train_3259" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"a\\n0\\n\", \"b\\n0\\n\", \"a\\n0\\n\", \"aaab\\n2\\naa 0 0\\naab 1 1\\n\", \"aaab\\n2\\naa 0 0\\nbaa 1 1\\n\", \"aaab\\n2\\naa 0 0\\naab 2 1\\n\", \"aaab\\n2\\naa 1 0\\naab 2 1\\n\", \"aaab\\n2\\naa 1 1\\naab 2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\"...
{ "index": "code_r1_train_3260" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"6 6\\n\", \"2 2\\n\", \"1 1\\n\", \"8 2\\n\", \"3 3\\n\", \"4 1\\n\", \"5 2\\n\"], \"outputs\": [\"7\\n\", \"7\\n\", \"3\\n\", \"1\\n\", \"15\\n\", \"3\\n\", \"4\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_3261" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1 2\\n3\\n1 20 12\\n3\\n32697 4 98\\n9\\n1 2 4 1 4 6 7 8 6\\n\", \"4\\n2\\n1 1\\n3\\n1 7 12\\n3\\n32697 67 98\\n9\\n1 2 4 1 4 6 7 8 6\\n\", \"4\\n2\\n1 2\\n3\\n1 11 12\\n3\\n32697 4 98\\n9\\n1 2 4 1 4 6 7 8 6\\n\", \"4\\n2\\n1 1\\n3\\n1 20 12\\n3\\n1011 6...
{ "index": "code_r1_train_3262" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n1 1\\n\", \"3 2\\n2 1\\n\", \"3 3\\n1 1\\n\", \"3 3\\n2 1\\n\", \"3 2\\n2 1\\n\", \"3 3\\n2 1\\n\", \"3 2\\n1 1\\n\", \"3 3\\n1 1\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\", \"YES\", \"YES\", \"YES\"]}" }
{ "index": "code_r1_train_3263" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n01\\nRL\\n3 3\\n001\\n101\\n110\\nRLL\\nDLD\\nULL\\n3 3\\n000\\n000\\n000\\nRRD\\nRLD\\nULL\\n\", \"3\\n1 2\\n01\\nRL\\n3 3\\n000\\n101\\n110\\nRLL\\nDLD\\nULL\\n3 3\\n000\\n000\\n000\\nRRD\\nRLD\\nULL\\n\", \"3\\n1 2\\n01\\nRL\\n3 3\\n011\\n101\\n110\\...
{ "index": "code_r1_train_3264" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000 2**3*3**1\\n100000 11**2*2**4\", \"2\\n1000 2**3*3**1\\n100000 4**2*2**11\", \"2\\n1001 2**3*2**1\\n100000 4**2*2**11\", \"2\\n1000 2**3*3**1\\n101000 11**2*2**4\", \"2\\n1001 1**3*3**2\\n100000 4**2*2**11\", \"2\\n1001 1**3*3**2\\n100000 4**2*2**01\", \...
{ "index": "code_r1_train_3265" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n1\\n\", \"1 1\\n2\\n2\\n\", \"1 2\\n2\\n1 1\\n\", \"1 2\\n2\\n1 1\\n\", \"2 2\\n1 1\\n1 1\\n\", \"2 2\\n2 3\\n4 1\\n\", \"2 2\\n2 3\\n3 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\...
{ "index": "code_r1_train_3266" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0010\\n3\\n101\\n5\", \"3 1\\n575\\n3\\n9\\n15\", \"3 1\\n668\\n3\\n9\\n15\", \"3 2\\n668\\n3\\n9\\n15\", \"3 2\\n668\\n6\\n9\\n15\", \"3 2\\n668\\n1\\n9\\n15\", \"3 1010\\n17\\n101\\n6\", \"3 0010\\n17\\n101\\n6\"], \"outputs\": [\"-30\\n\", \"-193\\n\", \"-22...
{ "index": "code_r1_train_3267" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n4\", \"3\\n0\\n42\\n4\", \"3\\n0\\n37\\n4\", \"3\\n16\\n2\\n7\", \"3\\n29\\n2\\n7\", \"3\\n9\\n99\\n39\", \"3\\n3\\n127\\n5\", \"3\\n1\\n169\\n6\"], \"outputs\": [\"0\\n0\\n0\\n\", \"0\\n1\\n0\\n\", \"0\\n2\\n0\\n\", \"1\\n0\\n0\\n\", \"2\\n0\\n0\\n\"...
{ "index": "code_r1_train_3268" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"2\\n5 5\\n\", \"2\\n2 0\\n\", \"2\\n0 2\\n\", \"2\\n0 1\\n\"], \"outputs\": [\"1\\n\", \"1 \", \"1\\n\", \"1\\n\", \"3 0\\n\", \"3 0\\n\", \"3 0\\n\", \"3 0\\n\"]}" }
{ "index": "code_r1_train_3269" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\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\\n\", \"1\\na\\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\\n\", \"1\\na\\n1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\na\\n1 1 2 1 1 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
{ "index": "code_r1_train_3270" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n0 0\\n1 2\\n3 1\\n13 0\\n7 0\", \"5\\n4 1\\n0 0\\n1 -8\\n1 1\\n1 2\", \"5\\n-1 0\\n1 2\\n3 1\\n13 0\\n7 0\", \"5\\n0 0\\n2 1\\n3 0\\n11 -1\\n7 0\", \"5\\n1 0\\n2 0\\n3 0\\n11 -1\\n7 0\", \"5\\n0 0\\n0 0\\n1 0\\n11 -1\\n0 0\", \"5\\n0 0\\n1 0\\n0 0\\n1 -20\\n4...
{ "index": "code_r1_train_3271" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1 2 3 4\\n1 2\\n2 3\\n1 4\", \"4\\n1 2 3 4\\n2 2\\n2 3\\n1 4\", \"4\\n1 2 4 4\\n1 2\\n2 3\\n1 4\", \"4\\n1 2 3 6\\n2 2\\n2 3\\n1 4\", \"4\\n1 2 3 6\\n2 2\\n1 3\\n1 4\", \"4\\n1 2 3 4\\n1 2\\n2 3\\n2 4\", \"4\\n1 2 0 4\\n2 2\\n2 3\\n1 4\", \"4\\n1 2 6 4\\n1 2\...
{ "index": "code_r1_train_3272" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"bbbbbb\\nbb\\n\", \"aaaaa\\naaa\\n\", \"bbbbbb\\nbb\\n\", \"aaaaa\\naaa\\n\", \"bbbbbb\\nbc\\n\", \"aabaa\\naaa\\n\", \"bbbbba\\nbc\\n\", \"aabaa\\naab\\n\"], \"outputs\": [\"3\", \"1\", \"3\", \"1\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3273" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"2\\n1\\n4\\n\", \"2\\n0\\n4\\n\", \"2\\n1\\n1\\n\", \"2\\n1\\n8\\n\", \"2\\n1\\n9\\n\", \"2\\n1\\n2\\n\", \"2\\n1\\n6\\n\"], \"outputs\": [\"6\\n\", \"8\\n\", \"0\\n\", \"2\\n\", \"16\\n\", \"18\\n\", \"4\\n\", \"12\\n\"]}" }
{ "index": "code_r1_train_3274" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 4 1\\n1 5 4 3 2\\n5 4 1\\n1 5 4 3 2\\n\", \"2\\n5 4 1\\n1 5 4 3 2\\n5 4 1\\n1 5 4 3 2\\n\", \"2\\n5 4 1\\n1 5 2 3 2\\n5 4 1\\n1 5 4 3 2\\n\", \"2\\n5 4 1\\n1 5 2 3 2\\n5 1 1\\n1 5 4 3 2\\n\", \"2\\n5 4 1\\n1 5 4 3 2\\n5 4 1\\n1 5 4 6 2\\n\", \"2\\n5 4 1\\n1...
{ "index": "code_r1_train_3275" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1110\\n9\\n65\\n6\\n63\\n7\", \"6\\n1656\\n7\\n892\\n2\\n63\\n6\", \"6\\n1100\\n7\\n892\\n2\\n63\\n6\", \"6\\n1100\\n7\\n360\\n2\\n63\\n6\", \"6\\n1100\\n7\\n346\\n2\\n63\\n7\", \"6\\n1110\\n17\\n65\\n6\\n63\\n7\", \"6\\n1042\\n8\\n892\\n2\\n311\\n9\", \"6\\n...
{ "index": "code_r1_train_3276" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n654 61\\n\", \"2\\n6 5\\n5 6\\n\", \"1\\n139 252\\n\", \"1\\n139 252\\n\", \"1\\n139 361\\n\", \"1\\n220 361\\n\", \"1\\n340 361\\n\", \"1\\n654 361\\n\"], \"outputs\": [\"0\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_3277" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n/home/ACM/index.html\\n/ICPC/index.html\\n/ICPC/general.html\\n/ICPC/japanese/index.html\\n/ICPC/secret/confidential/2005/index.html\\n/home/ACM/\\n/home/ICPC/../ACM/\\n/ICPC/secret/\\n/ICPC/secret/index.html\\n/ICPC\\n/ICPC/../ICPC/index.html\\n/ICPC\\n/IC...
{ "index": "code_r1_train_3278" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1 1\\n0\\n\", \"1 1 1 1\\n2\\n\", \"1 2 1 1\\n2\\n\", \"2 2 1 1\\n2\\n\", \"1 5 1 10\\n1\\n\", \"1 5 1 13\\n1\\n\", \"1 5 5 1000\\n1\\n\", \"1 1 0 1000\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" ...
{ "index": "code_r1_train_3279" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n7 7 9 1 1\\n\", \"1\\n6 5\\n5 4 3 10 1 1\\n\", \"1\\n6 5\\n10 10 10 10 1 1\\n\", \"1\\n6 5\\n90 90 90 90 1 1\\n\", \"1\\n8 5\\n7 7 7 7 7 7 1 1\\n\", \"1\\n7 10\\n10 10 10 1 1 1 1\\n\", \"1\\n9 5\\n9 8 4 4 1 1 1 1 1\\n\", \"1\\n7 14\\n100 4 100 100 1 2 4...
{ "index": "code_r1_train_3280" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 9\\n\", \"4 4 4\\n\", \"0 0 0\\n\", \"0 3 6\\n\", \"7 8 9\\n\", \"8 8 9\\n\", \"3 5 5\\n\", \"0 1 1\\n\"], \"outputs\": [\"6\\n\", \"4\\n\", \"0\\n\", \"3\\n\", \"7\\n\", \"8\\n\", \"4\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3281" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 5\\n^^^^^\\n^^^^^\\n^^^^#\\n^^^^^\\n^^^^^\\n5 7\\n^^#^^^^\\n^^#^#^#\\n#^^^^^^\\n^^#^^#^\\n^^^^^^^\", \"2\\n5 5\\n^^^^^\\n^^^^^\\n^^^]#\\n^^^^^\\n^^^^^\\n5 7\\n^^#^^^^\\n^^#^#^#\\n#^^^^^^\\n^^#^^#^\\n^^^^^^^\", \"2\\n5 1\\n^^^^^\\n^^^^^\\n^^^^#\\n^^^^^\\n^]^...
{ "index": "code_r1_train_3282" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"gcpc\", \"bgnc\", \"gcoc\", \"gcnc\", \"cgnc\", \"bcng\", \"bcnh\", \"hncb\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3283" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n7\\n\"], \"outputs\": [\"5\\n\", \"1\\n\", \"5\", \"1\", \"3\\n\", \"2\\n\", \"4\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_3284" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 2\\n1\\n\", \"2\\n1 2\\n1\\n1 2\\n1\\n\", \"4\\n4 3\\n4 1 2 3\\n2 7\\n1 8\\n4 5\\n4 1 2 3\\n3 1\\n5 3 1\\n\", \"4\\n4 3\\n4 1 2 3\\n2 7\\n0 8\\n4 5\\n4 1 2 3\\n3 1\\n5 3 1\\n\", \"4\\n4 3\\n4 1 2 3\\n2 7\\n0 8\\n4 5\\n6 1 2 3\\n3 1\\n5 6 1\\n\", \...
{ "index": "code_r1_train_3285" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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?\\n\", \"1\\n(\\n\", \"1\\n)\\n\", \"1\\n)\\n\", \"1\\n?\\n\", \"1\\n(\\n\", \"2\\n??\\n\", \"2\\n((\\n\"], \"outputs\": [\":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\", \"()\\n\", \":(\\n\"]}" }
{ "index": "code_r1_train_3286" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4 6\\n\", \"1 2\\n\", \"4 7\\n\", \"1 3\\n\", \"7 3\\n\", \"5 7\\n\", \"7 1\\n\"], \"outputs\": [\"Equal\\n\", \"Equal\\n\", \"Equal\\n\", \"Dasha\\n\", \"Dasha\\n\", \"Masha\\n\", \"Dasha\\n\", \"Masha\\n\"]}" }
{ "index": "code_r1_train_3287" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0\\n\", \"1 1 2 7 4\\n\", \"1 0 2 7 4\\n\", \"1 1 2 6 4\\n\", \"1 1 1 7 4\\n\", \"1 2 2 7 4\\n\", \"1 1 3 7 4\\n\", \"1 1 2 6 4\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3288" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"0\\n1\\n\", \"01100010\\n00110\\n\", \"01100010\\n10110\\n\", \"01100010\\n10100\\n\", \"01100010\\n11100\\n\", \"01100010\\n11110\\n\", \"01100010\\n11111\\n\"], \"outputs\": [\"0\\n\", \"0\", \"3\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"1\\...
{ "index": "code_r1_train_3289" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1337\\n\", \"1 1\\n1337\\n\", \"4 2\\n9 9 9 9\\n\", \"4 2\\n3 3 3 3\\n\", \"4 2\\n2 2 2 2\\n\", \"4 2\\n3 3 3 3\\n\", \"4 2\\n9 9 9 9\\n\", \"4 2\\n2 2 2 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}...
{ "index": "code_r1_train_3290" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n2\\n\", \"1\\n1 5\\n2\\n\", \"1\\n1 6\\n5\\n\", \"1\\n1 5\\n1\\n\", \"1\\n1 1\\n5\\n\", \"1\\n1 7\\n5\\n\", \"1\\n1 1\\n2\\n\", \"1\\n1 1\\n4\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"2\\n\", \"5\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3291" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"7 2\\n\", \"7 3\\n\", \"7 4\\n\", \"1 4\\n\", \"9 4\\n\", \"3 4\\n\"], \"outputs\": [\"Yes\\n-1 -1 \\n\", \"Yes\\n0 \\n\", \"No\\n\", \"Yes\\n2 1 0 \\n\", \"Yes\\n1 1 1 0 \\n\", \"Yes\\n-2 -2 -2 -2 \\n\", \"Yes\\n2 2 -1 -1 \\n\", \"Yes\\n0...
{ "index": "code_r1_train_3292" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1\\n0\\n1 1\\n\", \"2 2\\n1 1\\n1 1\\n1 1\\n\", \"2 2\\n1 0\\n1 1\\n1 1\\n\", \"2 3\\n1 0 1\\n0 1 0\\n3 2\\n\", \"3 2\\n1 1\\n1 1\\n1 0\\n2 1\\n\", \"2 3\\n0 0 1\\n0 1 0\\n3 2\\n\", \"2 3\\n0 0 1\\n1 1 0\\n3 2\\n\"], \"outputs\": [\"1\", \...
{ "index": "code_r1_train_3293" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0000\", \"0010\", \"0110\", \"0111\", \"0011\", \"0001\", \"110011\", \"110010\"], \"outputs\": [\"4\\n\", \"8\\n\", \"11\\n\", \"10\\n\", \"9\\n\", \"8\", \"24\\n\", \"25\\n\"]}" }
{ "index": "code_r1_train_3294" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5 9\", \"2 2\", \"7 9\", \"3 3\", \"1 3\", \"3 1\", \"0 1\"], \"outputs\": [\"2\\n\", \"1953125\\n\", \"4\\n\", \"40353607\\n\", \"27\\n\", \"1\\n\", \"3\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3295" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 1\\n1 2\\n3 2\", \"4\\n0 2\\n1 1\\n1 2\\n3 2\", \"4\\n0 2\\n1 1\\n2 2\\n3 2\", \"4\\n0 1\\n1 1\\n1 2\\n2 2\", \"11\\n124 186\\n8 143\\n6 675\\n0 186\\n248 50\\n-3 561\\n154 66\\n13 19\\n37 0\\n1 294\\n1 30\", \"11\\n124 186\\n8 143\\n6 675\\n0 186\\n2...
{ "index": "code_r1_train_3296" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\", \"4 3\", \"9 2\", \"2 3\", \"2 1\", \"2 2\", \"1 1\", \"1 0\"], \"outputs\": [\"11\\n\", \"7\\n\", \"17\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3297" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4\\n\", \"4 1\\n1 4\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 4\\n2 1\\n1 2\\n1 2\\n1 2\\n\", \"2 4\\n2 1\\n1 2\\n1 2\\n1 2\\n\", \"5 5\\n2 3\\n1 4\\n2 4\\n2 3\\n1 4\\n\", \"6 5\\n2 3\\n1 4\\n2 4\\n2 3\\n1 4\\n\"], \"outputs\": [\"Yes\\n\"...
{ "index": "code_r1_train_3298" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1 1\\nb\\n\", \"1 0\\nb\\n\", \"1 1\\na\\n\", \"1 1\\na\\n\", \"1 1\\nb\\n\", \"1 0\\nb\\n\", \"1 0\\na\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3299" }