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 0\\n1\\n\", \"1 1\\n1\\n\", \"1 4\\n7\\n\", \"1 6\\n5\\n\", \"1 2\\n5\\n\", \"1 6\\n5\\n\", \"1 2\\n5\\n\", \"1 4\\n7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"28\\n\", \"30\\n\", \"10\\n\", \"30\", \"10\", \"28\"]}" }
{ "index": "code_r1_train_1400" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"9 1\\n\", \"4 3\\n\", \"3 1\\n\", \"2 1\\n\", \"7 1\\n\", \"4 2\\n\"], \"outputs\": [\"1111\\n8889\", \"1\\n9\", \"111111111\\n888888889\", \"1111\\n8889\", \"111\\n889\", \"11\\n89\", \"1111111\\n8888889\", \"1111\\n8889\"]}" }
{ "index": "code_r1_train_1401" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nglaciological 1\\nteammate 0\\npossessions 3\\ndefenselessness 3\", \"4\\nglaciological 1\\nteammate 0\\npossessions 3\\ndefenselessness 0\", \"4\\nglaciological 1\\nteammate 0\\npossessions 4\\ndefenselessness 0\", \"4\\nglaciological 1\\nteammate 1\\nposses...
{ "index": "code_r1_train_1402" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"39 0\", \"630 0\", \"279 0\", \"328 0\", \"272 0\", \"173 0\", \"218 0\", \"674 0\"], \"outputs\": [\"1369\", \"394384\", \"76729\", \"106276\", \"72900\", \"29241\", \"46656\", \"451584\"]}" }
{ "index": "code_r1_train_1403" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA 1 0 0 2 0\\nB 0 0 1 1 0\\nC 1 1 1 1 1\\nD 1 0 0 1 2\\nE 2 0 0 0 0\\nF 1 1 0 2 1\\n4\\ng 1 1 1\\nh 0 1 2\\nx 0 0 0\\nb 0 2 1\\n0\", \"6\\nA 1 0 0 2 0\\nB 0 0 1 1 0\\nC 1 1 1 1 1\\nD 1 0 0 1 2\\nE 2 0 0 0 0\\nF 1 1 0 2 1\\n4\\ng 1 1 1\\ng 0 1 2\\nx 0 0 0\\nb ...
{ "index": "code_r1_train_1404" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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@5C1@8050\\n@99,1=1@90\", \"ab@5C2@8050\\n@99,1=1@90\", \"ab@5C2?8050\\n@99,1=1@90\", \"ab@5C1@8050\\nA99+1=1@90\", \"ab@5C2@8050\\n@89,1=1@90\", \"ab@5C2?8050\\n@91,1=9@90\", \"`b@5C1@8050\\nA99+1=1@90\", \"ab@5C3@8050\\n@89,1=1@90\"], \"outputs\": [\"abCCCCC1...
{ "index": "code_r1_train_1405" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n28 2\\n\", \"1 1\\n28 4\\n\", \"1 1\\n28 28\\n\", \"2 2\\n1 2\\n1 2\\n\", \"2 2\\n1 2\\n1 1\\n\", \"2 1\\n50 50\\n50 49\\n\", \"2 2\\n50 50\\n50 50\\n\", \"2 1\\n50 50\\n50 50\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", ...
{ "index": "code_r1_train_1406" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"2\\n\", \"1\\n\", \"8\\n\", \"1\\n\", \"2\\n\", \"7\\n\"], \"outputs\": [\"3\\n\", \"8\\n\", \"2\\n\", \"1\\n\", \"8\\n\", \"1\\n\", \"2\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_1407" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"7\", \"6\", \"5\", \"1\", \"2\", \"3\"], \"outputs\": [\"4\\n\", \"8\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"1\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1408" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n3\\n4\\n100\", \"5\\n1\\n2\\n3\\n4\\n110\", \"5\\n1\\n2\\n1\\n4\\n110\", \"5\\n1\\n4\\n1\\n4\\n110\", \"5\\n1\\n2\\n3\\n4\\n101\", \"5\\n1\\n3\\n3\\n4\\n110\", \"5\\n1\\n2\\n3\\n4\\n111\", \"5\\n1\\n2\\n2\\n4\\n110\"], \"outputs\": [\"26\\n728\\n728\\...
{ "index": "code_r1_train_1409" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"5 1\\n1\\n\", \"4 1\\n1\\n\", \"3 1\\n1\\n\", \"4 2\\n1 4\\n\", \"4 2\\n1 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1410" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -1\\n\", \"2\\n-1 -1\\n\", \"5\\n-1 -1 4 5 1\\n\", \"5\\n-1 -1 4 2 1\\n\", \"5\\n-1 -1 4 3 -1\\n\", \"5\\n-1 -1 4 1 -1\\n\", \"5\\n-1 -1 4 5 -1\\n\", \"5\\n-1 -1 4 2 -1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"3\\n...
{ "index": "code_r1_train_1411" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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)\\n()(\", \"2\\n)(\\n)(\", \"2\\n((\\n)(\", \"2\\n((\\n()\", \"2\\n)\\n(((\", \"2\\n)(\\n))\", \"2\\n)\\n())\", \"2\\n(\\n(((\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_1412" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 3\\n\", \"1 0 0\\n\", \"6 5 5\\n\", \"5 4 0\\n\", \"9 4 4\\n\", \"6 0 5\\n\", \"3 0 1\\n\", \"9 3 4\\n\"], \"outputs\": [\"4\", \"1\", \"1\", \"1\", \"5\\n\", \"6\\n\", \"2\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1413" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"4\\n\", \"7\\n\", \"1\\n\", \"70\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1414" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n2 1\\n2 3\\n\", \"4\\n1 4\\n2 4\\n3 4\\n\", \"8\\n1 2\\n3 2\\n4 3\\n4 5\\n6 5\\n6 7\\n8 7\\n\", \"8\\n1 4\\n3 2\\n4 3\\n4 5\\n6 5\\n6 7\\n8 7\\n\", \"8\\n1 4\\n3 2\\n4 3\\n4 5\\n6 5\\n6 7\\n8 4\\n\", \"8\\n1 4\\n3 2\\n4 3\\n4 5\\n6 5\\n6 7\\n8...
{ "index": "code_r1_train_1415" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5 7\", \"6 7\", \"3 7\", \"3 3\", \"3 6\", \"2 5\", \"5 6\"], \"outputs\": [\"0\\n\", \"11600\\n\", \"63008\\n\", \"169\\n\", \"37\\n\", \"127\\n\", \"6\\n\", \"6685\\n\"]}" }
{ "index": "code_r1_train_1416" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 3\\n\", \"2\\n4 6\\n\", \"2\\n2 6\\n\", \"2\\n6 2\\n\", \"2\\n1 2\\n\", \"2\\n2 6\\n\", \"2\\n6 2\\n\"], \"outputs\": [\"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\", \"Alice\\n\"]}" }
{ "index": "code_r1_train_1417" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0001\\n1000\\n0011\\n0111\\n3\\n010\\n111\\n0\\n2\\n00000\\n00001\\n4\\n0\\n001\\n0001\\n00001\\n\", \"4\\n4\\n0001\\n1000\\n0011\\n0111\\n3\\n010\\n111\\n0\\n2\\n00000\\n00001\\n4\\n0\\n101\\n0001\\n00001\\n\", \"4\\n4\\n0001\\n1000\\n0011\\n0111\\n3\\n0...
{ "index": "code_r1_train_1418" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n4 0\\n0 0\", \"3\\n0 0\\n-2 0\\n2 0\", \"3\\n1 0\\n-2 0\\n2 0\", \"3\\n1 0\\n-2 0\\n2 1\", \"3\\n1 0\\n-2 0\\n0 1\", \"3\\n1 0\\n-2 0\\n0 2\", \"3\\n1 0\\n-1 0\\n0 1\", \"3\\n1 4\\n-1 1\\n2 -1\"], \"outputs\": [\"3\\n\", \"4\\n\", \"7\\n\", \"7\\n\", \"...
{ "index": "code_r1_train_1419" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n\", \"5 1 4\\n\", \"2 1 1\\n\", \"1 1 2\\n\", \"1 1 4\\n\", \"5 0 4\\n\", \"2 6 2\\n\", \"2 3 2\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"4\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1420" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 5 3\\n3 2 2\\n\", \"3 5 3\\n1 2 1\\n\", \"3 5 2\\n9 3 6\\n\", \"3 5 3\\n1 4 1\\n\", \"3 2 1\\n2 2 2\\n\", \"3 5 3\\n10 9 7\\n\", \"3 5 1\\n1 9 10\\n\", \"3 5 3\\n12 9 7\\n\"], \"outputs\": [\"2\\n2 2 \", \"1\\n2 \", \"5\\n2 2 2 2 2 \", \"1\\n2 \", \"3\\n2 2 2 \...
{ "index": "code_r1_train_1421" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"1 1\\n1\\n\", \"3 1\\n0\\n0\\n0\\n\", \"3 1\\n1\\n1\\n0\\n\", \"3 1\\n0\\n0\\n1\\n\", \"3 1\\n1\\n0\\n0\\n\", \"2 3\\n111\\n000\\n\", \"5 1\\n0\\n0\\n0\\n0\\n0\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \...
{ "index": "code_r1_train_1422" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 8\\n3 2 2\\n\", \"2\\n2 2 8\\n3 2 2\\n\", \"2\\n2 2 8\\n3 3 2\\n\", \"2\\n2 2 7\\n3 3 0\\n\", \"2\\n1 2 7\\n3 3 0\\n\", \"2\\n1 3 7\\n5 0 0\\n\", \"2\\n1 3 7\\n5 0 1\\n\", \"2\\n2 2 8\\n2 2 2\\n\"], \"outputs\": [\"5\\n5\\n\", \"5\\n5\\n\", \"5\\n5\\n\", ...
{ "index": "code_r1_train_1423" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 3\\n\", \"1 4\\n\", \"1 6\\n\", \"7 1\\n\", \"7 2\\n\", \"2 3\\n\", \"2 5\\n\"], \"outputs\": [\"0\", \"8\", \"2\", \"6\", \"6\", \"12\", \"4\", \"10\"]}" }
{ "index": "code_r1_train_1424" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 1 1\\n0\\n\", \"1 1 2\\n0\\n\", \"1 1 2\\n1\\n\", \"1 1 2\\n2\\n\", \"1 2 2\\n1\\n\", \"1 2 2\\n2\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1425" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"2 1\", \"3 1\", \"3 0\", \"1 0\", \"1 2\", \"2 2\", \"2 4\"], \"outputs\": [\"1006\\n\", \"801\\n\", \"701\\n\", \"700\\n\", \"900\\n\", \"902\\n\", \"802\\n\", \"804\\n\"]}" }
{ "index": "code_r1_train_1426" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n11\\n\", \"1\\n11\\n\", \"1\\n22\\n\", \"1\\n15\\n\", \"2\\n86 5\\n\", \"2\\n86 5\\n\", \"2\\n86 8\\n\"], \"outputs\": [\"8\\n\", \"11\\n\", \"11\", \"22\\n\", \"15\\n\", \"-91\\n\", \"-91\", \"-94\\n\"]}" }
{ "index": "code_r1_train_1427" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"6 5\\n\", \"2 1\\n\", \"1 0\\n\", \"2 4\\n\", \"2 0\\n\", \"1 1\\n\", \"2 2\\n\"], \"outputs\": [\"NO\", \"YES\\nLSLSLS\\nSLSLSS\\nSSSSSS\\nSSSSSS\\nSSSSSS\\nSSSSSS\\n\", \"YES\\nLS\\nSS\\n\", \"YES\\nS\\n\", \"NO\", \"YES\\nSS\\nSS\\n\", \"YES\\nL\\n...
{ "index": "code_r1_train_1428" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nba\\nac\\n\", \"2\\n1 1\\naa\\naa\\n\", \"2\\n1 1\\naa\\naa\\n\", \"2\\n1 1\\naa\\na`\\n\", \"2\\n1 2\\nab\\nac\\n\", \"2\\n2 1\\naa\\na`\\n\", \"2\\n1 2\\n`b\\nac\\n\", \"2\\n2 1\\naa\\n`a\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\", \"-1\\n\", \"0\...
{ "index": "code_r1_train_1429" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n0\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1430" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n8\\n2\\n\", \"2\\n1\\n2\\n\", \"2\\n8\\n2\\n\", \"2\\n14\\n2\\n\", \"2\\n14\\n3\\n\", \"2\\n3\\n4857\\n\", \"2\\n1\\n4857\\n\", \"2\\n3\\n4857\\n\"], \"outputs\": [\"3\\n1\\n\", \"9\\n1\\n\", \"3\\n1\\n\", \"18\\n1\\n\", \"18\\n5\\n\", \"5\\n20\\n\", \"9\\n20...
{ "index": "code_r1_train_1431" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nR\\n\", \"1\\nU\\n\", \"1\\nR\\n\", \"1\\nU\\n\", \"2\\nUR\\n\", \"2\\nUR\\n\", \"2\\nRU\\n\", \"3\\nRUR\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1432" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 2 3\\n\", \"1\\n1 2 3\\n\", \"1\\n1 3 3\\n\", \"1\\n1 3 4\\n\", \"1\\n1 0 4\\n\", \"1\\n6 3 5\\n\", \"1\\n1 3 6\\n\", \"1\\n1 0 7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"5\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1433" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4\\n1 7 6 5\\n5\\n1 2 3 4 5\\n2\\n0 -7\\n\", \"3\\n4\\n1 7 6 5\\n5\\n1 2 1 4 5\\n2\\n0 -7\\n\", \"3\\n4\\n1 7 0 5\\n5\\n1 2 1 4 5\\n2\\n0 -7\\n\", \"3\\n4\\n1 7 0 5\\n5\\n1 2 1 4 5\\n2\\n1 -7\\n\", \"3\\n4\\n1 7 6 5\\n5\\n1 2 6 4 5\\n2\\n0 -4\\n\", \"3\\n4\\n...
{ "index": "code_r1_train_1434" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"VYYYVV\\n\", \"OBRRYY\\n\", \"RRYOGB\\n\", \"RROOYY\\n\", \"GOGGVG\\n\", \"GVGBVO\\n\", \"BOBGBB\\n\", \"OOYYBY\\n\"], \"outputs\": [\"2\\n\", \"8\\n\", \"15\\n\", \"6\\n\", \"2\\n\", \"8\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1435" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"5 4\", \"3 1\", \"6 4\", \"4 6\", \"5 6\", \"3 2\"], \"outputs\": [\"6\\n\", \"9\\n\", \"15\\n\", \"1\\n\", \"21\\n\", \"16\\n\", \"25\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1436" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"5 1 2\\n\", \"2 1 1\\n\", \"2 2 1\\n\", \"2 2 1\\n\", \"5 1 2\\n\", \"2 1 1\\n\", \"3 1 1\\n\"], \"outputs\": [\"4417573500000000001 4417573500000000000\\n\", \"4417573500000000001 8835147000000000000\\n\", \"4417573500000000001 4417573500000000000\...
{ "index": "code_r1_train_1437" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\", \"0\", \"2\", \"0\", \"1\", \"2\", \"10\", \"11\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"4\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_1438" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1 -2 0\\n\", \"2\\n5 -23 12\\n0 0 0\\n\", \"2\\n5 -23 19\\n0 0 0\\n\", \"2\\n3 -23 21\\n0 0 0\\n\", \"2\\n6 -23 21\\n0 0 0\\n\", \"2\\n6 -33 21\\n0 0 0\\n\", \"2\\n6 -33 11\\n0 0 0\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\...
{ "index": "code_r1_train_1439" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\", \"9\", \"2\", \"3\", \"7\", \"5\", \"8\"], \"outputs\": [\"0\\n\", \"6\\n\", \"9\\n\", \"2\\n\", \"3\\n\", \"7\\n\", \"5\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1440" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"9\\n\", \"6\\n\", \"8\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"2\\n\"], \"outputs\": [\"3\\n\", \"4\\n\", \"3\\n\", \"4\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1441" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 3\\n\", \"3\\n2 1 2\\n\", \"3\\n2 0 2\\n\", \"3\\n3 0 2\\n\", \"3\\n2 1 3\\n\", \"4\\n2 1 1 3\\n\"], \"outputs\": [\"1\", \"1\\n\", \"7\", \"7\\n\", \"8\\n\", \"7\\n\", \"7\\n\", \"11\"]}" }
{ "index": "code_r1_train_1442" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 6\", \"3 1 3 6\", \"3 0 3 6\", \"4 0 1 0\", \"6 0 1 0\", \"6 1 1 0\", \"3 0 3 2\", \"3 0 3 1\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"5\\n\", \"4\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1443" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n5\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n1\\n\", \"1\\n9\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1444" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n01\\n10\\n5\\n01011\\n11100\\n2\\n01\\n01\\n10\\n0110011011\\n1000110100\\n1\\n0\\n1\\n\", \"5\\n2\\n01\\n10\\n5\\n01011\\n11110\\n2\\n01\\n01\\n10\\n0110011011\\n1000110100\\n1\\n0\\n1\\n\", \"5\\n2\\n01\\n10\\n5\\n01001\\n11100\\n2\\n01\\n01\\n10\\n0110...
{ "index": "code_r1_train_1445" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 5\\n0 0 1 0 0\\n1 0 0 0 1\\n0 0 0 1 0\\n0 0 0 1 0\", \"4 5\\n0 0 1 0 0\\n1 0 1 0 1\\n0 0 0 1 0\\n0 0 0 1 0\", \"3 5\\n0 0 1 0 0\\n1 0 0 0 1\\n0 0 0 1 0\\n0 0 0 1 0\", \"4 5\\n0 0 1 0 0\\n1 0 0 0 0\\n0 0 0 1 0\\n0 0 0 1 0\", \"4 5\\n0 0 1 0 0\\n1 0 0 0 1\\n0 0 0...
{ "index": "code_r1_train_1446" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 6\\n4\\n2 1 1 0\\n10\\n0 2 5 23 4 2 4 5 7 8\\n\", \"3\\n3\\n1 2 8\\n4\\n2 1 1 0\\n10\\n0 2 5 23 4 2 4 5 7 8\\n\", \"3\\n3\\n1 2 8\\n4\\n2 1 1 0\\n10\\n0 2 5 23 4 2 4 5 1 8\\n\", \"3\\n3\\n1 2 8\\n4\\n2 1 1 0\\n10\\n0 2 5 23 4 4 5 5 2 8\\n\", \"3\\n3\\...
{ "index": "code_r1_train_1447" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\", \"3\\n1\\n5\\n0\", \"3\\n1\\n0\\n1\", \"3\\n2\\n0\\n1\", \"3\\n42\\n5\\n0\", \"3\\n42\\n5\\n1\", \"3\\n18\\n5\\n1\", \"3\\n33\\n5\\n1\"], \"outputs\": [\"1\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1448" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 1\\n1 2\\n\", \"3 2\\n1 2\\n2 3\\n\", \"3 2\\n1 2\\n2 3\\n\", \"3 3\\n2 1\\n1 3\\n3 2\\n\", \"3 3\\n2 1\\n1 3\\n3 2\\n\", \"4 4\\n1 2\\n2 3\\n3 1\\n4 1\\n\", \"7 4\\n1 2\\n2 3\\n3 1\\n4 1\\n\"], \"outputs\": [\"yes\\n\", \"yes\\n\", \"yes\\n\"...
{ "index": "code_r1_train_1449" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4 INDIAN\\nCONTEST_WON 1\\nTOP_CONTRIBUTOR\\nBUG_FOUND 100\\nCONTEST_HOSTED\\n4 NON_INDIAN\\nCONTEST_WON 1\\nTOP_CONTRIBUTOR\\nBUG_FOUND 100\\nCONTEST_HOSTED\", \"2\\n4 INDIAN\\nCONTEST_WON 1\\nTOP_CONTRIBUTOR\\nBUG_FOUND 100\\nCONTEST_HOSTED\\n1 NON_INDIAN\\...
{ "index": "code_r1_train_1450" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAAAAA\", \"5 2\\nAAABA\", \"5 1\\nAAABA\", \"5 3\\nAAABA\", \"5 1\\nAAAAB\", \"5 2\\nAAAAA\", \"5 1\\nAAABB\", \"5 3\\nAAAAA\"], \"outputs\": [\"BAAAA\\n\", \"BBABA\\n\", \"BAABA\\n\", \"ABABA\\n\", \"BAAAB\\n\", \"BBBBA\\n\", \"BAABB\\n\", \"AAABA\\n\"]}" ...
{ "index": "code_r1_train_1451" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"4\\n\", \"5\\n\"], \"outputs\": [\"24576\\n\", \"6\\n\", \"96\\n\", \"610612729\\n\", \"96\\n\", \"6\\n\", \"610612729\\n\", \"218379003\\n\"]}" }
{ "index": "code_r1_train_1452" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB\\nc\\nD\", \"3 \\nC\\nc\\nD\", \"3 \\nB\\nc\\nC\", \"3 \\nB\\nc\\nB\", \"3 \\nC\\nc\\nB\", \"3 \\nC\\nb\\nB\", \"3 \\nB\\nd\\nD\", \"3 \\nC\\nd\\nD\"], \"outputs\": [\"BattleShip\\nCruiser\\nDestroyer\", \"Cruiser\\nCruiser\\nDestroyer\\n\", \"BattleShip\\n...
{ "index": "code_r1_train_1453" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 5\\n2 4 3 2 1\", \"5 5\\n2 4 9 2 5\", \"5 8\\n2 4 3 2 1\", \"5 5\\n2 4 3 4 1\", \"5 8\\n2 4 5 3 1\", \"4 5\\n2 4 3 3 1\", \"3 5\\n2 4 9 2 5\", \"5 8\\n2 4 3 3 1\"], \"outputs\": [\"2\", \"-1\", \"-1\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1454" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\": [\"0\\n\", \"0\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"2\\n\", \"0\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_1455" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"6\", \"0\", \"1\", \"2\", \"3\", \"7\"], \"outputs\": [\"Christmas Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve\\n\", \"Christmas Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve Eve\\n\", \"Chri...
{ "index": "code_r1_train_1456" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n1 2\\n1 3\\n1 4\\n4 5\\n5 6\\n5 7\\n2 3\\n2\\n6 0 1\\n1 2 2\", \"7 7\\n1 2\\n1 3\\n1 4\\n4 5\\n5 3\\n5 7\\n2 3\\n2\\n6 0 1\\n1 2 1\", \"7 7\\n1 2\\n1 3\\n1 4\\n4 6\\n5 6\\n5 7\\n2 3\\n2\\n6 0 1\\n1 2 2\", \"7 7\\n1 2\\n1 3\\n1 3\\n4 5\\n5 3\\n5 7\\n2 3\\n2\...
{ "index": "code_r1_train_1457" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 000\\n15 16 87\\n83 94 18 4\", \"3 3 000\\n57 16 125\\n46 6 20 1\", \"0 3 000\\n15 16 87\\n83 94 18 14\", \"3 3 000\\n60 16 4\\n30 94 80 150\", \"3 3 000\\n57 16 125\\n46 9 20 14\", \"3 3 000\\n57 16 125\\n5 94 18 14\", \"-1 3 000\\n26 9 87\\n83 94 18 14\", \...
{ "index": "code_r1_train_1458" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4\\n1 5 5 5\\n3\\n1 1 1 5\\n3\\n5 5 2\", \"3\\n4\\n1 5 5 5\\n3\\n1 2 1 5\\n3\\n5 5 2\", \"3\\n4\\n1 5 5 6\\n4\\n1 1 1 5\\n3\\n5 5 2\", \"3\\n4\\n1 5 5 5\\n3\\n1 2 1 5\\n3\\n5 5 3\", \"3\\n4\\n1 5 5 5\\n3\\n1 2 1 5\\n3\\n5 1 3\", \"3\\n4\\n1 5 5 5\\n3\\n1 2 1 ...
{ "index": "code_r1_train_1459" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ntourist\\neptr\\ne\", \"2\\nssvuhnr\\nerrs\\nf\", \"2\\nhupouvt\\netor\\ni\", \"2\\nsourist\\neptr\\ne\", \"2\\nsourist\\neqtr\\ne\", \"2\\nsourist\\netqr\\ne\", \"2\\nsourisu\\netqr\\ne\", \"2\\nsourisu\\netqr\\nd\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n...
{ "index": "code_r1_train_1460" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n1 2 3\", \"1\\n3 4\\n0 2 3\", \"1\\n0 4\\n0 2 2\", \"1\\n0 8\\n0 2 0\", \"1\\n3 1\\n1 2 3\", \"1\\n0 4\\n0 0 0\", \"1\\n0 8\\n0 3 0\", \"1\\n0 4\\n0 2 3\"], \"outputs\": [\"7\", \"7\\n\", \"6\\n\", \"10\\n\", \"3\\n\", \"4\\n\", \"11\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_1461" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"4\", \"8\", \"7\", \"5\", \"2\", \"1\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1462" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"8 4 1\", \"8 8 1\", \"3 7 1\", \"6 7 1\", \"6 0 1\", \"2 1 1\", \"2 2 1\", \"10 4 1\"], \"outputs\": [\"13\\n\", \"17\\n\", \"11\\n\", \"14\\n\", \"7\\n\", \"4\\n\", \"5\\n\", \"15\\n\"]}" }
{ "index": "code_r1_train_1463" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"05:50\\n05:44\\n\", \"00:00\\n01:00\\n\", \"00:01\\n00:00\\n\", \"23:59\\n23:59\\n\", \"23:44\\n23:55\\n\", \"00:00\\n13:12\\n\", \"12:00\\n23:59\\n\", \"12:44\\n12:44\\n\"], \"outputs\": [\"00:06\\n\", \"23:00\\n\", \"00:01\\n\", \"00:00\\n\", \"23:49\\n\", \"10...
{ "index": "code_r1_train_1464" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"15\", \"10\", \"426\", \"101\", \"638\", \"268\", \"457\", \"000\"], \"outputs\": [\"111\\n\", \"111\\n\", \"444\\n\", \"111\\n\", \"666\\n\", \"333\\n\", \"555\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1465" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n\", \"1 0\\n\", \"4 9\\n\", \"4 7\\n\", \"2 1\\n\", \"4 3\\n\", \"8 6\\n\", \"2 2\\n\"], \"outputs\": [\"-1\\nxox\\n\", \"1\\no\\n\", \"-13\\nxxoxxoxxoxxox\\n\", \"-7\\nxxxoooxxoxx\\n\", \"3\\nxoo\\n\", \"11\\nxxoooox\\n\", \"46\\nxxxooooooooxxx\\n\", \"2\\...
{ "index": "code_r1_train_1466" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1 1\\n1\\n\", \"1\\n1 1\\n0\\n\", \"1\\n1 171\\n1\\n\", \"1\\n1 1234\\n1\\n\", \"1\\n1 1234\\n1\\n\", \"2\\n3 3\\n3 6 9\\n3 3\\n6 4 11\\n\", \"1\\n4 2\\n2 2655 6548 2082\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"0 0\\n\", \"1 1\\n\", ...
{ "index": "code_r1_train_1467" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n3 2\\n\", \"2\\n1 2\\n\", \"2\\n3 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1468" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n7\", \"4\\n2\", \"4\\n0\", \"4\\n1\", \"4\\n6\", \"4\\n5\", \"4\\n3\"], \"outputs\": [\"12\\n\", \"15\\n\", \"8\\n\", \"1\\n\", \"5\\n\", \"14\\n\", \"13\\n\", \"10\"]}" }
{ "index": "code_r1_train_1469" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n8\\n\", \"1\\n5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1470" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\npwd\\n\", \"4\\ncd /b/b\\npwd\\ncd ../a/b\\npwd\\n\", \"4\\ncd /a/b\\npwd\\ncd ../a/b\\npwd\\n\", \"5\\npwd\\ncd ztb/kag\\npwd\\npwd\\npwd\\n\", \"5\\npwd\\ncd gak/btz\\npwd\\npwd\\npwd\\n\", \"6\\ncd a/a/b/b\\npwd\\ncd ../..\\npwd\\ncd ..\\npwd\\n\", \"5\\np...
{ "index": "code_r1_train_1471" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"aa\\naa\\n1\\n\", \"ab\\nba\\n0\\n\", \"hi\\nhi\\n1\\n\", \"ab\\nba\\n9\\n\", \"aa\\naa\\n0\\n\", \"ab\\nab\\n9\\n\", \"ab\\nca\\n2\\n\", \"ab\\nbb\\n2\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1472" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbar\\nabracadabra\\nbear\\nbar\\nbbraxbara\", \"4\\nrab\\nabracadabra\\nbear\\nbar\\nbbraxbara\", \"4\\nrab\\nabracadabra\\nbear\\nbar\\narabxarbb\", \"4\\nqab\\nabracadabra\\nbear\\nbar\\narabxarbb\", \"4\\nqab\\nabracadabra\\nbear\\nbra\\narabxarbb\", \"4\\...
{ "index": "code_r1_train_1473" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 5\\n\", \"1\\n2\\n1 1\\n\", \"1\\n2\\n3 3\\n\", \"1\\n2\\n2 2\\n\", \"1\\n2\\n4 4\\n\", \"1\\n2\\n7 7\\n\", \"1\\n2\\n2 3\\n\", \"1\\n2\\n6 6\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2 5\\n\", \"-1\\n\"]}"...
{ "index": "code_r1_train_1474" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ng\\ng\\n\", \"1 1\\ng\\ng\\n\", \"10 5\\nsomer\\nandom\\nnoise\\nmayth\\neforc\\nebewi\\nthyou\\nhctwo\\nagain\\nnoise\\nsomermayth\\nandomeforc\\nnoiseebewi\\nagainthyou\\nnoisehctwo\\n\", \"10 5\\nsomer\\nandom\\nnoise\\nmayth\\neforc\\nebewi\\nthyou\\nhc...
{ "index": "code_r1_train_1475" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"2 0 8\", \"2 2 2\", \"3 0 4\", \"6 2 3\", \"6 2 5\", \"4 4 6\", \"5 1 0\"], \"outputs\": [\"10\\n\", \"3\\n\", \"2\\n\", \"6\\n\", \"5\\n\", \"14\\n\", \"4\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1476" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 5\\n0 1 8 4 7\\n0 0 5\\n1 2 4\\n0 3 4\\n1 0 5\\n1 0 3\", \"5 5\\n0 1 8 4 7\\n0 0 5\\n1 2 4\\n0 3 4\\n1 0 5\\n1 1 3\", \"5 5\\n1 2 3 4 5\\n4 1 5\\n1 2 4\\n0 3 6\\n1 0 5\\n1 0 3\", \"5 5\\n1 2 3 4 5\\n1 1 5\\n1 2 4\\n0 3 10\\n1 0 5\\n1 0 3\", \"5 5\\n1 2 5 4 5\\n...
{ "index": "code_r1_train_1477" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n13 1 7\", \"3\\n2 1 1\\n13 5 7\", \"3\\n2 1 1\\n13 1 7\", \"3\\n2 1 1\\n13 2 7\", \"3\\n2 1 1\\n13 2 0\", \"3\\n1 1 1\\n13 2 0\", \"3\\n1 1 1\\n13 3 0\", \"3\\n1 1 1\\n13 4 0\"], \"outputs\": [\"4\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1...
{ "index": "code_r1_train_1478" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 0 5\", \"1\\n0 0 5\", \"1\\n1 3 5\", \"1\\n1 2 5\", \"1\\n0 0 8\", \"1\\n0 0 0\", \"1\\n0 1 0\", \"1\\n1 2 3\"], \"outputs\": [\"1\\n\", \"0\\n\", \"-2\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"-1\"]}" }
{ "index": "code_r1_train_1479" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 3\\n1\\n3\\n4 2\\n\", \"2 2 4\\n1\\n2\\n1 4\\n\", \"2 2 4\\n1\\n4\\n4 2\\n\", \"2 2 4\\n2\\n2\\n1 4\\n\", \"2 2 6\\n1\\n4\\n4 2\\n\", \"2 2 4\\n1\\n2\\n2 4\\n\", \"2 2 6\\n1\\n4\\n4 0\\n\", \"2 2 4\\n1\\n4\\n2 4\\n\"], \"outputs\": [\"-1 -1\\n-1 -1\\n\", \"4 ...
{ "index": "code_r1_train_1480" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n64\\n\", \"1\\n26\\n\", \"1\\n65\\n\", \"1\\n49\\n\", \"1\\n26\\n\", \"1\\n49\\n\", \"1\\n64\\n\"], \"outputs\": [\"3\\n\", \"10\\n\", \"6\\n\", \"10\\n\", \"9\\n\", \"6\\n\", \"9\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_1481" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 123456789\\n\", \"2 1 1\\n1 2 123456789\\n\", \"6 10 5\\n2 5 1\\n5 3 9\\n6 2 2\\n1 3 1\\n5 1 8\\n6 5 10\\n1 6 5\\n6 4 6\\n3 6 2\\n3 4 5\\n\", \"6 10 5\\n2 5 1\\n5 3 9\\n6 2 2\\n1 3 1\\n5 1 8\\n6 5 10\\n1 6 5\\n6 4 6\\n3 6 2\\n3 4 5\\n\", \"7 15 18\\n2...
{ "index": "code_r1_train_1482" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n9999\\n4\\n777\\n\", \"4\\n9\\n9999\\n4\\n777\\n\", \"4\\n4\\n9999\\n4\\n777\\n\", \"4\\n9\\n9999\\n1\\n777\\n\", \"4\\n3\\n9999\\n1\\n777\\n\", \"4\\n9\\n9999\\n2\\n777\\n\", \"4\\n4\\n9999\\n6\\n777\\n\", \"4\\n3\\n9999\\n1\\n555\\n\"], \"outputs\": [\"...
{ "index": "code_r1_train_1483" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"1 0\\n1 1\\n\", \"178279081 0\\n\", \"4 2\\n1 2\\n2 0\\n\", \"6 2\\n1 3\\n4 1\\n\", \"5 2\\n1 1\\n2 2\\n\", \"8 2\\n1 2\\n2 0\\n\", \"8 2\\n1 2\\n2 1\\n\"], \"outputs\": [\"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_1484" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\"], \"outputs\": [\"7\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_1485" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n12\\n5 4 4 3 2 2 1 1 1 1 1 1\\n4\\n4 3 2 0\\n1\\n1000000\\n20\\n20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 5 3 2 1\\n32\\n64 64 63 58 58 58 58 58 37 37 37 37 34 34 28 28 28 28 28 28 24 24 19 17 17 0 17 16 17 3 2 11\\n\", \"5\\n12\\n5 4 4 3 2 2 1 1 1 1 1 1\\n4...
{ "index": "code_r1_train_1486" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n1 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 3\\n5\\n1 1 2 2 3\\n4\\n1 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 2 2 3 3\\n5\\n1 1...
{ "index": "code_r1_train_1487" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1 2 0 1\\n1 3 2 1\\n1 4 2 2\\n2 3 2 1\\n2 4 3 0\\n3 4 1 3\", \"4\\n1 2 0 1\\n1 3 2 1\\n1 4 2 2\\n4 3 2 1\\n2 4 3 0\\n3 4 1 3\", \"4\\n1 2 1 1\\n1 3 2 1\\n1 4 2 2\\n4 0 3 1\\n2 4 3 0\\n0 4 1 4\", \"4\\n1 1 1 1\\n1 3 2 1\\n1 4 2 0\\n4 0 3 1\\n2 4 3 0\\n0 4 1 4\...
{ "index": "code_r1_train_1488" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabacba\\n2\\naba 6\\nba 3\\n1\\n\", \"6\\nabacba\\n2\\naba 6\\nba 3\\n2\\n\", \"6\\nabacba\\n2\\naba 6\\nba 4\\n2\\n\", \"6\\nabacba\\n2\\naba 5\\nba 4\\n2\\n\", \"6\\nabacba\\n2\\naba 5\\nba 0\\n2\\n\", \"6\\nabacba\\n2\\nbaa 5\\nab 0\\n2\\n\", \"6\\nabacba\...
{ "index": "code_r1_train_1489" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 of week\\n\", \"6 of week\\n\", \"1 of week\\n\", \"2 of week\\n\", \"3 of week\\n\", \"5 of week\\n\", \"7 of week\\n\", \"6 of week\\n\"], \"outputs\": [\"52\\n\", \"53\\n\", \"52\\n\", \"52\\n\", \"52\\n\", \"53\\n\", \"52\\n\", \"53\"]}" }
{ "index": "code_r1_train_1490" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 6 1\\n3 2\", \"3 4 1\\n3 2\", \"5 6 1\\n3 2\", \"3 3 1\\n3 2\", \"100001 100000 0\", \"100101 100000 0\", \"110101 100000 0\", \"110111 100000 0\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\", \"100001\\n\", \"100101\\n\", \"110101\\n\", \"110111\\n\"]}"...
{ "index": "code_r1_train_1491" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"3\\n1 1 1\\n\", \"3\\n1 1 1\\n\", \"4\\n7 3 2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1492" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n\", \"1\\n1 1 1 1\\n\", \"1\\n0 5 0 1\\n\", \"1\\n7 7 1 1\\n\", \"1\\n1 1 1 2\\n\", \"1\\n0 5 1 2\\n\", \"1\\n1 5 0 1\\n\", \"1\\n1 5 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"5\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1493" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 0\\n\", \"2\\n0 1\\n\", \"2\\n0 1\\n\", \"2\\n1 0\\n\", \"3\\n0 1 0\\n\", \"3\\n0 0 1\\n\", \"3\\n0 1 1\\n\", \"3\\n1 0 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1494" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"12\\n9\\n3\\n0\", \"12\\n8\\n2\\n0\", \"12\\n9\\n0\\n0\", \"12\\n0\\n3\\n0\", \"12\\n9\\n1\\n0\", \"12\\n8\\n1\\n0\", \"12\\n9\\n4\\n0\", \"12\\n8\\n0\\n0\"], \"outputs\": [\"8\\n3\\n2\\n\", \"8\\n4\\n2\\n\", \"8\\n3\\n\", \"8\\n\", \"8\\n3\\n1\\n\", \"8\\n4\\n1\...
{ "index": "code_r1_train_1495" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1598114589\", \"10\\n2555486547\", \"10\\n2722382398\", \"10\\n2713182985\", \"10\\n4333783596\", \"10\\n1859787539\", \"10\\n1888971773\", \"10\\n6843843631\"], \"outputs\": [\"142\\n853\\n967\\n\", \"123\\n659\\n847\\n\", \"139\\n428\\n576\\n\", \"317\\n48...
{ "index": "code_r1_train_1496" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"2 1\\n1 1\\n1 1\\n\", \"2 2\\n1 1\\n1 1\\n\", \"2 2\\n1 1\\n1 1\\n\", \"2 1\\n1 1\\n1 1\\n\", \"3 1\\n1 1\\n2 2\\n3 3\\n\", \"3 2\\n1 1\\n2 2\\n3 3\\n\"], \"outputs\": [\"1\", \"1\\n\", \"2\", \"1\", \"1\\n\", \"2\\n\", \"3\", ...
{ "index": "code_r1_train_1497" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1 1 1 2\", \"4\\n1 1 1 3\", \"4\\n1 1 1 6\", \"4\\n1 1 2 6\", \"4\\n1 1 4 6\", \"4\\n1 1 0 6\", \"4\\n2 1 0 6\", \"4\\n2 1 0 1\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1498" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"5 4 7\\n\", \"6 2 3\\n\", \"2 1 2\\n\", \"2 1 3\\n\", \"2 1 3\\n\", \"2 1 2\\n\", \"5 1 2\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1499" }