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\\n8\\n\", \"1\\n7\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n48\\n\", \"1\\n38\\n\", \"1\\n33\\n\"], \"outputs\": [\"3 2\\n\", \"3 3\\n\", \"1 1\\n\", \"1 2\\n\", \"2 1\\n\", \"7 2\\n\", \"2 7\\n\", \"6 4\\n\"]}"
} | {
"index": "code_r1_train_2600"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n1\\n\", \"1\\n18\\n\", \"1\\n20\\n\", \"1\\n10\\n\", \"2\\n2 3\\n\", \"2\\n2 5\\n\"], \"outputs\": [\"9\\n\", \"4\\n\", \"1\\n\", \"30\\n\", \"36\\n\", \"12\\n\", \"2\\n2\\n\", \"2\\n4\\n\"]}"
} | {
"index": "code_r1_train_2601"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4 1\", \"5 2\", \"7 2\", \"4 2\", \"1 2\", \"1 1\", \"3 6\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2602"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\", \"1\", \"2\", \"3\", \"4\", \"6\", \"9\"], \"outputs\": [\"992\\n\", \"0\\n\", \"999\\n\", \"998\\n\", \"997\\n\", \"996\\n\", \"994\\n\", \"991\\n\"]}"
} | {
"index": "code_r1_train_2603"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"4 9\\n\", \"1 1\\n\", \"4 6\\n\", \"1 1\\n\", \"1 2\\n\", \"1 3\\n\", \"1 4\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2604"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"12345\\n\", \"13542\\n\", \"71232\\n\", \"11111\\n\", \"10000\\n\", \"99999\\n\", \"91537\\n\", \"70809\\n\"], \"outputs\": [\"71232\", \"84443\", \"10151\", \"36551\", \"00000\", \"99999\", \"27651\", \"00000\"]}"
} | {
"index": "code_r1_train_2605"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n-\\n\", \"2\\n-\\n-\\n\", \"3\\n-\\n-\\n-\\n\", \"4\\n-\\n-\\n-\\n-\\n\", \"1\\n+ 7127255\\n\", \"1\\n+ 2018800\\n\", \"1\\n+ 93464739\\n\", \"1\\n+ 13952371\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"7127255\\n\", \"2018800\\n\", \"934647... | {
"index": "code_r1_train_2606"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-1\\n\", \"1 1\\n-1\\n\", \"1 2\\n1 -1\\n\", \"1 2\\n-1 1\\n\", \"1 2\\n-1 1\\n\", \"1 2\\n1 -1\\n\", \"2 2\\n1 -1\\n\", \"1 1\\n-1000000\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2607"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2 1 5\\n\", \"2 7 8 4\\n\", \"2 5 8 4\\n\", \"2 2 3 1\\n\", \"1 1 1 2\\n\", \"1 2 3 1\\n\", \"4 2 5 28\\n\", \"3 1 29 1\\n\"], \"outputs\": [\"20\\n\", \"25\\n\", \"16\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"1893\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2608"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3 4 5\\n3 4 2 5 1\", \"5\\n1 2 3 4 5\\n2 4 3 5 1\", \"5\\n1 3 2 4 5\\n3 4 2 5 1\", \"5\\n2 1 3 4 5\\n2 4 3 5 1\", \"5\\n1 4 3 2 5\\n3 4 2 5 1\", \"5\\n2 1 3 4 5\\n3 4 2 5 1\", \"5\\n1 2 3 4 5\\n2 4 3 5 1\", \"5\\n2 1 3 4 5\\n3 4 1 5 2\"], \"outputs\": [\"... | {
"index": "code_r1_train_2609"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"100\\n0\\n0\\n3561\\n000\\n98\\n9\\n15\\n1\\n297\", \"100\\n-3\\n-4\\n629\\n010\\n48\\n2\\n1\\n4\\n112\", \"100\\n-4\\n-2\\n629\\n110\\n71\\n1\\n1\\n3\\n112\", \"100\\n-8\\n0\\n651\\n010\\n104\\n1\\n1\\n3\\n112\", \"100\\n-8\\n0\\n552\\n011\\n104\\n1\\n1\\n3\\n11... | {
"index": "code_r1_train_2610"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 1\\n0\\n\", \"1 1\\n1\\n\", \"1 2\\n0 0\\n\", \"2 1\\n0\\n0\\n\", \"1 2\\n0 1\\n\", \"1 2\\n0 0\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_2611"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\noooo\\n\", \"1 4\\noooo\\n\", \"2 2\\noo\\no*\\n\", \"1 2\\noo\\no*\\n\", \"2 2\\noo\\n*o\\n\", \"1 2\\noo\\n*o\\n\", \"1 2\\noo\\no)\\n\", \"1 2\\noo\\n)o\\n\"], \"outputs\": [\"9\\n\", \"\\n9\\n\", \"4\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"1\\n\", \"1\\n\... | {
"index": "code_r1_train_2612"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 0 7 0\", \"4 1\\n5 0 7 1\", \"4 2\\n5 0 7 1\", \"4 2\\n5 0 7 0\", \"4 0\\n2 0 5 0\", \"4 1\\n4 0 0 1\", \"4 1\\n4 0 1 1\", \"4 1\\n4 1 1 1\"], \"outputs\": [\"2 7 0 7\\n\", \"2 7 0 6\\n\", \"5 0 7 1\\n\", \"5 0 7 0\\n\", \"2 0 5 0\\n\", \"0 4 4 3\\n\", \"... | {
"index": "code_r1_train_2613"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6 4\\n\", \"3 1\\n\", \"7 3\\n\", \"6 2\\n\", \"1 1\\n\", \"6 6\\n\", \"5 1\\n\"], \"outputs\": [\"111\", \"010101\", \"010\", \"0010010\", \"001001\", \"1\", \"111111\", \"00100\"]}"
} | {
"index": "code_r1_train_2614"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\", \"1\", \"2\", \"8\", \"6\", \"7\", \"9\"], \"outputs\": [\"0\\n\", \"160\\n\", \"32\\n\", \"64\\n\", \"256\\n\", \"192\\n\", \"224\\n\", \"288\\n\"]}"
} | {
"index": "code_r1_train_2615"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aizucamp\\nuza\", \"aziucamp\\nazu\", \"azjucamp\\nazu\", \"azjucamp\\nazt\", \"azjucamp\\nzat\", \"pmacujza\\nzat\", \"pmacuiza\\nzat\", \"pmicuaza\\nzat\"], \"outputs\": [\"no\\n\", \"yes\\n\", \"yes\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\"]}... | {
"index": "code_r1_train_2616"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n2\\n1\\n\", \"1 1\\n3\\n2\\n\", \"1 1\\n5\\n3\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n5\\n3\\n\", \"1 1\\n2\\n1\\n\", \"1 1\\n3\\n2\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\", \"0\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_2617"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n6\\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n7\\n\", \"1\\n2\\n\", \"2\\n1 4\\n\"], \"outputs\": [\"1 \\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1 \\n\", \"1 2 \\n\"]}"
} | {
"index": "code_r1_train_2618"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n1 0 0 0\\n1\\n1 0 0 0\\n3\\n0 1 0 0\\n2\\n2 3 1 4\\n10\", \"4\\n1 0 0 0\\n1\\n1 0 0 0\\n3\\n0 1 0 0\\n2\\n2 3 1 4\\n12\", \"4\\n1 0 0 0\\n1\\n1 0 0 0\\n3\\n0 1 0 0\\n2\\n3 3 1 4\\n10\", \"4\\n2 0 0 0\\n1\\n1 0 0 0\\n3\\n0 1 0 0\\n2\\n2 3 1 4\\n12\", \"4\\n2 0... | {
"index": "code_r1_train_2619"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"5\\n\"], \"outputs\": [\"6\\n\", \"18\\n\", \"38\\n\", \"68\\n\", \"110\\n\", \"166\\n\", \"238\\n\", \"38\\n\"]}"
} | {
"index": "code_r1_train_2620"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nD\\n\", \"1\\nD\\n\", \"1\\nU\\n\", \"1\\nD\\n\", \"1\\nU\\n\", \"2\\nDU\\n\", \"2\\nDU\\n\", \"2\\nUD\\n\"], \"outputs\": [\"1 \", \"1 \", \"1 \", \"1\\n\", \"1\\n\", \"1 1 \", \"1 1\\n\", \"3 3 \"]}"
} | {
"index": "code_r1_train_2621"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 27\\n11308 32 23\\n0 1 39\", \"3 \\n0 5 766\\n5757 312 12\\n6 0 40\", \"3 \\n0 5 766\\n5757 317 12\\n6 0 40\", \"3 \\n0 7 766\\n5757 317 12\\n6 0 40\", \"3 \\n0 7 766\\n5757 596 16\\n6 0 40\", \"3 \\n1 5 766\\n5352 312 19\\n1 0 40\", \"3 \\n9 10 68\\n102... | {
"index": "code_r1_train_2622"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nBBBGGGRRR\", \"3\\nRRRBGGBGB\", \"3\\nBRRGGGRBB\", \"3\\nBGRGGRRBB\", \"3\\nRGRBGRBGB\", \"3\\nBBBGGRRGR\", \"3\\nBBGBGRRRG\", \"3\\nBBGBGGRRR\"], \"outputs\": [\"216\", \"36\", \"12\", \"24\", \"6\", \"72\", \"48\", \"144\"]}"
} | {
"index": "code_r1_train_2623"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n20\\n\", \"1\\n20\\n\", \"1\\n40\\n\", \"1\\n44\\n\", \"1\\n54\\n\", \"1\\n93\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"19\\n\", \"19\\n\", \"39\\n\", \"43\\n\", \"53\\n\", \"92\\n\"]}"
} | {
"index": "code_r1_train_2624"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000 1000000000\\n\", \"1\\n1 1000000000\\n1000000000 1000000000\\n\", \"3\\n3 26\\n10 12\\n1 4\\n10 11\\n1 945\\n1 1000010000\\n5 26\\n4 4\\n0 2\\n6 8\\n9 6\\n2 7\\n\", \"3\\n3 26\\n6 12\\n1 4\\n10 11\\n1 1337\\n1 1000000000\\n5 26\\n4 4... | {
"index": "code_r1_train_2625"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1 1\\n1 1 1\\n1 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 1 1\\n2 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 0 1\\n1 4 0\\n1 2\\n1 3\", \"2 3\\n0 2 1\\n1 1 1\\n2 4 0\\n1 2\\n3 3\", \"2 3\\n0 1 1\\n1 0 1\\n1 4 0\\n1 2\\n2 3\", \"2 3\\n1 3 1\\n1 1 1\\n2 4 0\\n1 2\\n3 ... | {
"index": "code_r1_train_2626"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nEEEEEN\\nEE\\n\", \"2\\nEEEEEN\\nEE\\n\", \"2\\nEENEEE\\nEE\\n\", \"2\\nEEEEEN\\nEEEEEN\\n\", \"2\\nEEEEEN\\nEEEEEN\\n\", \"2\\nNEEEEE\\nEEEEEN\\n\", \"2\\nEEEEEEN\\nEEEEEEEN\\n\", \"2\\nEEEEEEN\\nEEEEEEEN\\n\"], \"outputs\": [\"NO\\nYES\\n\", \"NO\\nYES\\n\"... | {
"index": "code_r1_train_2627"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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+ 1\\n\", \"2 1\\n- 2\\n\", \"2 1\\n- 2\\n\", \"1 1\\n+ 1\\n\", \"3 1\\n- 2\\n\", \"3 1\\n- 3\\n\", \"20 1\\n- 16\\n\", \"20 1\\n- 16\\n\"], \"outputs\": [\"1\\n1 \", \"2\\n1 2 \", \"2\\n1 2 \\n\", \"1\\n1 \\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 3\\n\", \"20\\n1... | {
"index": "code_r1_train_2628"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 5 6 7\\n4 7\\n\", \"2 1\\n1 2 1 3\\n1 2\\n\", \"2 1\\n3 5 6 7\\n4 7\\n\", \"2 1\\n1 2 2 3\\n1 2\\n\", \"2 2\\n1 2 1 3\\n1 2 1 3\\n\", \"2 2\\n1 2 2 4\\n1 2 1 3\\n\", \"2 2\\n1 2 2 3\\n2 3 3 4\\n\", \"2 2\\n1 2 3 4\\n1 5 3 4\\n\"], \"outputs\": [\"-1\", \"... | {
"index": "code_r1_train_2629"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 1\\n2\\n\", \"2 1\\n3\\n\", \"2 1\\n1\\n\", \"2 1\\n3\\n\", \"2 1\\n2\\n\", \"3 1\\n2\\n\", \"3 1\\n1\\n\"], \"outputs\": [\"2 \\n\", \"1 \\n\", \"2 \\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2630"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"9\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2631"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\">q???d?>\\n_ba\", \"d>>>???q\\na`a\", \"d>>>???q\\naaa\", \"??p??d??\\nabb\", \"??p??d??\\n`bb\", \"??p??d??\\n`ab\", \"??p??d??\\nba`\", \"??p??d??\\nb``\"], \"outputs\": [\">q_bada>\\n\", \"d>>>a`aq\\n\", \"d>>>aaaq\\n\", \"UNRESTORABLE\\n\", \"UNRESTORABLE\\n\... | {
"index": "code_r1_train_2632"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n7\", \"3\\n5\\n9\\n2\", \"3\\n5\\n5\\n2\", \"3\\n2\\n5\\n2\", \"3\\n5\\n5\\n7\", \"3\\n5\\n5\\n3\", \"3\\n5\\n7\\n7\", \"3\\n5\\n7\\n5\"], \"outputs\": [\"2\\n2\\n3\", \"2\\n3\\n1\\n\", \"2\\n2\\n1\\n\", \"1\\n2\\n1\\n\", \"2\\n2\\n3\\n\", \"2\\n2\\n2... | {
"index": "code_r1_train_2633"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n7\\n8\\n\", \"2\\n7\\n8\\n\", \"2\\n7\\n16\\n\", \"2\\n8\\n11\\n\", \"3\\n4\\n6\\n9\\n\", \"3\\n4\\n5\\n2\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"1 6\\n4 4\\n\", \"1 6\\n4 4\\n\", \"1 6\\n8 8\\n\", \"4 4\\n1 10\\n\", \"2 2\\... | {
"index": "code_r1_train_2634"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 3\\n3\\n\", \"3\\n1 2\\n1 3\\n2 3\\n\", \"3\\n1 2\\n1 3\\n3 2\\n\", \"4\\n1 2\\n1 3\\n1 4\\n4 3 2\\n\", \"5\\n1 2\\n4 3\\n1 4\\n4 5\\n5 2 3\\n\", \"6\\n1 2\\n1 3\\n2 4\\n4 5\\n4 6\\n5 6 3\\n\", \"6\\n1 2\\n1 3\\n2 4\\n4 5\\n4 6\\n5 3 6\\n\", \"8\\n4 3... | {
"index": "code_r1_train_2635"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2636"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nsandwich 80 120\\napple 50 200\\ncheese 20 40\\ncake 100 100\\n9\\nonigiri 66 300\\nonigiri 80 300\\nanpan 70 85\\nmikan 50 80\\nkenyuma 100 500\\nchocolaud 50 350\\ncookie 30 80\\npusni 40 400\\ncracker 40 275\\n0\", \"4\\ntandwich 80 120\\napple 50 200\\nch... | {
"index": "code_r1_train_2637"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"4\"]}"
} | {
"index": "code_r1_train_2638"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 88\\n1\\n\", \"1 89\\n1\\n\", \"1 88\\n1\\n\", \"1 89\\n1\\n\", \"1 73\\n1\\n\", \"2 6\\n5 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"88\\n\", \"89\\n\", \"88\\n\", \"89\\n\", \"73\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2639"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 31\", \"3\\n4 7 52\", \"3\\n7 7 52\", \"3\\n7 7 25\", \"3\\n7 13 5\", \"3\\n7 13 8\", \"3\\n6 12 31\", \"3\\n4 12 31\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2640"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n5 1\\n1 2\\n\", \"2\\n5 1\\n1 2\\n\", \"3\\n1 2 3\\n1 3\\n\", \"3\\n1 4 3\\n1 3\\n\", \"3\\n1 2 3\\n1 3\\n\", \"2\\n909 8422\\n1 2\\n\", \"5\\n1 2 3 4 1\\n1 3\\n\", \"2\\n5072 8422\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\", \"3\\n\", \"3\\n\", \"3\", \"2\\n\... | {
"index": "code_r1_train_2641"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nRRS\", \"1\\nSRR\", \"1\\nSSR\", \"1\\nRSR\", \"1\\nRRR\", \"1\\nRSS\", \"1\\nSRS\", \"2\\nSRRRSSSSR\"], \"outputs\": [\"1 0 2 \", \"2 1 0 \", \"1 2 0 \", \"0 2 1 \", \"0 1 2 \", \"1 2 0 \", \"2 0 1\", \"4 6 5 1 3 2 7 0 8 \"]}"
} | {
"index": "code_r1_train_2642"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAA\\nAB\\nBB\\nBA\\nAZ\\n\", \"5 2\\nAA\\nAB\\nBB\\nBA\\nZA\\n\", \"5 2\\nAA\\nAB\\nCB\\nBA\\nAZ\\n\", \"2 2\\nAA\\nAB\\nCB\\nBA\\nAZ\\n\", \"2 2\\nAA\\nBC\\nCB\\nAB\\nAZ\\n\", \"1 2\\nAA\\nAC\\nBC\\nBA\\nZA\\n\", \"5 2\\nAA\\nAB\\nBC\\nBA\\nAZ\\n\", \"3 2\... | {
"index": "code_r1_train_2643"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n<\\n\", \"1\\n>\\n\", \"1\\n>\\n\", \"1\\n<\\n\", \"2\\n<>\\n\", \"2\\n><\\n\", \"2\\n>>\\n\", \"2\\n<<\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"2\\n\", \"0\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2644"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n2\\n\", \"5\\n2\\n\", \"1\\n1\\n\", \"11\\n1\\n\", \"11\\n1\\n\", \"7\\n777\\n\", \"25\\n52\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2645"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nb+a+a\", \"5\\nb+b+b\", \"5\\na+a+b\", \"5\\na+b+b\", \"5\\nb+b+a\", \"5\\nc+a+a\", \"5\\nb+a+b\", \"5\\nc+a+b\"], \"outputs\": [\"5\\n\", \"3\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2646"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"1\\n2\\n0 0\\n\", \"1\\n2\\n0 -1\\n\", \"1\\n2\\n-1 0\\n\", \"1\\n2\\n-2 0\\n\", \"1\\n2\\n-2 1\\n\", \"1\\n2\\n-1 -1\\n\", \"1\\n2\\n-2 -1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\... | {
"index": "code_r1_train_2647"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"x\\n\", \"y\\n\", \"x\\n\", \"xxx\\n\", \"xxx\\n\", \"yxx\\n\", \"yxyxy\\n\", \"xxyxx\\n\"], \"outputs\": [\"x\\n\", \"y\\n\", \"x\", \"xxx\\n\", \"xxx\", \"x\\n\", \"y\\n\", \"xxx\\n\"]}"
} | {
"index": "code_r1_train_2648"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2 1\\n2 1\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 2\\n2 1\\n1 2\\n\", \"10 2\\n8 7\\n4 5\\n\", \"10 2\\n8 7\\n10 5\\n\", \"10 2\\n8 7\\n10 5\\n\", \"10 2\\n4 7\\n10 5\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1\\n\", \"2\\n2 1 \\n\", \"2\\n2 1\\n\", \... | {
"index": "code_r1_train_2649"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naa\\nc\\ndef\\n\", \"3\\nba\\nb\\nfde\\n\", \"3\\naa\\nc\\nedf\\n\", \"3\\naa\\nb\\nedf\\n\", \"3\\naa\\nb\\nfde\\n\", \"3\\nba\\nc\\nfde\\n\", \"3\\nab\\nc\\ndef\\n\", \"3\\nab\\nacb\\nba\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\",... | {
"index": "code_r1_train_2650"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n25\\n2\\n4\\n429\\n1\\n56\\n0\", \"2\\n3\\n25\\n2\\n4\\n429\\n1\\n94\\n0\", \"2\\n3\\n25\\n2\\n4\\n429\\n0\\n94\\n0\", \"2\\n3\\n17\\n70\\n4\\n429\\n1\\n56\\n0\", \"2\\n3\\n25\\n70\\n4\\n429\\n1\\n56\\n0\", \"2\\n3\\n17\\n70\\n4\\n429\\n1\\n85\\n0\", \"2\... | {
"index": "code_r1_train_2651"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 4\", \"2 3\", \"4 3\", \"7 3\", \"7 6\", \"7 4\", \"7 5\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_2652"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n529469903\\n1\\n3\\n1\\n3\\n\", \"1\\n529469903\\n1\\n3\\n1\\n3\\n\", \"1\\n529469903\\n1\\n1\\n1\\n3\\n\", \"1\\n529469903\\n1\\n1\\n1\\n1\\n\", \"2\\n1000000000 1\\n1 1\\n1 2\\n2\\n2 1\\n\", \"2\\n1000000000 1\\n1 1\\n1 3\\n2\\n2 1\\n\", \"2\\n1000000000 1\... | {
"index": "code_r1_train_2653"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n280072941 465\\n\", \"1\\n130515011 465\\n\", \"1\\n223140887 465\\n\", \"1\\n191863982 465\\n\", \"1\\n413247631 2557\\n\", \"1\\n293098199 2557\\n\", \"1\\n280072941 2557\\n\", \"1\\n280072941 2910\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\... | {
"index": "code_r1_train_2654"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"9\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"7\\n\"], \"outputs\": [\"0\\n\", \"10\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"10\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_2655"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1000000000\\n2 999999999\\n3 99999998\\n4 9999997\\n5 999996\\n6 99995\\n7 9994\\n8 993\\n9 92\\n10 1\\n\", \"10\\n1 1000000000\\n2 999999999\\n3 99999998\\n4 9999997\\n5 999996\\n6 99995\\n7 9994\\n8 993\\n9 92\\n10 1\\n\", \"10\\n1 1000000000\\n2 9999999... | {
"index": "code_r1_train_2656"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n\", \"1\\n\", \"2\\n\", \"8\\n\", \"5\\n\", \"7\\n\", \"3\\n\", \"6\\n\"], \"outputs\": [\"4\", \"0\", \"2\", \"16\", \"0\", \"0\", \"0\", \"8\"]}"
} | {
"index": "code_r1_train_2657"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2\\n1 1\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 1\\n\"], \"outputs\": [\"1\\n1 \", \"1\\n1 \", \"1\\n2 \", \"1\\n2 \", \"2\\n1 1 \", \"2\\n1 2 \", \"2\\n1 2 \", \"3\\n1 1 1 \"]}"
} | {
"index": "code_r1_train_2658"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 98 99\\n\", \"1\\n1 98 99\\n\", \"1\\n1 98 186\\n\", \"1\\n2 98 186\\n\", \"1\\n2 98 239\\n\", \"1\\n1 98 239\\n\", \"1\\n1 98 108\\n\", \"1\\n2465 1 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\... | {
"index": "code_r1_train_2659"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"7 48 1110\", \"3 29 1101\", \"5 48 1110\", \"3 22 1101\", \"5 70 1110\", \"3 35 1101\", \"11 6 1111\"], \"outputs\": [\"9\", \"404785941\\n\", \"582975580\\n\", \"220543434\\n\", \"899722747\\n\", \"284885353\\n\", \"133144039\\n\", \"533072736\\n\"]}"... | {
"index": "code_r1_train_2660"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"3 1\\n1 2 2\\n\", \"3 1\\n1 3 2\\n\", \"2 1\\n1 2 1\\n\", \"3 1\\n1 3 2\\n\", \"3 1\\n1 2 2\\n\", \"3 1\\n1 3 1\\n\", \"3 1\\n1 3 4\\n\"], \"outputs\": [\"1 2 \\n\", \"-1\\n\", \"1 1 2 \\n\", \"1 2\\n\", \"1 1 2\\n\", \"-1\\n\", \"1 0 2 \", \"... | {
"index": "code_r1_train_2661"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\naec\\nbc\\na?c\\n\", \"3 1\\nabc\\naec\\nbc\\nac?\\n\", \"3 1\\nacb\\naec\\nbb\\nac?\\n\", \"3 1\\nabc\\naec\\nbb\\nac?\\n\", \"1 1\\nacb\\naec\\nbb\\nac?\\n\", \"1 1\\nacb\\naec\\nbc\\nac?\\n\", \"1 1\\nacb\\naec\\nbc\\na?c\\n\", \"3 1\\nabc\\naec\\n... | {
"index": "code_r1_train_2662"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4 5 7 7 7\\nR R R R R R G G G\\n1 2 2 3 4 4 4 4 5\\nR R R R R R R R R\\n1 2 3 4 4 4 5 5 5\\nR R B R R R R R R\\n1 1 1 3 4 5 6 6 6\\nR R B G G G R R R\\n2 2 2 3 3 3 1 1 2\\nR G B R G B R G B\", \"5\\n1 2 3 3 4 5 7 7 7\\nR R R R R R G G G\\n1 2 2 3 4 4 ... | {
"index": "code_r1_train_2663"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"13\\n\", \"48\\n\", \"10\\n\", \"33\\n\", \"25\\n\", \"10\\n\", \"33\\n\", \"25\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2664"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3\\n1\\n3 3 3\\n2\", \"2\\n6 3 3\\n1\\n3 3 3\\n2\", \"2\\n0 0 3\\n2\\n3 3 3\\n2\", \"2\\n6 0 3\\n2\\n3 3 3\\n2\", \"2\\n1 0 3\\n1\\n3 3 0\\n2\", \"2\\n0 0 3\\n2\\n3 3 4\\n0\", \"2\\n6 0 3\\n3\\n3 3 3\\n2\", \"2\\n0 0 3\\n2\\n3 4 0\\n2\"], \"outputs\": [\"... | {
"index": "code_r1_train_2665"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"1 5\\n\", \"3 6\\n\", \"2 5\\n\", \"2 7\\n\", \"4 4\\n\", \"5 7\\n\", \"2 2\\n\"], \"outputs\": [\"6\\n\", \"2\\n\", \"9\\n\", \"5\\n\", \"7\\n\", \"8\\n\", \"17\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2666"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n122520 -643096130 7376743\\n\", \"1\\n27154 -643096130 65152507\\n\", \"1\\n200000 -926527577 99824348\\n\", \"1\\n167208 -356488738 91840074\\n\", \"1\\n45288 -643096130 139364119\\n\", \"1\\n167208 -356488738 34429628\\n\", \"1\\n122520 -643096130 24457044\... | {
"index": "code_r1_train_2667"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n1 0 0 2\\n\", \"4\\n0 0 0 1\\n\", \"4\\n1 0 0 1\\n\", \"4\\n1 0 1 2\\n\", \"5\\n4 1 4 7 6\\n\", \"5\\n2 1 4 7 6\\n\", \"5\\n2 1 4 4 6\\n\", \"5\\n2 1 4 1 6\\n\"], \"outputs\": [\"1\\n1\\n2\\n\", \"0\\n0\\n0\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n3\\n\", \"4\\n5\\n... | {
"index": "code_r1_train_2668"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1 1\\n\", \"2\\n2 1\\n2 2\\n\", \"2\\n2 1\\n2 2\\n\", \"2\\n4 1\\n2 2\\n\", \"3\\n3 1\\n3 2\\n3 3\\n\", \"3\\n3 1\\n3 2\\n3 3\\n\", \"3\\n5 1\\n3 2\\n3 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n1\\n\", \"0\\n1\\n\", \"0\\n1\\n\", \"0\\n... | {
"index": "code_r1_train_2669"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\nabaaba\\n6 3\\nabaaba\\n36 9\\nhippopotomonstrosesquippedaliophobia\\n21 7\\nwudixiaoxingxingheclp\\n\", \"4\\n6 2\\nabaaba\\n6 3\\nabaaba\\n36 9\\nhippopotononstrosesquippedaliophobia\\n21 7\\nwudixiaoxingxingheclp\\n\", \"4\\n6 2\\nabaaba\\n6 3\\nabaa... | {
"index": "code_r1_train_2670"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 1 3 4\", \"1\\n4\\n5 1 3 8\", \"1\\n4\\n4 0 3 8\", \"1\\n4\\n7 1 3 0\", \"1\\n4\\n7 0 3 0\", \"1\\n4\\n5 1 6 8\", \"1\\n4\\n1 1 3 8\", \"1\\n4\\n5 2 9 8\"], \"outputs\": [\"4\", \"4\\n\", \"3\\n\", \"1\\n\", \"0\\n\", \"6\\n\", \"2\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_2671"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4 5 6\\n2\\n5 7 9 6\\n5\\n1 3 3 4 5 90 100 101 2 3\\n\", \"3\\n3\\n1 2 3 5 9 6\\n2\\n5 7 9 6\\n5\\n1 3 3 2 5 90 000 101 2 3\\n\", \"3\\n3\\n1 2 3 5 9 6\\n2\\n5 7 9 6\\n5\\n1 3 3 2 5 90 000 100 2 3\\n\", \"3\\n3\\n1 2 3 4 5 6\\n2\\n5 7 9 6\\n5\\n1 3 ... | {
"index": "code_r1_train_2672"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 1\\n1 2 1 3\\n1 3\\n2 4\\n3 3\", \"4 2\\n1 2 1 3\\n1 3\\n2 4\\n3 3\", \"4 3\\n1 1 1 3\\n1 3\\n2 4\\n3 3\", \"4 1\\n0 2 1 3\\n1 3\\n2 4\\n3 3\", \"4 2\\n1 2 1 3\\n1 3\\n3 4\\n3 3\", \"4 2\\n1 1 1 3\\n1 3\\n3 4\\n3 3\", \"4 2\\n1 1 1 1\\n1 3\\n3 4\\n3 5\", \"4 3\... | {
"index": "code_r1_train_2673"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n239\\n\", \"1\\n2317839669\\n\", \"1\\n123456780079\\n\", \"1\\n8973589164975\\n\", \"1\\n9876543210000\\n\", \"1\\n1023456790441\\n\", \"1\\n1000000002897001\\n\", \"1\\n99999999999999999\\n\"], \"outputs\": [\"240\\n\", \"2317840224\\n\", \"123456780720\\n\... | {
"index": "code_r1_train_2674"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n3 1\\n1 2 5 5\", \"5 1\\n4 1\\n1 2 5 5\", \"9 1\\n3 1\\n1 2 5 3\", \"5 1\\n4 1\\n1 2 5 1\", \"9 2\\n3 1\\n1 2 5 3\", \"5 1\\n4 1\\n1 2 5 0\", \"9 2\\n2 1\\n1 2 5 3\", \"5 1\\n4 1\\n1 0 5 0\"], \"outputs\": [\"hiroshi\\n\", \"hiroshi\\n\", \"hiroshi\\n\", \"... | {
"index": "code_r1_train_2675"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n1 7\\n\", \"1 7\\n5 5\\n\", \"1 2\\n1 1\\n\", \"1 7\\n5 5\\n\", \"1 2\\n1 1\\n\", \"1 9\\n5 5\\n\", \"1 3\\n1 1\\n\", \"1 7\\n1 7\\n\"], \"outputs\": [\"0\\n\\n\", \"6\\n1 2 3 4 6 7 \\n\", \"1\\n2 \\n\", \"6\\n1 2 3 4 6 7\\n\", \"1\\n2\\n\", \"8\\n1 2 3 4 6... | {
"index": "code_r1_train_2676"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"4 1\\n1 2 2 1\\n\", \"4 2\\n1 2 3 1\\n\", \"4 2\\n1 2 3 2\\n\", \"4 2\\n1 2 3 2\\n\", \"4 3\\n1 1 1 1\\n\", \"4 2\\n2 2 3 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2677"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"g\\n\", \"@\\n\", \"h\\n\", \"?\\n\", \"f\\n\", \"w@\\n\", \"jj\\n\", \"@@\\n\"], \"outputs\": [\"No solution\\n\", \"No solution\\n\", \"No solution\\n\", \"No solution\\n\", \"No solution\\n\", \"No solution\\n\", \"No solution\\n\", \"No solution\\n\"]}"
} | {
"index": "code_r1_train_2678"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n1 62\\n\", \"2 2\\n1 71\\n\", \"2 2\\n44 44\\n\", \"2 2\\n47 47\\n\", \"2 2\\n88 44\\n\", \"2 2\\n47 71\\n\", \"2 2\\n33 44\\n\", \"2 2\\n54 71\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2679"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n0 1\\n0 2\\n0 3\\n2 2\\n1 1\\n1 1\\n1 3\\n0 4\\n3 1 4\", \"10\\n0 1\\n0 1\\n0 2\\n0 0\\n2 2\\n1 1\\n1 2\\n1 3\\n0 4\\n3 1 4\", \"10\\n0 1\\n0 1\\n0 2\\n0 3\\n2 2\\n1 1\\n1 1\\n1 3\\n1 4\\n3 1 4\", \"10\\n0 1\\n0 1\\n0 2\\n0 5\\n2 2\\n1 1\\n1 1\\n1 3\\n... | {
"index": "code_r1_train_2680"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n2 2\\n\", \"9 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"2 1\\n2 2\\n\", \"9 1\\n1 1\\n\", \"2 1\\n2 3\\n\", \"4 2\\n1 4\\n2 4\\n\"], \"outputs\": [\"1\\n0\\n\", \"1\\n0 0\\n\", \"1\\n0 0 0 0 0 0 0 0 0\\n\", \"1\\n0 \", \"1\\n0 0 \", \"1\\n0 0 0 0 ... | {
"index": "code_r1_train_2681"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"x^1-2\", \"x^1-1\", \"x^1-3\", \"x^1-4\", \"x^2-4\", \"x^1-5\", \"x^1-6\", \"x^1+6\"], \"outputs\": [\"(x-2)\\n\", \"(x-1)\\n\", \"(x-3)\\n\", \"(x-4)\\n\", \"(x-2)(x+2)\\n\", \"(x-5)\\n\", \"(x-6)\\n\", \"(x+6)\\n\"]}"
} | {
"index": "code_r1_train_2682"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 1\\n0\\n\", \"3 2\\n10 18 30\", \"3 2\\n10 20 43\", \"3 2\\n10 22 30\", \"3 2\\n10 11 30\", \"3 3\\n12 20 60\", \"3 3\\n5 26 149\"], \"outputs\": [\"0\", \"0\\n\", \"18\\n\", \"20\\n\", \"22\\n\", \"11\\n\", \"60\\n\", \"149\\n\"]}"
} | {
"index": "code_r1_train_2683"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2012-03-16 23:59:59:Disk size\\n2012-03-17 00:00:00: Network\\n2012-03-17 00:00:01:Cant write varlog\\n\", \"2 2\\n2012-03-16 23:59:59:Disk size\\n2012-03-17 00:00:00: Network\\n2012-03-17 00:00:01:Cant write varlog\\n\", \"1 3\\n2012-03-16 23:59:59:Disk si... | {
"index": "code_r1_train_2684"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 2\\n\", \"2 1 1\\n0 2\\n\", \"5 1 1\\n1 0 0 0 4\\n\", \"5 1 1\\n1 1 0 3 0\\n\", \"5 1 1\\n4 0 0 1 0\\n\", \"5 1 1\\n4 0 0 1 0\\n\", \"5 1 1\\n1 1 0 3 0\\n\", \"5 1 1\\n1 1 0 3 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\... | {
"index": "code_r1_train_2685"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"90\", \"111\", \"011\", \"010\", \"001\", \"101\", \"000\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2686"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n1\\n0\\n\", \"2\\n0 0\\n1 2\\n\", \"2\\n0 0\\n2 1\\n\", \"2\\n0 1\\n0 2\\n\", \"2\\n0 2\\n0 1\\n\", \"2\\n1 0\\n0 2\\n\", \"3\\n0 0 0\\n2 3 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"4\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"6\\n\"... | {
"index": "code_r1_train_2687"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 11\\n\", \"4 3\\n3 4\\n2 8\\n2 9\\n3 1\\n\", \"5 3\\n1 9\\n1 0\\n2 6\\n2 5\\n3 1\", \"5 3\\n1 9\\n1 0\\n2 6\\n2 5\\n3 2\", \"5 4\\n1 9\\n1 7\\n2 6\\n2 5\\n3 1\", \"5 3\\n1 3\\n1 7\\n2 6\\n2 5\\n3 1\", \"5 2\\n1 9\\n1 0\\n2 6\\n2 5\\n3 2\", \"5 4\\n2 9\\n1... | {
"index": "code_r1_train_2688"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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...\\n.#.\\n...\\n5 5\\n..#..\\n.....\\n#....\\n.....\\n.....\\n3 8\\n..#.....\\n........\\n.....#..\\n3 5\\n..#..\\n-....\\n..#..\\n4 4\\n....\\n....\\n..##\\n..#.\\n0 0\", \"3 3\\n...\\n.#.\\n...\\n5 5\\n..#..\\n.....\\n#....\\n../..\\n.....\\n3 8\\n..#..... | {
"index": "code_r1_train_2689"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n1 2 3 4\\n1 2\\n2 3\\n2 4\\n\", \"4\\n1 2 3 4\\n1 2\\n2 3\\n1 4\\n\", \"4\\n2 2 3 4\\n1 2\\n2 3\\n2 4\\n\", \"4\\n1 2 3 4\\n1 2\\n1 3\\n1 4\\n\", \"4\\n3 2 3 4\\n1 2\\n2 3\\n2 4\\n\", \"4\\n1 2 3 4\\n1 2\\n1 3\\n2 4\\n\", \"4\\n1 2 1 4\\n1 2\\n1 3\\n2 4\\n\",... | {
"index": "code_r1_train_2690"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n\", \"1\\n5\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n10\\n\", \"1\\n10\\n\", \"2\\n1 2\\n\", \"2\\n2 3\\n\"], \"outputs\": [\"3\\n\", \"5\\n\", \"2\\n\", \"1\\n\", \"10\\n\", \"10\\n\", \"6\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_2691"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n1\\n\", \"1 5\\n1\\n\", \"1 3\\n4\\n\", \"1 6\\n1\\n\", \"1 3\\n4\\n\", \"1 1\\n1\\n\", \"1 5\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2692"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naz\\n\", \"2\\nza\\n\", \"2\\nya\\n\", \"2\\nyb\\n\", \"2\\nby\\n\", \"2\\naz\\n\", \"3\\nabc\\n\", \"3\\nabc\\n\"], \"outputs\": [\"3\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2693"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB\\n\", \"R\\nB\\n\", \"S\\nB\\n\", \"S\\nC\\n\", \"S\\nD\\n\", \"T\\nD\\n\", \"U\\nD\\n\", \"R\\nD\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2694"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"9\\n\", \"56\\n\", \"1\\n\", \"2\\n\", \"395\\n\", \"3084\\n\", \"26621\\n\", \"253280\\n\"]}"
} | {
"index": "code_r1_train_2695"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3\\n\", \"1\\n100000\\n\", \"5\\n3 3 4 5 4\\n\", \"5\\n5 3 5 3 4\\n\", \"5\\n4 2 3 2 5\\n\", \"5\\n3 3 8 5 4\\n\", \"5\\n5 3 5 5 4\\n\"], \"outputs\": [\"2\\n\", \"4\\n\", \"100000\\n\", \"11\\n\", \"16\\n\", \"9\\n\", \"19\\n\", \"18\\n\"... | {
"index": "code_r1_train_2696"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 0\\n\", \"7 0\\n\", \"25 0\\n\", \"4 1\\n3\", \"6 1\\n1\", \"4 1\\n2\", \"5 1\\n1\"], \"outputs\": [\"1\\n\", \"2\\n\", \"21\\n\", \"121393\\n\", \"2\\n\", \"5\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2697"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n1\\n1\\n\", \"1 3\\n10000\\n1 4325 10000\\n\", \"1 3\\n10000\\n1 4325 10000\\n\", \"1 3\\n10001\\n1 4325 10000\\n\", \"1 3\\n11101\\n1 4325 10100\\n\", \"1 10\\n10\\n2 2 3 4 5 6 7 8 9 9\\n\", \"3 6\\n10 25 6\\n1 6 12 23 26 40\\n\"], \"ou... | {
"index": "code_r1_train_2698"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n\", \"7\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"8\\n\", \"2\\n\", \"7\\n\"], \"outputs\": [\"20\\n0 2 1 4 3\\n\", \"56\\n7 6 5 4 3 2 1 0\\n\", \"2\\n1 0\\n\", \"6\\n0 2 1\\n\", \"12\\n3 2 1 0\\n\", \"72\\n0 6 5 4 3 2 1 8 7\\n\", \"6\\n0 2 1 \", \"56\\n7 6 5 4 3... | {
"index": "code_r1_train_2699"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.