data_source stringclasses 1
value | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n-\\nX\\n\", \"1 20\\n-\\n-\\n\", \"2 1\\n-X\\nX-\\n\", \"2 1\\n-X\\n-X\\n\", \"2 0\\n-X\\n-X\\n\", \"2 0\\n-X\\nX-\\n\", \"2 2\\n-X\\nX-\\n\", \"1 100000\\n-\\n-\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES... | {
"index": "code_r1_train_700"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100 200\\n1 1\\n\", \"1 1\\n1000000\\n1 1\\n\", \"3 1\\n100 200 100\\n2 1\\n\", \"2 2\\n100 200\\n2 2\\n2 1\\n\", \"5 3\\n5 3 1 5 2\\n3 2\\n1 1\\n5 3\\n\", \"5 2\\n100 200 300 400 500\\n1 1\\n3 2\\n\", \"5 3\\n100 200 300 400 500\\n2 1\\n1 1\\n3 2\\n\", \"5... | {
"index": "code_r1_train_701"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6\\n2\\n1 3\\n3\\n1 2 3\\n4\\n6 2 3 9\\n4\\n6 8 4 5\\n7\\n1 2 4 6 7 7 3\\n8\\n8 6 5 1 2 2 3 6\\n\", \"6\\n2\\n1 3\\n3\\n1 2 3\\n4\\n2 2 3 9\\n4\\n6 8 4 5\\n7\\n1 2 4 6 7 7 3\\n8\\n8 6 5 1 2 2 3 6\\n\", \"6\\n2\\n1 3\\n3\\n1 2 6\\n4\\n6 2 3 9\\n4\\n6 8 4 5\\n7\\n1... | {
"index": "code_r1_train_702"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 2 2 1 1 2 2 2\\n\", \"9\\n4 2 2 2 1 1 2 2 2\\n\", \"9\\n4 2 2 1 1 1 2 2 2\\n\", \"9\\n1 2 2 2 1 1 2 2 2\\n\", \"10\\n1 2 3 4 1 2 5 1 2 3\\n\", \"10\\n1 2 3 4 1 2 7 1 2 3\\n\", \"10\\n1 2 5 4 1 2 7 1 2 3\\n\", \"10\\n2 2 5 4 1 2 7 1 2 3\\n\"], \"outputs\":... | {
"index": "code_r1_train_703"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 1\\n\", \"5\\n2 1 1 1 3\\n\", \"6\\n7 3 5 10 6 4\\n\", \"7\\n1 3 3 2 3 1 1\\n\", \"7\\n1 5 1 2 5 1 2\\n\", \"8\\n6 2 9 9 7 6 2 2\\n\"], \"outputs\": [\"1\\n\", \"6\\n\", \"0\\n\", \"36\\n\", \"389183858\\n\", \"136080\\n\... | {
"index": "code_r1_train_704"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n27 21 D 745654582374 hwftj\\n000 15 C 393121129811 clue\\n51 133 A 44541605340 nijo\\n101 11 A 63613510230 lcalb\\n111 1 C 3157365261 eerg\", \"5\\n26 21 D 745654582374 hwftj\\n000 15 C 393121129811 clue\\n51 133 A 44541605340 nijo\\n101 11 A 63613510230 lcal... | {
"index": "code_r1_train_705"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"2\\n6\\n7\\n\", \"2\\n??\\n?\\n\", \"2\\n50\\n5\\n\", \"2\\n50\\n5\\n\", \"2\\n25\\n5\\n\", \"2\\n23\\n5\\n\"], \"outputs\": [\"YES\\n5\\n7\\n\", \"YES\\n3\\n7\\n\", \"YES\\n6\\n7\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\... | {
"index": "code_r1_train_706"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"15\\n6\\n2\\n3\\n2360136\\n434020716\\n332845831\\n6280939\\n987698769\\n999999999\\n0\", \"15\\n16\\n2\\n3\\n8678728\\n223092870\\n332845831\\n6280939\\n987698769\\n999999999\\n0\", \"15\\n16\\n2\\n3\\n8678728\\n434020716\\n332845831\\n6280939\\n987698769\\n9999... | {
"index": "code_r1_train_707"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n1 1 4 2\", \"4\\n1 0 4 2\", \"4\\n1 0 2 2\", \"4\\n2 0 2 2\", \"4\\n2 0 3 2\", \"4\\n2 0 6 2\", \"4\\n2 1 6 2\", \"4\\n2 1 6 0\"], \"outputs\": [\"14\\n\", \"11\\n\", \"7\\n\", \"8\\n\", \"10\\n\", \"16\\n\", \"19\\n\", \"17\\n\"]}"
} | {
"index": "code_r1_train_708"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 2 3\\n2 4 5\\n0\\n0\\n0\\n2 6 7\\n0\\n0\\n4\\n4 6\\n4 0\\n2 3\\n7 3\", \"8\\n3 1 2 3\\n2 4 5\\n0\\n0\\n0\\n2 6 7\\n0\\n0\\n4\\n4 6\\n4 7\\n2 3\\n3 3\", \"8\\n3 1 2 3\\n2 4 5\\n0\\n0\\n0\\n2 6 7\\n0\\n0\\n4\\n4 6\\n4 7\\n3 3\\n5 2\", \"8\\n3 1 2 3\\n2 4 5\... | {
"index": "code_r1_train_709"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 0\\n1\\n\", \"2 1\\n1 2\\n1 2\\n\", \"2 1\\n1 2\\n1 1\\n\", \"2 1\\n1 2\\n1 1\\n\", \"2 1\\n1 2\\n2 2\\n\", \"2 1\\n1 2\\n1 2\\n\", \"3 1\\n1 2\\n1 2 2\\n\"], \"outputs\": [\"1\\n\", \"1 \", \"1 2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1 2 \",... | {
"index": "code_r1_train_710"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"BWBBW\", \"WWBBB\", \"WBBWB\", \"WBBXB\", \"BXBBW\", \"BXBWB\", \"BXWBB\", \"WXBBB\"], \"outputs\": [\"3\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"4\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_711"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2\\n1 1\\n3\\n1 2 3\", \"3\\n2\\n1 2\\n2\\n1 1\\n3\\n1 4 3\", \"3\\n2\\n0 2\\n2\\n1 0\\n3\\n1 4 3\", \"3\\n2\\n1 2\\n2\\n1 1\\n3\\n0 0 0\", \"3\\n2\\n1 4\\n2\\n0 1\\n3\\n0 0 0\", \"3\\n2\\n1 0\\n2\\n1 1\\n3\\n1 4 3\", \"3\\n2\\n1 2\\n2\\n1 1\\n3\\n1... | {
"index": "code_r1_train_712"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\", \"1 0\\n5\", \"5 0\\n3 0 4 1 5\", \"1 0\\n3 0 4 1 2\", \"2 0\\n4 0 1 1 1\", \"2 0\\n7 1 4 1 2\", \"2 0\\n9 1 0 0 2\", \"2 0\\n6 0 0 2 2\"], \"outputs\": [\"0\\n\", \"0\", \"Impossible\\n\", \"0\\n\", \"4\\n\", \"8\\n\", \"10\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_713"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n2 8943586220 45777194315\\n\", \"1\\n3\\n2 7886764954 45777194315\\n\", \"1\\n3\\n1 8943586220 276932169986\\n\", \"1\\n3\\n1 8943586220 328707442366\\n\", \"1\\n3\\n2 8943586220 328707442366\\n\", \"1\\n3\\n2 8943586220 630301212521\\n\", \"1\\n3\\n2 894... | {
"index": "code_r1_train_714"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n3 3\\n4 50\\n5 29\\n57 4\\n50 2\\n50 50\\n0 0\", \"3 2\\n6 3\\n4 50\\n5 29\\n57 4\\n50 2\\n50 50\\n0 0\", \"3 2\\n1 2\\n3 10\\n10 4\\n4 32\\n39 2\\n50 50\\n0 0\", \"3 2\\n3 3\\n6 50\\n10 4\\n74 4\\n17 1\\n66 50\\n0 0\", \"3 5\\n3 2\\n3 50\\n17 6\\n65 6\\n50... | {
"index": "code_r1_train_715"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"9 6\", \"5 6\", \"5 2\", \"5 4\", \"5 0\", \"3 0\", \"2 0\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_716"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6 3\\n\", \"8 0\\n\", \"8 8\\n\", \"1 0\\n\", \"1 1\\n\", \"2 0\\n\", \"2 1\\n\", \"2 2\\n\"], \"outputs\": [\"1 3\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"0 0\\n\", \"1 1\\n\", \"0 0\\n\"]}"
} | {
"index": "code_r1_train_717"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n1\\n8\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n78\\n\", \"1\\n1\\n46\\n\", \"1\\n1\\n16\\n\", \"1\\n1\\n37\\n\", \"1\\n1\\n87\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"26\\n\", \"16\\n\", \"6\\n\", \"13\\n\", \"29\\n\"]}"
} | {
"index": "code_r1_train_718"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a\\n\", \"z\\n\", \"z\\n\", \"a\\n\", \"b\\n\", \"c\\n\", \"cc\\n\", \"zy\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_719"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"BAC\", \"ACB\", \"CAB\", \"CBA\", \"ACA\", \"BCA\", \"BAB\", \"ABA\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_720"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 4\\n2 -3\\n4 -3\\n\", \"2 4\\n2 -3\\n4 -3\\n\", \"2 4\\n1 -3\\n4 -3\\n\", \"3 1\\n3 -4\\n3 4\\n3 4\\n\", \"3 1\\n3 -4\\n3 4\\n3 4\\n\", \"3 1\\n2 -4\\n3 4\\n3 4\\n\", \"3 4\\n4 6\\n10 -2\\n8 -1\\n\", \"3 4\\n2 6\\n10 -2\\n8 -1\\n\"], \"outputs\": [\"1\\n\", \"1... | {
"index": "code_r1_train_721"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 0 0 1 0\\n0 1 0 0 1\\n0 0 0 1 0\\n0 1 0 1 0\\n2\\n0 0 0 1 0\\n0 0 0 1 0\\n\", \"2\\n4\\n1 0 0 1 0\\n0 1 0 0 1\\n0 0 0 1 0\\n0 1 0 1 0\\n2\\n0 0 0 0 0\\n0 0 0 1 0\\n\", \"2\\n4\\n1 0 0 1 0\\n1 1 0 0 1\\n0 0 0 0 0\\n0 1 0 1 0\\n2\\n0 0 0 0 0\\n0 0 0 1 1\\... | {
"index": "code_r1_train_722"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"SRR\", \"RRR\", \"RSS\", \"SSR\", \"RST\", \"SRS\", \"TSR\", \"USR\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_723"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 45\\n20 20 30\\n6 10\\n1 2 5 8 4 11\\n7 000\\n11 34 8 47 59 29 70\\n4 100\\n80 70 62 50\\n4 8\\n0 5 10 16\\n0 0\", \"3 45\\n0 20 30\\n6 10\\n2 2 5 8 1 11\\n7 100\\n22 34 33 94 59 29 70\\n4 100\\n8 70 80 18\\n4 20\\n10 5 10 16\\n0 0\", \"3 45\\n2 20 30\\n6 10\\n... | {
"index": "code_r1_train_724"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1 1 1\\n2 1 1\\n\", \"1\\n1\\n2\\n1 1 1\\n2 1 1\\n\", \"6\\n6 4 2 7 2 7\\n3\\n2 3 6\\n1 3 4\\n1 1 6\\n\", \"6\\n6 6 3 8 5 4\\n3\\n2 2 3\\n2 1 5\\n1 1 5\\n\", \"6\\n6 6 3 8 5 4\\n3\\n2 2 3\\n2 1 5\\n1 1 5\\n\", \"6\\n6 6 3 8 5 6\\n3\\n2 2 3\\n2 1 5\\n1... | {
"index": "code_r1_train_725"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-7\\n\", \"1\\n-7\\n\", \"1\\n-12\\n\", \"1\\n-16\\n\", \"1\\n-21\\n\", \"2\\n-3 5\\n\", \"2\\n-4 4\\n\", \"2\\n1 -3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_726"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 0\\n1 1\\n\", \"2 0\\n0 0\\n1 1\\n\", \"2 0\\n-1 -1\\n1 1\\n\", \"2 0\\n-1 -1\\n1 1\\n\", \"2 1\\n0 0\\n10 10\\n1 2\\n\", \"2 1\\n0 0\\n10 10\\n1 2\\n\", \"3 2\\n1 2\\n2 3\\n1 3\\n1 2\\n2 3\\n\", \"3 2\\n1 2\\n2 3\\n1 3\\n1 2\\n2 1\\n\"], \"outputs\": [\"... | {
"index": "code_r1_train_727"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 7\\n5 5\\n3 1\\n8 15\", \"5\\n2 3\\n1 7\\n4 5\\n3 1\\n8 15\", \"5\\n2 3\\n1 7\\n4 6\\n4 1\\n8 15\", \"5\\n1 3\\n1 7\\n4 6\\n4 1\\n8 25\", \"5\\n2 3\\n1 7\\n4 6\\n4 1\\n3 15\", \"5\\n1 3\\n1 7\\n0 6\\n4 1\\n8 15\", \"5\\n1 3\\n1 7\\n4 9\\n4 1\\n8 25\",... | {
"index": "code_r1_train_728"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1\\n0 1 0 1\\n0 1 0 0\\n0 1 0 1\\n\", \"0 0 2 2\\n0 0 2 0\\n2 2 2 2\\n0 2 0 2\\n\", \"0 0 1 0\\n1 0 1 1\\n0 1 1 1\\n0 0 0 1\\n\", \"0 0 2 0\\n0 1 0 3\\n0 4 3 4\\n3 0 3 3\\n\", \"0 0 0 0\\n1 1 1 1\\n0 1 0 1\\n1 0 1 0\\n\", \"0 0 0 0\\n0 0 0 1\\n0 0 1 0\\n1 1... | {
"index": "code_r1_train_729"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"6 1\\n0\", \"5 1\\n0\", \"4 1\\n1\", \"8 1\\n0\", \"2 1\\n0\", \"7 1\\n1\", \"1 1\\n0\"], \"outputs\": [\"3\\n\", \"6\\n\", \"5\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"7\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_730"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ne\\ne\\ne\\ne\\n\", \"1 1\\na\\na\\na\\na\\n\", \"1 1\\ne\\na\\na\\na\\n\", \"1 1\\ne\\na\\ne\\na\\n\", \"1 1\\na\\na\\na\\ne\\n\", \"1 1\\ne\\na\\ne\\ne\\n\", \"1 1\\ne\\na\\na\\ne\\n\", \"1 1\\na\\ne\\na\\ni\\n\"], \"outputs\": [\"aaaa\\n\", \"aaaa\\n\", ... | {
"index": "code_r1_train_731"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3\\n0\\n1 1\\n3 1\", \"1 3\\n1 2 2\\n2\\n1 3\\n3 1\", \"1 3\\n0 2 3\\n2\\n1 1\\n3 1\", \"1 3\\n1 2 1\\n2\\n1 1\\n3 1\", \"1 3\\n0 2 1\\n2\\n1 1\\n3 1\", \"1 3\\n1 2 5\\n2\\n1 1\\n3 1\", \"1 3\\n1 2 3\\n0\\n1 1\\n2 1\", \"1 3\\n1 2 2\\n2\\n1 3\\n3 0\"], ... | {
"index": "code_r1_train_732"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n8\\n\", \"1\\n7\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_733"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n5 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n3 2 4 5\\n\", \"3\\n5 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n1 2 4 5\\n\", \"3\\n5 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n3 2... | {
"index": "code_r1_train_734"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"13 1\\n1\\n\", \"15 1\\n1\\n\", \"10 1\\n1\\n\", \"2 2\\n1 2\\n\", \"2 2\\n2 2\\n\", \"2 2\\n3 2\\n\", \"10 2\\n9 2\\n\"], \"outputs\": [\"1 \\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1 9 \\n\"]}"
} | {
"index": "code_r1_train_735"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n8 3\\n2 32 1\\n23 4\\n16 1 4 1\\n6 5\\n2 2 1 1 8\\n\", \"3\\n8 3\\n1 32 1\\n23 4\\n16 1 4 1\\n6 5\\n2 1 16 1 8\\n\", \"3\\n3 3\\n2 32 1\\n23 4\\n16 1 4 1\\n6 5\\n2 2 16 1 4\\n\", \"3\\n8 3\\n4 32 1\\n4 4\\n16 1 1 1\\n21 5\\n2 1 16 4 8\\n\", \"3\\n0 3\\n1 64 1... | {
"index": "code_r1_train_736"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n3\\n2\\n\", \"1\\n1\\n5\\n\", \"1\\n6\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n0\\n0\\n\", \"1\\n7\\n3\\n\", \"1\\n2\\n1\\n\", \"1\\n0\\n0\\n\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_737"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4 3\\n2 1\\n2 3\\n4 3\\n\", \"4 3\\n2 1\\n2 3\\n4 3\\n\", \"4 4\\n1 2\\n2 3\\n3 4\\n4 1\\n\", \"4 4\\n1 2\\n2 1\\n3 4\\n4 1\\n\", \"4 4\\n2 2\\n2 1\\n3 4\\n3 1\\n\", \"4 3\\n1 2\\n3 2\\n3 4\\n4 2\\n\"], \"outputs\": [\"2\\n\", ... | {
"index": "code_r1_train_738"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 2\\n1\\n\", \"3 3\\n1 2 1\\n\", \"4 10\\n3 3 2 1\\n\", \"5 12\\n1 3 4 1 5\\n\", \"5 23\\n7 1 4 7 9\\n\"], \"outputs\": [\"1 \", \"\\n\", \"\\n\", \"-1\\n\", \"2 \", \"-1\", \"5 \", \"1 4 5 \"]}"
} | {
"index": "code_r1_train_739"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"1\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"3 4 1 2\\n\", \"2 1\\n\", \"1\\n\", \"3 2 1\\n\", \"4 5 2 3 1\\n\", \"5 6 3 4 1 2\\n\", \"6 7 4 5 2 3 1\\n\", \"7 8 5 6 3 4 1 2\\n\"]}"
} | {
"index": "code_r1_train_740"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"1 4\\n\", \"1 5\\n\", \"1 6\\n\", \"2 5\\n\", \"4 9\\n\", \"2 7\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_741"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nM\\nM\\n\", \"1\\nS\\nM\\n\", \"1\\nL\\nM\\n\", \"1\\nL\\nS\\n\", \"1\\nM\\nM\\n\", \"1\\nL\\nS\\n\", \"1\\nL\\nM\\n\", \"1\\nS\\nM\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_742"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2 1 2\\n\", \"2\\n2 1 1 2\\n\", \"2\\n1 1 2 2\\n\", \"2\\n2 1 2 1\\n\", \"2\\n2 2 1 1\\n\", \"2\\n1 2 2 1\\n\", \"3\\n1 2 3 3 1 2\\n\"], \"outputs\": [\"0\", \"1\", \"2\", \"0\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"5\"]}"
} | {
"index": "code_r1_train_743"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11111110\\n10101010101010\", \"2\\n11101110\\n10101010101010\", \"2\\n11111110\\n10101010111010\", \"2\\n01010010\\n10000000111111\", \"2\\n11111111\\n11000001111100\", \"2\\n11101110\\n10101010111010\", \"2\\n11111110\\n10100010111010\", \"2\\n01111110\\n101... | {
"index": "code_r1_train_744"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1 2\\n1 0\\n\", \"3 3\\n3 0\\n1 1\\n2 2\\n\", \"3 3\\n2 0\\n1 1\\n3 2\\n\", \"3 3\\n3 0\\n1 1\\n2 4\\n\", \"3 3\\n2 0\\n1 2\\n3 2\\n\", \"3 3\\n2 0\\n1 4\\n3 2\\n\", \"3 2\\n2 1\\n2 2.0\\n1 3.100\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\"... | {
"index": "code_r1_train_745"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n1\\n\", \"2 2 1\\n0 1\\n1 0\\n\", \"2 2 1\\n0 1\\n1 0\\n\", \"2 2 2\\n0 1\\n1 0\\n\", \"2 2 2\\n0 1\\n0 0\\n\"], \"outputs\": [\"1 0\\n\", \"0 0\\n\", \"0 0\", \"1 0\", \"2 0\\n\", \"2 0\", \"2 0\\n\",... | {
"index": "code_r1_train_746"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"2\\n3\\n5\\n\", \"2\\n6\\n5\\n\", \"2\\n7\\n5\\n\", \"2\\n7\\n6\\n\", \"2\\n7\\n9\\n\", \"2\\n5\\n5\\n\", \"2\\n7\\n12\\n\"], \"outputs\": [\"0\\n1 0\\n\", \"0\\n0\\n\", \"0\\n0\\n\", \"0\\n0\\n\", \"0\\n0\\n\", \"0\\n0\\n\", \"0\\n1 0\\n\", \"0... | {
"index": "code_r1_train_747"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"m\\nm\\n\", \"m\\nm\\n\", \"td\\nt\\n\", \"aa\\na\\n\", \"td\\nt\\n\", \"ba\\na\\n\", \"ba\\nb\\n\", \"bb\\nb\\n\"], \"outputs\": [\"0\\n\", \"0\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_748"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"3\\n1\\n2\\n4\\n\", \"3\\n1\\n3\\n4\\n\", \"3\\n1\\n3\\n5\\n\", \"3\\n1\\n6\\n5\\n\", \"3\\n1\\n6\\n9\\n\", \"3\\n1\\n11\\n9\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_749"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n85 4\\n\", \"1\\n85 50\\n\", \"1\\n85 91\\n\", \"1\\n85 37\\n\", \"1\\n99 531\\n\", \"1\\n99 750\\n\", \"1\\n99 141\\n\", \"1\\n99 107\\n\"], \"outputs\": [\"84 4\\n\", \"84 50\\n\", \"84 91\\n\", \"84 37\\n\", \"98 531\\n\", \"98 750\\n\", \"98 141\\n\", \"9... | {
"index": "code_r1_train_750"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"abracadabsa\\n5\\nab a\\na a\\nb c\\nac ca\\nz z\", \"abracadabsa\\n5\\nab a\\na b\\nb c\\nac ca\\nz z\", \"abracadabsa\\n5\\nab a\\na c\\nb c\\nac ca\\nz z\", \"abracadabsa\\n5\\nab a\\na c\\na c\\nac ca\\nz z\", \"abracadabsa\\n5\\nba a\\na c\\na c\\nac ca\\nz ... | {
"index": "code_r1_train_751"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1 4\\n5 1\\n\", \"1 100 1 2 30\\n1\\n\", \"1 100 1 2 30\\n0\\n\", \"1 100 1 2 59\\n0\\n\", \"1 100 2 2 59\\n1\\n\", \"1 100 0 2 30\\n1\\n\", \"1 100 1 2 42\\n0\\n\", \"1 100 0 4 30\\n1\\n\"], \"outputs\": [\"5\\n5 5 \\n\", \"62\\n31 \\n\", \"60\\n30\\n\", \... | {
"index": "code_r1_train_752"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n\", \"1 1 2\\n1\\n\", \"1 1 2\\n70\\n\", \"1 1 2\\n70\\n\", \"1 2 3\\n3 2\\n\", \"1 2 3\\n3 3\\n\", \"2 1 2\\n1\\n1\\n\", \"1 2 2\\n3 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"3\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_753"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n1 1 2 4\\n207 90 100\\n100 39 7\\n250 85 6\", \"4 4\\n1 3 2 4\\n120 90 110\\n111 75 9\\n250 70 24\", \"4 4\\n1 3 3 4\\n147 31 100\\n100 46 80\\n250 70 4\", \"4 4\\n1 1 2 4\\n207 90 100\\n110 39 7\\n250 85 24\", \"4 4\\n1 3 3 4\\n147 31 100\\n100 46 80\\n250... | {
"index": "code_r1_train_754"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 1\\n\", \"2 3\\n3 2\\n\", \"2 3\\n3 2\\n\", \"2 3\\n1 1\\n\", \"2 4\\n3 2\\n\", \"2 20\\n1 8\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"6\\n\", \"5\\n\", \"5\\n\", \"6\\n\", \"8\\n\", \"210\\n\"]}"
} | {
"index": "code_r1_train_755"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n4\\nBegin on Road A\\nRight on Road B\\nRight on Road C\\nLeft on Road D\\n6\\nBegin on Old Madras Road\\nLeft on Domlur Flyover\\nLeft on 100 Feet Road\\nRight on Sarjapur Road\\nRight on Hosur Road\\nRight on Ganapathi Temple Road\", \"2\\n4\\nBegin on Road... | {
"index": "code_r1_train_756"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\", \"2 4\", \"3 0\", \"0 0\", \"0 1\", \"0 2\", \"1 2\", \"1 1\"], \"outputs\": [\"Even\\n\", \"Even\\n\", \"Even\\n\", \"Even\\n\", \"Even\\n\", \"Even\\n\", \"Even\\n\", \"Odd\\n\"]}"
} | {
"index": "code_r1_train_757"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n-3\\n\", \"1\\n-4\\n\", \"1\\n-1\\n\", \"2\\n0 0\\n\", \"2\\n0 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_758"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n0 3\", \"3 2\\n1 2\\n2 3\", \"4 3\\n1 3\\n2 3\\n3 4\", \"4 3\\n1 3\\n3 3\\n3 4\", \"4 3\\n1 1\\n2 3\\n3 4\", \"4 2\\n1 3\\n2 3\\n3 4\", \"4 3\\n1 1\\n2 5\\n3 4\", \"4 2\\n1 3\\n2 3\\n0 4\"], \"outputs\": [\"IMPOSSIBLE\\n\", \"POSSIBLE\", \"POSSIBLE\\n... | {
"index": "code_r1_train_759"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"abc\\nxyy\\n\", \"abc\\nyyx\\n\", \"abc\\nyzx\\n\", \"acb\\nyzx\\n\", \"adb\\nyzx\\n\", \"abc\\nxyz\\n\", \"bbcd\\ndabc\\n\", \"bdcb\\ndabc\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_760"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n16\\n\", \"1\\n31\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_761"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11\\n80000000000\\n\", \"1\\n11\\n83583640644\\n\", \"1\\n11\\n83583640644\\n\", \"1\\n11\\n80000000000\\n\", \"1\\n11\\n81840233933\\n\", \"1\\n18\\n80000000000\\n\", \"1\\n21\\n80000000000\\n\", \"1\\n15\\n80000000000\\n\"], \"outputs\": [\"YES\\n\", \"YES\... | {
"index": "code_r1_train_762"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 1 0\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 0\\n0\\n\", \"1 1 1\\n0\\n\", \"1 1 0\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 0\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0 \\n\", \"0 \\n\", \"0 \\n\", \"1 \", \"0 \"]}"
} | {
"index": "code_r1_train_763"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3\\n4\\n1 2\\n2 3\\n3 4\\n8\\n1 2\\n2 3\\n3 4\\n1 5\\n5 6\\n6 7\\n5 8\\n\", \"3\\n3\\n1 2\\n2 3\\n4\\n1 2\\n2 3\\n3 4\\n8\\n1 2\\n2 3\\n3 4\\n1 5\\n5 6\\n6 7\\n5 8\\n\", \"3\\n3\\n1 2\\n2 3\\n4\\n1 2\\n2 3\\n3 4\\n8\\n1 2\\n2 3\\n3 4\\n1 7\\n5 6\\... | {
"index": "code_r1_train_764"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"RL\\n\", \"RRLRL\", \"RRLRL\\n\", \"RRLLRLRLLRLL\", \"RRLLLLRLRLRL\", \"RRLRLLRLLLRL\", \"RRLRLLRLLRLL\", \"RRLLLLRRLRLL\"], \"outputs\": [\"1 1\\n\", \"0 1 2 1 1\", \"0 1 2 1 1\\n\", \"0 2 2 0 1 1 2 1 0 2 1 0\\n\", \"0 3 3 0 0 0 1 1 1 1 1 1\\n\", \"0 1 2 2 1 0 2... | {
"index": "code_r1_train_765"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 0\\n1\\n\", \"2 0\\n1 2\\n\", \"2 0\\n1 2\\n\", \"2 1\\n1 2\\n1 2\\n\", \"2 1\\n1 2\\n2 1\\n\", \"2 1\\n1 2\\n2 1\\n\", \"2 1\\n1 2\\n1 2\\n\"], \"outputs\": [\"0\", \"0\\n\", \"0\", \"0\\n\", \"1\", \"0\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_766"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n3 1 1\\n\", \"1 2\\n2 1\\n3 1 1\\n\", \"2 3\\n1 2 1\\n2 1\\n3 2 1\\n\", \"2 3\\n1 1 2\\n2 1\\n3 2 1\\n\", \"2 3\\n1 2 1\\n2 1\\n3 2 1\\n\", \"2 3\\n1 1 2\\n2 1\\n3 2 1\\n\", \"10 5\\n1 5 4\\n2 5\\n2 3\\n3 7 2\\n1 8 4\\n\", \"10 5\\n1 5 4\\n2 5\\n2 3\\... | {
"index": "code_r1_train_767"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"2 2 4\", \"2 2 1\", \"2 1 5\", \"5 1 5\", \"3 2 4\", \"1 2 1\", \"3 1 6\"], \"outputs\": [\"0 0\\n0 1\\n0 2\\n0 3\\n\", \"0 0\\n0 1\\n2 2\\n2 3\\n\", \"0 0\\n0 2\\n2 0\\n2 2\\n\", \"0 0\\n0 2\\n1 1\\n1 3\\n\", \"0 0\\n0 2\\n0 4\\n0 6\\n0 8\\n1 1\\n1 3\... | {
"index": "code_r1_train_768"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 2 1\\n1\\n\", \"1 2 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 2 1\\n2\\n\", \"1 1 1\\n2\\n\", \"1 2 2\\n2\\n\", \"1 2 2\\n4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_769"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1 2 3 1\\n\", \"4 1\\n1 2 2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_770"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nR\\n\", \"1\\nR\\n\", \"1\\nD\\n\", \"2\\nDR\\n\", \"2\\nDR\\n\", \"3\\nRDD\\n\", \"3\\nDRD\\n\"], \"outputs\": [\"D\\n\", \"R\\n\", \"R\\n\", \"D\\n\", \"D\\n\", \"D\\n\", \"D\\n\", \"D\\n\"]}"
} | {
"index": "code_r1_train_771"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nz\\n\", \"2\\naa\\n\", \"2\\naz\\n\", \"4\\nmems\\n\", \"5\\noolol\\n\", \"6\\nmsucmc\\n\", \"7\\nlolikek\\n\", \"9\\nabcabcabc\\n\"], \"outputs\": [\"z\\n\", \"aa\\n\", \"az\\n\", \"emms\\n\", \"llooo\\n\", \"ccmmsu\\n\", \"eikkllo\\n\", \"aaabbbccc\\n\"]}"
... | {
"index": "code_r1_train_772"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nz\\n\", \"1\\nz\\n\", \"1\\ny\\n\", \"1\\nx\\n\", \"1\\nlol\\n\", \"1\\nlol\\n\", \"1\\nlnl\\n\", \"1\\nlln\\n\"], \"outputs\": [\"z\\n\", \"z\\n\", \"y\\n\", \"x\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_773"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n18 0\\n18 0\\n3 3\\n1 8\\n2 7\", \"6\\n0 1\\n18 0\\n18 0\\n3 3\\n1 8\\n4 7\", \"6\\n0 11\\n70 0\\n18 5\\n5 3\\n1 8\\n2 5\", \"6\\n0 11\\n70 0\\n18 5\\n3 3\\n1 8\\n2 5\", \"6\\n0 11\\n26 0\\n18 5\\n3 3\\n1 8\\n2 5\", \"6\\n0 11\\n26 0\\n18 5\\n3 3\\n1 8\... | {
"index": "code_r1_train_774"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n4 2\\n2 4\\n3 4\", \"4\\n0 1\\n4 2\\n2 1\\n3 4\", \"4\\n1 2\\n4 2\\n2 4\\n3 4\", \"4\\n1 2\\n4 2\\n2 4\\n3 7\", \"4\\n0 1\\n4 3\\n2 1\\n2 4\", \"4\\n2 2\\n4 2\\n2 4\\n3 7\", \"4\\n2 2\\n4 2\\n2 7\\n3 7\", \"4\\n2 0\\n4 2\\n2 7\\n3 7\"], \"outputs\": [\"... | {
"index": "code_r1_train_775"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 0\\n\", \"2 1\\n1 2\\n1\\n\", \"5 3\\n1 2 3 4 5\\n1\\n2\\n10\\n\", \"4 5\\n1 2 5 5\\n1\\n2\\n3\\n4\\n5\\n\", \"5 3\\n5 1 2 3 4\\n1\\n316\\n2\\n\", \"5 3\\n7 1 2 3 4\\n1\\n316\\n2\\n\", \"5 3\\n7 1 2 3 4\\n2\\n316\\n2\\n\", \"5 3\\n7 1 2 3 4\\n2\\n316\\n3\... | {
"index": "code_r1_train_776"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n\", \"1 2\\n0\\n\", \"1 3\\n1\\n\", \"1 3\\n0\\n\", \"5 314\\n0 310 18 628 0\\n\", \"5 314\\n0 365 18 628 0\\n\", \"5 314\\n0 365 18 1117 0\\n\"], \"outputs\": [\"2 \\n\", \"3 \", \"2 \", \"4 \", \"3 \", \"314 628 942 1256 1570 \", \"314... | {
"index": "code_r1_train_777"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\\n\", \"1 1\\n\", \"2 2\\n\", \"3 4\\n\", \"1 1\\n\", \"3 4\\n\", \"2 2\\n\", \"4 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_778"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nx\\n\", \"1\\nx\\n\", \"1\\nx\\n\", \"5\\nabaca\\n\", \"5\\nabaca\\n\", \"8\\nabcddcba\\n\", \"8\\nabcddcba\\n\", \"500\\nbbababaabaabaabbbbbbaabbabbabbaabababababbbbabaaabbbbaaabbbbbbbabababaaaaabbbbabaababbababbaaaaaabbaaabbaabaaababbbbbabbaabaabaabbbaaabaa... | {
"index": "code_r1_train_779"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"2 1\\n2 1\\n\", \"4 1\\n2 2\\n\", \"3 1\\n2 1\\n\", \"4 1\\n4 2\\n\", \"4 1\\n4 4\\n\", \"2 1\\n4 4\\n\", \"5 1\\n10 5\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"8\\n\", \"16\\n\", \"8\\n\", \"25\\n\"]}"
} | {
"index": "code_r1_train_780"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2\\n10\\n11\\n\", \"4 3\\n101\\n011\\n000\\n101\\n\", \"4 3\\n101\\n011\\n101\\n101\\n\", \"4 3\\n101\\n011\\n100\\n101\\n\", \"4 3\\n100\\n111\\n000\\n101\\n\", \"4 3\\n100\\n011\\n000\\n101\\n\"], \"outputs\": [\"0\\n\", \"1\\n... | {
"index": "code_r1_train_781"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nccadd\\nbddcc\", \"5\\nccade\\nbddcc\", \"5\\nccade\\nccdcb\", \"5\\nddacc\\nbddcc\", \"5\\nddacc\\nccddb\", \"5\\nccade\\nbcdcc\", \"5\\ncacde\\nccdcb\", \"5\\nc`cde\\nccdcb\"], \"outputs\": [\"3\", \"3\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"0\\n\",... | {
"index": "code_r1_train_782"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1\\n3 0\\n\", \"1\\n0 0\\n\", \"1\\n1 -1\\n\", \"1\\n2 -1\\n\", \"1\\n3 -1\\n\", \"1\\n0 -1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_783"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1234 0 0\\n\", \"1\\n1234 2 2\\n\", \"1\\n0714 1 1\\n\", \"1\\n1234 3 1\\n\", \"1\\n1234 0 1\\n\", \"1\\n1234 1 2\\n\", \"1\\n0714 1 2\\n\", \"1\\n1234 3 0\\n\"], \"outputs\": [\"Need more data\", \"Need more data\", \"Need more data\", \"Incorrect data\\n\",... | {
"index": "code_r1_train_784"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 3\\n8 6 7\\n4 2 5\\n\", \"3\\n1 5 8\\n9 2 4\\n3 6 7\\n\", \"3\\n1 4 7\\n6 9 2\\n3 8 5\\n\", \"3\\n1 6 3\\n7 2 9\\n4 8 5\\n\", \"3\\n1 6 3\\n4 9 8\\n7 2 5\\n\", \"3\\n8 6 3\\n9 1 5\\n2 4 7\\n\", \"3\\n1 5 2\\n7 6 3\\n4 8 9\\n\", \"3\\n1 4 8\\n7 2 6\\n5 9 3... | {
"index": "code_r1_train_785"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 2\\n0\\n\", \"1 4\\n0\\n\", \"1 5\\n0\\n\", \"1 7\\n0\\n\", \"1 0\\n0\\n\", \"1 6\\n0\\n\"], \"outputs\": [\"1\", \"1\", \"2\\n\", \"4\\n\", \"5\\n\", \"7\\n\", \"0\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_786"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 90\\n\", \"2 2\\n40 90\\n\", \"2 2\\n40 90\\n\", \"2 2\\n70 90\\n\", \"2 2\\n70 126\\n\", \"2 2\\n130 126\\n\", \"2 2\\n61441 92480\\n\", \"2 5\\n49248 87211\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n... | {
"index": "code_r1_train_787"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2\\n1 2 1\", \"2\\n1\\n1 2\\n2\\n2 2 1\", \"2\\n1\\n1 2\\n2\\n2 2 0\", \"2\\n1\\n1 0\\n2\\n2 2 0\", \"2\\n1\\n1 0\\n2\\n3 2 0\", \"2\\n1\\n1 2\\n2\\n1 2 2\", \"2\\n1\\n1 2\\n2\\n2 3 1\", \"2\\n1\\n1 2\\n2\\n2 1 0\"], \"outputs\": [\"4\\n14\", \"4\\n... | {
"index": "code_r1_train_788"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"41 6 46\\n1 89 2\\n78 92 8\\n5\\n12\\n45\\n16\\n57\\n17\", \"41 6 46\\n1 89 2\\n78 92 8\\n5\\n12\\n45\\n16\\n61\\n17\", \"41 6 46\\n1 89 2\\n78 92 8\\n5\\n12\\n15\\n16\\n61\\n17\", \"41 3 46\\n1 89 2\\n78 92 8\\n5\\n12\\n15\\n16\\n61\\n17\", \"41 3 46\\n1 89 2\\n... | {
"index": "code_r1_train_789"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1 1\\n7\\n\", \"2 1\\n6052 42201\\n\", \"2 1\\n6052 44516\\n\", \"2 1\\n6052 17658\\n\", \"2 2\\n51200 19970\\n\", \"2 2\\n51200 19970\\n\", \"2 1\\n70563 22973\\n\"], \"outputs\": [\"7\\n\", \"7\\n\", \"6052 54305 \\n\", \"6052 56620 \\n\", \"605... | {
"index": "code_r1_train_790"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n1\\n\", \"1\\n2\\n1\\n1\\n1\\n1\\n\", \"3\\n3 1\\n2 1\\n1\\n2\\n1 2\\n\", \"5\\n4 2\\n5 4\\n1 4\\n3 5\\n1\\n4\\n1 3 5 2\\n\", \"2\\n1 2\\n5\\n1\\n2\\n1\\n1\\n1\\n1\\n2\\n2 1\\n2\\n1 2\\n\", \"6\\n1 6\\n6 5\\n1 2\\n2 3\\n2 4\\n1\\n4\\n5 2 4 3\\n\", \"6... | {
"index": "code_r1_train_791"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n\", \"9\\n\", \"1\\n\", \"296\\n\", \"303\\n\", \"807\\n\", \"596\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"3\\n\", \"0\\n\", \"98\\n\", \"101\\n\", \"269\\n\", \"198\\n\"]}"
} | {
"index": "code_r1_train_792"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nv\\nk\\n\", \"1 1\\n*\\na\\n\", \"1 1\\na\\na\\n\", \"1 1\\nb\\na\\n\", \"1 1\\n*\\na\\n\", \"1 1\\nb\\na\\n\", \"1 1\\na\\na\\n\", \"1 1\\n+\\na\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"... | {
"index": "code_r1_train_793"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"1\\n2 5\\n\", \"1\\n2 5\\n\", \"1\\n3 5\\n\", \"1\\n1 6\\n\", \"1\\n4 5\\n\", \"1\\n1 9\\n\", \"1\\n1 7\\n\"], \"outputs\": [\"6\", \"6\", \"6\\n\", \"4\\n\", \"10\\n\", \"2\\n\", \"16\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_794"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"8\\n\", \"9\\n\", \"5\\n\", \"7\\n\", \"6\\n\", \"1\\n\"], \"outputs\": [\" 1\\n\", \" 1\\n\", \" ... | {
"index": "code_r1_train_795"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nX\\n\", \"1 1\\nX\\n\", \"1 2\\nXX\\n\", \"1 2\\nXX\\n\", \"2 1\\nX\\nX\\n\", \"2 1\\nX\\nX\\n\", \"2 2\\n.X\\nXX\\n\", \"2 2\\nX.\\nX.\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_796"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"hg\\n\", \"hg\\n\", \"hh\\n\", \"gh\\n\", \"gi\\n\", \"fi\\n\", \"gj\\n\", \"fj\\n\"], \"outputs\": [\"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_797"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 4 6\", \"4\\n1 0 4 6\", \"4\\n1 0 2 6\", \"4\\n1 0 2 2\", \"4\\n2 0 2 2\", \"4\\n2 0 3 2\", \"4\\n2 0 6 2\", \"4\\n2 3 4 1\"], \"outputs\": [\"0 2 4 6 \", \"1 0 4 6 \", \"1 0 2 6 \", \"1 0 2 2 \", \"0 2 2 2 \", \"0 3 2 2 \", \"0 2 2 6 \", \"3 2 4 1 \"]}"
... | {
"index": "code_r1_train_798"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nk\\n\", \"1\\n1\\nk\\n\", \"1\\n1\\nj\\n\", \"1\\n1\\ni\\n\", \"1\\n1\\nh\\n\", \"1\\n3\\nraq\\n\", \"1\\n3\\nraq\\n\", \"1\\n3\\nbab\\n\"], \"outputs\": [\"k\\n1\\n\", \"k\\n1\\n\", \"j\\n1\\n\", \"i\\n1\\n\", \"h\\n1\\n\", \"aqr\\n2\\n\", \"aqr\\n2\\n\"... | {
"index": "code_r1_train_799"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.