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\": [\"2\\n5 1\\n\", \"2\\n1 5\\n\", \"2\\n8 1\\n\", \"2\\n1 8\\n\", \"2\\n9 1\\n\", \"2\\n1 9\\n\", \"2\\n1 7\\n\", \"2\\n9 3\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"4\\n\", \"4\\n\", \"5\\n\", \"5\\n\", \"4\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_3700"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"1 6\", \"3 2\", \"4 5\", \"1 2\", \"3 10\", \"3 14\", \"2 14\"], \"outputs\": [\"3\\n\", \"6\\n\", \"2\\n\", \"5\\n\", \"2\", \"10\\n\", \"14\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_3701"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nzz\\n\", \"2\\nok\\n\", \"2\\nas\\n\", \"2\\nab\\n\", \"2\\nae\\n\", \"2\\ncq\\n\", \"2\\naz\\n\", \"2\\ncb\\n\"], \"outputs\": [\"z\\n\", \"k\\n\", \"a\\n\", \"a\\n\", \"a\\n\", \"c\\n\", \"a\\n\", \"b\\n\"]}"
} | {
"index": "code_r1_train_3702"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\\n1\\n\", \"1 2\\n2\\n\", \"3 2\\n5 2 7\", \"3 2\\n4 1 7\", \"3 2\\n4 2 7\", \"3 2\\n5 2 6\", \"3 1\\n5 2 6\", \"3 2\\n4 1 5\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"6\\n\", \"3\"]}"
} | {
"index": "code_r1_train_3703"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n2\\n3\\n5\", \"3\\n2\\n3\\n6\", \"3\\n2\\n3\\n3\", \"3\\n3\\n3\\n6\", \"3\\n2\\n3\\n2\", \"3\\n4\\n3\\n2\", \"3\\n4\\n5\\n2\", \"3\\n4\\n5\\n4\"], \"outputs\": [\"12\\n24\\n240\", \"12\\n24\\n732\\n\", \"12\\n24\\n24\\n\", \"24\\n24\\n732\\n\", \"12\\n24\\n12... | {
"index": "code_r1_train_3704"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0010\\n0100\\n\", \"2 2\\n0010\\n0100\\n\", \"3 2\\n0000\\n0100\\n0100\\n\", \"3 2\\n0000\\n0100\\n0100\\n\", \"3 2\\n0010\\n0100\\n0100\\n\", \"3 3\\n00010\\n00000\\n00010\\n\", \"3 3\\n00010\\n00000\\n00010\\n\", \"3 3\\n00010\\n00000\\n00110\\n\"], \"out... | {
"index": "code_r1_train_3705"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 2\\n1\\n1\\n\", \"1 1\\n2 1 2\\n1\\n1\\n\", \"1 1\\n2 2 2\\n1\\n1\\n\", \"1 1\\n2 1 0\\n1\\n1\\n\", \"1 1\\n2 4 2\\n1\\n1\\n\", \"1 1\\n2 4 1\\n1\\n1\\n\", \"1 1\\n2 7 1\\n1\\n1\\n\", \"1 1\\n2 2 1\\n1\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n... | {
"index": "code_r1_train_3706"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1 100\\n\", \"1 1\\n1\\n1\\n1\\n2 1 100\\n\", \"1 1\\n1\\n1\\n1\\n0 1 100\\n\", \"1 1\\n1\\n1\\n1\\n1 1 100\\n\", \"1 1\\n1\\n1\\n1\\n2 1 100\\n\", \"4 1\\n7 6 1 1\\n3\\n3\\n2 1 9\\n2 1 7\\n2 1 7\\n\", \"4 1\\n7 6 1 1\\n3\\n3\\n2 1 9\\n2 1 10\... | {
"index": "code_r1_train_3707"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5469 4\\n\", \"1\\n8 5469 1\\n\", \"1\\n7 5469 1\\n\", \"1\\n8 2465 4\\n\", \"1\\n8 5469 2\\n\", \"1\\n9 5469 1\\n\", \"1\\n8 2661 4\\n\", \"1\\n9 5469 2\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \... | {
"index": "code_r1_train_3708"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n42\\n17\\n7378\\n0\", \"100\\n71\\n33\\n6\\n6296\\n0\", \"100\\n5\\n84\\n17\\n7378\\n0\", \"100\\n71\\n33\\n4\\n6296\\n0\", \"100\\n8\\n84\\n17\\n7378\\n0\", \"100\\n59\\n33\\n9\\n2245\\n0\", \"100\\n47\\n33\\n4\\n6296\\n0\", \"100\\n71\\n1\\n7\\n71981\... | {
"index": "code_r1_train_3709"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\", \"0\\n5\", \"0\\n3\", \"0\\n7\", \"0\\n63\", \"0\\n56\", \"0\\n15\", \"0\\n54\"], \"outputs\": [\"2\\n\", \"5\\n\", \"3\\n\", \"7\\n\", \"3\\n7\\n\", \"2\\n7\\n\", \"3\\n5\\n\", \"2\\n3\\n\"]}"
} | {
"index": "code_r1_train_3710"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"44\", \"333\", \"446\", \"199\", \"110\", \"100\", \"000\", \"377\"], \"outputs\": [\"Bad\\n\", \"Bad\\n\", \"Bad\\n\", \"Bad\\n\", \"Bad\\n\", \"Bad\\n\", \"Bad\\n\", \"Bad\\n\"]}"
} | {
"index": "code_r1_train_3711"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100\\n1 1 100\\n2 1 50\", \"4 8\\n4 3 2\\n2 1 1\\n1 2 4\\n2 2 2\", \"4 8\\n4 3 2\\n2 1 1\\n1 2 1\\n3 2 2\", \"4 8\\n4 3 2\\n0 1 1\\n1 2 4\\n2 3 2\", \"4 8\\n4 3 2\\n2 2 1\\n1 2 4\\n3 2 3\", \"4 8\\n6 3 2\\n2 3 1\\n1 2 4\\n3 2 3\", \"4 8\\n8 3 2\\n2 1 1\\n1 2 4\... | {
"index": "code_r1_train_3712"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4\\n9 9\\n5 7\\n12 29\\n83 591\\n1 1000000\\n\", \"6\\n1 2\\n9 9\\n5 7\\n12 29\\n83 591\\n1 1000000\\n\", \"6\\n2 2\\n9 9\\n5 7\\n12 29\\n83 591\\n1 1000000\\n\", \"6\\n2 2\\n9 9\\n3 7\\n12 29\\n83 591\\n1 1000000\\n\", \"6\\n2 2\\n9 9\\n1 7\\n12 29\\n83 59... | {
"index": "code_r1_train_3713"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 10\\n\", \"2 2\\n5 10\\n\", \"4 2\\n1 2 3 4\\n\", \"4 3\\n1 2 3 4\\n\", \"4 2\\n1 3 3 4\\n\", \"4 2\\n1 2 3 4\\n\", \"4 3\\n1 2 3 4\\n\", \"5 3\\n5 3 4 2 6\\n\"], \"outputs\": [\"5\", \"5\\n\", \"1\", \"2\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\"]}"
} | {
"index": "code_r1_train_3714"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\na\\nb\\n\", \"1\\na\\nb\\n\", \"5\\nzcabd\\ndbacz\\n\", \"5\\nahmad\\nyogaa\\n\", \"5\\nahmad\\nyogaa\\n\", \"5\\nahmad\\nyngaa\\n\", \"5\\nzcabd\\nebacz\\n\", \"5\\nzcabd\\neaacz\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"3\\n\", \"3\\n\"... | {
"index": "code_r1_train_3715"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n1 3\\n\", \"2 1\\n2 3\\n\", \"2 0\\n2 3\\n\", \"2 0\\n2 6\\n\", \"2 0\\n2 12\\n\", \"3 7\\n1 3 4\\n\"], \"outputs\": [\"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"1\\n1\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"2\\n2 5 \... | {
"index": "code_r1_train_3716"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"2\\n3\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n4\\n\", \"1\\n1\\n4\\n\", \"1\\n2\\n3\\n\", \"2\\n3\\n8\\n\", \"1\\n2\\n8\\n\"], \"outputs\": [\"7\\n\", \"0\\n\", \"0\\n\", \"7\\n\", \"0\\n\", \"0\\n\", \"7\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_3717"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n2 2\\n10\\n11\\n3 3\\n011\\n101\\n110\\n4 4\\n1111\\n0110\\n0110\\n1111\\n5 5\\n01011\\n11001\\n00010\\n11011\\n10000\\n2 3\\n011\\n101\\n\", \"5\\n2 2\\n10\\n11\\n3 3\\n011\\n101\\n110\\n4 4\\n1111\\n0110\\n0110\\n1111\\n5 5\\n01011\\n11001\\n00010\\n01011\\... | {
"index": "code_r1_train_3718"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0 1 2\\n2 0 0\", \"0 0 2\\n4 0 0\", \"0 1 2\\n1 0 0\", \"0 1 2\\n12 0 0\", \"0 -1 2\\n2 0 0\", \"7 0 1\\n-1 0 0\", \"-9 0 3\\n58 0 1\", \"0 1 -7\\n96 0 0\"], \"outputs\": [\"2\\n\", \"4\\n\", \"1\\n\", \"12\\n\", \"3\\n\", \"9\\n\", \"67\\n\", \"96\\n\"]}"
} | {
"index": "code_r1_train_3719"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n1 1\\n\", \"2 2\\n1 2\\n\", \"2 1\\n1 1\\n\", \"2 2\\n1 2\\n\", \"2 2\\n1 1\\n\", \"2 2\\n2 2\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"2\\n\", \"1\", \"2\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3720"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 10\\n10\\nR\\n\", \"1 1 10\\n10\\nR\\n\", \"1 1 20\\n10\\nR\\n\", \"2 1 15\\n5 6\\nRG\\n\", \"2 1 10\\n5 5\\nRG\\n\", \"2 1 10\\n5 6\\nRR\\n\", \"2 1 10\\n5 5\\nRG\\n\", \"2 1 10\\n5 6\\nRR\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\... | {
"index": "code_r1_train_3721"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n18738\\n0 1 1 0 0 0 1\\n\", \"1\\n603269\\n0 0 1 0 0 0 1\\n\", \"1\\n459971\\n0 0 1 0 0 0 1\\n\", \"1\\n459971\\n0 1 1 0 0 0 1\\n\", \"1\\n459971\\n1 1 1 0 0 0 1\\n\", \"1\\n4034438\\n1 0 1 0 0 1 1\\n\", \"1\\n4034438\\n1 0 1 0 0 1 0\\n\", \"1\\n4034438\\n0 0... | {
"index": "code_r1_train_3722"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 3\\n3 4\", \"2 2\\n6 4\\n4 4\", \"2 2\\n6 4\\n5 4\", \"0 2\\n8 3\\n3 4\", \"2 2\\n6 1\\n5 4\", \"0 2\\n8 3\\n3 0\", \"2 2\\n6 2\\n5 4\", \"0 2\\n7 3\\n3 0\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
... | {
"index": "code_r1_train_3723"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\", \"2\\n2 -2\", \"2\\n2 -4\", \"2\\n2 -3\", \"2\\n2 -6\", \"2\\n2 -5\", \"2\\n2 -7\"], \"outputs\": [\"()()\\n\", \"(())\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\"]}"
} | {
"index": "code_r1_train_3724"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\", \"9\", \"8\", \"7\", \"8\\n\", \"7\\n\"], \"outputs\": [\"4\\n\", \"10\\n\", \"7\\n\", \"21\\n\", \"5\", \"18\", \"5\\n\", \"18\\n\"]}"
} | {
"index": "code_r1_train_3725"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1\\n1 0\\n\\n7\\n0 0\\n0 10\\n0 32\\n9 2\\n0 69\\n100 26\\n100 1\\n\\n0\", \"3\\n1 1\\n3 4\\n2 0\\n\\n7\\n0 0\\n10 15\\n0 20\\n9 32\\n0 40\\n110 1\\n100 0\\n\\n0\", \"3\\n1 1\\n3 4\\n2 0\\n\\n7\\n0 0\\n10 15\\n-1 4\\n9 32\\n0 40\\n110 1\\n100 0\\n\\n0... | {
"index": "code_r1_train_3726"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1 1 1\\n\", \"1 2 2 2 2\\n\", \"2 1 3 3 3\\n\", \"3 1 1 3 3\\n\", \"4 1 5 4 3\\n\", \"8 8 1 1 1\\n\", \"6 6 2 8 2\\n\", \"5 2 2 4 1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"6\\n\", \"9\\n\", \"16\\n\", \"8\\n\", \"12\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_3727"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2\\n2 2\\n\", \"2 1\\n2 2\\n\", \"2 2\\n2 2\\n\", \"2 1\\n2 2\\n\", \"4 2\\n1 2 3 4\\n\", \"4 2\\n1 2 3 4\\n\"], \"outputs\": [\"1\", \"1\", \"2\", \"2\", \"2\", \"2\", \"3\", \"\\n3\"]}"
} | {
"index": "code_r1_train_3728"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"4\\n2 6 7 8\\n\", \"4\\n3 6 7 8\\n\", \"4\\n3 6 9 8\\n\", \"4\\n5 6 9 8\\n\", \"4\\n2 6 9 8\\n\"], \"outputs\": [\"0\\n\", \"0 \", \"1\\n\", \"5 5 6 7\\n\", \"5 6 6 7\\n\", \"5 6 7 8\\n\", \"6 7 7 8\\n\", \"5 6 7 7\\n\"]}... | {
"index": "code_r1_train_3729"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nf\\n\", \"3\\nfox\\n\", \"6\\nicefox\\n\", \"7\\nfirebox\\n\", \"48\\nffoxoxuvgjyzmehmopfohrupffoxoxfofofoxffoxoxejffo\\n\", \"2365\\nooofxfxxffxxxoffofffoxoxfoffxxooxooxoofxfooxxooxofooofxoxfxofxffoxxfxofffofxffxfofofooxofxoxffxofxfoxxxxooffoxfxxoxxxfffxoffo... | {
"index": "code_r1_train_3730"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 7\\n\", \"2 1 1\\n7 3\\n\", \"2 1 1\\n10 2\\n\", \"2 1 1\\n7 13\\n\", \"3 1 2\\n6 5 5\\n\", \"2 1 1\\n10 13\\n\", \"3 2 1\\n4 10 8\\n\", \"3 2 1\\n7 16 0\\n\"], \"outputs\": [\"0\", \"4\\n\", \"8\", \"6\\n\", \"1\", \"3\\n\", \"4\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_3731"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 7 8 2\\n\", \"5\\n2 1 1 1 1\\n\", \"5\\n1 1 1 1 1\\n\", \"5\\n1 1 1 1 1\\n\", \"5\\n2 1 1 1 1\\n\", \"5\\n2 1 1 1 2\\n\", \"5\\n1 5 7 1 2\\n\", \"5\\n1 5 7 2 2\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\... | {
"index": "code_r1_train_3732"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nk\\nk\\n\", \"1\\no\\nk\\n\", \"1\\no\\nk\\n\", \"1\\nk\\nk\\n\", \"1\\no\\nj\\n\", \"1\\nj\\nk\\n\", \"1\\np\\nk\\n\", \"1\\ni\\nk\\n\"], \"outputs\": [\"0\\n\\n\", \"-1\\n\", \"-1\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_3733"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"4 7\\n\", \"7 9\\n\", \"2 1\\n\", \"3 5\\n\", \"3 8\\n\", \"2 1\\n\", \"3 5\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_3734"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8042 1 2\\n\", \"1\\n9353 1 2\\n\", \"1\\n12313 2 2\\n\", \"1\\n12313 1 2\\n\", \"1\\n13806 1 2\\n\", \"1\\n165 82 165\\n\", \"1\\n165 82 173\\n\", \"1\\n165 165 165\\n\"], \"outputs\": [\"-1 1\\n\", \"-1 1\\n\", \"-1 2\\n\", \"-1 1\\n\", \"-1 1\\n\", \"-1 82... | {
"index": "code_r1_train_3735"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"8\\n\", \"6\\n\", \"9\\n\", \"4\\n\", \"3\\n\"], \"outputs\": [\"a\", \"ab\", \"abcdabc\", \"abcdabcd\", \"abcdab\", \"abcdabcda\", \"abcd\", \"abc\"]}"
} | {
"index": "code_r1_train_3736"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\ndcba\\n3 1\\nabc\\n4 3\\naaaa\\n9 3\\nabaabaaaa\\n\", \"4\\n4 4\\nabcd\\n3 1\\nabc\\n4 3\\naaaa\\n9 3\\nabaabaaaa\\n\", \"4\\n4 2\\nabcd\\n3 1\\nabc\\n4 1\\naaaa\\n9 3\\nabaabaaaa\\n\", \"4\\n4 2\\ndcba\\n3 1\\nabc\\n4 3\\naaaa\\n9 3\\nabbabaaaa\\n\", \... | {
"index": "code_r1_train_3737"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n\", \"1 4\\n1\\n\", \"1 3\\n1\\n\", \"1 4\\n2\\n\", \"1 100\\n100\\n\", \"1 100\\n100\\n\"], \"outputs\": [\"0 \", \"0 \\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0 \", \"0 \\n\"]}"
} | {
"index": "code_r1_train_3738"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 6\\n5\\n\", \"1 6\\n6\\n\", \"1 6\\n5\\n\", \"1 47\\n0\\n\", \"1 47\\n0\\n\", \"1 47\\n1\\n\", \"1 47\\n2\\n\", \"2 47\\n1 0\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_3739"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n2\\n\", \"2\\n0 1\\n\", \"2\\n0 5\\n\", \"2\\n0 5\\n\", \"2\\n0 1\\n\", \"3\\n1 1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3740"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n12\\n1\\n\", \"1\\n12\\n1\\n\", \"2\\n1 2\\n2 2\\n\", \"2\\n1 2\\n2 2\\n\", \"2\\n0 2\\n2 2\\n\", \"2\\n0 2\\n1 2\\n\", \"2\\n62 49\\n1 2\\n\", \"2\\n21 28\\n2 1\\n\"], \"outputs\": [\"12\\n\", \"12\", \"2\\n\", \"2\", \"2\\n\", \"2\\n\", \"111\\n\", \"21\\n\... | {
"index": "code_r1_train_3741"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\", \"1 7\", \"2 7\", \"2 9\", \"3 9\", \"4 9\", \"1 4\", \"2 4\"], \"outputs\": [\"709\\n\", \"13\\n\", \"33\\n\", \"88\\n\", \"221\\n\", \"530\\n\", \"3\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_3742"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n((\\n\", \"2\\n))\\n\", \"2\\n)(\\n\", \"2\\n)(\\n\", \"2\\n((\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\", \"1\"]}"
} | {
"index": "code_r1_train_3743"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3213 321\\n2 3213 0\\n\", \"2\\n1 3213 321\\n2 3213 0\\n\", \"2\\n1 3213 321\\n2 6100 0\\n\", \"2\\n1 3213 321\\n2 2396 0\\n\", \"2\\n1 4824 321\\n2 6100 0\\n\", \"2\\n1 4656 321\\n2 2396 0\\n\", \"2\\n1 4824 528\\n2 6100 0\\n\", \"2\\n1 4656 321\\n2 2396 1... | {
"index": "code_r1_train_3744"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\n\", \"0\\nYBCXAZ\", \"2\\nABDXYZ\", \"0\\nYBBXAZ\", \"2\\nZYXDBA\", \"0\\nYABXAZ\", \"2\\nZXXDBA\", \"0\\nZAXBAY\"], \"outputs\": [\"N\\n\", \"YBCXAZ\\n\", \"CDFZAB\\n\", \"YBBXAZ\\n\", \"BAZFDC\\n\", \"YABXAZ\\n\", \"BZZFDC\\n\", \"ZAXBAY\\n\"]}"
} | {
"index": "code_r1_train_3745"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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#define a x*y\\nc/a\\n\", \"1\\n#define x 3/2\\n2*x\\n\", \"1\\n#define a b*c\\na/a*a\\n\", \"1\\n#define sum x+y\\nsum*r\\n\", \"1\\n#define sum x+y\\nr*sum\\n\", \"1\\n#define sum x+y\\nsum+r\\n\", \"1\\n#define sum x/y\\nr-sum\\n\", \"1\\n#define sum x/y\\... | {
"index": "code_r1_train_3746"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 6\\n2 8\", \"3\\n1 0\\n1 7\\n3 9\", \"3\\n1 2\\n1 6\\n2 8\", \"3\\n1 1\\n1 7\\n3 9\", \"3\\n2 0\\n1 3\\n2 4\", \"3\\n2 1\\n1 3\\n2 4\", \"3\\n1 2\\n2 8\\n2 8\", \"3\\n1 2\\n2 8\\n3 8\"], \"outputs\": [\"-8 6\\n\", \"9 0\\n\", \"-8 12\\n\", \"9 7\\n\",... | {
"index": "code_r1_train_3747"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 4\\n\", \"2 2\\n\", \"3 9\\n\", \"4 5\\n\", \"2 7\\n\", \"4 9\\n\", \"3 9\\n\"], \"outputs\": [\"5\\n\", \"-1\\n\", \"-1\\n\", \"7\\n\", \"5\\n\", \"7\\n\", \"7\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_3748"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 100\\np1 54\\n2p 80\\n3p 200\\np4 350\\np5 14\", \"5 100\\np1 54\\n2p 80\\n3p 200\\n4p 350\\np5 14\", \"4 100\\np1 150\\np2 80\\np3 240\\n4p 350\\np5 8\", \"2 100\\np1 54\\n2p 80\\n3p 200\\n4p 350\\np5 14\", \"4 100\\np1 150\\no2 80\\np3 240\\n4p 350\\np5 8\", ... | {
"index": "code_r1_train_3749"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n2\\n4\\n2\\n1\", \"4\\n2\\n4\\n6\\n1\", \"4\\n2\\n4\\n2\\n0\", \"4\\n2\\n4\\n8\\n1\", \"4\\n2\\n4\\n5\\n1\", \"4\\n2\\n4\\n9\\n1\", \"4\\n2\\n4\\n3\\n0\", \"4\\n0\\n4\\n8\\n1\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n... | {
"index": "code_r1_train_3750"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n7\\n\", \"1\\n7\\n\", \"1\\n9\\n\", \"2\\n1 3\\n\", \"2\\n1 2\\n\", \"2\\n4 2\\n\", \"2\\n2 1\\n\", \"2\\n5 1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_3751"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6\\n\", \"8\\n\", \"4\\n\", \"9\\n\", \"3\\n\", \"5\\n\", \"7\\n\", \"1\\n\"], \"outputs\": [\"83\\n\", \"155\\n\", \"35\\n\", \"198\\n\", \"20\\n\", \"56\\n\", \"116\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_3752"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n1\\n\", \"1 1\\n8\\n9\\n\", \"1 1\\n9\\n8\\n\", \"1 1\\n1\\n2\\n\", \"1 1\\n2\\n1\\n\", \"1 1\\n9\\n9\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n1\\n2\\n\"], \"outputs\": [\"19\\n\", \"89\\n\", \"89\\n\", \"12\\n\", \"12\\n\", \"9\\n\", \"1\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_3753"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2\\n\", \"1 1\\n0 1\\n\", \"1 1\\n1 1\\n\", \"1 1\\n-1 1\\n\", \"2 1\\n0 2\\n0 0\\n\", \"2 1\\n0 2\\n-1 0\\n\", \"2 2\\n-3 1\\n-4 -1\\n\", \"3 2\\n0 5\\n-3 2\\n1 8\\n\"], \"outputs\": [\"1\\n2 2\\n\", \"1\\n0 1\\n\", \"1\\n1 1\\n\", \"1\\n-1 1\\n\", \"1\\... | {
"index": "code_r1_train_3754"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2 1\\n\", \"1\\n2 2\\n\", \"2\\n4 2\\n4 1\\n\", \"2\\n3 2\\n3 2\\n\", \"2\\n5 2\\n5 1\\n\", \"2\\n3 1\\n3 2\\n\", \"2\\n2 2\\n4 1\\n\", \"2\\n3 2\\n3 1\\n\"], \"outputs\": [\"1\", \"2\\n\", \"2\", \"2\", \"2\", \"2\", \"4\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3755"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n4\\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n2\\n\", \"1\\n9\\n\", \"1\\n3\\n\"], \"outputs\": [\"0\", \"4\", \"4\", \"0\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3756"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0 0\\n5\", \"0 2\\n31\", \"0 0\\n31\", \"0 0\\n48\", \"0 0\\n32\", \"1 0\\n32\", \"1 0\\n48\", \"0 2\\n55\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_3757"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 2\\n0 1\\n\", \"1 2\\n1 1\\n\", \"1 2\\n2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3758"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n3 5\\n\", \"2 4\\n1 2\\n\", \"2 1\\n2 4\\n\", \"2 2\\n4 5\\n\", \"2 8\\n2 3\\n\", \"2 4\\n2 3\\n\", \"2 5\\n1 3\\n\", \"2 4\\n1 2\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_3759"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"2 4 4\\n\", \"1 1 1\\n\", \"8 7 5\\n\", \"8 7 5\\n\", \"1 1 1\\n\", \"3 4 5\\n\", \"3 4 3\\n\"], \"outputs\": [\"18\\n3 6\\n\", \"16\\n4 4\\n\", \"6\\n1 6\\n\", \"48\\n8 6\\n\", \"48\\n8 6\\n\", \"6\\n1 6\\n\", \"20\\n4 5\\n\", \"18\\n6 3\\n\"]}"
} | {
"index": "code_r1_train_3760"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"3\\n1 4 1\", \"3\\n2 2 3\", \"3\\n1 1 1\", \"3\\n1 4 2\", \"3\\n1 7 1\", \"3\\n1 2 3\", \"3\\n1 2 3\\n\"], \"outputs\": [\"6\\n\", \"10\\n\", \"2\\n\", \"0\\n\", \"14\\n\", \"12\\n\", \"6\", \"6\\n\"]}"
} | {
"index": "code_r1_train_3761"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 8\\n4 5\\n1 5\\n100000 200000\\n\", \"5\\n1 2\\n2 8\\n4 5\\n2 5\\n100000 200000\\n\", \"5\\n1 2\\n2 8\\n4 5\\n4 5\\n100000 200000\\n\", \"5\\n2 2\\n2 8\\n4 5\\n2 5\\n100000 200000\\n\", \"5\\n1 2\\n2 8\\n4 5\\n4 5\\n110000 200000\\n\", \"5\\n2 2\\n2 8... | {
"index": "code_r1_train_3762"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n10 1 1\\n1\\n\", \"1\\n10 1 1\\n1\\n\", \"1\\n10 9 2\\n8 2\\n\", \"1\\n10 9 2\\n8 2\\n\", \"1\\n110 8 1\\n32\\n\", \"1\\n100 32 1\\n32\\n\", \"1\\n100 32 1\\n32\\n\", \"1\\n100 55 1\\n32\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \... | {
"index": "code_r1_train_3763"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n.......\\n.o...*.\\n.......\\n.*...*.\\n.......\\n15 13\\n.......x.......\\n...o...x....*..\\n.......x.......\\n.......x.......\\n.......x.......\\n.-.............\\nxxxxx.....xxxxx\\n...............\\n.......x.......\\n.......x.......\\n.......x.......\\n.... | {
"index": "code_r1_train_3764"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 1 3 4\\nyskwcnt 16\\nakzakr 7\\ntsnukk 12\\nfnmyi 13\\nakzakr\\n4 1 3 5\\nakzakr 7\\nkkunst 12\\nfnmyi 13\\nyskwcnt 16\\nakzakr\\n4 2 2 1\\nakzakr 4\\ntsnukk 6\\nyskwcnt 6\\nfnmyi 12\\nakzakr\\nfnmyi\\n5 2 3 28\\nknmmdk 6\\nskrkyk 14\\ntnemm 14\\nakmhmr 15\\nmk... | {
"index": "code_r1_train_3765"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 10\\nDobkeradops\\n7 3 18 0\\nPaatQata\\n1 0 6 1\\ndop\\n5 9 28 13\\n2 2\\nBydp syStem ahplA\\n7 11 4 0\\nFedrn Infermo\\n243 80 32 80\", \"3 10\\nDobkesadops\\n7 1 18 0\\nPaatQaua\\n1 0 0 1\\ndop\\n8 9 28 13\\n2 3\\nBydp syStem ahplA\\n20 1 4 0\\nEedrn Infeqmo... | {
"index": "code_r1_train_3766"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\", \"7\\n7\", \"7\\n9\", \"7\\n15\", \"7\\n20\", \"7\\n33\", \"7\\n10\", \"7\\n32\"], \"outputs\": [\"3\\n\", \"1\\n\", \"4\", \"9\\n\", \"25\\n\", \"52\\n\", \"6\\n\", \"51\\n\"]}"
} | {
"index": "code_r1_train_3767"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\\n\", \"4\\n\", \"1\\n\", \"8\\n\", \"7\\n\", \"3\\n\", \"2\\n\"], \"outputs\": [\"1 5 2 4 3\", \"1 6 2 5 3 4 \", \"1 4 2 3 \", \"1\", \"1 8 2 7 3 6 4 5\\n\", \"1 7 2 6 3 5 4\\n\", \"1 3 2\", \"1 2 \"]}"
} | {
"index": "code_r1_train_3768"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"7\\n\"], \"outputs\": [\"2\\n1 4 \\n\", \"3\\n1 2 6 \\n\", \"1\\n2 \\n\", \"1\\n1 \\n\", \"2\\n1 2 \\n\", \"2\\n1 3 \\n\", \"3\\n1 2 3 \\n\", \"3\\n1 2 4 \\n\"]}"
} | {
"index": "code_r1_train_3769"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"2\\n1 0\\n\", \"2\\n0 5\\n\", \"2\\n1 1\\n\", \"2\\n1 5\\n\", \"3\\n1 2 3\\n\", \"3\\n1 1 3\\n\", \"3\\n0 1 9\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"4\\n\", \"0\\n\", \"4\", \"2\\n\", \"2\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_3770"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"820\", \"708\", \"792\", \"571\", \"2761\", \"5306\", \"1537\", \"1801\"], \"outputs\": [\"67\\n\", \"45\\n\", \"39\\n\", \"182\\n\", \"8\\n\", \"223\\n\", \"216\\n\", \"48\\n\"]}"
} | {
"index": "code_r1_train_3771"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.15\\n0.05\\n0.0\", \"1.052205526162189\\n0.05\\n0.0\", \"0.15\\n0.892857233308306\\n0.0\", \"0.15\\n0.897940711549928\\n0.0\", \"1.0557371636651482\\n0.05\\n0.0\", \"0.4926473169582818\\n0.05\\n0.0\", \"0.5656950408067312\\n0.05\\n0.0\", \"1.0653255099845902\\n... | {
"index": "code_r1_train_3772"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 10007\", \"2 5 4 10007\", \"2 1 4 10007\", \"5 3 4 10007\", \"5 3 4 10007\\n\", \"6 8 1 1000000\", \"4 8 1 1001000\", \"3 8 1 1001000\"], \"outputs\": [\"358\\n\", \"59\\n\", \"15\\n\", \"5563\", \"5563\\n\", \"111213\\n\", \"891011\\n\", \"8910\\n\"]}"
} | {
"index": "code_r1_train_3773"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 2 3 1 8 4 5 7\\n\", \"1\\n8\\n6 2 3 1 8 4 5 7\\n\", \"1\\n8\\n6 0 3 1 8 4 5 7\\n\", \"1\\n8\\n5 2 2 1 0 0 2 8\\n\", \"1\\n6\\n6 0 3 1 8 4 5 7\\n\", \"1\\n8\\n6 2 6 1 8 4 5 7\\n\", \"1\\n8\\n6 0 3 1 8 6 5 7\\n\", \"1\\n6\\n6 0 3 1 8 5 5 7\\n\"], \"output... | {
"index": "code_r1_train_3774"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n2\\n\", \"2\\n1 2\\n1\\n2\\n\", \"2\\n2 1\\n1\\n1\\n\", \"2\\n1 2\\n1\\n1\\n\", \"3\\n3 1 2\\n3\\n1 2 1\\n\", \"3\\n3 1 2\\n3\\n2 2 1\\n\", \"3\\n3 1 2\\n3\\n2 3 1\\n\", \"3\\n3 1 2\\n3\\n3 2 1\\n\"], \"outputs\": [\"1 2\\n\", \"2 1\\n\", \"2 1\\n\"... | {
"index": "code_r1_train_3775"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nATK 100\\n99\\n\", \"1 1\\nATK 101\\n99\\n\", \"2 4\\nDEF 0\\nATK 0\\n0\\n0\\n1\\n1\\n\", \"2 3\\nATK 2634\\nDEF 1700\\n2500\\n2500\\n2500\\n\", \"2 3\\nATK 2000\\nDEF 1700\\n2500\\n2500\\n2500\\n\", \"3 4\\nDEF 100\\nATK 200\\nDEF 300\\n101\\n201\\n301\\n1... | {
"index": "code_r1_train_3776"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 2 2\\n\", \"1 2 2\\n\", \"1 1 1\\n\", \"1 4 2\\n\", \"1 2 1000\\n\", \"2 2 1000\\n\", \"5 3 1103\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\", \"45\", \"590\"]}"
} | {
"index": "code_r1_train_3777"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100\\n\", \"1\\n100\\n\", \"1\\n101\\n\", \"1\\n111\\n\", \"1\\n011\\n\", \"1\\n010\\n\", \"1\\n000\\n\", \"1\\n110\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_3778"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n*\\n\", \"2 1\\n*\\n.\\n\", \"2 1\\n*\\n*\\n\", \"1 1\\n*\\n.\\n\", \"2 2\\n..\\n*.\\n\", \"2 2\\n*.\\n..\\n\", \"2 2\\n..\\n.*\\n\", \"2 2\\n.*\\n..\\n\"], \"outputs\": [\"*\\n\", \"*\\n\", \"*\\n*\\n\", \"*\\n\", \"*\\n\", \"*\\n\", \"*\\n\", \"*\\n\"]}"
... | {
"index": "code_r1_train_3779"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n-1\\n\", \"1\\n-1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_3780"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 111\", \"9 100\", \"9 010\", \"1 100\", \"2 100\", \"2 101\", \"0 000\", \"3 101\"], \"outputs\": [\"55\\n\", \"50\\n\", \"5\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3781"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2 3\\n2\\n1 2\\n7\\n1 2 3 4 5 6 7\", \"3\\n4\\n1 2 2 3\\n2\\n1 2\\n7\\n1 0 3 4 5 6 7\", \"3\\n4\\n1 4 2 3\\n2\\n1 2\\n7\\n1 0 3 4 5 6 7\", \"3\\n4\\n0 2 2 3\\n2\\n1 2\\n7\\n1 2 3 4 5 6 7\", \"3\\n4\\n1 1 1 1\\n2\\n1 2\\n7\\n1 4 0 1 6 6 7\", \"3\\n4\\n... | {
"index": "code_r1_train_3782"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5\\n1 7\\n\", \"1 2\\n0 8\\n\", \"1 7\\n1 7\\n\", \"1 5\\n1 7\\n\", \"1 5\\n1 13\\n\", \"1 4\\n1 13\\n\", \"1 4\\n0 13\\n\", \"1 2\\n0 13\\n\"], \"outputs\": [\"-1\\n\", \"-6\\n\", \"1\\n\", \"-1\\n\", \"-7\\n\", \"-8\\n\", \"-9\\n\", \"-11\\n\"]}"
} | {
"index": "code_r1_train_3783"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 1\\n-1 -1 -1\", \"1 8 0\\n-1 -1 -1\", \"0 8 1\\n-1 -1 -1\", \"1 9 0\\n-1 -1 -1\", \"1 5 0\\n-1 -1 -1\", \"0 9 0\\n-1 -1 -1\", \"0 8 2\\n-1 -1 -1\", \"1 7 0\\n-1 -1 -1\"], \"outputs\": [\"01:50:59\\n05:32:57\\n\", \"00:52:00\\n02:36:00\\n\", \"01:51:59\\n05:35... | {
"index": "code_r1_train_3784"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_3785"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"9 5\\n\", \"3 0\\n\", \"5 0\\n\", \"7 9\\n\", \"5 4\\n\", \"5 1\\n\", \"9 4\\n\"], \"outputs\": [\"YES\\n.......\\n.#####.\\n.#...#.\\n.......\\n\", \"YES\\n.........\\n..#####..\\n.........\\n.........\\n\", \"YES\\n...\\n...\\n...\\n...\\n\", \"YES\... | {
"index": "code_r1_train_3786"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 5 5\", \"4\\n5 8 5 5\", \"4\\n6 8 2 5\", \"4\\n7 8 5 5\", \"4\\n8 8 5 5\", \"4\\n3 8 2 5\", \"4\\n7 9 5 5\", \"4\\n7 9 8 5\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"0\\n\", \"3\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_3787"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 8\\n9 6 9\", \"3 8\\n6 6 6\", \"3 8\\n9 9 9\", \"3 8\\n6 6 9\", \"3 8\\n15 6 9\", \"3 8\\n15 3 9\", \"3 8\\n15 2 9\", \"1 11\\n2 0 7\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_3788"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\">><\", \"><>\", \"<<>\", \"<>>\", \"<>>><<<<<><<>>><\", \"<>>>><<<<><<<>><\", \"<>><<<><<<<>>>><\", \"<<>><<><<<<>>>><\"], \"outputs\": [\"4\\n\", \"2\\n\", \"3\\n\", \"3\", \"29\\n\", \"28\\n\", \"26\\n\", \"24\\n\"]}"
} | {
"index": "code_r1_train_3789"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 0\\n5 3 4 1 2\\n\", \"5 0\\n5 3 5 1 2\\n\", \"5 0\\n5 3 5 1 4\\n\", \"5 0\\n6 3 4 1 2\\n\", \"5 0\\n5 3 5 1 7\\n\", \"5 0\\n6 3 4 1 3\\n\", \"5 0\\n5 3 4 1 2\\n\", \"10 -4\\n5 4 1 7 5 1 2 4 9 2\\n\"], \"outputs\": [\"2\\n3\\n4\\n\", \"2\\n3\\n4\\n\", \"2\\n3\\n... | {
"index": "code_r1_train_3790"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3\", \"3 7\\n7 7 5\", \"3 2\\n4 3 5\", \"3 1\\n1 2 3\", \"3 10\\n7 7 5\", \"3 7\\n7 12 5\", \"3 10\\n8 7 5\", \"25 127\\n4 4 4 37 0 30 46 40 0 50 0 60 65 70 75 80 85 90 95 000 176 110 115 120 216\"], \"outputs\": [\"7\\n\", \"2\\n\", \"6\\n\", \"3\", \"... | {
"index": "code_r1_train_3791"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\noneplustwo\\nnioemodsix\", \"2\\nonepltsuwo\\nnioemodsix\", \"2\\nowustlpeno\\nnioemodsix\", \"2\\nowustlpeno\\nnxoemodsii\", \"2\\nowustlpeno\\nnxofmodsii\", \"2\\nowustlpeno\\nnxofiodsim\", \"2\\nonepltsuwo\\nnxofiodsim\", \"2\\nonepltsuwo\\nnyofiodsim\"], ... | {
"index": "code_r1_train_3792"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n33\\n\", \"2\\n77\\n\", \"2\\n99\\n\", \"2\\n55\\n\", \"2\\n88\\n\", \"2\\n22\\n\", \"2\\n44\\n\", \"2\\n66\\n\"], \"outputs\": [\"NO\", \"YES\", \"NO\", \"NO\", \"NO\", \"NO\", \"YES\", \"NO\"]}"
} | {
"index": "code_r1_train_3793"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"87654\\n9\", \"87654\\n8\", \"87654\\n1\", \"87654\\n2\", \"87654\\n3\", \"87654\\n4\", \"87654\\n7\", \"87654\\n5\"], \"outputs\": [\"2\\n\", \"3\\n\", \"87654\\n\", \"43827\\n\", \"29218\\n\", \"43826\\n\", \"12522\\n\", \"87650\\n\"]}"
} | {
"index": "code_r1_train_3794"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\\n2\\n1 2\\n\", \"2 2\\n1 2\\n1 1\\n2\\n1 2\\n\", \"7 7\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 1\\n7\\n1 2 3 4 5 6 7\\n\", \"6 9\\n1 5\\n5 4\\n1 2\\n2 3\\n3 4\\n4 1\\n2 6\\n6 4\\n4 2\\n4\\n1 2 3 4\\n\", \"8 13\\n8 7\\n8 6\\n7 5\\n7 4\\n6 5\\n6 4\... | {
"index": "code_r1_train_3795"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 10\\n1 2 3 4 7 6 7 8 9 10\", \"5 7\\n8 4 5 3 1 6 9 10 11 2\", \"5 7\\n8 3 5 3 1 6 9 10 11 2\", \"5 7\\n8 1 5 3 1 6 9 10 11 2\", \"6 7\\n8 1 5 3 1 6 9 10 11 2\", \"6 7\\n3 2 5 3 1 6 18 10 8 2\", \"3 4\\n3 4 5 3 5 11 17 2 5 1\", \"3 6\\n3 4 5 3 5 11 17 2 5 1\"], ... | {
"index": "code_r1_train_3796"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1\\n\", \"3 1 2\\n1 1 1\\n\", \"10 2 2\\n1 1 1 2 1 2 1 2 1 1\\n\", \"10 2 2\\n1 2 1 2 1 1 2 1 1 2\\n\", \"10 3 2\\n1 2 1 1 3 2 1 1 2 2\\n\", \"20 6 3\\n4 1 2 6 3 3 2 5 2 5 2 1 1 4 1 2 2 1 1 4\\n\", \"20 2 5\\n2 2 1 2 1 2 1 2 1 1 2 1 2 2 1 2 2 1 2 1\\n\", ... | {
"index": "code_r1_train_3797"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n7\\n\", \"1\\n11\\n\", \"1\\n13\\n\", \"1\\n26\\n\", \"1\\n28\\n\", \"2\\n10 2\\n\", \"2\\n10 4\\n\", \"2\\n15 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"8\\n\", \"6\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_3798"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n8 1 2\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 1\\n\", \"3\\n3 3 0\\n\", \"3\\n4 3 0\\n\", \"3\\n4 3 1\\n\", \"3\\n5 3 1\\n\"], \"outputs\": [\"0\\n\", \"7\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"4\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_3799"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.