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\": [\"3\\n2\\n1 7\\n3 8\\n1 2\\n3\\n1 3\\n10 6\\n7 9\\n1 2\\n2 3\\n6\\n3 1\\n12 20\\n6 19\\n3 16\\n5 17\\n3 17\\n3 3\\n6 5\\n1 5\\n2 6\\n4 6\\n\", \"3\\n2\\n0 6\\n3 8\\n1 2\\n3\\n1 3\\n4 6\\n7 9\\n1 2\\n2 3\\n6\\n3 14\\n12 21\\n12 19\\n3 12\\n11 0\\n3 0\\n3 5\\n6 5\\n1... | {
"index": "code_r1_train_2500"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n14\\n\", \"1 1\\n14\\n\", \"1 1\\n32\\n\", \"1 1\\n19\\n\", \"1 1\\n36\\n\", \"1 1\\n99992\\n\", \"1 1\\n20000\\n\", \"1 1\\n99992\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"5\\n\", \"0\\n\", \"1\\n\", \"11\\n\", \"11\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_2501"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n10\\n\", \"1 7\\n10\\n\", \"1 9\\n10\\n\", \"2 3\\n1 2\\n\", \"2 8\\n7 8\\n\", \"2 9\\n4 8\\n\", \"2 3\\n3 3\\n\", \"2 2\\n1 2\\n\"], \"outputs\": [\"-1\", \"1\\n\", \"-1\\n\", \"2\", \"2\", \"2\", \"1\", \"2\"]}"
} | {
"index": "code_r1_train_2502"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n2 4\\n7 3\\n\", \"1\\n8 7\\n2 4\\n7 3\\n\", \"1\\n8 7\\n2 4\\n2 3\\n\", \"1\\n8 7\\n3 4\\n2 3\\n\", \"1\\n15 10\\n200000 4\\n15 1000000000\\n\", \"1\\n15 10\\n200000 4\\n15 1000000000\\n\", \"1\\n13 10\\n200000 4\\n15 1000000000\\n\", \"1\\n13 10\\n2000... | {
"index": "code_r1_train_2503"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nnoe\\n\", \"3\\nnoe\\n\", \"3\\none\\n\", \"3\\neon\\n\", \"3\\nneo\\n\", \"3\\neno\\n\", \"3\\noen\\n\", \"4\\nezor\\n\"], \"outputs\": [\"1 \\n\", \"1\\n\", \"1 \", \"1 \", \"1 \", \"1 \", \"1 \", \"0 \\n\"]}"
} | {
"index": "code_r1_train_2504"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nqw\\n\", \"1\\nqw\\n\", \"1\\npw\\n\", \"1\\npx\\n\", \"1\\nqx\\n\", \"1\\nwq\\n\", \"1\\nvp\\n\", \"1\\nvo\\n\"], \"outputs\": [\"qw\\n\", \"qw\\n\", \"pw\\n\", \"px\\n\", \"qx\\n\", \"qw\\n\", \"pv\\n\", \"ov\\n\"]}"
} | {
"index": "code_r1_train_2505"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 4\", \"4\\n1 2 2 4\", \"4\\n2 2 2 4\", \"4\\n2 2 3 2\", \"4\\n0 2 3 2\", \"4\\n1 2 3 4\", \"4\\n1 2 3 4\\n\", \"5\\n0 1 2 1 2\"], \"outputs\": [\"0\\n0\\n1\\n1\\n\", \"1\\n0\\n0\\n1\\n\", \"1\\n1\\n1\\n3\\n\", \"1\\n1\\n3\\n1\\n\", \"1\\n0\\n1\\n0\\n\",... | {
"index": "code_r1_train_2506"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nV\\n\", \"1\\nK\\n\", \"1\\nY\\n\", \"1\\nU\\n\", \"2\\nKV\\n\", \"2\\nVK\\n\", \"2\\nKU\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2507"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"3\\n1 2 3\\n2 1 3\\n\", \"3\\n1 2 3\\n2 1 1\\n\", \"3\\n1 2 3\\n3 1 1\\n\", \"3\\n1 2 3\\n3 2 1\\n\", \"3\\n1 2 3\\n2 1 3\\n\", \"5\\n3 1 4 2 5\\n4 5 1 3 2\\n\"], \"outputs\": [\"1 \\n\", \"1 \", \"2 0 1 \\n\", \"2 0 0\\n\", \"... | {
"index": "code_r1_train_2508"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\", \"5\", \"8\", \"1\", \"5\", \"6\", \"16\"], \"outputs\": [\"5\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"1\\n\", \"1\\n\", \"2\", \"14\\n\"]}"
} | {
"index": "code_r1_train_2509"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2 1\\n1 1\\n\", \"2 1\\n2 1\\n\", \"2 1\\n2 2\\n\", \"4 1\\n1 2 2 2\\n\", \"4 1\\n1 2 2 2\\n\", \"4 1\\n1 1 2 2\\n\", \"4 1\\n1 2 2 4\\n\"], \"outputs\": [\"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"2 3\\n\", \"2 3\\n\", \"3 4\\n\", \"2 4\... | {
"index": "code_r1_train_2510"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nwy\", \"2\\nvy\", \"2\\nyx\", \"2\\nxz\", \"2\\nzx\", \"2\\nx{\", \"2\\nzy\", \"2\\nyz\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2511"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 0\\n0 1\\n0 3\\n0 0\\n1 0\\n0 7\\n1 0\", \"7\\n1 0\\n0 1\\n1 2\\n0 0\\n1 0\\n0 7\\n1 0\", \"7\\n0 0\\n0 2\\n0 3\\n0 2\\n0 4\\n0 3\\n1 4\", \"7\\n1 0\\n0 1\\n0 2\\n0 0\\n1 0\\n1 7\\n1 0\", \"7\\n0 2\\n0 2\\n0 1\\n0 0\\n1 4\\n1 3\\n0 0\", \"7\\n0 0\\n1 3\\n1 ... | {
"index": "code_r1_train_2512"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 2\\n\", \"1\\n1 5\\n\", \"1\\n574 5\\n\", \"1\\n959 30\\n\", \"1\\n760 30\\n\", \"1\\n54560 5\\n\", \"1\\n11559 5\\n\", \"1\\n23041 5\\n\"], \"outputs\": [\"4\\n\", \"560\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2513"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nu\\n\", \"1 5\\nw\\n\", \"1 5\\nw\\n\", \"1 2\\nu\\n\", \"1 0\\ns\\n\", \"1 10\\ns\\n\", \"1 25\\no\\n\", \"1 50\\ns\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2514"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabdc\\n3\\nbacb\\n2\", \"2\\nabdc\\n3\\nbcab\\n2\", \"2\\ncdba\\n3\\nbcab\\n2\", \"2\\ncdba\\n3\\nbcba\\n2\", \"2\\ncdba\\n3\\nbcba\\n1\", \"2\\ncdba\\n3\\nbcbb\\n1\", \"2\\nbdca\\n3\\nbcbb\\n1\", \"2\\nacdb\\n3\\nbcbb\\n1\"], \"outputs\": [\"abc\\nab\", \"ab... | {
"index": "code_r1_train_2515"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 2 3\\n\", \"1\\n2 3 4\\n\", \"1\\n1 2 3\\n\", \"1\\n2 3 4\\n\", \"1\\n1 3 4\\n\", \"1\\n1 7 4\\n\", \"1\\n9 10 1\\n\", \"1\\n9 10 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"10\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2516"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n6 3\\n\", \"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n6 3\\n\", \"1\\n0 1\\n\", \"1\\n6 6\\n\", \"1\\n9 6\\n\", \"1\\n9 11\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2517"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2 1\\n\", \"1 9\\n\", \"1 0\\n\", \"1 1\\n\", \"1 2\\n\", \"1 8\\n\", \"2 0\\n\"], \"outputs\": [\"-1 -1\\n\", \"10 10\\n\", \"9 9\\n\", \"0 0\\n\", \"1 1\\n\", \"2 2\\n\", \"8 8\\n\", \"-1 -1\\n\"]}"
} | {
"index": "code_r1_train_2518"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 8\\n2\\n5 8\", \"3\\n1 3 8\\n2\\n5 8\", \"3\\n1 5 8\\n2\\n4 9\", \"3\\n1 6 8\\n2\\n5 8\", \"3\\n1 3 8\\n2\\n2 8\", \"3\\n1 5 8\\n2\\n3 9\", \"3\\n2 3 8\\n2\\n5 8\", \"3\\n1 3 8\\n2\\n3 8\"], \"outputs\": [\"1\\n5\\n8\\n\", \"1\\n3\\n5\\n8\\n\", \"1\\n4\\n... | {
"index": "code_r1_train_2519"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"3 1 1 1\\n\", \"1 1 2 5\\n\", \"1 1 3 3\\n\", \"1 1 3 5\\n\", \"2 1 2 3\\n\", \"1 2 2 2\\n\", \"3 1 2 1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2520"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2 2\\n1 1\\n\", \"3 6\\n1 1 1\\n\", \"3 1\\n1 0 1\\n\", \"3 6\\n1 1 1\\n\", \"3 1\\n1 0 1\\n\", \"3 1\\n1 -1 1\\n\", \"3 1\\n2 -1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2521"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 179 10\\n0 657 0\\n4 24 36\\n11 2 75\\n1 13 111\\n10 336 74\\n3\\n2 15 4\\n-1 76 6\\n2 139 34\\n0\", \"6\\n4 216 10\\n0 657 0\\n4 24 36\\n11 2 68\\n1 13 011\\n10 336 74\\n3\\n2 15 4\\n0 76 12\\n1 139 34\\n0\", \"6\\n2 58 11\\n1 178 30\\n3 78 72\\n4 42 65\\n... | {
"index": "code_r1_train_2522"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6643808\\n4\\n2 2 0 2\\n\", \"2\\n1\\n7874846\\n4\\n2 2 0 2\\n\", \"2\\n1\\n7680692\\n4\\n7 2 2 2\\n\", \"2\\n1\\n3713787\\n4\\n4 2 0 5\\n\", \"2\\n1\\n94783419\\n4\\n2 1 2 5\\n\", \"2\\n1\\n94783419\\n4\\n2 2 2 5\\n\", \"2\\n1\\n94783419\\n4\\n2 4 2 5\\n... | {
"index": "code_r1_train_2523"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 3\\n1\\n7\\n8\", \"3 3\\n1\\n2\\n3\", \"10 3\\n1\\n7\\n8\", \"0 3\\n2\\n7\\n32\", \"4 3\\n1\\n7\\n10\", \"3 3\\n2\\n6\\n63\", \"3 3\\n2\\n6\\n50\", \"3 3\\n1\\n1\\n22\"], \"outputs\": [\"11\\n\", \"4\\n\", \"16\\n\", \"32\\n\", \"10\\n\", \"63\\n\", \"50\\n\", ... | {
"index": "code_r1_train_2524"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 3\", \"6 5 1\", \"6 5 0\", \"6 8 0\", \"9 2 0\", \"2 1 0\", \"0 1 0\", \"0 7 0\"], \"outputs\": [\"3 6\\n\", \"1 6\\n\", \"0 6\\n\", \"0 8\\n\", \"0 9\\n\", \"0 2\\n\", \"0 1\\n\", \"0 7\\n\"]}"
} | {
"index": "code_r1_train_2525"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"Rain, rain, go ot Spain.\", \"Rain, iarn, og ot Spain.\", \"Rain, arin, go to Spain.\", \"Rain, raio, go ot Spain.\", \"Rain, rain, og ot .niapS\", \"Rajn, rain, og ot .niapS\", \"Rain, rain, go to Spain.\", \"Win today's preliminary contest and be qualified to v... | {
"index": "code_r1_train_2526"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 1\\n1 1\\n1 -2\\n0 1\\n0 0\\n2 0\\n\", \"5 1\\n1 1\\n1 -2\\n0 1\\n0 1\\n2 0\\n\", \"5 1\\n1 1\\n1 -2\\n0 1\\n1 1\\n2 0\\n\", \"5 1\\n0 1\\n1 -2\\n0 1\\n1 1\\n2 0\\n\", \"5 1\\n0 2\\n1 -2\\n0 1\\n1 1\\n2 0\\n\", \"5 1\\n1 1\\n1 -2\\n0 1\\n-1 0\\n2 0\\n\", \"1 10... | {
"index": "code_r1_train_2527"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 4 2\\n6 1\\n6 2\", \"2 2 3\\n1 1\\n1 2\\n1 3\", \"1 2 3\\n1 1\\n1 2\\n1 3\", \"1 2 3\\n1 1\\n1 1\\n1 3\", \"1 2 3\\n0 1\\n1 1\\n0 5\", \"1 2 3\\n1 1\\n1 3\\n1 3\", \"1 2 3\\n1 0\\n1 1\\n2 5\", \"1 2 3\\n0 1\\n2 3\\n1 3\"], \"outputs\": [\"18\", \"Impossible\", ... | {
"index": "code_r1_train_2528"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 2\", \"2\\n0 4\", \"2\\n0 5\", \"2\\n0 9\", \"2\\n2 8\", \"2\\n0 8\", \"2\\n0 3\", \"2\\n1 3\"], \"outputs\": [\"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\", \"1\"]}"
} | {
"index": "code_r1_train_2529"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n4\\n\", \"1 5\\n3\\n\", \"1 8\\n6\\n\", \"1 7\\n6\\n\", \"1 9\\n6\\n\", \"1 8\\n5\\n\", \"1 6\\n4\\n\"], \"outputs\": [\"2\\n0 1 \", \"5\\n0 1 2 3 4 \", \"5\\n0 1 2 3 4 \", \"4\\n0 2 4 6 \", \"7\\n0 1 2 3 4 5 6 \", \"3\\n0 3 6 \", \"8\\n0 1 ... | {
"index": "code_r1_train_2530"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 7\\n7\\n\", \"1 7\\n5\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 7\\n5\\n\", \"1 7\\n9\\n\", \"1 3\\n9\\n\", \"1 7\\n7\\n\"], \"outputs\": [\"0 0\\n\", \"1 6\\n\", \"0 0\\n\", \"0 0\", \"1 6\", \"0 0\\n\", \"0 0\\n\", \"0 0\"]}"
} | {
"index": "code_r1_train_2531"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"7 0\", \"8 0\", \"0 0\", \"5 0\", \"13 0\", \"26 0\", \"16 0\"], \"outputs\": [\"4\\n\", \"7\\n\", \"8\\n\", \"0\\n\", \"5\", \"13\\n\", \"26\\n\", \"16\\n\"]}"
} | {
"index": "code_r1_train_2532"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"6 3\\n5 1 4\\n\", \"6 3\\n4 2 3\\n\", \"9 3\\n5 1 4\\n\", \"6 3\\n5 2 4\\n\", \"6 3\\n5 2 3\\n\", \"6 3\\n5 2 1\\n\", \"6 3\\n5 4 3\\n\"], \"outputs\": [\"0\\n\", \"12\\n\", \"11\\n\", \"21\\n\", \"12\\n\", \"12\\n\", \"12\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_2533"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 1 1 5\\n1 1 1\\n\", \"5 1 1 5\\n1 1 1\\n\", \"10 1 1 10\\n1 5 6\\n\", \"10 1 1 10\\n1 5 6\\n\", \"10 1 1 10\\n1 9 6\\n\", \"10 1 1 10\\n1 2 6\\n\", \"10 1 1 10\\n1 7 6\\n\", \"2 3 2 1\\n1 1 2\\n2 1 2\\n4 1 2\\n\"], \"outputs\": [\"XRRRR\\n\", \"XRRRR\", \"RRRRR... | {
"index": "code_r1_train_2534"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2 4\\n**.\\n***\\n***\\n\", \"1\\n3 3 2 4\\n**.\\n***\\n***\\n\", \"1\\n3 3 2 7\\n**.\\n***\\n***\\n\", \"1\\n3 3 1 7\\n**.\\n***\\n***\\n\", \"1\\n3 3 4 7\\n.**\\n***\\n***\\n\", \"1\\n3 3 0 4\\n**.\\n***\\n***\\n\", \"1\\n3 3 5 7\\n.**\\n***\\n***\\n\",... | {
"index": "code_r1_train_2535"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n2 3\\n0 1\\n\", \"1 1 0 0\\n1 3\\n2 5\\n\", \"1 1 0 0\\n1 3\\n2 5\\n\", \"1 1 0 0\\n0 3\\n2 5\\n\", \"1 1 0 0\\n0 1\\n2 5\\n\", \"1 1 1 0\\n0 1\\n2 5\\n\", \"1 1 1 0\\n0 2\\n2 5\\n\", \"1 1 1 0\\n0 3\\n2 5\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n... | {
"index": "code_r1_train_2536"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n1 4\\n5 8\\n2 8\", \"4\\n4 7\\n1 4\\n2 8\\n2 8\", \"4\\n2 0\\n0 0\\n8 1\\n1 1\", \"4\\n4 7\\n1 4\\n5 8\\n2 5\", \"4\\n4 12\\n1 4\\n2 8\\n2 8\", \"4\\n4 1\\n1 4\\n1 8\\n2 10\", \"4\\n5 2\\n1 1\\n2 12\\n0 8\", \"4\\n0 2\\n2 1\\n2 16\\n0 4\"], \"outputs\":... | {
"index": "code_r1_train_2537"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 1 2 1 2 1 2 1 2 1\\n\", \"1\\n11\\n1 2 1 2 1 2 1 2 1 2 1\\n\", \"1\\n11\\n1 2 2 2 1 2 1 2 1 2 1\\n\", \"1\\n11\\n1 2 1 2 1 2 1 2 1 1 1\\n\", \"1\\n11\\n1 2 1 2 1 2 1 1 1 1 1\\n\", \"1\\n13\\n2 2 3 2 1 3 2 1 2 4 8 1 1\\n\", \"1\\n13\\n1 2 3 2 1 3 2 1 ... | {
"index": "code_r1_train_2538"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 0\\n\", \"2\\n1 0\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n2 0\\n\", \"2\\n2 0\\n\", \"2\\n0 2\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2539"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n2 2\\n\", \"7 3\\n1 1 3 3 4 2 1\\n\", \"7 3\\n1 1 3 3 1 2 1\\n\", \"7 3\\n1 1 2 3 4 2 1\\n\", \"7 3\\n1 2 2 3 4 2 1\\n\", \"7 3\\n1 1 3 3 6 2 1\\n\", \"7 3\\n1 2 2 3 4 1 1\\n\", \"7 6\\n1 1 3 3 1 2 1\\n\"], \"outputs\": [\"0\", \"0\\n\", \"1\\n\", \"0\\n\",... | {
"index": "code_r1_train_2540"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 2 6\\n2 3 7\\n3 4 7\", \"3 3\\n1 2 3\\n2 3 0\\n1 3 4\", \"4 3\\n1 2 6\\n2 3 7\\n3 4 3\", \"4 3\\n1 2 4\\n2 3 7\\n3 4 7\", \"4 3\\n1 2 6\\n2 3 7\\n3 4 6\", \"4 3\\n1 2 4\\n2 3 1\\n3 4 7\", \"4 3\\n1 2 6\\n2 3 7\\n3 4 2\", \"4 3\\n1 2 2\\n2 3 7\\n3 4 7\"], ... | {
"index": "code_r1_train_2541"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n85367\\n\", \"1\\nE\\n85367\\n\", \"1\\nF\\n85367\\n\", \"1\\nG\\n85367\\n\", \"1\\nF\\n59056\\n\", \"1\\nF\\n80903\\n\", \"1\\nF\\n42037\\n\", \"1\\nF\\n18127\\n\"], \"outputs\": [\"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n... | {
"index": "code_r1_train_2542"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n44\\n\", \"4\\n20\\n8\\n45\\n10\\n\", \"43\\n5\\n5\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n17\\n18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\\n41\\n42\\n43\\n44\\n45\\n\", \"... | {
"index": "code_r1_train_2543"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 7\", \"4 4 9\", \"3 2 8\", \"6 1 0\", \"6 4 1\", \"7 4 2\", \"5 2 5\", \"5 2 8\"], \"outputs\": [\"7\\n\", \"9\\n\", \"6\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_2544"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1 0 0 0 1 0 1\\n3 4 5 6 7 8 9 -4 -3 4 -2\", \"1\\n1 1 0 1 0 0 0 1 0 0\\n3 1 5 6 7 8 9 -7 -3 4 -2\", \"1\\n1 1 0 1 0 0 1 1 0 1\\n3 1 5 6 7 8 9 -7 -3 4 -2\", \"1\\n1 1 0 1 0 0 0 1 0 1\\n3 1 5 6 7 8 9 -4 -3 4 -2\", \"1\\n1 1 0 1 0 0 0 1 0 1\\n3 1 5 6 7 8 9... | {
"index": "code_r1_train_2545"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"C\", \"T\", \"C\", \"T\", \"G\", \"A\", \"A\\n\", \"G\\n\"], \"outputs\": [\"G\\n\", \"A\\n\", \"G\\n\", \"A\\n\", \"C\", \"T\", \"T\\n\", \"C\\n\"]}"
} | {
"index": "code_r1_train_2546"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 5\\n\", \"3 2 1\\n\", \"7 4 4\\n\", \"1 1 1\\n\", \"9 7 9\\n\", \"4 3 2\\n\", \"5 4 5\\n\", \"5 3 4\\n\"], \"outputs\": [\"2 1 4 3 6 7 8 9 5 \", \"1 2 3 \", \"-1\", \"1 \", \"2 3 4 5 6 7 8 9 1 \", \"2 1 4 3 \", \"2 3 4 5 1 \", \"-1\"]}"
} | {
"index": "code_r1_train_2547"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13 1\\n3\\n2 1 1\\n5\\n4 3 3 2 2\\n\", \"3\\n2\\n0 88\\n3\\n2 0 0\\n5\\n4 4 2 1 4\\n\", \"3\\n2\\n9 88\\n3\\n2 3 2\\n5\\n4 3 2 2 4\\n\", \"3\\n2\\n2 67\\n3\\n0 3 2\\n5\\n5 3 3 2 4\\n\", \"3\\n2\\n7 41\\n3\\n2 3 1\\n5\\n4 3 0 1 6\\n\", \"3\\n2\\n0 88\\n3\\... | {
"index": "code_r1_train_2548"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n47\\n\", \"3 8\\n276\\n\", \"3 8\\n167\\n\", \"3 8\\n278\\n\", \"3 8\\n262\\n\", \"3 8\\n187\\n\", \"3 8\\n155\\n\", \"3 8\\n161\\n\"], \"outputs\": [\"47\\n\", \"276\\n\", \"167\\n\", \"278\\n\", \"262\\n\", \"187\\n\", \"155\\n\", \"161\\n\"]}"
} | {
"index": "code_r1_train_2549"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n1 3 4\\n5\\n1 2 5 7 4\\n1\\n1\\n3\\n69 6969 696969\\n\", \"4\\n3\\n1 3 4\\n5\\n1 2 5 7 4\\n1\\n1\\n3\\n69 6969 718045\\n\", \"4\\n3\\n1 3 4\\n5\\n1 2 5 7 1\\n1\\n1\\n3\\n69 6969 718045\\n\", \"4\\n3\\n1 1 4\\n5\\n1 2 5 7 1\\n1\\n1\\n3\\n69 6969 718045\\n\... | {
"index": "code_r1_train_2550"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\na\\n\", \"1\\nb\\n\", \"1\\n`\\n\", \"1\\nc\\n\", \"1\\nd\\n\", \"1\\ne\\n\", \"1\\nf\\n\"], \"outputs\": [\"0 \", \"0 \", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2551"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n0\\n6\\n1\\n11010\\n-1\", \"7\\n4\\n0\\n0\\n1\\n11010\\n-1\", \"7\\n0\\n0\\n0\\n6\\n10000\\n-1\", \"7\\n4\\n0\\n0\\n2\\n11010\\n-1\", \"7\\n0\\n0\\n0\\n6\\n11000\\n-1\", \"7\\n0\\n0\\n0\\n7\\n11000\\n-1\", \"7\\n0\\n0\\n1\\n7\\n11000\\n-1\", \"7\\n2\\n0\\... | {
"index": "code_r1_train_2552"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\", \"2\", \"7\", \"1\", \"4\", \"8\", \"3\", \"6\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2553"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nzbb\\n2\\n0 0\\n\", \"1\\nybb\\n2\\n0 0\\n\", \"1\\naba\\n2\\n0 0\\n\", \"1\\nycc\\n2\\n0 0\\n\", \"1\\naba\\n2\\n0 0\\n\", \"1\\nzbb\\n2\\n0 0\\n\", \"1\\nybb\\n2\\n0 0\\n\", \"1\\nycc\\n2\\n0 0\\n\"], \"outputs\": [\"bb\\n\", \"bb\\n\", \"aa\\n\", \"cc\\n\"... | {
"index": "code_r1_train_2554"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"099\\n\", \"112\\n\", \"101\\n\", \"011\\n\", \"178\\n\", \"000\\n\", \"178\\n\", \"101\\n\"], \"outputs\": [\"0+9=9\\n\", \"1+1=2\\n\", \"1+0=1\\n\", \"0+1=1\\n\", \"1+7=8\\n\", \"0+0=0\\n\", \"1+7=8\", \"1+0=1\"]}"
} | {
"index": "code_r1_train_2555"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0 0 1 1 1 1 1\\n\", \"1\\n8\\n0 0 0 1 1 1 1 1\\n\", \"1\\n8\\n0 0 0 1 1 0 1 1\\n\", \"1\\n8\\n0 1 0 1 1 0 1 1\\n\", \"1\\n8\\n1 0 0 1 1 0 1 1\\n\", \"1\\n8\\n1 0 0 0 1 0 1 1\\n\", \"1\\n8\\n0 0 1 1 1 1 1 1\\n\", \"1\\n8\\n1 0 0 1 0 0 0 1\\n\"], \"output... | {
"index": "code_r1_train_2556"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2\", \"4 5 7\", \"2 3 2\", \"4 6 7\", \"2 3 3\", \"2 4 3\", \"1 4 3\", \"1 4 4\"], \"outputs\": [\"56\\n\", \"4883760\\n\", \"25\\n\", \"24227280\\n\", \"100\\n\", \"336\\n\", \"20\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_2557"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n+\\n\", \"1\\n-\\n\", \"1\\n-\\n\", \"1\\n+\\n\", \"2\\n-+\\n\", \"2\\n++\\n\", \"2\\n+-\\n\", \"2\\n--\\n\"], \"outputs\": [\"1\", \"0\", \"0\\n\", \"1\\n\", \"1\", \"2\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_2558"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nD\\n965\\n\", \"1 1\\nD\\n965\\n\", \"1 1\\nD\\n1881\\n\", \"2 1\\nB\\nA\\n317\\n\", \"2 1\\nB\\nA\\n317\\n\", \"2 1\\nB\\nA\\n361\\n\", \"2 1\\nB\\nA\\n374\\n\", \"2 1\\nC\\nA\\n361\\n\"], \"outputs\": [\"965\", \"965\", \"1881\\n\", \"317\", \"317\", \"36... | {
"index": "code_r1_train_2559"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n-3 -1 0\\n-3 0 1\\n-2 0 2\\n1 4 -2\\n1 6 -1\\n1 4 1\\n3 1 0\", \"3 1\\n-3 -1 0\\n-6 0 1\\n-2 0 2\\n1 4 -2\\n1 6 -1\\n1 4 1\\n3 1 0\", \"3 1\\n-3 -1 0\\n-6 1 1\\n-2 0 2\\n1 4 -2\\n1 6 -1\\n1 4 1\\n3 1 0\", \"3 1\\n-3 -1 0\\n-6 1 1\\n-2 0 2\\n1 4 -2\\n1 2 -1\... | {
"index": "code_r1_train_2560"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"1 2\\n\", \"1 3\\n\", \"2 4\\n\", \"1 5\\n\", \"4 42\\n\", \"2 11\\n\"], \"outputs\": [\"YES\\n2\\n1 2 \\n\", \"NO\\n\", \"YES\\n2\\n1 2 \\n\", \"NO\\n\", \"YES\\n2\\n2 4\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2561"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1\\n\", \"2\\n2\\n\", \"4\\n1\\n\", \"87654\\n30\\n\", \"87654\\n138\\n\", \"87654\\n45678\\n\"], \"outputs\": [\"2\\n\", \"-1\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"10\\n\", \"100\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2562"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\", \"1 3\", \"1 4\", \"1 6\", \"2 8\", \"1 9\", \"2 2\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"9\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2563"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"A\\n\", \"@\\n\", \"aa\\n\", \"aa\\n\", \"ab\\n\", \"ac\\n\", \"Ann\\n\"], \"outputs\": [\"NO\", \"NO\\n\", \"NO\\n\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\"]}"
} | {
"index": "code_r1_train_2564"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n)())(()(\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n)())(()(\\n10 1\\n))()()()((\\n2 1\\n()\\n2 1\... | {
"index": "code_r1_train_2565"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\na\\nb\\n\", \"2\\na\\nb\\n\", \"2\\na\\nc\\n\", \"2\\n`\\nc\\n\", \"2\\nq\\nqq\\n\", \"2\\nq\\nqq\\n\", \"2\\nq\\npq\\n\", \"2\\nr\\npq\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\nq\\nqq\\n\", \"YES\\nq\\nqq\\n\", \"YES\\nq\\npq\\... | {
"index": "code_r1_train_2566"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n0\\n\", \"2 2\\n0\\n0\\n\", \"2 2\\n1 2\\n0\\n\", \"3 3\\n0\\n0\\n0\\n\", \"3 3\\n0\\n0\\n0\\n\", \"3 2\\n0\\n0\\n0\\n\", \"3 4\\n0\\n0\\n0\\n\", \"2 2\\n1 2\\n0\\n\"], \"outputs\": [\"2\\n\", \"2\", \"1\\n\", \"3\\n\", \"3\", \"3\\n\", \"3\\n\", \"1\"]... | {
"index": "code_r1_train_2567"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 4 4\\n\", \"3 2\\n4 4 4\\n\", \"3 3\\n1 4 0\\n\", \"3 2\\n8 4 4\\n\", \"3 3\\n4 4 4\\n\", \"3 3\\n4 4 7\\n\", \"3 3\\n4 4 0\\n\", \"3 5\\n1 4 0\\n\"], \"outputs\": [\"0\", \"0\\n\", \"1\\n\", \"8\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2568"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n1\\n1\\n\", \"2 1\\n1 1\\n1\\n\", \"2 1\\n1 1\\n2\\n\", \"2 1\\n1 1\\n1\\n\", \"2 1\\n1 1\\n2\\n\", \"2 2\\n1 2\\n1 1\\n\", \"2 2\\n2 2\\n0 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"... | {
"index": "code_r1_train_2569"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n..\\n\", \"2 1\\n..\\n\", \"2 2\\n..\\n\", \"2 2\\n..\\n\", \"2 4\\n..\\n\", \"2 8\\n..\\n\", \"2 1\\n..\\n\", \"3 1\\n.#.\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2570"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aaab\\n1\\n2 4 4\\n\", \"aaab\\n1\\n2 4 4\\n\", \"abab\\n1\\n2 4 4\\n\", \"bbaa\\n1\\n2 2 4\\n\", \"abbb\\n1\\n2 4 4\\n\", \"abaa\\n1\\n2 4 4\\n\", \"baba\\n1\\n2 4 4\\n\", \"bbba\\n1\\n2 4 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", ... | {
"index": "code_r1_train_2571"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1 2\\n1 2\\n\", \"2 1 2\\n1 2\\n1 2\\n\", \"4 3 2\\n3 4\\n1 2\\n2 3\\n1 4\\n\", \"4 3 2\\n3 4\\n1 2\\n2 3\\n1 4\\n\", \"5 4 2\\n2 4\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"5 4 2\\n3 4\\n2 1\\n2 3\\n1 4\\n4 5\\n\", \"5 4 2\\n4 5\\n1 2\\n2 3\\n3 4\\n1 5\\n\", \"5 4... | {
"index": "code_r1_train_2572"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\\n\", \"2\\n4 1\\n\", \"3\\n3 2 1\\n\", \"3\\n4 2 1\\n\", \"3\\n4 3 1\\n\", \"4\\n5 4 3 1\\n\", \"3\\n25 15 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"6\\n\", \"7\\n\", \"30\\n\"]}"
} | {
"index": "code_r1_train_2573"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n8 3\\n4 4\\n2 1\", \"9 3\\n8 3\\n4 4\\n4 1\", \"9 3\\n2 3\\n4 4\\n1 1\", \"9 3\\n8 3\\n4 2\\n2 1\", \"9 3\\n8 3\\n4 2\\n2 1\\n\", \"10000 1\\n1 10000\\n\", \"9999 2\\n2 9999\\n2 10000\\n\", \"10000 2\\n1 9999\\n1 10000\\n\"], \"outputs\": [\"4\\n\", \"3\\n\... | {
"index": "code_r1_train_2574"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\\n1 1 1 1\\n....\\n....\\n....\\n....\\n\", \"4\\n1 1 1 1\\n****\\n****\\n****\\n****\\n\", \"4\\n1 1 2 1\\n....\\n....\\n....\\n....\\n\", \"4\\n1 1 0 1\\n****\\n****\\n****\\n****\\n\", \"4\\n1 1 3 1\\n....\\n....\\n....\\n....\\n\", \"4\\n0 1 1 1\\n....\\n..... | {
"index": "code_r1_train_2575"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 2\\n\", \"1 1\\n\", \"8 3\\n\", \"7 1\\n\", \"9 2\\n\", \"1 2\\n\", \"1 3\\n\", \"1 4\\n\"], \"outputs\": [\"10\\n\", \"0\\n\", \"27\\n\", \"11\\n\", \"26\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2576"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n25 5 5 5\\n\", \"1\\n4001 0 0 0\\n\", \"1\\n1 100000000 100000000 1\\n\", \"1\\n1 100000000 100000000 1234\\n\", \"1\\n1 100000000 100000000 1238\\n\", \"1\\n1 100000000 100000000 100000000\\n\", \"4\\n5 0 0 0\\n0 0 0 5\\n2 5 10 6\\n3 0 0 7\\n\", \"1\\n1001 1... | {
"index": "code_r1_train_2577"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 0\\n\", \"2\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n0 4\\n\", \"2\\n0 3\\n\", \"2\\n0 -1\\n\", \"2\\n-1 -1\\n\"], \"outputs\": [\"0 0 \\n\", \"0 0\\n\", \"1 0\\n\", \"2 0\\n\", \"4 0\\n\", \"3 0\\n\", \"0 -1\\n\", \"-1 -1\\n\"]}"
} | {
"index": "code_r1_train_2578"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nuoy\\nate\\nmy\\nhum\\ntoast\", \"5\\nuoy\\nate\\nmy\\nhum\\ntoasu\", \"5\\nuoy\\natf\\nmy\\nhum\\ntoasu\", \"5\\nuyp\\natf\\nmy\\nhum\\ntoasu\", \"5\\npyu\\nauf\\nmy\\nhum\\ntoasu\", \"5\\npyu\\nauf\\nmy\\nmuh\\ntoasu\", \"5\\npyu\\nfua\\nmy\\nmuh\\ntoasu\",... | {
"index": "code_r1_train_2579"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"cofgee\", \"sjppvv\", \"uuppis\", \"ephoni\", \"cofgef\", \"uvppis\", \"eohoni\", \"fegfoc\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_2580"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 2\\n4\\n\", \"1\\n2 4\\n5 1\\n\", \"1\\n3 13\\n4 1 3\\n\", \"1\\n7 489\\n5 29 12 16 25 36 18\\n\", \"2\\n1 9\\n2\\n9 9\\n11 6 5 13 7 10 2 3 12\\n\", \"5\\n3 13\\n3 1 4\\n1 1\\n1\\n3 3\\n1 4 2\\n2 1\\n4 3\\n5 6\\n1 2 3 4 5\\n\", \"1\\n50 870\\n1 2 3 4 5 6 7 ... | {
"index": "code_r1_train_2581"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.s..o.\\n\", \"6\\n......\\n\", \"6\\n..p...\\n\", \"6\\n......\\n\", \"6\\n.s..o.\\n\", \"6\\n..p...\\n\", \"7\\nj......\\n\", \"7\\n...feon\\n\"], \"outputs\": [\"espeon\\n\", \"espeon\\n\", \"espeon\\n\", \"espeon\\n\", \"espeon\\n\", \"espeon\\n\", \"jolt... | {
"index": "code_r1_train_2582"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2\\n\", \"4 1\\n\", \"4 2\\n\", \"4 3\\n\", \"4 4\\n\", \"3 4\\n\", \"2 4\\n\"], \"outputs\": [\"0\\n\", \"8\\n\", \"0\\n\", \"24\\n\", \"102\\n\", \"264\\n\", \"162\\n\", \"84\\n\"]}"
} | {
"index": "code_r1_train_2583"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2 1\\n1 2 1\\n\", \"2 1\\n1 2 0\\n\", \"4 4\\n1 2 1\\n1 3 0\\n2 3 1\\n3 4 1\\n\", \"4 4\\n1 2 1\\n1 3 0\\n2 3 1\\n3 4 1\\n\", \"5 6\\n1 2 0\\n3 2 0\\n5 1 1\\n1 3 1\\n5 3 0\\n4 3 1\\n\", \"6 6\\n1 2 1\\n2 3 1\\n3 4 1\\n3 5 1\\n4 6 1\\n4 5 1\\n\... | {
"index": "code_r1_train_2584"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3017\\n10011\\n\", \"1\\n5 42069\\n11011\\n\", \"1\\n5 42069\\n11011\\n\", \"1\\n5 45215\\n01101\\n\", \"1\\n5 35184\\n11011\\n\", \"1\\n5 21557\\n11011\\n\", \"1\\n5 21557\\n10011\\n\", \"1\\n5 55375\\n11011\\n\"], \"outputs\": [\"11111\\n\", \"11011\\n\",... | {
"index": "code_r1_train_2585"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n\", \"1 2\\n\", \"4 2\\n\", \"9 3\\n\", \"8 2\\n\", \"1 3\\n\", \"1 4\\n\"], \"outputs\": [\"1\\n\", \"9\\n\", \"2\\n\", \"3\\n\", \"7\\n\", \"4\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2586"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\nr\\n\", \"1\\na\\n\", \"1\\ns\\n\", \"1\\nb\\n\", \"1\\nt\\n\", \"2\\ntj\\n\", \"2\\njt\\n\"], \"outputs\": [\"YES\\n0\\n\", \"YES\\n0\\n\", \"YES\\n0\\n\", \"YES\\n0\\n\", \"YES\\n0\\n\", \"YES\\n0\\n\", \"YES\\n01\\n\", \"YES\\n00\\n\"]}"
} | {
"index": "code_r1_train_2587"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 0\", \"3\\n1 2\\n2 3\", \"4\\n1 2\\n1 3\\n2 4\", \"4\\n1 2\\n2 3\\n2 4\", \"4\\n1 2\\n1 3\\n3 4\", \"4\\n1 2\\n2 3\\n3 4\", \"4\\n1 4\\n1 3\\n2 4\"], \"outputs\": [\"2\", \"5\\n\", \"5\", \"8\\n\", \"9\\n\", \"8\\n\", \"8\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_2588"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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........\\n.#...K..\\n........\\n...#...#\\n........\\n.K...#..\\n........\\n\", \"1\\nK.#....#\\n...#..#.\\n..#.....\\n..#.###.\\n..#.....\\n...#....\\n.#.....#\\n.#...##K\\n\", \"1\\n...#...#\\n........\\n.#...K..\\n........\\n...#...#\\n........... | {
"index": "code_r1_train_2589"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"1\\n\", \"4\\n\", \"55\\n\", \"15\\n\", \"09\\n\"], \"outputs\": [\"9\\n\", \"9\\n\", \"9\\n\", \"9\\n\", \"9\\n\", \"14\\n\", \"15\\n\", \"15\\n\"]}"
} | {
"index": "code_r1_train_2590"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"rmf\\nrm\\nf\\n\", \"rmf\\nrm\\ng\\n\", \"rmf\\nrm\\nh\\n\", \"rmf\\nqm\\nh\\n\", \"aabbc\\na\\nb\\n\", \"aba\\nba\\nab\\n\", \"aba\\nba\\nba\\n\", \"aba\\naa\\nba\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"0\\n\", \"1\\n\", \"0\\n\"... | {
"index": "code_r1_train_2591"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\nbac\\naaada\\ne\\n3\\naba\\nabcde\\naba\\n2\\nbaba\\nbaba\\n4\\nab\\nab\\nc\\nbc\\n5\\ncbdca\\nd\\na\\nd\\ne\\n3\\nb\\nc\\nca\\n\", \"6\\n3\\nbac\\naaada\\ne\\n3\\naba\\nabcde\\naba\\n2\\nbaba\\nbaba\\n4\\nba\\nab\\nc\\nbc\\n5\\ncbdca\\nd\\na\\nd\\ne\\n3\... | {
"index": "code_r1_train_2592"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"SUN\", \"SAT\", \"SAT\\n\", \"SUN\\n\", \"FRI\\n\", \"MON\\n\", \"THU\\n\", \"TUE\\n\"], \"outputs\": [\"7\", \"1\", \"1\\n\", \"7\\n\", \"2\\n\", \"6\\n\", \"3\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2593"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 4\\n\", \"6 3 1 3\\n\", \"5 2 1 5\\n\", \"6 4 2 5\\n\", \"7 4 2 5\\n\", \"6 5 2 4\\n\", \"5 4 2 4\\n\", \"6 6 3 5\\n\"], \"outputs\": [\"5\\n\", \"1\\n\", \"0\\n\", \"6\\n\", \"6\\n\", \"5\\n\", \"4\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2594"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 0 2\", \"1 2 1\\n3 4 2\", \"1 2 0\\n4 2 2\", \"0 0 1\\n0 1 2\", \"0 0 0\\n0 0 2\", \"1 1 1\\n9 2 2\", \"0 1 0\\n0 0 2\", \"1 2 1\\n5 4 2\"], \"outputs\": [\"0\\n\", \"2\\n\", \"4\\n\", \"1\\n\", \"0\\n\", \"4\\n\", \"0\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2595"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"4\\n\"], \"outputs\": [\"2\\n1 1 2 \\n\", \"2\\n1 1 2 1 \\n\", \"1\\n1 \\n\", \"1\\n1 1 \\n\", \"1\\n1 \\n\", \"1\\n1 1 \\n\", \"1\\n1 \", \"2\\n1 1 2 1 \"]}"
} | {
"index": "code_r1_train_2596"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\", \"3\\n1 3 5\", \"3\\n1 3 3\", \"3\\n1 0 3\", \"3\\n1 2 3\", \"3\\n1 2 10\", \"3\\n1 3 10\", \"3\\n0 2 10\"], \"outputs\": [\"11\\n\", \"10\\n\", \"4\\n\", \"7\\n\", \"5\", \"26\\n\", \"25\\n\", \"28\\n\"]}"
} | {
"index": "code_r1_train_2597"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1 1 1\\n2\\n\", \"1 1 1\\n0\\n\", \"2 1 2\\n3 5\\n\", \"2 1 2\\n0 5\\n\", \"2 2 2\\n0 5\\n\", \"1 10 1\\n-10\\n\", \"1 10 1\\n-10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"4\\n\", \"3\\n\", \"3\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2598"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1\\n\", \"1 0\\n0\\n\", \"4 1\\n0011\\n\", \"4 2\\n0011\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2599"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.