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\": [\"3\\n2 3 6\\n2\\n2 3\\n\", \"3\\n1 3 11\\n2\\n1 2\\n\", \"3\\n1 3 11\\n2\\n2 3\\n\", \"3\\n1 3 11\\n2\\n1 2\\n\", \"3\\n1 3 11\\n2\\n2 3\\n\", \"3\\n2 3 11\\n2\\n2 3\\n\", \"3\\n1 6 11\\n2\\n1 2\\n\", \"3\\n1 3 20\\n2\\n2 3\\n\"], \"outputs\": [\"3\\n\", \"2\\n\",...
{ "index": "code_r1_train_3900" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n1 1\\n\", \"1 1\\n1 1\\n2 2\\n\", \"1 1\\n1 1\\n1 2\\n\", \"1 1\\n1 2\\n2 2\\n\", \"1 1\\n2 1\\n1 2\\n\", \"1 1\\n1 2\\n1 2\\n\", \"1 1\\n0 1\\n1 2\\n\", \"1 1\\n0 1\\n2 2\\n\"], \"outputs\": [\"1 1\\n\", \"0 0\\n\", \"0 0\\n\", \"1 0\\n\", \"0 0\\n\"...
{ "index": "code_r1_train_3901" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1+1\\n\", \"1\\n2+2\\n\", \"1\\n5+6\\n\", \"1\\n1+4\\n\", \"1\\n0+0\\n\", \"1\\n2+3\\n\", \"1\\n3+1\\n\"], \"outputs\": [\"10\\n\", \"2\\n\", \"4\\n\", \"11\\n\", \"5\\n\", \"0\\n\", \"5\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_3902" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 3 6\\n1 2 4 3\", \"2\\n1 0 3 6\\n1 2 4 6\", \"2\\n1 0 3 6\\n1 4 4 6\", \"2\\n1 0 3 6\\n1 4 7 6\", \"2\\n0 0 6 4\\n1 2 4 3\", \"2\\n1 0 3 1\\n1 2 3 3\", \"2\\n1 0 6 1\\n1 2 3 3\", \"2\\n0 0 3 4\\n1 2 4 3\"], \"outputs\": [\"13\\n\", \"16\\n\", \"14\\n\", \...
{ "index": "code_r1_train_3903" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"7 3 4\", \"9 2 4\", \"3 2 3\", \"5 1 4\", \"4 1 2\", \"8 4 5\", \"6 1 3\"], \"outputs\": [\"4\\n2\\n0\\n\", \"6\\n5\\n4\\n3\\n2\\n1\\n\", \"9\\n8\\n6\\n5\\n4\\n3\\n1\\n0\\n\", \"2\\n1\\n\", \"5\\n4\\n1\\n0\\n\", \"3\\n2\\n1\\n\", \"7\\n6\\n5\\n4\\n3\\n...
{ "index": "code_r1_train_3904" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n2\\n\", \"1 1 2\\n1\\n2\\n\", \"1 1 1\\n1\\n1\\n\", \"1 1 2\\n1\\n3\\n\", \"2 2 1\\n1 2\\n2 1\\n\", \"2 2 1\\n1 2\\n1 2\\n\", \"2 2 1\\n1 2\\n2 1\\n\"], \"outputs\": [\"1\\n1\\n\", \"0\\n\", \"0\\n\", \"1\\n1 \", \"0\\n\\n\", \"1...
{ "index": "code_r1_train_3905" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 0\\n0 3\\n1 2\\n\", \"2 1\\n2 0\\n1 1\\n1 2\\n\", \"2 1\\n1 0\\n0 1\\n1 2\\n\", \"2 1\\n2 1\\n1 2\\n1 2\\n\", \"2 1\\n2 0\\n0 2\\n1 2\\n\", \"2 1\\n3 0\\n0 3\\n1 2\\n\", \"2 1\\n2 0\\n0 2\\n1 2\\n\", \"2 1\\n2 0\\n1 1\\n1 2\\n\"], \"outputs\": [\"-1\\n\",...
{ "index": "code_r1_train_3906" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\", \"1\\n1\", \"1\\n0\", \"1\\n2\", \"1\\n6\", \"1\\n18\", \"1\\n31\", \"1\\n10\"], \"outputs\": [\"8\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"6\\n\", \"18\\n\", \"31\\n\", \"10\"]}" }
{ "index": "code_r1_train_3907" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4 2\\n2\\n5\\n1 2 3 9 4\\n5\\n5\\n1 2 3 9 4 \\n2\", \"3\\n4\\n1 3 7 2\\n1\\n5\\n1 2 0 9 4\\n5\\n5\\n1 2 3 9 4 \\n2\", \"3\\n4\\n1 3 4 2\\n1\\n5\\n1 2 0 2 4\\n5\\n5\\n1 2 3 9 4 \\n2\", \"3\\n4\\n1 3 4 2\\n2\\n5\\n1 2 3 9 8\\n5\\n5\\n1 2 3 9 4 \\n1\", \...
{ "index": "code_r1_train_3908" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n4\", \"3 3 4\\n0\", \"4 3 4\\n0\", \"4 3 1\\n0\", \"4 1 1\\n0\", \"3 1 1\\n0\", \"4 2 1\\n0\", \"3 2 4\\n2\"], \"outputs\": [\"70\\n\", \"10\\n\", \"11\\n\", \"8\\n\", \"6\\n\", \"5\\n\", \"7\\n\", \"21\\n\"]}" }
{ "index": "code_r1_train_3909" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 1\\n\", \"1\\n1 2 1\\n\", \"1\\n2 1 1\\n\", \"1\\n2 1 2\\n\", \"1\\n2 0 1\\n\", \"2\\n5 1 1\\n1 1 5\\n\", \"2\\n5 1 1\\n1 1 4\\n\"], \"outputs\": [\"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"2\\n1 2 \", \"1\...
{ "index": "code_r1_train_3910" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 -7\\n\", \"1\\n2\\n5 -7\\n\", \"1\\n2\\n4 -7\\n\", \"1\\n2\\n4 -8\\n\", \"1\\n2\\n5 -1\\n\", \"1\\n2\\n3 -8\\n\", \"1\\n2\\n5 -2\\n\", \"1\\n2\\n1 -4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" ...
{ "index": "code_r1_train_3911" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1000\\n1\\n2\\n\", \"1\\n1 1000\\n1\\n1\\n\", \"1\\n1 1100\\n1\\n2\\n\", \"1\\n4 10\\n2\\n3 6\\n\", \"1\\n9 10\\n2\\n3 6\\n\", \"1\\n4 10\\n2\\n1 6\\n\", \"1\\n9 10\\n2\\n2 6\\n\", \"1\\n4 10\\n2\\n2 6\\n\"], \"outputs\": [\"1000\\n\", \"1000\\n\", \"1100\\...
{ "index": "code_r1_train_3912" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n101011 2\\n\", \"6 2\\n000000 2\\n010100 4\\n\", \"7 2\\n1011111 2\\n1001111 1\\n\", \"6 3\\n000100 2\\n010100 4\\n111100 0\\n\", \"6 3\\n000000 2\\n010100 4\\n111100 2\\n\", \"6 3\\n000000 2\\n010100 4\\n111100 0\\n\", \"8 3\\n00111100 5\\n10100111 2\\n101...
{ "index": "code_r1_train_3913" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n3\\n1 2\\n3 4\\n2 4\", \"4\\n2 1 1 1\\n3\\n1 2\\n2 1\\n3 5\", \"4\\n1 2 3 3\\n3\\n1 2\\n3 4\\n0 4\", \"4\\n0 1 1 1\\n3\\n1 2\\n2 1\\n3 5\", \"4\\n1 3 3 3\\n3\\n1 2\\n3 4\\n0 4\", \"4\\n1 3 4 3\\n3\\n1 2\\n3 4\\n0 4\", \"4\\n0 2 4 3\\n3\\n1 2\\n3 4\\...
{ "index": "code_r1_train_3914" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 0\\n0\\n\", \"1 0\\n1\\n\", \"1 1\\n0\\n\", \"1 1\\n1\\n\", \"1 0\\n0\\n\", \"1 0\\n1\\n\", \"1 1\\n0\\n\"], \"outputs\": [\"0\\n0\\n\", \"0\\n0\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"0\\n0 \", \"1\\n1 \", \"1\\n1 \"]}" }
{ "index": "code_r1_train_3915" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 5\", \"2 7 3\", \"2 4 3\", \"2 4 1\", \"2 4 0\", \"3 4 0\", \"4 4 0\", \"1 0 1\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3916" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\ngepardotop\\n\", \"1\\n10\\ngepardotpp\\n\", \"1\\n10\\npptodrapeg\\n\", \"1\\n10\\npotodrapeg\\n\", \"1\\n10\\negpardotpp\\n\", \"1\\n10\\nppotdsaoeg\\n\", \"1\\n10\\ngtpardoeop\\n\", \"1\\n10\\nptpodrapeg\\n\"], \"outputs\": [\"27\\n\", \"27\\n\", \"26...
{ "index": "code_r1_train_3917" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"12\\n\", \"25\\n\", \"9\\n\", \"24\\n\", \"16\\n\", \"40\\n\"]}" }
{ "index": "code_r1_train_3918" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n546\\n\", \"1\\n546\\n\", \"1\\n641\\n\", \"1\\n1151\\n\", \"3\\n1 2 3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3919" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4 1\\n\", \"5 4 5\\n\", \"5 5 5\\n\", \"5 2 5\\n\", \"7 2 7\\n\", \"5 2 1\\n\", \"4 4 4\\n\", \"5 5 1\\n\"], \"outputs\": [\"256\\n\", \"64\\n\", \"125\\n\", \"8\\n\", \"16\\n\", \"32\\n\", \"16\\n\", \"3125\\n\"]}" }
{ "index": "code_r1_train_3920" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nab\\nab\\nbb\\n\", \"1\\nba\\nab\\nbb\\n\", \"1\\nba\\nbb\\ncb\\n\", \"1\\nba\\nbb\\nbb\\n\", \"1\\nba\\nbb\\nbc\\n\", \"1\\nab\\nbb\\nbc\\n\", \"1\\nab\\nab\\nbc\\n\", \"1\\nab\\nab\\ncb\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO...
{ "index": "code_r1_train_3921" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"y\\n\", \"y\\n\", \"x\\n\", \"w\\n\", \"v\\n\", \"bbb\\n\", \"aba\\n\", \"aba\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3922" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"5\", \"8\", \"6\", \"9\", \"1\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\"]}" }
{ "index": "code_r1_train_3923" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n000\\n\", \"3\\n007\\n\", \"3\\n007\\n\", \"3\\n000\\n\", \"3\\n111\\n\", \"3\\n100\\n\", \"3\\n001\\n\", \"3\\n101\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3924" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2012.12.31\\n2.12.16.14.14\\n7138.5.13\\n10.5.5.1.2\\n10000000.12.31\\n#\", \"2012.12.31\\n2.12.16.14.14\\n7138.5.13\\n10.2.5.1.5\\n10000000.12.31\\n#\", \"2012.12.31\\n2.12.16.14.14\\n6138.5.13\\n10.5.2.1.5\\n10000000.12.31\\n#\", \"2012.12.31\\n2.12.16.04.14\\n...
{ "index": "code_r1_train_3925" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 5\\n76 3 24\\n7 15 9\\n1000000000 1001000000 1000100001\\n2 1000000001 1000000000\\n\", \"5\\n2 2 5\\n76 19 24\\n7 15 9\\n1000000000 1001000000 1000000000\\n2 1000000000 1000000000\\n\", \"5\\n2 2 5\\n76 19 24\\n7 15 9\\n1000000000 1001000000 1000100000\\...
{ "index": "code_r1_train_3926" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n2 0 1\\n4\\n1 2 2 4\\n10\\n2 0 1 0 1 2 -6 0 -2 -2\\n4\\n0 0 0 1\\n\", \"4\\n3\\n2 0 1\\n4\\n1 2 2 4\\n10\\n2 0 1 0 0 2 -6 0 -2 -2\\n4\\n0 0 0 2\\n\", \"4\\n3\\n1 -2 1\\n4\\n1 2 3 4\\n10\\n2 -1 1 -2 2 3 -5 0 2 0\\n4\\n0 0 1 2\\n\", \"4\\n3\\n1 -1 1\\n4\\n1...
{ "index": "code_r1_train_3927" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4\\n1 2 3 4\\n9 1 10 6\\n\", \"4 4\\n1 3 3 4\\n9 1 10 6\\n\", \"4 4\\n1 3 6 4\\n7 1 10 6\\n\", \"4 4\\n2 3 3 4\\n7 1 10 6\\n\", \"4 4\\n2 3 3 4\\n1 1 10 6\\n\", \"4 4\\n1 3 3 4\\n7 1 10 6\\n\", \"4 4\\n1 2 6 4\\n9 1 10 6\\n\", \"4 4\\n1 2 3 4\\n9 1 10 6\\n\"], ...
{ "index": "code_r1_train_3928" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"l\\n\", \"v\\n\", \"l\\n\", \"a\\n\", \"v\\n\", \"k\\n\", \"b\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3929" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 59\\n22\\n1\\n9\\n\", \"2\\n9 79\\n22\\n1\\n9\\n\", \"2\\n7 28\\n83\\n1\\n-46\\n\", \"2\\n0 28\\n83\\n1\\n-46\\n\", \"2\\n0 28\\n95\\n1\\n-46\\n\", \"3\\n2 3 0\\n2 1\\n1\\n-1\\n\", \"3\\n2 3 4\\n2 1\\n1\\n-1\\n\", \"2\\n73 16\\n25\\n1\\n9988\\n\"], \"output...
{ "index": "code_r1_train_3930" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n12\\n5 4 4 3 2 1 1 0 0 1 1 1\\n4\\n4 3 2 1\\n1\\n1000000\\n20\\n20 19 18 17 16 15 14 13 12 11 9 9 8 7 6 5 4 3 2 2\\n32\\n64 64 63 58 58 58 58 58 37 37 37 37 34 34 28 28 28 14 28 28 24 24 19 17 6 17 17 16 16 16 16 11\\n\", \"5\\n12\\n5 4 4 3 2 1 1 0 0 1 1 1\\n...
{ "index": "code_r1_train_3931" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"9 1\\n1 1\\n\", \"2 1\\n2 2\\n\", \"6 2\\n4 6\\n2 5\\n\", \"4 2\\n1 4\\n2 4\\n\", \"4 2\\n1 4\\n2 3\\n\", \"4 2\\n2 4\\n2 4\\n\", \"4 2\\n1 2\\n2 3\\n\"], \"outputs\": [\"1\\n0\\n\", \"1\\n0 0 0 0 0 0 0 0 0\\n\", \"1\\n0 0\\n\", \"3\\n0 1 2 0 1 ...
{ "index": "code_r1_train_3932" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"23\\n2 3\\n\", \"23\\n2 3\\n\", \"604\\n6 4\\n\", \"604\\n6 4\\n\", \"604\\n6 2\\n\", \"604\\n4 2\\n\", \"604\\n4 1\\n\", \"120\\n12 1\\n\"], \"outputs\": [\"YES\\n2\\n3\\n\", \"YES\\n2\\n3\\n\", \"YES\\n60\\n4\\n\", \"YES\\n60\\n4\\n\", \"YES\\n60\\n4\\n\", \"YE...
{ "index": "code_r1_train_3933" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"16\", \"1000010000000\", \"1000011000000\", \"1100011000000\", \"1110011000000\", \"1110011100000\"], \"outputs\": [\"0\\n\", \"10\", \"22\\n\", \"2716922731275\\n\", \"3307289212967\\n\", \"2999416055122\\n\", \"3146654438234\\n\", \"4080876601631\...
{ "index": "code_r1_train_3934" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1 2\\n2\\n\", \"4 1\\n3 5 7 8\\n2\\n\", \"4 1\\n2 2 3 3\\n2\\n\", \"4 1\\n1 1 2 2\\n2\\n\", \"4 1\\n3 5 7 8\\n2\\n\", \"4 1\\n1 1 2 2\\n2\\n\", \"4 1\\n1 1 1 2\\n2\\n\", \"4 1\\n2 2 3 3\\n2\\n\"], \"outputs\": [\"1\", \"1\", \"1\", \"1\", \"1\\n\", \"1\...
{ "index": "code_r1_train_3935" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"1 1\\n1 10000\\n\", \"1 1\\n1 10000\\n\", \"1 1\\n1 10010\\n\", \"2 100\\n2 42\\n2 58\\n\", \"2 100\\n1 42\\n2 58\\n\", \"2 100\\n2 42\\n2 58\\n\"], \"outputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n1 \", \"0\\n0\\n\\n\", \"0\\n0\", \"...
{ "index": "code_r1_train_3936" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 1\\n\", \"14 4\", \"14 3\", \"11 2\", \"14 5\", \"26 4\", \"20 2\"], \"outputs\": [\"2\\n\", \"1\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"3\\n\", \"7\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_3937" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n7\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3938" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 3\\n5 3\\n0 0\", \"2 2\\n4 3\\n5 3\\n0 0\", \"2 2\\n5 3\\n5 3\\n0 0\", \"2 1\\n4 3\\n5 3\\n0 0\", \"2 1\\n4 2\\n5 3\\n0 0\", \"2 2\\n5 5\\n5 2\\n0 0\", \"2 1\\n3 2\\n5 3\\n0 0\", \"2 2\\n5 0\\n5 3\\n0 0\"], \"outputs\": [\"4\\n8\\n18\", \"774058230\\n8\\n...
{ "index": "code_r1_train_3939" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"13 21 1 2\\n1000 746\\n11\\n2 2\\n3 7\\n2 4\\n5 8\\n8 9\\n2 5\\n3 3\\n6 7\\n9 10\\n10 11\\n5 9\\n6 7\\n3 6\\n4 5\\n1 3\\n7 13\\n6 7\\n8 11\\n6 13\\n7 8\\n12 13\", \"13 21 1 1\\n1010 6000\\n7\\n1 2\\n3 7\\n2 8\\n5 8\\n8 4\\n2 5\\n3 8\\n4 7\\n9 6\\n7 11\\n5 9\\n3 1...
{ "index": "code_r1_train_3940" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0 1\\n0 0 1\\n1 1 0\\n\", \"3\\n0 0 0\\n0 0 1\\n0 1 0\\n\", \"3\\n0 0 1\\n0 0 1\\n1 1 0\\n\", \"3\\n0 0 0\\n0 0 1\\n0 1 0\\n\", \"4\\n0 1 1 1\\n1 0 1 1\\n1 1 0 1\\n1 1 1 0\\n\", \"4\\n0 0 0 1\\n0 0 0 0\\n0 0 0 1\\n1 0 1 0\\n\", \"4\\n0 0 1 0\\n0 0 0 1\\n1 0...
{ "index": "code_r1_train_3941" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n3 5\\n\", \"2\\n8 5\\n\", \"2\\n1 1\\n\", \"2\\n3 5\\n\", \"2\\n8 5\\n\", \"2\\n3 9\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_3942" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"2\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3943" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n262 5\\n\", \"1\\n357 5\\n\", \"1\\n271 5\\n\", \"1\\n520 5\\n\", \"1\\n206 5\\n\", \"1\\n206 8\\n\", \"1\\n487 56\\n\", \"1\\n143 75\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3944" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"7\", \"3\", \"4\", \"0\", \"9\", \"1\", \"8\", \"2\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3945" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n47\\n\", \"1\\n76\\n\", \"1\\n71\\n\", \"1\\n22\\n\", \"1\\n31\\n\", \"1\\n16\\n\", \"1\\n15\\n\", \"1\\n127\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3946" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"42\\n\", \"13\\n\", \"69\\n\", \"100\\n\", \"500\\n\", \"1337\\n\"], \"outputs\": [\"6\\n\", \"50\\n\", \"934067958\\n\", \"456092424\\n\", \"242481789\\n\", \"878752271\\n\", \"39656147\\n\", \"520628749\\n\"]}" }
{ "index": "code_r1_train_3947" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 2\\n\", \"1\\n1 2\\n\", \"1\\n1 3\\n\", \"1\\n0 3\\n\", \"1\\n0 1\\n\", \"1\\n0 2\\n\", \"1\\n0 6\\n\", \"1\\n1 6\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"0 1\\n\", \"0 1\\n\", \"0 1\\n\", \"0 1\\n\", \"1 1\\n\"]}" }
{ "index": "code_r1_train_3948" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"M\\n\", \"F\\n\", \"M\\n\", \"FF\\n\", \"FM\\n\", \"MF\\n\", \"MM\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"0\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3949" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 20\\n1\\n1\", \"2\\n0 40\\n5\\n5\", \"2\\n8 20\\n1\\n19\", \"2\\n8 23\\n1\\n19\", \"2\\n8 44\\n1\\n19\", \"3\\n0 1\\n4\\n5\\n2\", \"3\\n7 1\\n2\\n9\\n9\", \"2\\n0 44\\n1\\n15\"], \"outputs\": [\"36\\n\", \"40\\n\", \"29\\n\", \"32\\n\", \"53\\n\", \"1\\n\",...
{ "index": "code_r1_train_3950" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2 3 1\\n\", \"3\\n1 3 2\\n\", \"3\\n3 1 2\\n\", \"3\\n1 2 3\\n\", \"3\\n3 2 1\\n\", \"3\\n2 1 3\\n\", \"4\\n2 1 4 3\\n\", \"4\\n2 3 4 1\\n\"], \"outputs\": [\"4\\n1 2\\n2 3\\n1 3\\n1 2\\n\", \"3\\n2 1\\n1 3\\n1 2\\n\", \"4\\n1 3\\n3 2\\n1 2\\n1 3\\n\", \"0\\n...
{ "index": "code_r1_train_3951" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n1\\n1\\n\", \"2\\n2\\n1 2\\n1\\n1\\n\", \"2\\n2\\n-1 -1\\n1\\n-2\\n\", \"2\\n2\\n-1 -1\\n1\\n-2\\n\", \"2\\n4\\n1 2 3 4\\n3\\n1 2 3\\n\", \"2\\n4\\n1 2 3 4\\n3\\n1 2 3\\n\", \"2\\n4\\n1 2 3 4\\n3\\n1 2 6\\n\", \"2\\n4\\n1 5 4 4\\n3\\n1 1 6\\n\"], \"...
{ "index": "code_r1_train_3952" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3\\n2 4\", \"4\\n1 2\\n2 3\\n2 4\", \"4\\n1 2\\n2 3\\n1 4\", \"4\\n1 2\\n4 3\\n2 4\", \"4\\n1 2\\n4 3\\n1 4\", \"4\\n1 2\\n1 3\\n3 4\", \"4\\n1 3\\n2 3\\n2 4\", \"4\\n1 2\\n2 4\\n3 4\"], \"outputs\": [\"6\\n\", \"2\\n\", \"6\\n\", \"6\\n\", \"6\\n\", ...
{ "index": "code_r1_train_3953" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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><\\n1 2\\n\", \"2\\n>>\\n1 1\\n\", \"2\\n><\\n5 5\\n\", \"2\\n>>\\n1 1\\n\", \"2\\n><\\n1 2\\n\", \"2\\n><\\n5 5\\n\", \"2\\n><\\n1 4\\n\", \"2\\n><\\n5 6\\n\"], \"outputs\": [\"FINITE\\n\", \"FINITE\\n\", \"FINITE\\n\", \"FINITE\\n\", \"FINITE\\n\", \"FINIT...
{ "index": "code_r1_train_3954" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2\\n\", \"1 2\\n\", \"4 2\\n\", \"6 3\\n\", \"3 2\\n\", \"6 4\\n\", \"5 2\\n\"], \"outputs\": [\"-1\\n\", \"2\\n\", \"-1\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"4\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_3955" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"2 0\\n\", \"2 2\\n\", \"0 0\\n\", \"1 4\\n\", \"0 0\\n\", \"1 4\\n\", \"6 2\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"5\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"121\\n\"]}" }
{ "index": "code_r1_train_3956" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n1\\n2\\n\", \"2\\n5 7\\n1\\n2\\n\", \"2\\n123456 656\\n1\\n2\\n\", \"2\\n123456 1214\\n1\\n2\\n\", \"2\\n1000000000 1\\n1\\n2\\n\", \"2\\n1000000000 1\\n1\\n2\\n\", \"2\\n123456 13640\\n1\\n2\\n\", \"2\\n170815 20668\\n1\\n2\\n\"], \"outputs\": [\"7\\n\...
{ "index": "code_r1_train_3957" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n0 5\\n5 0\\n1\\n1 2 5\\n\", \"2\\n0 5\\n5 0\\n1\\n1 2 3\\n\", \"3\\n0 4 5\\n4 0 9\\n5 9 0\\n2\\n2 3 8\\n1 2 1\\n\", \"3\\n0 983 173\\n983 0 810\\n173 810 0\\n3\\n3 2 567\\n2 3 767\\n1 2 763\\n\", \"3\\n0 983 173\\n983 0 810\\n173 810 0\\n3\\n2 2 567\\n2 3 767...
{ "index": "code_r1_train_3958" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"a\\n\", \".\\n\", \"0\\n\", \"A\\n\", \"`\\n\", \"-\\n\", \"?\\n\"], \"outputs\": [\" 0\", \" 0\", \" ...
{ "index": "code_r1_train_3959" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"7\\n\", \"3\\n\", \"7\\n\", \"2\\n\"], \"outputs\": [\"2\\n17\\n46\\n\", \"2\\n17\\n\", \"2\\n17\\n46\\n97\\n\", \"2\\n\", \"2\\n17\\n46\\n97\\n176\\n289\\n442\\n\", \"2\\n17\\n46\\n\", \"2\\n17\\n46\\n97\\n176\\n289\\n442\...
{ "index": "code_r1_train_3960" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nDIDII\", \"5\\nDIIID\", \"5\\nIDIID\", \"5\\nIIDDI\", \"5\\nDIIDI\", \"5\\nIIIDD\", \"5\\nDDIII\", \"5\\nIDDII\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3961" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"0 0 1 1\\n\", \"0 0 1 2\\n\", \"0 1 2 3\\n\", \"0 1 0 0\\n\", \"1 1 0 0\\n\", \"0 0 1 0\\n\", \"1 0 0 1\\n\"], \"outputs\": [\"1 0 1 1\\n\", \"0 1 1 0\\n\", \"-1\\n\", \"0 3 2 1\\n\", \"1 1 1 0\\n\", \"1 0 0 1\\n\", \"0 1 1 1\\n\", \"1 1 0 0\\n\"]...
{ "index": "code_r1_train_3962" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100\", \"5 110\", \"5 111\", \"6 110\", \"9 110\", \"9 100\", \"5 101\", \"9 000\"], \"outputs\": [\"0 0 0 100 100\\n\", \"0 0 0 110 110\\n\", \"0 0 0 111 111\\n\", \"0 0 0 0 110 110\\n\", \"0 0 0 0 0 110 110 110 110\\n\", \"0 0 0 0 0 100 100 100 100\\n\", \"0 ...
{ "index": "code_r1_train_3963" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 1 1\\n2 2 3\\n3 6 1\\n110 100 498\\n1000000 1000000 1000000000000\\n\", \"5\\n1 1 1\\n2 2 3\\n3 6 1\\n110 100 498\\n1000000 1100000 1000000000000\\n\", \"5\\n1 1 1\\n2 2 3\\n3 6 1\\n110 100 507\\n1000000 1000000 1000000000000\\n\", \"5\\n1 1 1\\n2 2 3\\n3 6...
{ "index": "code_r1_train_3964" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 99999999\\n\", \"1\\n2 33554431\\n\", \"1\\n2 69696969\\n\", \"1\\n7 99999999\\n\", \"1\\n2 69696969\\n\", \"1\\n2 33554431\\n\", \"1\\n2 54472221\\n\", \"1\\n7 49552848\\n\"], \"outputs\": [\"14285715\\n\", \"16777216\\n\", \"34848485\\n\", \"14285715\\n\"...
{ "index": "code_r1_train_3965" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\", \"1\\n000\", \"2\\n3 6\", \"1\\n011\", \"2\\n2 6\", \"1\\n010\", \"2\\n3 4\", \"1\\n111\"], \"outputs\": [\"5\\n\", \"1\\n\", \"7\\n\", \"2\\n\", \"5\\n\", \"1\\n\", \"7\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3966" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n1\\n5\\n3\", \"1\\n0\\n7\\n0\\n5\\n3\", \"1\\n0\\n9\\n0\\n5\\n3\", \"1\\n0\\n5\\n8\\n4\\n1\", \"1\\n0\\n7\\n2\\n5\\n3\", \"1\\n1\\n9\\n0\\n5\\n3\", \"1\\n0\\n5\\n8\\n4\\n0\", \"1\\n0\\n2\\n8\\n4\\n1\"], \"outputs\": [\":(\\n\", \":(\\n\", \":(\\n\", \...
{ "index": "code_r1_train_3967" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1 1 2\", \"2\\n1 2 1 3\", \"2\\n1 1 1 3\", \"2\\n2 2 1 3\", \"2\\n2 1 1 1\", \"2\\n2 2 1 5\", \"2\\n4 1 1 1\", \"2\\n0 2 1 5\"], \"outputs\": [\"0\\n166374063\\n166374063\\n332748121\\n\", \"0\\n532396992\\n582309210\\n449209962\\n\", \"0\\n499122181\\n4991...
{ "index": "code_r1_train_3968" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nTH\\n\", \"2\\nHT\\n\", \"3\\nHHT\\n\", \"3\\nTHH\\n\", \"3\\nHTH\\n\", \"4\\nHTHT\\n\", \"4\\nHTTH\\n\", \"4\\nTTHH\\n\"], \"outputs\": [\"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"1\", \"0\", \"0\\n\"]}" }
{ "index": "code_r1_train_3969" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 2 1 6 3\\n2 4\\n\", \"1 0 2 1 6 9\\n1 4\\n\", \"1 5 0 1 6 3\\n3 4\\n\", \"1 2 0 1 6 3\\n3 4\\n\", \"1 5 2 1 6 3\\n1 4\\n\", \"1 3 2 1 5 9\\n1 4\\n\", \"1 3 2 1 6 9\\n1 4\\n\", \"1 5 0 1 6 3\\n2 4\\n\"], \"outputs\": [\"10\\n\", \"0\\n\", \"5\\n\", \"2\\n\", \...
{ "index": "code_r1_train_3970" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 3\\nRBGGGRBBGRRBBGGGGB\\n\", \"1\\n7 2\\nBGGGGBBRRGBBRGGGBR\\n\", \"1\\n18 2\\nRBGGGRBBGRRBBGGGGB\\n\", \"1\\n18 2\\nRBGGGRBBGRRBBGGGGB\\n\", \"1\\n18 2\\nBGGGGBBRRGBBRGGGBR\\n\", \"1\\n18 3\\nRBGGGRBBGRRBBGGGGB\\n\", \"1\\n18 7\\nBGGGGBBRRGBBRGGGBR\\n\", \...
{ "index": "code_r1_train_3971" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n3 2 5 2 1\\n8 3\\n1 1 1 1 1 1 0 1\", \"2\\n5 2\\n3 2 5 0 6\\n8 3\\n1 0 1 1 1 1 1 1\", \"2\\n5 1\\n3 2 5 2 1\\n8 3\\n1 1 1 1 1 1 0 1\", \"2\\n5 2\\n3 4 5 1 6\\n8 3\\n0 1 1 0 1 1 0 1\", \"2\\n5 2\\n3 2 5 2 8\\n8 4\\n1 1 1 1 1 1 1 1\", \"2\\n5 2\\n3 2 5 0 ...
{ "index": "code_r1_train_3972" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3 4 5\\n2\\n1000 1000\\n2\\n1 0\\n5\\n3 0 2 1 1\\n5\\n2 1 0 3 0\\n\", \"5\\n5\\n1 2 3 4 5\\n2\\n1000 1000\\n2\\n1 0\\n5\\n3 0 2 1 0\\n5\\n2 1 0 3 0\\n\", \"5\\n5\\n1 4 3 4 5\\n2\\n1000 1000\\n2\\n1 0\\n5\\n3 0 4 1 0\\n5\\n0 1 0 3 0\\n\", \"5\\n5\\n1 2...
{ "index": "code_r1_train_3973" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n01\\n10\", \"3\\n011\\n111\\n110\", \"3\\n010\\n101\\n010\", \"3\\n011\\n111\\n111\", \"3\\n011\\n110\\n111\", \"3\\n010\\n101\\n110\", \"3\\n011\\n011\\n110\", \"3\\n011\\n111\\n011\"], \"outputs\": [\"2\", \"-1\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\...
{ "index": "code_r1_train_3974" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1 2\", \"2\\n2 1\\n1 1\", \"2\\n0 1\\n1 1\", \"2\\n0 1\\n2 1\", \"2\\n0 1\\n0 1\", \"2\\n1 1\\n0 1\", \"2\\n1 2\\n0 1\", \"2\\n1 2\\n0 2\"], \"outputs\": [\"-1\", \"1\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_3975" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2 1 2\\n\", \"1 2 1\\n\", \"1 2 2\\n\", \"2 2 1\\n\", \"1 7 1\\n\", \"2 2 2\\n\", \"1 1 2\\n\"], \"outputs\": [\"Timur\\n\", \"Marsel\\n\", \"Timur\\n\", \"Marsel\\n\", \"Marsel\\n\", \"Timur\\n\", \"Marsel\\n\", \"Marsel\\n\"]}" }
{ "index": "code_r1_train_3976" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 2\", \"7 2\", \"2 2\", \"1 2\", \"4 3\", \"8 2\", \"6 2\", \"7 4\"], \"outputs\": [\"15\\n\", \"63\\n\", \"1\\n\", \"0\\n\", \"4\\n\", \"127\\n\", \"31\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_3977" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 2\\n1 3 1\\n\", \"3 6\\n3 3 3\\n\", \"3 3\\n1 1 1\\n\", \"3 2\\n3 3 3\\n\", \"3 2\\n3 4 3\\n\", \"3 2\\n1 1 2\\n\"], \"outputs\": [\"1\", \"1\\n\", \"5\", \"12\", \"3\\n\", \"5\\n\", \"7\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3978" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 4 1\\n8 13 1\\n2 48 9\\n3 4 2\\n1\\n0\\n2\\n3\\n5\\n8\", \"4 5\\n0 4 1\\n8 13 1\\n2 48 9\\n3 4 2\\n1\\n0\\n2\\n0\\n5\\n8\", \"4 5\\n0 4 1\\n8 13 1\\n2 48 4\\n3 4 2\\n1\\n0\\n2\\n0\\n5\\n8\", \"4 2\\n0 4 1\\n8 21 1\\n2 48 4\\n3 5 2\\n1\\n0\\n2\\n0\\n5\\n8\...
{ "index": "code_r1_train_3979" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\", \"1\\n\\n2\", \"1\\n\\n3\", \"1\\n\\n6\", \"1\\n\\n9\", \"1\\n\\n4\", \"1\\n\\n5\", \"1\\n\\n8\"], \"outputs\": [\"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\", \"POSSIBLE\\n\"]}" ...
{ "index": "code_r1_train_3980" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 1 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n1 1 1\\n\", \"6\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 3 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n2 1 1\\n\", \"6\\n8\\n1 1 2 6 3 2 1 1\\n3\\n2 1 3\\n4\\n2 10 9 1\\n1\\n26\\n2\\n1 1\\n3\\n2 1 1\\...
{ "index": "code_r1_train_3981" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1\\n3\\n\", \"1000 0\\n1\\n3\\n\", \"4 3\\n2 3\\n3 4\\n4 1\\n1\\n3\\n\", \"4 3\\n2 1\\n1 3\\n3 4\\n4\\n3\\n1 2 3\\n2 3 1\\n3\\n\", \"20 0\\n20\\n3\\n3\\n1 17 19\\n1 19 20\\n1 4 8\\n1 9 18\\n1 1 14\\n1 16 19\\n1 10 19\\n1 1 7\\n1 6 10\\n1 18 19\\n1 9 16\\n1...
{ "index": "code_r1_train_3982" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 3 2 4 1\", \"5\\n7 3 2 3 1\", \"5\\n7 3 2 3 0\", \"5\\n7 3 4 3 0\", \"5\\n7 1 4 3 0\", \"5\\n7 1 4 3 1\", \"5\\n4 2 4 3 1\", \"5\\n4 2 5 3 1\"], \"outputs\": [\"1 2 3 4 7\\n8\\n\", \"1 2 3 3 7\\n8\\n\", \"0 2 3 3 7\\n8\\n\", \"0 3 3 4 7\\n8\\n\", \"0 1 3 4 ...
{ "index": "code_r1_train_3983" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 4\\n3 2 3 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 4\\n4 3 20 9 6\", \"3\\n2 4 4\\n3 2 1 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 4\\n4 3 20 9 8\", \"3\\n2 4 7\\n3 2 1 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 6\\n4 3 20 9 8\", \"3\\n2 4 4\\n3 2 3 8\\n4 3 15 9 6\",...
{ "index": "code_r1_train_3984" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 6 8\\n\", \"5 3 1\\n\", \"3 3 2\\n\", \"4 6 8\\n\", \"5 3 2\\n\", \"3 2 1\\n\", \"4 2 2\\n\", \"3 6 8\\n\"], \"outputs\": [\" 522449402\\n\", \" ...
{ "index": "code_r1_train_3985" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 2\\n0 2 9 3 7\\n2 2\\n1 4\\n2 5\", \"5 1 2\\n0 2 8 4 0\\n1 2\\n1 3\\n4 5\", \"5 1 2\\n0 2 8 4 0\\n1 2\\n1 1\\n1 5\", \"5 0 3\\n0 2 8 5 0\\n1 2\\n1 3\\n4 5\", \"5 0 3\\n0 2 3 5 0\\n1 2\\n1 3\\n4 5\", \"5 6 3\\n0 3 8 8 7\\n1 2\\n1 3\\n2 5\", \"5 1 3\\n0 2 8 5 0...
{ "index": "code_r1_train_3986" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2119\\n\", \"1\\n9693\\n\", \"1\\n2569\\n\", \"1\\n69791\\n\", \"1\\n69791\\n\", \"1\\n54111\\n\", \"1\\n39575\\n\", \"1\\n47045\\n\"], \"outputs\": [\"3171549680\\n\", \"303566175288\\n\", \"5651594480\\n\", \"113312287936960\\n\", \"113312287936960\\n\", \"...
{ "index": "code_r1_train_3987" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 0 3\\n2 1 4\\n1 2 5\", \"2 2 3\\n1 0 3\\n2 1 8\\n1 2 5\", \"3 2 3\\n1 0 5\\n2 2 4\\n1 2 5\", \"2 2 3\\n1 0 5\\n2 1 4\\n1 2 5\", \"3 2 3\\n1 0 5\\n2 1 4\\n1 2 5\", \"2 2 3\\n1 1 3\\n2 1 4\\n1 2 5\", \"2 2 3\\n1 1 3\\n2 1 4\\n1 2 5\\n\", \"2 5 5\\n1 1 3\\...
{ "index": "code_r1_train_3988" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 5\\n1 2 1 1 2\\n1 2\\n1 3\\n2 4\\n2 5\\n1 2 3\\n1 1 2\\n2 1\\n2 2\\n2 4\\n\", \"5 5\\n1 2 1 1 2\\n1 2\\n1 3\\n2 4\\n2 5\\n1 2 3\\n1 1 2\\n2 1\\n2 2\\n2 4\\n\", \"10 10\\n137 197 856 768 825 894 86 174 2 326\\n7 8\\n4 7\\n8 9\\n7 10\\n1 2\\n2 4\\n3 6\\n3 5\\n2 3...
{ "index": "code_r1_train_3989" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"19\\n9\", \"19\\n52\", \"19\\n74\", \"19\\n38\", \"19\\n13\", \"19\\n24\", \"19\\n30\", \"19\\n58\"], \"outputs\": [\"17 23\\n7 11\\n\", \"17 23\\n47 53\\n\", \"17 23\\n73 79\\n\", \"17 23\\n37 41\\n\", \"17 23\\n11 17\\n\", \"17 23\\n23 29\\n\", \"17 23\\n29 31\...
{ "index": "code_r1_train_3990" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"205920\\n52578\\n118837\\n5291\\n69749\\n1\", \"205920\\n262144\\n262200\\n9766\\n4570\\n1\", \"205920\\n42839\\n87949\\n39283\\n69749\\n1\", \"205920\\n262144\\n262200\\n9766\\n1617\\n1\", \"205920\\n52578\\n299662\\n83962\\n69749\\n1\", \"205920\\n52578\\n11883...
{ "index": "code_r1_train_3991" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"0 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"2 2 1\\n1 1\\n1 0\\n\", \"2 2 1\\n1 1\\n1 0\\n\", \"2 2 1\\n1 0\\n1 0\\n\", \"8 1 4\\n0\\n0\\n0\\n1\\n0\\n1\\n1\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\", ...
{ "index": "code_r1_train_3992" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n...*....**\\n..........\\n**....**..\\n........*.\\n..*.......\\n**........\\n.*........\\n..........\\n....*..***\\n...*....*.\\n10 4\\n..*....*..\\n.*.*...*..\\n..*..*****\\n*...*..*..\\n..*..*...*\\n..........\\n.***.*..**\\n..*..*...*\\n..*..*...*\\n**...
{ "index": "code_r1_train_3993" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100 2 98\\n100 97 5\\n18 4 65\\n68 1 77\\n57 81 58\", \"5\\n100 2 98\\n100 97 5\\n18 4 12\\n68 1 77\\n57 81 58\", \"5\\n100 2 98\\n100 97 5\\n18 4 47\\n68 1 77\\n57 81 58\", \"5\\n100 2 98\\n100 97 5\\n18 4 65\\n68 91 77\\n57 81 58\", \"5\\n100 1 98\\n100 97 ...
{ "index": "code_r1_train_3994" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"r\\na\\n\", \"c\\nh\\n\", \"h\\nb\\n\", \"c\\np\\n\", \"n\\ng\\n\", \"a\\nz\\n\", \"r\\ni\\n\", \"t\\nv\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3995" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4 5\\n0 1\\n1 2\\n2 3\\n1 3\\n3 0\\n4 3\\n0 1\\n2 3\\n2 1\", \"2\\n4 5\\n0 1\\n1 2\\n2 3\\n1 3\\n3 0\\n4 3\\n0 1\\n2 3\\n2 0\", \"2\\n4 5\\n0 1\\n1 2\\n0 3\\n1 3\\n1 0\\n4 3\\n0 1\\n2 3\\n2 0\", \"2\\n4 5\\n0 1\\n1 2\\n1 3\\n1 3\\n2 0\\n4 3\\n0 1\\n2 3\\n2 0\...
{ "index": "code_r1_train_3996" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n7 2\\n\", \"1 1 2\\n1 2\\n\", \"2 3 4\\n1 2\\n\", \"2 3 4\\n1 3\\n\", \"2 3 4\\n1 4\\n\", \"2 3 4\\n1 5\\n\", \"2 3 4\\n1 6\\n\", \"2 3 4\\n1 7\\n\"], \"outputs\": [\"15\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_3997" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nb\\n\", \"1\\nz\\n\", \"1\\nz\\n\", \"1\\na\\n\", \"1\\nb\\n\", \"1\\ny\\n\", \"2\\nhk\\nobsp\\n\"], \"outputs\": [\"b\\n\", \"a\\n\", \"a\\n\", \"a\\n\", \"b\\n\", \"a\\n\", \"a\\n\", \"a\\n\"]}" }
{ "index": "code_r1_train_3998" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"C0DEFESTIVAL2O61\", \"EDOC6102LAVITSEF\", \"C0DEFERTIVAL2O61\", \"C0DEGERTIVAL2O61\", \"CTDEGER0IVAL2O61\", \"CT/EGERDIVAL2O61\", \"CT0EGERDIVAK2O61\", \"1DO2LAVI6REGE0TC\"], \"outputs\": [\"4\\n\", \"16\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"1...
{ "index": "code_r1_train_3999" }