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 1\\n1\\n\", \"1 1 1\\n1\\n\", \"2 2 1\\n1 0\\n\", \"2 1 1\\n0 0\\n\", \"2 1 1\\n0 0\\n\", \"2 2 1\\n1 0\\n\", \"2 1 1\\n0 1\\n\", \"2 1 1\\n10 11\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"0\\n\", \"0\", \"1\", \"1\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_3400" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n3\\n76\\n116\\n0\", \"1\\n2\\n4\\n3\\n76\\n324\\n0\", \"1\\n1\\n2\\n0\\n76\\n116\\n0\", \"1\\n1\\n1\\n3\\n333\\n54\\n0\", \"1\\n2\\n6\\n1\\n347\\n31\\n0\", \"1\\n2\\n4\\n3\\n76\\n1250\\n0\", \"1\\n2\\n3\\n3\\n76\\n1250\\n0\", \"1\\n3\\n3\\n3\\n76\\n12...
{ "index": "code_r1_train_3401" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n0 1 2\\n2 777\\n0 2\\n3 60\\n0 1 3\\n10 0000000010\\n0 1 2 3 4 5 6 7 8 9\\n\", \"4\\n3 1\\n0 1 2\\n2 777\\n0 2\\n3 60\\n0 1 3\\n10 0000000011\\n0 1 2 3 4 5 6 7 8 9\\n\", \"4\\n3 2\\n0 1 2\\n2 777\\n0 2\\n3 60\\n0 1 3\\n10 0000000010\\n0 1 2 3 4 5 6 7 8 ...
{ "index": "code_r1_train_3402" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"3\\n7 6 4\\n\", \"3\\n7 3 4\\n\", \"3\\n10 6 8\\n\", \"3\\n10 6 4\\n\", \"3\\n10 3 8\\n\"], \"outputs\": [\"1 \\n\", \"1 \\n\", \"2\\n\", \"7 6 4\\n\", \"7 3 3\\n\", \"10 6 6 \\n\", \"10 6 4\\n\", \"10 3 3\\n\"]}" }
{ "index": "code_r1_train_3403" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n2\\n\", \"1 6\\n7\\n\", \"1 6\\n3\\n\", \"1 6\\n4\\n\", \"1 7\\n2\\n\", \"1 6\\n2\\n\", \"1 6\\n7\\n\", \"1 24\\n10\\n\"], \"outputs\": [\"11\\n\", \"14\\n\", \"11\\n\", \"14\\n\", \"14\\n\", \" 1...
{ "index": "code_r1_train_3404" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 5\\n\", \"3\\n1 1 5\\n\", \"3\\n1 1 1\\n\", \"3\\n1 2 3\\n\", \"1\\n100000\\n\"], \"outputs\": [\"1\\n\", \"1\", \"5\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"5\", \"0\\n\"]}" }
{ "index": "code_r1_train_3405" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 2 2\", \"4\\n1 4 3 2\", \"4\\n3 4 1 2\", \"4\\n2 4 1 3\", \"4\\n2 4 3 1\", \"4\\n2 1 4 3\", \"4\\n2 4 1 3\", \"4\\n1 2 4 3\"], \"outputs\": [\"4\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3406" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n68972\", \"1\\n99999\", \"7\\n3 1 7 1 5 9 2\", \"7\\n3 1 7 1 5 9 0\", \"7\\n3 1 2 1 5 9 1\", \"7\\n1 2 2 0 1 2 1\", \"7\\n3 1 2 1 5 9 0\", \"7\\n3 1 2 0 5 9 1\"], \"outputs\": [\"1\\n\", \"1\", \"4\\n\", \"3\\n\", \"5\\n\", \"7\\n\", \"4\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_3407" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 3 5 3 6 2 1\\n\", \"1 6 5 5 5 8 3 1\\n\", \"2 5 3 5 6 9 2 1\\n\", \"1 7 3 5 3 6 2 1\\n\", \"1 7 5 3 3 9 2 1\\n\", \"2 4 5 4 5 7 3 2\\n\", \"1 7 5 5 5 5 2 2\\n\", \"1 4 6 7 3 5 1 3\\n\"], \"outputs\": [\"2\\n\", \"8\\n\", \"3\\n\", \"6\\n\", \"9\\n\", \"1\\n\"...
{ "index": "code_r1_train_3408" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"7\\n7\\n\", \"4\\n7\\n\", \"4\\n4\\n\", \"47\\n77\\n\", \"47\\n47\\n\", \"47\\n74\\n\", \"444\\n444\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3409" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\", \"2\\n2 2\", \"2\\n1 0\", \"2\\n1 2\", \"2\\n1 -1\", \"4\\n1 2 1 1\", \"4\\n1 2 2 1\"], \"outputs\": [\"6\\n\", \"9\\n\", \"12\\n\", \"3\\n\", \"9\", \"0\\n\", \"268\\n\", \"324\\n\"]}" }
{ "index": "code_r1_train_3410" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n2\\n0\\n\", \"1\\n4\\n0\\n\", \"1\\n5\\n0\\n\", \"1\\n1\\n0\\n\", \"1\\n2\\n0\\n\", \"1\\n4\\n0\\n\", \"1\\n5\\n0\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_3411" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"42 25\\n3 -2\\n62 0\\n2 30\\n0 4\\n0 0\\n27 -2\", \"42 25\\n3 -2\\n62 0\\n2 30\\n0 2\\n0 0\\n27 -2\", \"42 25\\n5 -1\\n118 0\\n2 9\\n1 2\\n-1 0\\n5 -2\", \"42 25\\n5 -1\\n118 0\\n2 9\\n1 2\\n-2 0\\n5 -2\", \"42 25\\n5 -1\\n142 0\\n2 9\\n1 2\\n-2 0\\n5 -2\", \"42 ...
{ "index": "code_r1_train_3412" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n8 11\\n12 19\\n18 9\\n8\\n2\\n6 6\\n5 6\\n0\", \"10\\n3\\n8 11\\n12 19\\n18 9\\n8\\n2\\n4 6\\n5 6\\n0\", \"10\\n3\\n6 11\\n12 19\\n18 9\\n8\\n2\\n4 6\\n5 6\\n0\", \"10\\n3\\n6 11\\n12 19\\n18 9\\n8\\n2\\n3 6\\n5 6\\n0\", \"10\\n3\\n6 11\\n12 19\\n18 9\\n...
{ "index": "code_r1_train_3413" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"A\\n\", \"AB\\n\", \"ZZ\\n\", \"ZZ\\n\", \"AB\\n\", \"BA\\n\", \"AA\\n\"], \"outputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n2 1\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n2 1\\n\", \"1\\n2 1\\n\", \"1\\n2 1\\n\", \"2\\n1 2\\n2 1\\n\"]}" }
{ "index": "code_r1_train_3414" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"A\\n\", \"7\\n\", \"?\\n\", \"A\\n\", \"3\\n\", \"B\\n\"], \"outputs\": [\"9\\n\", \"1\\n\", \"9\\n\", \"1\\n\", \"9\\n\", \"9\\n\", \"1\\n\", \"9\\n\"]}" }
{ "index": "code_r1_train_3415" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0 0 0 0\\n\", \"1\\n0 0 0 0\\n\", \"1\\n0 0 1 0\\n\", \"1\\n0 0 2 0\\n\", \"1\\n4 0 0 0\\n\", \"1\\n1 0 0 0\\n\", \"1\\n2 0 0 0\\n\", \"1\\n1 0 1 0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3416" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 10\\n100 111 1\\n\", \"1 10\\n000 111 1\\n\", \"1 10\\n000 101 1\\n\", \"1 10\\n001 101 1\\n\", \"1 10\\n001 100 1\\n\", \"1 10\\n100 111 1\\n\", \"2 3\\n2 3 6\\n3 4 3\\n\", \"2 3\\n2 3 6\\n3 4 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\...
{ "index": "code_r1_train_3417" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n011 1 315218201\", \"3\\n001 188 468791915\", \"3\\n011 188 468791915\", \"3\\n011 291 468791915\", \"3\\n011 133 468791915\", \"3\\n011 133 735631313\", \"3\\n011 133 315218201\", \"3\\n101 2947 468791915\"], \"outputs\": [\"3467400211\\n\", \"88132880020\\n...
{ "index": "code_r1_train_3418" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\nb likes c's post\\n\", \"a\\n1\\nc likes b's post\\n\", \"aba\\n1\\nkikes likes posted's post\\n\", \"aba\\n1\\nlieks likes posted's post\\n\", \"aba\\n1\\nlheks likes posted's post\\n\", \"aba\\n1\\nlikes likes posted's post\\n\", \"fgzrn\\n3\\nzhl likes...
{ "index": "code_r1_train_3419" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nb\\n\", \"`\\nb\\n\", \"`\\nc\\n\", \"_\\nb\\n\", \"_\\na\\n\", \"b\\nab\\n\", \"ab\\na\\n\", \"b\\nba\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3420" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 1 1 1\\n\", \"1\\n7 7 1 1\\n\", \"1\\n2 2 1 1\\n\", \"1\\n0 5 0 1\\n\", \"1\\n2 2 1 1\\n\", \"1\\n1 1 1 1\\n\", \"1\\n0 5 0 1\\n\", \"1\\n7 7 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3421" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nSP.-SS.S-S.S\\n\", \"1 1\\n..S-PS..-.PP\\n\", \"1 1\\nSPS-....-P.P\\n\", \"2 2\\nPP.-S.SS-.S.\\nSSP-SSSS-S.S\\n\", \"2 1\\nSSS-S.S.-SSS\\nSSP-.PP.-S.S\\n\", \"3 7\\n.S.-SSSP-..S\\nS..-.SPP-S.P\\n.S.-PPPP-PSP\\n\", \"4 9\\nPP.-PPPS-S.S\\nPSP-PPSP-.S.\\n.S.-S...
{ "index": "code_r1_train_3422" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"1\\n28\\n3\", \"1\\n28\\n5\", \"1\\n28\\n8\", \"1\\n28\\n4\", \"1\\n24\\n8\", \"1\\n49\\n3\", \"1\\n22\\n8\"], \"outputs\": [\"0\\n\", \"32\\n\", \"33024\\n\", \"1024\\n\", \"64\\n\", \"65536\\n\", \"1088\\n\", \"16384\\n\"]}" }
{ "index": "code_r1_train_3423" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"2\", \"6\", \"5\", \"9\", \"8\", \"1\"], \"outputs\": [\"2\\n\", \"4\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"8\\n\", \"8\\n\", \"1\"]}" }
{ "index": "code_r1_train_3424" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n3\\n\", \"1\\n6\\n\", \"1\\n23\\n\", \"1\\n32\\n\", \"1\\n48\\n\", \"1\\n79\\n\", \"1\\n86\\n\", \"1\\n847\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_3425" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"3\\n1 0 0\\n\", \"3\\n1 0 0\\n\", \"4\\n0 2 1 1\\n\", \"4\\n0 2 0 1\\n\", \"4\\n0 2 0 0\\n\", \"4\\n0 2 1 1\\n\"], \"outputs\": [\"Possible\\n1 \", \"Possible\\n1 \", \"Impossible\\n\", \"Impossible\", \"Impossible\\n\", \"Possible\\n3...
{ "index": "code_r1_train_3426" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1 1\\n1 2 1\\n\", \"2 1 1\\n1 2 1\\n\", \"2 1 2\\n1 2 1\\n\", \"4 3 13\\n1 2 5\\n2 3 7\\n2 4 8\\n\", \"4 3 13\\n1 2 5\\n2 3 7\\n2 4 8\\n\", \"4 4 3\\n1 2 1\\n2 3 1\\n3 4 1\\n1 3 1\\n\", \"4 4 2\\n1 2 1\\n2 3 1\\n3 4 1\\n1 3 1\\n\", \"4 4 2\\n1 2 1\\n2 3 1\\n3 4...
{ "index": "code_r1_train_3427" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nz\\n\", \"r\\nr\\n\", \"r\\nr\\n\", \"r\\nq\\n\", \"r\\np\\n\", \"q\\np\\n\", \"q\\nq\\n\", \"p\\nq\\n\"], \"outputs\": [\"-1\", \"1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_3428" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 1\\n2 3 1\\n3 1 1\\n1\", \"4 3 1\\n1 2 1\\n2 3 2\\n1 1 1\\n1\", \"4 3 1\\n1 2 1\\n2 3 1\\n1 2 1\\n2\", \"4 3 1\\n1 2 1\\n2 3 4\\n1 1 1\\n1\", \"8 3 1\\n1 1 2\\n2 3 4\\n3 1 0\\n1\", \"4 3 1\\n1 2 2\\n2 4 4\\n1 1 1\\n1\", \"4 3 1\\n1 1 0\\n1 3 0\\n3 2 0...
{ "index": "code_r1_train_3429" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 1\", \"2 0\", \"3 2\", \"4 1\", \"1 0\", \"3 0\", \"4 0\"], \"outputs\": [\"1990\\n\", \"1926\\n\", \"1911\\n\", \"1927\\n\", \"1989\\n\", \"1867\\n\", \"1925\\n\", \"1988\\n\"]}" }
{ "index": "code_r1_train_3430" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n0\\n\", \"2\\n0\\n\", \"2\\n7\\n\", \"2\\n5\\n\", \"2\\n4\\n\", \"2\\n1\\n\", \"2\\n2\\n\"], \"outputs\": [\"0 7 \\n\", \"0 0 \\n\", \"0 0\\n\", \"0 7\\n\", \"0 5\\n\", \"0 4\\n\", \"0 1\\n\", \"0 2\\n\"]}" }
{ "index": "code_r1_train_3431" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n\", \"9 1\\n\", \"4 2\\n\", \"1 1\\n\", \"5 8\\n\", \"3 3\\n\", \"5 1\\n\", \"7 2\\n\"], \"outputs\": [\"2 1\\n\", \"1 2 3 4 5 6 7 8 9\\n\", \"1 2 4 3\\n\", \"1\\n\", \"2 1 4 3 5\\n\", \"2 1 3\\n\", \"1 2 3 4 5\\n\", \"1 2 3 4 5 7 6\\n\"]}" }
{ "index": "code_r1_train_3432" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n89\\n\", \"1\\n34\\n\", \"1\\n63\\n\", \"1\\n507\\n\", \"1\\n783\\n\", \"1\\n165\\n\", \"1\\n238\\n\", \"1\\n1337\\n\"], \"outputs\": [\"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1\\n\", \"YES\\n1 \\...
{ "index": "code_r1_train_3433" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n1 4\\n\", \"2\\n1 0\\n\", \"2\\n0 0\\n\", \"2\\n2 2\\n\", \"2\\n1 1\\n\", \"4\\n4 2 2 4\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_3434" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 2 7\\n\", \"1\\n8 6 2 7\\n\", \"1\\n8 6 0 7\\n\", \"1\\n9 4 0 7\\n\", \"1\\n2 4 0 1\\n\", \"1\\n1 6 2 7\\n\", \"1\\n9 6 0 7\\n\", \"1\\n9 4 0 6\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\...
{ "index": "code_r1_train_3435" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n\", \"4 6\\n\", \"6 7\\n\", \"4 9\\n\", \"7 3\\n\", \"2 7\\n\", \"7 4\\n\"], \"outputs\": [\"Equal\\n\", \"Equal\\n\", \"Equal\\n\", \"Equal\\n\", \"Dasha\\n\", \"Masha\\n\", \"Dasha\\n\", \"Masha\\n\"]}" }
{ "index": "code_r1_train_3436" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -8 8 0 2\\n\", \"5\\n2 0 0 1 12\\n\", \"5\\n7 -8 6 0 2\\n\", \"5\\n3 0 0 1 12\\n\", \"5\\n3 0 0 1 10\\n\", \"5\\n3 0 1 1 10\\n\", \"5\\n4 0 1 1 10\\n\", \"5\\n6 -4 8 -2 3\\n\"], \"outputs\": [\"-1 0 8 2 2\\n\", \"2 0 1 13 12\\n\", \"-1 -2 6 2 2\\n\", \"3 0 ...
{ "index": "code_r1_train_3437" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-2\\n1\", \"2\\n12\\n0\", \"2\\n20\\n0\", \"2\\n94\\n0\", \"2\\n88\\n0\", \"2\\n0\\n36\", \"2\\n1\\n43\", \"2\\n1\\n39\"], \"outputs\": [\"Case 1:\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\nCase 2:\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n\", \"Case 1:\\n1\\n...
{ "index": "code_r1_train_3438" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n\", \"1\\n2\\n\", \"1\\n7\\n\", \"1\\n90\\n\", \"1\\n16\\n\", \"1\\n52\\n\", \"1\\n70\\n\", \"1\\n82\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"3\\n\", \"63\\n\", \"15\\n\", \"31\\n\", \"63\\n\", \"63\\n\"]}" }
{ "index": "code_r1_train_3439" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2 3 1\", \"0 7 9 4\", \"1 3 3 1\", \"1 2 3 2\", \"1 0 3 2\", \"1 0 4 2\", \"1 0 0 2\", \"1 0 0 1\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3440" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"AI[U\\n_A\", \"U[IA\\n_A\", \"U[IA\\n^A\", \"U[HA\\n^A\", \"U[H@\\n^A\", \"U[H@\\n^B\", \"U[H@\\nB^\", \"@H[U\\nB^\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_3441" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 6 2 2\\n\", \"2 3 2 1 6 6\\n\", \"3 6 2 2 6 3\\n\", \"1 2 2 3 2 1\\n\", \"2 6 1 1 1 6\\n\", \"6 6 1 6 1 6\\n\", \"2 6 2 2 2 3\\n\", \"3 3 3 2 6 2\\n\"], \"outputs\": [\"Hermione\\n\", \"Hermione\\n\", \"Hermione\\n\", \"Ron\\n\", \"Ron\\n\", \"Ron\\n\", \"R...
{ "index": "code_r1_train_3442" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nzz\\n\", \"1\\nzz\\n\", \"1\\n{{\\n\", \"1\\nz{\\n\", \"1\\n{|\\n\", \"1\\n|{\\n\", \"1\\n||\\n\", \"1\\nz|\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3443" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\\n\", \"8\\n\", \"4\\n\", \"5\\n\", \"7\\n\", \"2\\n\", \"3\\n\"], \"outputs\": [\"2 4 1 5 4 \", \"2 4 7 2 7 4 2 1 \", \"2 4 7 3 8 6 5 \", \"2 4 3 \", \"2 4 2 1 \", \"2 4 7 4 2 1 \", \"2 \", \"2 1 \"]}" }
{ "index": "code_r1_train_3444" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\", \"1\", \"85\", \"19\", \"91\", \"11\"], \"outputs\": [\"4\\n\", \"3\\n\", \"8\\n\", \"1\\n\", \"34\\n\", \"18\\n\", \"13\\n\", \"10\"]}" }
{ "index": "code_r1_train_3445" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2 5 4\\n\", \"4 5 4\\n\", \"0 2 2\\n\", \"0 2 4\\n\", \"2 5 3\\n\", \"0 -1 -2\\n\", \"-1 1 -2\\n\"], \"outputs\": [\"-1\\n\\n\", \"8 -4\", \"4 -4\", \"0 -1\", \"0 -2\", \"6 -3\\n\", \"0 -2\\n\", \"0 2\\n\"]}" }
{ "index": "code_r1_train_3446" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n3\\n5\\n8\\n7\\n6\\n3\\n9\\n7\\n3\\n4\", \"5\\n5\\n3\\n5\\n8\\n7\\n6\\n3\\n9\\n7\\n3\\n4\", \"5\\n5\\n3\\n5\\n8\\n5\\n6\\n3\\n9\\n7\\n3\\n4\", \"5\\n9\\n3\\n5\\n8\\n7\\n6\\n3\\n9\\n7\\n0\\n4\", \"5\\n6\\n6\\n9\\n8\\n7\\n5\\n3\\n9\\n7\\n0\\n4\", \"5\\n6\\n...
{ "index": "code_r1_train_3447" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n3\\n6 5 4 1 2 1\\n5\\n7 4 7 13 2 5 8 3 17 16\\n\", \"3\\n1\\n0 2\\n3\\n6 1 0 2 2 3\\n5\\n2 1 7 13 1 5 1 3 16 14\\n\", \"3\\n1\\n1 1\\n3\\n6 5 4 1 2 3\\n5\\n13 4 7 13 2 5 8 3 17 16\\n\", \"3\\n1\\n1 1\\n3\\n6 5 4 1 2 3\\n5\\n13 4 7 22 2 5 1 3 16 16\\...
{ "index": "code_r1_train_3448" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3C\\n\", \"1\\n3D\\n\", \"1\\n4C\\n\", \"2\\n3S 2C\\n\", \"4\\n2C 3D 4D 5C\\n\", \"4\\n2C 4D 4D 5C\\n\", \"4\\n2D 4D 4D 5C\\n\", \"4\\n2S 2S 2C 2C\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\"]...
{ "index": "code_r1_train_3449" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 6\\n1\\n\", \"2 1\\n1 2\\n5 6\\n1\\n\", \"2 1\\n1 2\\n5 3\\n2\\n\", \"2 1\\n0 2\\n5 3\\n2\\n\", \"2 1\\n1 2\\n5 6\\n0\\n\", \"2 1\\n1 2\\n5 10\\n1\\n\", \"2 1\\n1 2\\n5 10\\n2\\n\", \"2 1\\n1 1\\n100 100\\n5\\n\"], \"outputs\": [\"No\\n\", \"No\\n\"...
{ "index": "code_r1_train_3450" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"0 1\", \"2 3\", \"3 4\", \"7 8\", \"3 3\", \"5 6\"], \"outputs\": [\"20\\n\", \"13\\n\", \"10\\n\", \"30\\n\", \"40\\n\", \"88\\n\", \"38\\n\", \"63\\n\"]}" }
{ "index": "code_r1_train_3451" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n0\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n3\\n\", \"1\\n1\\n5\\n\", \"2\\n1 5\\n3 4\\n\", \"2\\n1 9\\n3 4\\n\", \"2\\n2 9\\n3 4\\n\"], \"outputs\": [\"YES\\n0\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"...
{ "index": "code_r1_train_3452" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"xyz\\n3\\nprint 0 2\\nreplace 1 2 abc\\nprint 0 2\", \"xyz\\n1\\nprint 0 2\\nreplace 0 2 abc\\nprint 0 2\", \"xyz\\n3\\nprint 0 1\\nreplace 1 2 abc\\nprint 0 2\", \"wyz\\n1\\nprint 0 2\\nreplace 0 2 abc\\nprint 0 2\", \"xyz\\n3\\nprint 0 2\\nreplace 1 2 abb\\npri...
{ "index": "code_r1_train_3453" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\nz\\ny\\n\", \"1\\na\\nb\\n\", \"2\\nab\\nba\\n\", \"2\\nab\\nac\\n\", \"2\\nba\\nca\\n\", \"2\\ner\\nre\\n\", \"2\\nac\\ncb\\n\", \"2\\nab\\naa\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3454" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n.\\n\", \"1 1\\n1 1\\n0 0\\n.\\n\", \"1 1\\n1 1\\n31 42\\n.\\n\", \"1 1\\n1 1\\n31 42\\n.\\n\", \"1 7\\n1 1\\n0 3\\n.......\\n\", \"1 7\\n1 1\\n0 3\\n.......\\n\", \"4 4\\n2 2\\n0 1\\n....\\n..*.\\n....\\n....\\n\", \"4 4\\n2 2\\n0 1\\n....\\n.....
{ "index": "code_r1_train_3455" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\", \"3\", \"6\", \"1\", \"73\", \"22\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3456" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na c\\na\\n\", \"1 1\\na c\\na\\n\", \"1 1\\namit am\\namit\\n\", \"1 1\\namit am\\namit\\n\", \"1 1\\namit ma\\namit\\n\", \"1 1\\namit la\\namit\\n\", \"5 3\\njoll wuqrd\\neuzf un\\nhbnyiyc rsoqqveh\\nhbnyiyc joll joll euzf joll\\n\", \"5 3\\njoll wuqrd\\n...
{ "index": "code_r1_train_3457" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"100\\n0\\n3\\n2\\n0\\n-4\", \"100\\n4\\n41\\n96\\n1\\n0\", \"100\\n4\\n68\\n96\\n1\\n0\", \"100\\n0\\n55\\n30\\n0\\n0\", \"100\\n0\\n55\\n41\\n0\\n0\", \"100\\n0\\n34\\n41\\n0\\n0\", \"100\\n2\\n50\\n41\\n0\\n0\", \"100\\n2\\n50\\n4\\n-1\\n0\"], \"outputs\": [\"1...
{ "index": "code_r1_train_3458" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"25.4\\n25.4\", \"26.000450676027395\\n25.4\", \"26.601491934975797\\n25.4\", \"44.72115406668142\\n44.101745823639\", \"38.4955310270825\\n37.15642943049945\", \"60.63345250628777\\n63.4141206664841\", \"73.9111092448129\\n75.52007039121814\", \"35.31260445827307...
{ "index": "code_r1_train_3459" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n111 2 3\\n\", \"1\\n111 2 3\\n\", \"1\\n111 4 3\\n\", \"1\\n111 3 3\\n\", \"1\\n111 6 3\\n\", \"1\\n101 6 1\\n\", \"1\\n101 8 1\\n\", \"1\\n001 8 0\\n\"], \"outputs\": [\"58\\n\", \"58\\n\", \"59\\n\", \"58\\n\", \"60\\n\", \"54\\n\", \"55\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_3460" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n\", \"9\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n11\\n\", \"5\\n10101011011\\n0000\\n11111\\n110\\n1100\\n\", \"5\\n10101011011\\n1000\\n11111\\n110\\n1100\\n\", \"5\\n10101011011\\n1000\\n11111\\n110\\n0100\\n\",...
{ "index": "code_r1_train_3461" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n5 2\\n5 4\\n9 3\", \"3\\n5 2\\n2 5\\n9 3\", \"3\\n5 1\\n2 5\\n9 3\", \"3\\n9 1\\n2 5\\n9 3\", \"3\\n9 1\\n2 5\\n8 3\", \"3\\n9 1\\n2 5\\n7 3\", \"3\\n9 0\\n2 5\\n7 3\", \"3\\n9 0\\n2 3\\n5 4\"], \"outputs\": [\"10\\n5\\n84\\n\", \"10\\n0\\n84\\n\", \"5\\n0\\n...
{ "index": "code_r1_train_3462" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"0\\nX\\n\", \"X\\n0\\n\", \"X\\nX\\n\", \"X\\n0\\n\", \"0\\nX\\n\", \"X\\nX\\n\", \"0\\n0\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3463" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n7\\n\", \"1\\n6\\n\", \"1\\n14\\n\", \"1\\n16\\n\", \"1\\n23\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_3464" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n5\", \"3\\n4\\n1\\n2\", \"3\\n3\\n1\\n1\", \"3\\n5\\n1\\n1\", \"3\\n2\\n1\\n1\", \"3\\n1\\n2\\n1\", \"3\\n3\\n3\\n5\", \"3\\n5\\n1\\n4\"], \"outputs\": [\"6\\n\", \"3\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"0\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_3465" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2 0 0 0 0 0 0 0\\n\", \"4\\n1 1 2 0 0 0 0 0 0 0\\n\", \"8\\n1 0 1 0 1 1 2 2 0 0\\n\", \"6\\n0 1 0 1 1 0 0 0 1 0\\n\", \"6\\n1 1 0 1 2 1 0 0 0 0\\n\", \"7\\n0 0 2 2 1 0 1 0 0 0\\n\", \"6\\n1 1 1 1 1 1 0 0 0 0\\n\", \"4\\n0 0 1 0 1 0 0 0 1 1\\n\"], \"output...
{ "index": "code_r1_train_3466" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"82 2 14 2015 3 5\", \"237 3 6 6005 5 6\", \"111 3 6 8948 5 1\", \"11 2 14 2015 3 5\", \"343 3 6 3590 3 1\", \"111 3 6 1068 5 1\", \"788 2 2 3516 5 13\", \"788 2 2 2405 5 13\"], \"outputs\": [\"3325\\n\", \"9919\\n\", \"15199\\n\", \"3448\\n\", \"5584\\n\", \"1648...
{ "index": "code_r1_train_3467" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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+3-4+5)\", \"0-(2+3-3+5)\", \"2-(2+3-4+5)\", \"1-(3+2-4+5)\", \"2-(2-3+4+5)\", \"0-(3+4-4+5)\", \"3+(2-4-4+5)\", \"2-(2+2-4+5)\"], \"outputs\": [\"4\\n\", \"3\\n\", \"6\\n\", \"5\\n\", \"12\\n\", \"2\\n\", \"10\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_3468" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"3\\n3 1 2\\n\", \"3\\n3 2 1\\n\", \"3\\n2 3 1\\n\", \"3\\n1 2 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3469" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 3\\n1 2 8\\n2 3 3\\n3 1 7\\n\", \"3 3\\n1 2 8\\n2 3 3\\n3 1 0\\n\", \"3 3\\n1 2 8\\n2 3 1\\n3 1 0\\n\", \"3 3\\n1 2 8\\n2 3 6\\n3 1 4\\n\", \"3 3\\n1 2 8\\n2 3 3\\n3 1 4\\n\", \"10 9\\n5 10 606854707\\n3 8 737506631\\n2 4 429066157\\n8 9 947792932\\n6 4 5683148...
{ "index": "code_r1_train_3470" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2800\\na\\n\", \"4049\\nrdd\", \"4049\\nqdd\", \"4049\\nqcd\", \"4049\\nqdc\", \"4049\\nddq\", \"4049\\nddr\", \"4049\\ndrd\"], \"outputs\": [\"red\\n\", \"rdd\\n\", \"qdd\\n\", \"qcd\\n\", \"qdc\\n\", \"ddq\\n\", \"ddr\\n\", \"drd\\n\"]}" }
{ "index": "code_r1_train_3471" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAJMP\\naB33d\\nE\\n86AE\\nAM\\n6\\nJPEM\\nWaEaETC302Q\\nCP\\nrTurnAGundam1isdefferentf\", \"5\\nAJMP\\naB33d\\nE\\n86AE\\nAM\\n6\\nEPJM\\nWaEaETC302Q\\nCP\\nrTurnAGundam1isdefferentf\", \"5\\nAJMP\\naB33d\\nE\\n86AE\\nAM\\n0\\nEPJM\\nWaEaETC302Q\\nCP\\nrTurnA...
{ "index": "code_r1_train_3472" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 1\\n3 2\", \"3\\n4 3\\n1 1\\n3 1\", \"3\\n4 3\\n1 2\\n3 1\", \"3\\n2 3\\n1 1\\n1 2\", \"3\\n4 3\\n1 1\\n1 2\", \"3\\n2 1\\n1 1\\n3 2\", \"3\\n3 3\\n1 2\\n3 2\", \"3\\n4 3\\n1 2\\n2 1\"], \"outputs\": [\"10\\n\", \"16\\n\", \"32\\n\", \"9\\n\", \"12\\n...
{ "index": "code_r1_train_3473" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.0 0.0 5.0 0.0 0.0 4.0\\n0.0 0.0 2.0 4.1 0.0 2.0\", \"2\\n0.0 0.0 5.0 0.0 0.0 4.0\\n0.0 0.0 2.0 4.1 0.0 2.4515674947137622\", \"2\\n0.0 0.0 5.0 0.0 1.5542884595470625 4.0\\n0.0 0.0 2.0 4.1 0.0 2.4515674947137622\", \"2\\n0.0 0.0 5.0 0.0 0.5752470256734817 4....
{ "index": "code_r1_train_3474" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n10\\n1\\n\", \"1\\n11\\n10\\n\", \"1\\n11\\n10\\n\", \"1\\n10\\n10\\n\", \"1\\n1010101010111000110\\n1\\n\", \"1\\n1010101010111000110\\n1\\n\", \"1\\n1010001010111000110\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\...
{ "index": "code_r1_train_3475" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n4 7\\n2 4\\n5 6\", \"4\\n2 1\\n4 7\\n2 4\\n5 6\", \"4\\n2 2\\n4 7\\n2 4\\n3 6\", \"4\\n2 6\\n4 7\\n2 4\\n5 6\", \"4\\n2 0\\n4 7\\n2 4\\n3 6\", \"4\\n4 0\\n4 7\\n2 4\\n3 6\", \"4\\n2 5\\n4 7\\n2 4\\n6 6\", \"4\\n2 4\\n4 7\\n2 4\\n3 6\"], \"outputs\": [\"...
{ "index": "code_r1_train_3476" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 8 10\\n1 4\\n1 9\\n0 6\\n0 10\\n1 100\\n1 5\\n\", \"5 6\\n1 2 6 8 10\\n1 4\\n1 9\\n0 6\\n0 10\\n1 100\\n1 50\\n\", \"5 6\\n1 2 6 5 10\\n1 4\\n1 9\\n0 6\\n0 10\\n1 100\\n1 50\\n\", \"5 6\\n1 2 6 8 10\\n1 4\\n1 9\\n0 6\\n0 10\\n1 101\\n1 50\\n\", \"5 6\...
{ "index": "code_r1_train_3477" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n\", \"5\\n\", \"9\\n\", \"7\\n\", \"8\\n\", \"6\\n\", \"3\\n\", \"2\\n\"], \"outputs\": [\" 0\\n 0 1 0\\n 0 1 2 1 0\\n 0 1 2 3 2 1 0\\n0 1 2 3 4 3 2 1 0\\n 0 1 2 3 2 1 0\\n 0 1 2 1 0\\n 0 1 0\\n 0\\n\", \" 0\\n ...
{ "index": "code_r1_train_3478" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ac\", \"cc\", \"bc\", \"cb\", \"ca\", \"db\", \"bd\", \"be\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3479" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n0\\n\", \"0 1\\n0\\n\", \"0 1\\n1000\\n\", \"0 1\\n1000\\n\", \"500 1\\n1000\\n\", \"500 1\\n1000\\n\", \"430 1\\n1000\\n\", \"50 2\\n100 25\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3480" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 1 1\\n2 3\\n1 5\", \"3 2\\n5 1 1\\n2 3\\n1 7\", \"3 2\\n5 1 1\\n2 3\\n1 6\", \"3 2\\n5 1 1\\n2 3\\n2 6\", \"3 2\\n5 1 1\\n2 3\\n1 0\", \"3 2\\n5 1 1\\n1 2\\n1 5\", \"3 2\\n5 0 0\\n1 6\\n1 5\", \"3 2\\n5 1 1\\n0 3\\n2 7\"], \"outputs\": [\"13\\n\", \"15\\n...
{ "index": "code_r1_train_3481" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n114514\\n\", \"1\\n975310\\n\", \"1\\n666999\\n\", \"1\\n975319\\n\", \"2\\n193758\\n123456\\n\", \"2\\n192758\\n123456\\n\", \"5\\n213132\\n973894\\n045207\\n000000\\n055776\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\nNO\\n\", \"N...
{ "index": "code_r1_train_3482" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n1 2 1\\n2 1 2\\n\", \"2 2\\n1 2 1\\n2 1 2\\n\", \"2 2\\n2 2 1\\n2 1 2\\n\", \"3 3\\n1 2 1\\n2 3 1\\n3 1 1\\n\", \"3 3\\n1 2 1\\n2 3 2\\n3 1 3\\n\", \"4 3\\n1 2 1\\n2 3 1\\n3 4 2\\n\", \"4 3\\n1 2 1\\n3 4 1\\n2 1 2\\n\", \"3 3\\n1 2 1\\n1 3 2\\n3 2 3\\n\"], ...
{ "index": "code_r1_train_3483" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2\\n2 1 1 5 0 2\", \"6 1 5 2\\n2 1 1 3 1 2\", \"6 1 2 2\\n2 1 1 5 0 0\", \"6 1 2 4\\n2 1 1 5 0 0\", \"6 1 5 1\\n3 1 1 3 0 2\", \"6 1 2 1\\n1 1 1 5 0 2\", \"6 1 5 2\\n2 0 1 3 1 2\", \"6 1 2 4\\n2 1 1 2 0 0\"], \"outputs\": [\"5\\n\", \"3\\n\", \"4\\n\", \"6\...
{ "index": "code_r1_train_3484" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 1\\n1 1\", \"5 1\\n1 1\", \"6 1\\n1 1\", \"3 1\\n3 2\", \"5 1\\n3 2\", \"2 1\\n1 2\", \"9 1\\n1 2\", \"8 1\\n2 4\"], \"outputs\": [\"2\\n\", \"4\\n\", \"5\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"7\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_3485" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nRQ\", \"2\\nRS\", \"2\\nRT\", \"2\\nRU\", \"2\\nRP\", \"2\\nRO\", \"2\\nRV\", \"2\\nRN\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3486" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n4\\n\", \"1\\n2\\n\", \"1\\n7\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n9\\n\", \"1\\n8\\n\", \"1\\n1\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"7\\n\", \"6\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3487" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nw\\n\", \"1\\nw\\n\", \"1\\nv\\n\", \"1\\nu\\n\", \"1\\nt\\n\", \"1\\ns\\n\", \"2\\nno\\n\", \"2\\ncb\\n\"], \"outputs\": [\"w\\n\", \"w\\n\", \"v\\n\", \"u\\n\", \"t\\n\", \"s\\n\", \"no\\n\", \"cb\\n\"]}" }
{ "index": "code_r1_train_3488" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 5\\n0 17\\n9 11\\n\", \"1 1000000000\\n15 1\\n\", \"1 1000000000\\n19 8\\n\", \"1 1000000000\\n15 12\\n\", \"3 3\\n4 15\\n0 17\\n9 11\\n\", \"3 3\\n4 15\\n0 17\\n9 11\\n\", \"1 1000000000\\n15 12\\n\", \"3 3\\n4 15\\n0 17\\n6 11\\n\"], \"outputs\": [\"17\...
{ "index": "code_r1_train_3489" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100 1\\n-1\\n\", \"1 100 1\\n-1\\n\", \"1 100 2\\n-1\\n\", \"1 010 4\\n-1\\n\", \"1 100 4\\n-1\\n\", \"1 000 2\\n-1\\n\", \"1 000 4\\n-1\\n\", \"1 010 2\\n-1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"100\", \"10\", \"100\", \"0\", \"0\", \"10\"]}" }
{ "index": "code_r1_train_3490" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"4\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"47\\n\"], \"outputs\": [\"1\\n\", \"11\\n\", \"4\\n\", \"20\\n\", \"42\\n\", \"60\\n\", \"100\\n\", \"32596\\n\"]}" }
{ "index": "code_r1_train_3491" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 3\\n0 0\", \"3 1\\n2 2\\n9 3\\n0 0\", \"3 1\\n0 2\\n9 3\\n0 0\", \"3 0\\n0 2\\n9 3\\n0 0\", \"3 2\\n2 2\\n5 6\\n0 0\", \"3 1\\n2 3\\n9 3\\n0 0\", \"3 0\\n0 2\\n9 5\\n0 0\", \"3 2\\n2 3\\n5 6\\n0 0\"], \"outputs\": [\"1 3\\n2 2\\n3 5\\n\", \"1 3\\n2 ...
{ "index": "code_r1_train_3492" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2 2\\n2 8\\n\", \"1\\n2 2\\n4 8\\n\", \"1\\n2 2\\n3 9\\n\", \"1\\n2 4\\n1 6\\n\", \"1\\n2 3\\n0 9\\n\", \"1\\n2 5\\n2 9\\n\", \"1\\n2 2\\n2 9\\n\", \"1\\n2 3\\n0 8\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\...
{ "index": "code_r1_train_3493" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 2 8\\n3\\n0 8 5\", \"2\\n2\\n2 0 8\\n3\\n0 0 9\", \"2\\n2\\n0 7 0\\n3\\n1 5 5\", \"2\\n3\\n6 0 3\\n2\\n1 4 2\", \"2\\n2\\n2 4 8\\n3\\n1 5 5\", \"2\\n2\\n2 4 4\\n3\\n1 5 5\", \"2\\n2\\n2 2 4\\n3\\n1 5 5\", \"2\\n2\\n2 2 8\\n3\\n1 5 5\"], \"outputs\": [\"...
{ "index": "code_r1_train_3494" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\nab\\n\", \"1\\n3 1\\naab\\n\", \"1\\n3 1\\nabc\\n\", \"1\\n4 1\\nabcd\\n\", \"1\\n4 2\\nabca\\n\", \"4\\n3 2\\naab\\n3 3\\naab\\n7 1\\nabacaba\\n2 0\\nab\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n2\\n1\\n1\\n\"]}" }
{ "index": "code_r1_train_3495" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 3\\n\", \"8 2\\n\", \"5 3\\n\", \"1 1\\n\", \"1 2\\n\", \"2 1\\n\", \"5 1\\n\", \"6 2\\n\"], \"outputs\": [\"1 2 3\\n\", \"2 6\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"2\\n\", \"5\\n\", \"2 4\\n\"]}" }
{ "index": "code_r1_train_3496" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ab\\n\", \"bb\\n\", \"ba\\n\", \"ab\\n\", \"aab\\n\", \"abb\\n\", \"bab\\n\", \"bba\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3497" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\", \"3\\n1 1 3\", \"3\\n1 2 3\", \"3\\n2 1 0\", \"3\\n1 1 0\", \"3\\n1 2 1\", \"3\\n2 2 1\", \"3\\n1 2 0\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3498" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n\", \"1 1\\n2\\n\", \"1 2\\n2\\n\", \"1 2\\n4\\n\", \"1 3\\n2\\n\", \"1 3\\n3\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3499" }