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\\n7\\n1 2 3 4 5 6 7\\n0101010\\n\", \"1\\n7\\n1 2 3 4 5 6 7\\n0101010\\n\", \"1\\n7\\n1 2 3 4 5 6 7\\n1101010\\n\", \"1\\n7\\n1 2 3 4 5 6 7\\n1101000\\n\", \"1\\n7\\n1 2 3 4 5 6 7\\n1001000\\n\", \"1\\n7\\n1 2 3 4 5 6 7\\n1100010\\n\", \"3\\n2\\n1 2\\n10\\n3\\n...
{ "index": "code_r1_train_1800" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n2\\n2\\n\", \"1\\n3\\n3\\n\", \"1\\n4\\n4\\n\", \"3\\n3 3 3\\n3 2 4\\n\", \"4\\n0 7 2 3\\n8 1 0 3\\n\", \"4\\n1 7 2 3\\n9 1 0 3\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"1\\n1 \", \"3\\n1 2 3...
{ "index": "code_r1_train_1801" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n.**.***\\n5 1\\n..*..\\n5 2\\n*.*.*\\n3 2\\n*.*\\n1 1\\n*\\n\", \"5\\n7 3\\n.**.***\\n5 2\\n..*..\\n5 2\\n*.*.*\\n3 2\\n*.*\\n1 1\\n*\\n\", \"5\\n7 5\\n.**.***\\n5 1\\n..*..\\n5 2\\n*.*.*\\n3 2\\n*.*\\n1 1\\n*\\n\", \"5\\n7 3\\n***..**\\n5 1\\n*....\\n5...
{ "index": "code_r1_train_1802" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"300 10 8 5\\n50 5 2 1\\n70 5 2 0\\n75 1 1 0\\n100 3 1 0\\n150 3 2 0\\n240 5 5 7\\n50 1 1 0\\n60 2 2 0\\n70 2 3 0\\n90 1 3 0\\n120 3 5 0\\n140 4 1 0\\n150 2 4 1\\n180 3 5 4\\n15 2 2 1\\n13 2 2 1\\n25 2 2 0\\n60 1 1 0\\n120 5 5 4\\n15 5 4 1\\n20 5 4 0\\n40 1 1 0\\n...
{ "index": "code_r1_train_1803" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"3\\n0 3 3\\n\", \"3\\n0 1 2\\n\", \"3\\n0 2 3\\n\", \"3\\n1 3 3\\n\", \"3\\n0 3 1\\n\", \"3\\n0 3 2\\n\", \"3\\n0 1 1\\n\"], \"outputs\": [\"3\", \"3\\n\", \"6\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1804" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2\\n2 2\\n\", \"2\\n1 2\\n\", \"3\\n2 1 1\\n\", \"3\\n1 3 2\\n\", \"3\\n3 1 2\\n\", \"3\\n2 3 1\\n\"], \"outputs\": [\"YES\", \"YES\", \"YES\\n\", \"YES\", \"YES\", \"YES\", \"NO\", \"NO\"]}" }
{ "index": "code_r1_train_1805" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"S\", \"W\", \"SEWN\", \"NNDW\", \"ESWN\", \"WNES\", \"NEWS\", \"ENWS\"], \"outputs\": [\"No\\n\", \"No\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}" }
{ "index": "code_r1_train_1806" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nvop\\n\", \"1\\nhac\\n\", \"1\\nNNy\\n\", \"1\\nHAC\\n\", \"1\\nyeQ\\n\", \"1\\nHAm\\n\", \"1\\nxxx\\n\", \"1\\nxxy\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1807" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n100 43\\n1 3\", \"3 \\n0 3\\n101 43\\n1 3\", \"3 \\n0 2\\n100 79\\n1 40\", \"3 \\n0 2\\n100 75\\n1 40\", \"3 \\n0 2\\n000 75\\n1 40\", \"3 \\n0 2\\n100 79\\n0 40\", \"3 \\n0 2\\n001 75\\n1 40\", \"3 \\n2 4\\n100 465\\n0 3\"], \"outputs\": [\"0\\n14\\n1...
{ "index": "code_r1_train_1808" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n-3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1809" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3 2\\n3 2 1 2\\n\", \"4\\n2 2 3 1\\n3 2 1 2\\n\", \"4\\n1 2 3 4\\n3 2 1 4\\n\", \"4\\n2 2 3 2\\n3 2 2 2\\n\", \"4\\n1 2 3 2\\n3 2 1 2\\n\", \"2\\n1 100500\\n1 100500\\n\", \"1\\n800950546\\n800950546\\n\", \"1\\n873725529\\n873725529\\n\"], \"outputs\": [...
{ "index": "code_r1_train_1810" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"P\\n\", \"C\\n\", \"CP\\n\", \"PC\\n\", \"PPPP\\n\", \"PPPPP\\n\", \"CPCCPPC\\n\", \"CPPCCPC\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1811" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAGCT\\n\", \"4\\nAA??\\n\", \"4\\n????\\n\", \"4\\n??A?\\n\", \"4\\n?C??\\n\", \"4\\nT???\\n\", \"4\\n???G\\n\", \"4\\n??AC\\n\"], \"outputs\": [\"AGCT\\n\", \"===\\n\", \"ACGT\\n\", \"CGAT\\n\", \"ACGT\\n\", \"TACG\\n\", \"ACTG\\n\", \"GTAC\\n\"]}" }
{ "index": "code_r1_train_1812" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n2 3\\n\", \"2\\n1 3\\n\", \"2\\n2 3\\n\", \"2\\n1 3\\n\", \"2\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1813" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"0\\n0\\n\", \"0\\n1\\n\", \"1\\n1\\n\"], \"outputs\": [\"0\\n\", \"impossible\\n\", \"1\\n\", \"impossible\\n\", \"impossible\\n\", \"0\", \"impossible\\n\", \"1\"]}" }
{ "index": "code_r1_train_1814" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\nabcd\\nabdc\\n5\\nababa\\nbaaba\\n4\\nasdf\\nasdg\\n4\\nabcd\\nbadc\\n\", \"4\\n4\\nabcd\\nabdc\\n5\\nababa\\nbaaba\\n4\\nasdf\\nasdg\\n4\\nabdd\\nbadc\\n\", \"4\\n4\\nabcd\\nabdc\\n5\\nababa\\nabaab\\n4\\nasdf\\nasdg\\n4\\nabcd\\nbadc\\n\", \"4\\n4\\nabc...
{ "index": "code_r1_train_1815" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n5\\n\", \"1\\n7\\n\", \"1\\n3\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1816" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1000000000\\n99999999\\n\", \"1\\n1 1000000000\\n99999999\\n\", \"1\\n1 1000000000\\n46742273\\n\", \"1\\n5 1\\n0 000 21 13 854490\\n\", \"1\\n5 1\\n20 000 21 13 854490\\n\", \"1\\n5 1\\n33 000 21 13 854490\\n\", \"1\\n5 1\\n33 001 21 13 854490\\n\", \"1\\n...
{ "index": "code_r1_train_1817" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 8 3\\n0 2\\n3 2\\n6 1\", \"2 8 3\\n0 1\\n3 2\\n6 1\", \"3 8 3\\n1 2\\n3 2\\n6 1\", \"1 8 3\\n1 2\\n3 2\\n6 1\", \"1 8 0\\n1 2\\n3 4\\n6 1\", \"1 8 1\\n1 2\\n3 4\\n6 1\", \"2 8 3\\n1 1\\n3 2\\n6 1\", \"1 5 3\\n1 2\\n6 2\\n6 1\"], \"outputs\": [\"0\\n1\\n5\\n\", ...
{ "index": "code_r1_train_1818" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n\", \"2\\n1 9\\n\", \"2\\n2 9\\n\", \"2\\n1 15\\n\", \"2\\n0 15\\n\", \"2\\n0 13\\n\", \"3\\n3 8 6\\n\", \"3\\n3 8 0\\n\"], \"outputs\": [\"1 7\\n\", \"1 8\\n\", \"1 7\\n\", \"1 14\\n\", \"1 15\\n\", \"1 13\\n\", \"7 1\\n\", \"13 1\\n\"]}" }
{ "index": "code_r1_train_1819" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ns\\nb\\nb 1\\n\", \"2 1 1\\ns\\na\\nb 1\\n\", \"2 1 1\\ns\\nb\\nc 1\\n\", \"2 1 1\\ns\\na\\nb 2\\n\", \"2 1 1\\nt\\na\\nb 1\\n\", \"1 1 3\\n__d\\ncba 1\\n\", \"1 1 3\\n_c_\\ncba 1\\n\", \"1 1 3\\n__c\\ncba 1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO...
{ "index": "code_r1_train_1820" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1 1 1 1\\n1 1 1 0 0 0\\n1 0 0 0 1 0\\n3 0 0 3 0 0\\n3 1 0 1 3 1\\n1 2 0 2 0 1\\n0 0 1 1 0 3\\n1 0 0 1 1 0\\n0 0 0 0 0 0\", \"1 1 1 1 1 1\\n1 1 1 0 0 0\\n1 0 0 0 1 0\\n3 0 0 0 0 0\\n3 1 0 1 3 1\\n1 2 0 2 0 1\\n0 0 1 1 0 3\\n1 0 0 1 1 0\\n0 0 0 0 0 0\", \"1 1 1...
{ "index": "code_r1_train_1821" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"1\\n1 1\", \"2\\n0 3 2\", \"2\\n0 1 1\", \"2\\n0 2 2\", \"2\\n0 3 1\", \"2\\n-1 3 2\", \"2\\n-2 3 2\"], \"outputs\": [\"2\\n\", \"-1\", \"-1\\n\", \"4\\n\", \"-1\\n\", \"-1\", \"7\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1822" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 0\\n\", \"2\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n1 0\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_1823" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\", \"3\\n2\", \"3\\n8\", \"3\\n6\", \"1\\n1\\n\", \"6\\n1\\n\", \"3\\n74\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"6\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1824" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 6 4 5\\n6\\n1 3 6 9 12 15 18\\n4\\n5 7 9 11 6\\n0\", \"5\\n1 2 3 2 4 5\\n6\\n1 3 6 9 12 15 18\\n4\\n5 7 9 11 6\\n0\", \"5\\n1 2 3 2 4 5\\n6\\n1 3 6 9 12 15 18\\n4\\n5 7 9 11 7\\n0\", \"5\\n1 2 3 6 4 5\\n6\\n1 3 6 9 12 15 18\\n4\\n5 7 9 11 8\\n0\", \"5\\...
{ "index": "code_r1_train_1825" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n3\\n3 3 3\\n4\\n1 2 3 3\", \"2\\n3\\n3 3 3\\n4\\n1 4 3 3\", \"2\\n3\\n3 5 3\\n4\\n1 2 3 3\", \"2\\n3\\n3 9 3\\n4\\n1 2 3 4\", \"2\\n3\\n3 5 4\\n4\\n1 2 3 3\", \"2\\n3\\n6 9 3\\n4\\n1 2 3 4\", \"2\\n3\\n2 3 3\\n4\\n1 1 6 6\", \"2\\n3\\n3 3 3\\n4\\n1 1 3 3\"], ...
{ "index": "code_r1_train_1826" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 3\\n1 1 9 0 1 47 0 72\", \"6 4\\n1 1 9 0 1 47 0 72\", \"6 4\\n1 1 9 0 0 47 0 72\", \"6 3\\n2 0 5 0 2 23 15 72\", \"6 3\\n2 0 5 0 0 25 15 72\", \"6 3\\n2 0 9 0 1 25 15 72\", \"6 3\\n2 1 9 0 1 25 15 72\", \"7 4\\n1 78 15 3 1 14 15 72\"], \"outputs\": [\"55\\n\", ...
{ "index": "code_r1_train_1827" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1 3\\n2 4\\n4 5\", \"5\\n1 2\\n2 3\\n1 5\\n4 5\", \"5\\n1 2\\n1 3\\n2 4\\n4 0\", \"5\\n1 2\\n3 3\\n2 4\\n4 5\", \"5\\n1 4\\n2 3\\n2 4\\n4 5\", \"5\\n1 2\\n2 3\\n0 5\\n4 5\", \"5\\n1 2\\n2 2\\n0 5\\n4 5\", \"5\\n1 2\\n2 3\\n2 4\\n4 5\"], \"outputs\": [\"...
{ "index": "code_r1_train_1828" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 13\\n\", \"5 0 13\\n\", \"2 0 1000\\n\", \"2 0 1000\\n\", \"2 0 1010\\n\", \"4 0 1100\\n\", \"99 0 757\\n\", \"2 0 1100\\n\"], \"outputs\": [\"12\\n\", \"12\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"90\\n\", \"613\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1829" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1\\n\", \"1\\n1 1\\n1\\n0\\n\", \"1\\n1 1\\n1\\n1\\n\", \"2\\n5 4\\n2 3 4 3 2\\n3 5 6 20\\n5 5\\n5 5 3 2 1\\n7 40 90 160 250\\n\", \"2\\n5 4\\n2 2 4 3 2\\n3 5 6 20\\n5 5\\n5 5 3 2 1\\n7 40 90 160 423\\n\", \"2\\n5 4\\n2 4 4 1 2\\n4 5 12 20\\n5 5\\n5...
{ "index": "code_r1_train_1830" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n2 2\", \"2 2\\n0 2\", \"2 2\\n2 0\", \"2 4\\n2 0\", \"2 2\\n2 1\", \"3 5\\n1 1 0\", \"3 5\\n1 2 0\", \"2 -4\\n2 -1\"], \"outputs\": [\"0\\n\", \"1\\n\", \"3\\n\", \"10\\n\", \"3\", \"30\\n\", \"40\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_1831" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n9\\n\", \"1\\n3\\n\", \"1\\n17\\n\", \"1\\n29\\n\", \"1\\n50\\n\", \"1\\n15\\n\", \"1\\n21\\n\"], \"outputs\": [\"9\\n\", \"9\\n\", \"2\\n\", \"25\\n\", \"64\\n\", \"182\\n\", \"20\\n\", \"36\\n\"]}" }
{ "index": "code_r1_train_1832" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3 4\\n\", \"4 2 1 3 4\\n\", \"4 1 2 3 4\\n\", \"3 452 979 51\\n\", \"3 287 979 395\\n\", \"3 887 104 641\\n\", \"3 452 979 395\\n\", \"4 802 765 992 1\\n\"], \"outputs\": [\"28\\n\", \"29\\n\", \"30\", \"2563\\n\", \"3430\", \"3018\", \"3595\\n\", \"5312\"]...
{ "index": "code_r1_train_1833" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n1001 6\", \"0 0\\n3 0\\n0101 6\", \"1 1\\n5 0\\n0001 6\", \"1 1\\n5 0\\n0001 9\", \"0 1\\n2 3\\n1011 6\", \"0 1\\n2 3\\n1101 6\", \"0 0\\n2 3\\n1101 6\", \"0 0\\n3 3\\n1101 6\"], \"outputs\": [\"1\\n1\\n4\\n\", \"1\\n1\\n3\\n\", \"1\\n1\\n1\\n\", \"1\...
{ "index": "code_r1_train_1834" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\", \"2\\n4 2\", \"2\\n3 2\", \"2\\n3 4\", \"2\\n1 4\", \"2\\n2 4\", \"2\\n2 8\"], \"outputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1835" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1836" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n+ 51\\n\", \"100 1\\n+ 94\\n\", \"100 1\\n+ 68\\n\", \"4 2\\n+ 2\\n+ 4\\n\", \"100000 1\\n+ 7528\\n\", \"100000 1\\n+ 8355\\n\", \"100001 1\\n+ 7528\\n\", \"100000 1\\n+ 2505\\n\"], \"outputs\": [\"Success\\n\", \"Success\\n\", \"Success\\n\", \"Success\\...
{ "index": "code_r1_train_1837" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3 3 3\", \"5\\n2 1 5 8 3\", \"5\\n1 2 3 6 3\", \"5\\n2 1 2 8 4\", \"5\\n4 4 3 6 6\", \"5\\n4 4 3 7 6\", \"5\\n3 1 5 8 3\", \"5\\n0 1 2 8 4\"], \"outputs\": [\"0\\n\", \"6\\n\", \"3\\n\", \"5\\n\", \"1\\n\", \"2\\n\", \"7\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_1838" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 3\\n0 1\\n0 2\\n1 2\", \"8 3\\n0 1\\n0 2\\n1 2\", \"8 3\\n0 2\\n0 2\\n1 2\", \"5 3\\n0 2\\n0 2\\n1 2\", \"8 2\\n0 1\\n0 2\\n1 2\", \"8 3\\n1 2\\n0 2\\n1 2\", \"8 2\\n0 1\\n0 2\\n1 4\", \"8 2\\n0 1\\n0 2\\n2 4\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\...
{ "index": "code_r1_train_1839" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"1 2\\n\", \"2 2\\n\", \"7 7\\n\", \"9 4\\n\", \"4 4\\n\", \"1 4\\n\"], \"outputs\": [\"abc\\n\", \"a\\n\", \"-1\\n\", \"ab\\n\", \"abcdefg\\n\", \"abababacd\\n\", \"abcd\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1840" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4683\\n\", \"1\\n8 4683\\n\", \"1\\n8 8343\\n\", \"1\\n8 7803\\n\", \"1\\n8 2147\\n\", \"1\\n8 2163\\n\", \"1\\n8 3647\\n\", \"1\\n16 654\\n\"], \"outputs\": [\"303279594\\n\", \"621629319\\n\", \"553137688\\n\", \"366213165\\n\", \"273611487\\n\", \"177004...
{ "index": "code_r1_train_1841" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\njohn johanna\\nira ira\\nkayla jayla\", \"3\\njohn johanna\\nira ria\\nkayla jayla\", \"3\\njohn johanna\\nria ria\\nkayla jayla\", \"3\\njogn johanna\\nria qia\\nkayma jayla\", \"3\\nipoh o`gomka\\nbjr bjr\\njmya` aayjk\", \"3\\njohn johanna\\nria ria\\nkaym...
{ "index": "code_r1_train_1842" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 4\\n0 0 0 0\\n0 1 0 0\\n0 0 0 0\\n2 2\\n3 0\\n0 0\\n2 2\\n0 0\\n0 0\\n2 3\\n0 0 0\\n0 4 1\\n4 4\\n0 0 0 0\\n0 2 0 1\\n0 0 0 0\\n0 0 0 0\\n\", \"5\\n3 4\\n0 0 0 0\\n0 1 0 0\\n0 0 0 0\\n2 2\\n5 0\\n0 0\\n2 2\\n0 0\\n0 0\\n2 3\\n0 0 0\\n0 4 1\\n4 4\\n0 0 0 0\\...
{ "index": "code_r1_train_1843" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\\n\", \"2\\n2 1\\n\", \"3\\n2 3 2\\n\", \"3\\n1 2 3\\n\", \"3\\n2 3 1\\n\", \"3\\n2 3 1\\n\"], \"outputs\": [\"1 \\n\", \"1\\n\", \"1 2 \\n\", \"1 2\\n\", \"2 2 3 \\n\", \"1 2 3 \\n\", \"1 2 3 \\n\", \"1 2 3\\n\"]}" }
{ "index": "code_r1_train_1844" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcbdab\\nbdcaba\\nabc\\nabc\\nacb\\nbc\", \"3\\nabcbdab\\nbdcaba\\nabc\\nabc\\nbcb\\nbc\", \"3\\nabcbdab\\nbdcaba\\n`bc\\nabc\\nbcb\\nbc\", \"3\\nbadbcba\\nbdcaba\\n`bc\\nabc\\nbcb\\nbc\", \"3\\nbadbdba\\nbdcaba\\n`bc\\nabc\\nbcb\\ncc\", \"3\\nbadbdba\\nbdca...
{ "index": "code_r1_train_1845" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2400 2401\\n\", \"1\\nX 2400 2500\\n\", \"1\\nA 2400 2401\\n\", \"1\\na 2400 2455\\n\", \"1\\nx 2400 2401\\n\", \"1\\nb 2400 2401\\n\", \"1\\nx 2400 2401\\n\", \"1\\nb 2400 2401\\n\"], \"outputs\": [\"YES\", \"YES\", \"YES\", \"YES\", \"YES\", \"YES\", \"YE...
{ "index": "code_r1_train_1846" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n9\\n6\\n8\\n10\\n8\\n7\\n14\\n18\\n2\\n17\\n3\\n1\\n5\\n19\\n0\", \"5\\n1\\n7\\n9\\n6\\n5\\n10\\n8\\n7\\n14\\n18\\n2\\n11\\n6\\n1\\n5\\n19\\n0\", \"5\\n1\\n7\\n9\\n6\\n4\\n0\\n8\\n7\\n13\\n18\\n1\\n11\\n6\\n16\\n5\\n19\\n0\", \"5\\n1\\n7\\n2\\n6\\n5\\...
{ "index": "code_r1_train_1847" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n1\\n\", \"1 2\\n0\\n\", \"2 5\\n3 4\\n\", \"2 4\\n1 3\\n\", \"4 20\\n5 6 7 16\\n\", \"4 20\\n5 2 7 16\\n\", \"9 10\\n1 2 3 4 5 6 7 8 9\\n\", \"4 1000000000\\n5 25 125 625\\n\"], \"outputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"2\\n0 2\\n\", \"1\\n1...
{ "index": "code_r1_train_1848" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2 0\\n\", \"2 3 7\\n\", \"1 7 7\\n\", \"1 9 0\\n\", \"1 3 0\\n\", \"2 3 0\\n\", \"1 2 5\\n\", \"1 7 0\\n\"], \"outputs\": [\"2\", \"-1\", \"6\", \"-1\", \"-1\", \"-1\", \"1\", \"-1\"]}" }
{ "index": "code_r1_train_1849" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11001 2265\\n499 81568\\n5242 218\", \"3\\n10000 2054\\n499 42643\\n5242 146\", \"3\\n10000 2054\\n499 42643\\n5242 218\", \"3\\n10000 2054\\n499 64506\\n5242 218\", \"3\\n11000 2054\\n499 64506\\n5242 218\", \"3\\n11000 2265\\n499 64506\\n5242 218\", \"3\\n1...
{ "index": "code_r1_train_1850" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\\n\", \"2\\n2 1\\n\", \"2\\n2 2\\n\", \"3\\n1 1 1\\n\", \"3\\n2 1 1\\n\", \"3\\n1 1 1\\n\"], \"outputs\": [\"1 \\n\", \"1 \", \"2 1 \\n\", \"2 1 \", \"0 3\\n\", \"6 0 0 \\n\", \"5 1 0\\n\", \"6 0 0 \"]}" }
{ "index": "code_r1_train_1851" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"b\\n\", \"x\\n\", \"a\\n\", \"c\\n\", \"w\\n\", \"d\\n\", \"ba\\n\", \"aa\\n\"], \"outputs\": [\"b\\n\", \"x\\n\", \"a\\n\", \"c\", \"w\", \"d\", \"ba\\n\", \"aa\\n\"]}" }
{ "index": "code_r1_train_1852" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"#\\n\", \"#\\n\", \"(#)\\n\", \"(#(\\n\", \"(#(\\n\", \"#()\\n\", \"(#)\\n\", \"((#(\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1853" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 4\\n\", \"4 4\\n\", \"3 3\\n\", \"6 4\\n\", \"6 3\\n\", \"5 4\\n\", \"5 6\\n\"], \"outputs\": [\"1/6\\n\", \"1/2\\n\", \"1/2\\n\", \"2/3\\n\", \"1/6\\n\", \"1/6\\n\", \"1/3\\n\", \"1/6\\n\"]}" }
{ "index": "code_r1_train_1854" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-i]-[m-e]]\\ne 0\\nr 1\\ni 1\\nn 2\", \"[[m-y]-[a-o]]\\nn 0\\na 1\\ny 2\\nm 0\", \"[[r-i]-[m-e]]\\nd 0\\nr 1\\ni 1\\nn 2\", \"[[r-i]-[m-e]]\\nd 0\\nr 1\\ni 1\\nn 3\", \"[[r-i]-[m-e]]\\nd 0\\nr 1\\nh 1\\nn 3\", \"[[r-i]-[m-e]]\\nd 0\\nr 1\\ng 1\\nn 3\", \"[[r-i...
{ "index": "code_r1_train_1855" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0\\n\", \"1\\n\", \"01\\n\", \"00\\n\", \"100\\n\", \"101\\n\", \"001\\n\", \"000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1856" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n*\\n\", \"1 1\\n.\\n\", \"1 1\\n*\\n\", \"1 1\\n.\\n\", \"3 3\\n*.*\\n.*.\\n*.*\\n\", \"1 10\\n**********\\n\", \"1 10\\n*.***.**.*\\n\", \"1 10\\n**********\\n\"], \"outputs\": [\"1\\n\", \".\\n\", \"1\\n\", \".\\n\", \"3.3\\n.5.\\n3.3\\n\", \"1111111111\\...
{ "index": "code_r1_train_1857" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"2\\n\", \"2\\n\", \"7\\n\", \"5\\n\", \"3\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\", \"2\", \"2\", \"1\"]}" }
{ "index": "code_r1_train_1858" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"[+c[*a[^bd]]]\\n700\\n[*b[*[*cd]a]]\\n116\\n[^[^ab][^cd]]\\n2026\\na\\n9876\\n[^dd]\\n9090\\n.\", \"[+c[*a[^bd]]]\\n700\\n[*b[*[*cd]a]]\\n116\\n[^[^ab][^cd]]\\n2026\\na\\n2887\\n[^dd]\\n9090\\n.\", \"[+c[*a[^bd]]]\\n700\\n[*b[*[*cd]a]]\\n116\\n[^[^ab][^cd]]\\n395...
{ "index": "code_r1_train_1859" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"3\\n0 2 1\\n2 0 3\", \"3\\n0 2 1\\n2 1 0\", \"3\\n0 2 0\\n1 3 3\", \"3\\n1 0 1\\n2 2 3\", \"3\\n0 2 1\\n0 1 3\", \"3\\n0 0 1\\n2 3 2\", \"3\\n1 0 1\\n2 3 2\"], \"outputs\": [\"\", \"0 2\\n\", \"1 0\\n\", \"1 3\\n\", \"2 3\\n\", \"2 1\\n\", \...
{ "index": "code_r1_train_1860" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n2 1\\n3 6\\n4 8\\n3 4\", \"4 6\\n2 1\\n3 6\\n2 8\\n3 4\", \"4 6\\n2 1\\n3 8\\n2 8\\n2 8\", \"4 2\\n2 1\\n3 8\\n2 8\\n2 8\", \"4 6\\n2 1\\n3 6\\n4 8\\n3 6\", \"4 6\\n2 1\\n3 1\\n2 8\\n3 1\", \"4 6\\n2 1\\n3 2\\n2 2\\n3 1\", \"4 6\\n2 1\\n3 2\\n2 4\\n3 1\"], ...
{ "index": "code_r1_train_1861" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"1\\n0 0\\n\", \"1\\n0 0\\n\", \"1\\n5 8\\n\", \"1\\n0 8\\n\", \"1\\n0 9\\n\", \"1\\n5 6\\n\", \"2\\n6 6\\n3 3\\n\"], \"outputs\": [\"7\\n\", \"1\\n\", \"1\\n\", \"9\\n\", \"9\\n\", \"10\\n\", \"7\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_1862" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"10\\n\", \"180 10\\n\", \"2610 180 10\\n\", \"34200 2610 180 10\\n\", \"423000 34200 2610 180 10\\n\", \"5040000 423000 34200 2610 180 10\\n\", \"58500000 5040000 42300...
{ "index": "code_r1_train_1863" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1\\n\", \"2 1 1\\n1\\n1\\n1 1\\n\", \"2 1 1\\n1\\n1\\n2 1\\n\", \"2 1 1\\n1\\n1\\n1 1\\n\", \"2 1 1\\n1\\n1\\n2 1\\n\", \"2 1 1\\n1\\n0\\n1 1\\n\", \"3 1 2\\n1\\n1\\n0\\n1 1\\n2 1\\n\", \"3 1 2\\n1\\n0\\n1\\n1 1\\n3 1\\n\"], \"outputs\": [\"0 1 ...
{ "index": "code_r1_train_1864" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n1\\n2\\n3\\n\", \"3 3\\n1 1 1\\n1\\n2\\n3\\n\", \"3 3\\n1 1 1\\n1\\n4\\n3\\n\", \"3 3\\n1 2 1\\n1\\n4\\n3\\n\", \"3 3\\n1 4 1\\n1\\n4\\n3\\n\", \"3 3\\n1 4 1\\n1\\n6\\n3\\n\", \"3 3\\n1 4 2\\n1\\n6\\n3\\n\", \"3 3\\n1 4 2\\n1\\n6\\n2\\n\"], \"output...
{ "index": "code_r1_train_1865" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"b\", \"C\", \"`\", \"D\", \"c\", \"E\", \"d\", \"F\"], \"outputs\": [\"a\\n\", \"A\\n\", \"a\\n\", \"A\\n\", \"a\\n\", \"A\\n\", \"a\\n\", \"A\\n\"]}" }
{ "index": "code_r1_train_1866" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 1 1\\n1 0 1 1 1\", \"5 1 4\\n0 1 6 0 2\", \"5 2 1\\n1 1 1 1 1\", \"5 1 1\\n1 0 1 1 0\", \"5 0 1\\n0 0 2 1 1\", \"5 1 4\\n1 1 6 0 2\", \"5 2 1\\n1 1 1 1 0\", \"5 1 1\\n1 0 1 1 2\"], \"outputs\": [\"0\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"1\\n...
{ "index": "code_r1_train_1867" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"9\", \"6\", \"7\", \"2\", \"7\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"4\\n\", \"6\\n\", \"2\\n\", \"3\", \"0\", \"3\\n\"]}" }
{ "index": "code_r1_train_1868" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n? 2 2\\n\", \"2\\n+ 2 2\\n? 2 2\\n\", \"2\\n+ 2 2\\n? 4 2\\n\", \"2\\n+ 2 1\\n? 2 2\\n\", \"2\\n+ 2 2\\n? 8 2\\n\", \"2\\n+ 1 1\\n? 2 2\\n\", \"2\\n+ 2 2\\n? 6 2\\n\", \"2\\n+ 1 2\\n? 6 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\...
{ "index": "code_r1_train_1869" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2364\", \"1114\", \"2005\", \"1455\", \"1152\", \"3246\", \"6120\", \"2768\"], \"outputs\": [\"2+3+6-4=7\\n\", \"1+1+1+4=7\\n\", \"2+0+0+5=7\\n\", \"1-4+5+5=7\\n\", \"1-1+5+2=7\\n\", \"3+2-4+6=7\\n\", \"6-1+2+0=7\\n\", \"2+7+6-8=7\\n\"]}" }
{ "index": "code_r1_train_1870" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"6\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1871" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nv\\n\", \"1 1 1\\nn\\n\", \"1 1 1\\nz\\n\", \"1 1 1\\nd\\n\", \"1 1 1\\nb\\n\", \"1 1 1\\ny\\n\", \"1 1 1\\nc\\n\", \"1 1 1\\nx\\n\"], \"outputs\": [\"v\\n\", \"n\\n\", \"z\\n\", \"d\\n\", \"b\\n\", \"y\\n\", \"c\\n\", \"x\\n\"]}" }
{ "index": "code_r1_train_1872" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n\", \"1\\n0\\n\", \"1\\n7\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"3\\n0 1 0\\n\", \"3\\n0 1 0\\n\"], \"outputs\": [\"4\\n\", \"6\\n\", \"0\\n\", \"7\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1873" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2\\n\", \"2\\n0 0\\n0 3\\n\", \"2\\n0 1\\n1 0\\n\", \"2\\n0 1\\n1 0\\n\", \"2\\n0 0\\n2 8\\n\", \"2\\n0 0\\n2 4\\n\", \"2\\n0 0\\n0 1\\n\", \"2\\n0 0\\n2 2\\n\"], \"outputs\": [\"4\\n\", \"9\\n\", \"1\\n\", \"1\\n\", \"64\\n\", \"16\\n\", \"1\\n\", \"...
{ "index": "code_r1_train_1874" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 4\\n8\\n\", \"1 4\\n8\\n\", \"1 1\\n1\\n\", \"1 4\\n5\\n\", \"1 1\\n2\\n\", \"1 6\\n5\\n\", \"1 6\\n2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1875" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100000\\n1 1\\n\", \"6 3\\n1 4 5 5 4 3\\n1 6\\n4 4\\n3 3\\n\", \"6 3\\n1 2 3 5 4 2\\n1 2\\n4 4\\n3 6\\n\", \"6 3\\n1 6 3 4 4 1\\n1 6\\n2 6\\n3 6\\n\", \"6 3\\n1 2 3 5 2 2\\n1 6\\n4 4\\n3 6\\n\", \"6 3\\n1 2 3 5 4 2\\n1 6\\n4 4\\n3 6\\n\", \"6 3\\n1 2 3 5 4 ...
{ "index": "code_r1_train_1876" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"4\\n\", \"2\\n\", \"4\\n\", \"1\\n\"], \"outputs\": [\"++++\\n+*+*\\n++**\\n+**+\\n\", \"++\\n+*\\n\", \"++++++++\\n+*+*+*+*\\n++**++**\\n+**++**+\\n++++****\\n+*+**+*+\\n++****++\\n+**+*++*\\n\", \"+\\n\", \"++++++++++++++...
{ "index": "code_r1_train_1877" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -1 -1\\n\", \"1\\n0 -1 -1\\n\", \"1\\n1 -1 -1\\n\", \"1\\n4277071 -1 -1\\n\", \"1\\n73706168 -1 -1\\n\", \"1\\n493041212 -1 -1\\n\", \"1\\n815121916 -1 -1\\n\", \"1\\n901418150 -1 -1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0...
{ "index": "code_r1_train_1878" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ABC 3\\nABB 0\\n2(4(AB)3(XY))10C 2\\n1000(1000(1000(1000(1000(1000(NM)))))) 76895\\n0 0\", \"ABC 3\\nABC 0\\n2(4(AB)3(XY))10C 3\\n1000(1000(1000(1000(1000(1000(NM)))))) 999999\\n0 0\", \"ABC 3\\nABC 0\\n2(4(AB)3(XY))10C 3\\n1000(1000(1000(1000(1000(1000(NM)))))) ...
{ "index": "code_r1_train_1879" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n1 1\\n2 1\\n3 1\\n0\", \"2\\n0 5\\n3\\n1 1\\n2 2\\n3 1\\n0\", \"2\\n0 1\\n3\\n1 1\\n2 2\\n3 1\\n0\", \"2\\n0 1\\n3\\n2 1\\n2 2\\n3 1\\n0\", \"2\\n1 5\\n3\\n1 1\\n2 1\\n3 1\\n0\", \"2\\n0 5\\n3\\n1 2\\n2 2\\n3 1\\n0\", \"2\\n0 1\\n3\\n1 1\\n2 0\\n3 1...
{ "index": "code_r1_train_1880" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n4\\n\", \"1\\n8\\n\", \"1\\n7\\n\", \"1\\n0\\n\", \"1\\n5\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1\\n\", \"1\\n2 \\n\", \"1\\n4 \\n\", \"1\\n8 \\n\", \"1\\n7 \\n\", \"1\\n0 \\n\", \"1\\n5 \\n\"]}" }
{ "index": "code_r1_train_1881" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 7\\n4 5\\n3 2\\n0 6\\n7 9\\n7 7\\n0 0\", \"2 8\\n5 7\\n4 5\\n3 1\\n0 6\\n7 9\\n7 7\\n0 0\", \"2 8\\n5 6\\n4 5\\n3 2\\n0 6\\n7 10\\n4 7\\n0 0\", \"2 8\\n5 6\\n4 5\\n3 4\\n0 5\\n5 10\\n5 8\\n0 0\", \"2 8\\n5 6\\n4 5\\n3 2\\n0 6\\n7 10\\n8 7\\n0 0\", \"2 8\\...
{ "index": "code_r1_train_1882" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na bb\\nb aa\\na\\nbbbbbbbb\\n1\\na aa\\na\\naaaaa\\n3\\nab aab\\nabc aadc\\nad dee\\nabc\\ndeeeeeeeec\\n10\\na abc\\nb bai\\nc acf\\nd bed\\ne abh\\nf fag\\ng abe\\nh bag\\ni aaj\\nj bbb\\na\\nabaceaabe\\n0\", \"2\\na bb\\nb aa\\nb\\nbbbbbbbb\\n1\\nb aa\\na\\...
{ "index": "code_r1_train_1883" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n1 0\\n4 1\\n2 0\\n4 1\\n5 1\\n6 1\\n3 0\\n2 0\\n4\\n1 1\\n1 1\\n2 1\\n2 1\\n9\\n2 0\\n2 0\\n4 1\\n4 1\\n4 1\\n7 0\\n7 1\\n7 0\\n7 1\\n\", \"3\\n8\\n1 0\\n4 1\\n2 0\\n4 1\\n5 1\\n6 1\\n3 0\\n2 0\\n4\\n1 1\\n1 1\\n2 1\\n2 1\\n9\\n2 0\\n2 0\\n4 1\\n4 1\\n4 1...
{ "index": "code_r1_train_1884" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n2 2\\n\", \"2 2\\n2 4\\n\", \"2 4\\n2 4\\n\", \"2 5\\n2 7\\n\", \"2 4\\n2 7\\n\", \"2 2\\n2 2\\n\", \"2 2\\n5 29\\n\", \"2 2\\n7 29\\n\"], \"outputs\": [\"8\\n\", \"4\\n\", \"16\\n\", \"25\\n\", \"16\\n\", \"8\\n\", \"32\\n\", \"128\\n\"]}" }
{ "index": "code_r1_train_1885" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"b\\n25\", \"b\\n11\", \"b\\n16\", \"a\\n16\", \"a\\n25\", \"xyz\\n1\", \"zyx\\n1\", \"zyx\\n2\"], \"outputs\": [\"a\\n\", \"m\\n\", \"r\\n\", \"q\\n\", \"z\", \"xya\\n\", \"ayx\\n\", \"ayy\\n\"]}" }
{ "index": "code_r1_train_1886" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"6\\n1 2 3 4 5 6\\n\", \"6\\n6 5 4 3 2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1887" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 1\\n2 3 2\\n\", \"2 2\\n1 1 1\\n1 1 1\\n\", \"2 2\\n2 2 1\\n3 3 2\\n\", \"2 4\\n1 2 5\\n1 3 5\\n\", \"2 4\\n1 2 5\\n1 3 5\\n\", \"2 2\\n1 1 1\\n1 1 1\\n\", \"2 2\\n2 2 1\\n3 3 2\\n\", \"2 4\\n1 2 1\\n2 3 2\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"3\...
{ "index": "code_r1_train_1888" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n511\\n\", \"1\\n909\\n\", \"1\\n587\\n\", \"1\\n645\\n\", \"1\\n637\\n\", \"1\\n731\\n\", \"1\\n211\\n\", \"1\\n2727\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1889" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nBWWB\", \"4\\nBWWWBBWB\", \"4\\nBWBBWBWW\", \"4\\nBWBBWBWX\", \"4\\nBWBBWCWW\", \"4\\nBWABWCWW\", \"4\\nBWABVCWW\", \"4\\nBBAWVCWW\"], \"outputs\": [\"4\", \"288\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1890" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"1 2 2 5\\n\", \"1 2 2 3\\n\", \"1 0 2 5\\n\", \"1 2 2 5\\n\", \"1 2 3 4\\n\", \"32 89 451 476\\n\", \"32 89 451 476\\n\"], \"outputs\": [\"4\\n\", \"3\\n\", \"3\\n\", \"0\\n\", \"3\", \"4\", \"72384\\n\", \"72384\"]}" }
{ "index": "code_r1_train_1891" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1 1 1 0\\n\", \"1 2 1 0\\n\", \"1 2 2 0\\n\", \"1 4 1 0\\n\", \"1 4 2 0\\n\", \"500 24 2 0\\n\", \"500 24 4 0\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1892" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2\\n1 3\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n0 4\\n\", \"2\\n0 7\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1893" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 captain\\n\", \"2\\nA captain\\nB man\\n\", \"2\\nX captain\\nY rat\\n\", \"2\\nX captain\\nZ rat\\n\", \"2\\nX child\\nY captain\\n\", \"2\\nB woman\\nA captain\\n\", \"2\\nX child\\nW captain\\n\", \"2\\nB woman\\n@ captain\\n\"], \"outputs\": [\"A\\n\", ...
{ "index": "code_r1_train_1894" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nassaad\\n\", \"1\\nassaad\\n\", \"1\\nbssaad\\n\", \"1\\ndaassb\\n\", \"2\\nabbaac\\nac\\n\", \"2\\nabbaac\\nac\\n\", \"2\\nabbaad\\nac\\n\", \"2\\nabbaad\\nca\\n\"], \"outputs\": [\"asad\\n\", \"asad\\n\", \"bsad\\n\", \"dasb\\n\", \"abac\\nac\\n\", \"abac\\...
{ "index": "code_r1_train_1895" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2\\n2 3\\n\", \"2\\n4 3\\n\", \"2\\n1 3\\n\", \"2\\n4 1\\n\", \"2\\n1 6\\n\", \"2\\n7 1\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"5\\n\", \"5\\n\", \"7\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1896" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100000007\\n\", \"4 100000007\\n\", \"5 999999937\\n\", \"6 100000007\\n\", \"7 100000007\\n\", \"6 100000007\\n\", \"5 999999937\\n\", \"7 100000007\\n\"], \"outputs\": [\"6\\n\", \"20\\n\", \"78\\n\", \"344\\n\", \"1680\\n\", \"344\\n\", \"78\\n\", \"1680\\n\...
{ "index": "code_r1_train_1897" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n11\\n\", \"2\\n5 4\\n\", \"2\\n5 4\\n\"], \"outputs\": [\"3\\n\", \"3\", \"3\", \"3\", \"3\", \"3\", \"22\\n\", \"22\"]}" }
{ "index": "code_r1_train_1898" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2763\\n1\", \"37\\n308\", \"2763\\n2\", \"37\\n135\", \"37\\n244\", \"37\\n290\", \"37\\n381\", \"37\\n605\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}" }
{ "index": "code_r1_train_1899" }