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\\n91838 0\\n\", \"1 2\\n91838 0\\n\", \"2 1\\n3 2\\n4 0\\n\", \"1 1\\n200000 0\\n\", \"1 2\\n1 100000\\n\", \"1 1\\n1 200000\\n\", \"1 1\\n147657 0\\n\", \"1 2\\n1 100001\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"200000\\n\",... | {
"index": "code_r1_train_200"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 chef\\n4 enjoyourapplepie\", \"2\\n2 chef\\n4 eipelpparuoyojne\", \"2\\n2 chef\\n4 enjoyourappmepie\", \"2\\n2 cief\\n4 enjoyourappmepie\", \"2\\n2 cgef\\n4 enjoyourapplepie\", \"2\\n2 chef\\n4 eipempparuoyojne\", \"2\\n2 cief\\n4 enjoyourpapmepie\", \"2\\n... | {
"index": "code_r1_train_201"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 S\\n\", \"3\\nM XS\\nM S\\nS M\\n\", \"3\\nM XS\\nM S\\nM M\\n\", \"6\\nS L\\nL S\\nM L\\nL M\\nS M\\nM S\\n\", \"5\\nM XS\\nM XS\\nM XS\\nM XS\\nM XS\\n\", \"1\\nXXXXXXXXXXXXXXXXS XXXXXXXXXXS\\n\", \"5\\nXS XXXS\\nXXL M\\nXXS M\\nM XXS\\nXXS XXS\\n\", \"6\... | {
"index": "code_r1_train_202"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"1 2\\n\", \"2 3\\n\", \"4 9\\n\", \"3 6\\n\", \"2 7\\n\", \"2 7\\n\", \"1 2\\n\"], \"outputs\": [\"YES\\n1 2\\n3 4\\n5 6\\n7 8\\n\", \"YES\\n1 2\\n\", \"YES\\n2 3\\n\", \"YES\\n4 5\\n6 7\\n8 9\\n\", \"YES\\n3 4\\n5 6\\n\", \"YES\\n2 3\\n4 5\\n6 7\\n\"... | {
"index": "code_r1_train_203"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 3 5 2 8\", \"5\\n4 3 1 2 9\", \"5\\n4 3 1 2 8\", \"5\\n4 6 1 2 9\", \"5\\n4 3 5 2 9\", \"5\\n5 3 5 2 8\", \"5\\n3 3 1 2 8\", \"5\\n4 6 1 1 9\"], \"outputs\": [\"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_204"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"9\\n\", \"5\\n\", \"2\\n\", \"6\\n\", \"4\\n\", \"3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_205"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"5 3 1\", \"5 3 2\", \"3 2 0\", \"7 2 1\", \"2 2 1\", \"7 3 2\", \"5 4 2\"], \"outputs\": [\"12\\n\", \"144\\n\", \"216\\n\", \"2\\n\", \"14\\n\", \"4\\n\", \"1488\\n\", \"972\\n\"]}"
} | {
"index": "code_r1_train_206"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13 7 6\\n6 2\\n\", \"3\\n13 2 6\\n6 2\\n\", \"3\\n23 2 2\\n6 2\\n\", \"3\\n23 2 4\\n6 6\\n\", \"3\\n13 2 2\\n6 2\\n\", \"3\\n23 2 2\\n6 3\\n\", \"3\\n23 2 4\\n6 3\\n\", \"3\\n20 7 6\\n6 2\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"6\\n\", \"12\\n\", \"2\\n\",... | {
"index": "code_r1_train_207"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"04:50\\n\", \"02:17\\n\", \"12:14\\n\", \"03:44\\n\", \"00:17\\n\", \"15:51\\n\", \"23:31\\n\", \"07:56\\n\"], \"outputs\": [\"05:50\\n\", \"02:20\\n\", \"12:21\\n\", \"04:40\\n\", \"01:10\\n\", \"20:02\\n\", \"23:32\\n\", \"10:01\\n\"]}"
} | {
"index": "code_r1_train_208"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"2 1\\n\", \"2 2\\n\", \"5 5\\n\", \"9 10\\n\", \"8 10\\n\", \"15 13\\n\"], \"outputs\": [\"5 4\\n\", \"1 1\\n\", \"1 1\", \"2 2\", \"5 4\", \"8 10\", \"8 10\\n\", \"10 8\"]}"
} | {
"index": "code_r1_train_209"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"6\\n\"], \"outputs\": [\"2\\nC.\\n.C\\n\", \"5\\nC.C\\n.C.\\nC.C\\n\", \"8\\nC.C.\\n.C.C\\nC.C.\\n.C.C\\n\", \"1\\nC\\n\", \"5\\nC.C\\n.C.\\nC.C\\n\", \"8\\nC.C.\\n.C.C\\nC.C.\\n.C.C\\n\", \"1\... | {
"index": "code_r1_train_210"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n0\\n0\", \"5\\n0\\n1\\n0\", \"5\\n1\\n1\\n0\", \"5\\n2\\n1\\n0\", \"5\\n0\\n0\\n1\", \"5\\n0\\n0\\n2\", \"5\\n0\\n1\\n2\", \"5\\n1\\n1\\n2\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_211"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 18 7\\n8 20 32 6\\n0 1 8 17\\n22 1 90 8\", \"2\\n1 1 18 7\\n8 20 32 6\\n0 1 8 17\\n22 0 90 8\", \"2\\n1 1 18 7\\n2 20 32 6\\n0 1 8 17\\n22 0 90 8\", \"2\\n1 1 18 7\\n0 20 32 6\\n0 1 8 17\\n22 0 90 8\", \"2\\n1 1 18 7\\n0 20 32 6\\n0 1 8 17\\n22 0 90 2\", ... | {
"index": "code_r1_train_212"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 1\\n5 4\\n0 4\\n3\\n9 1\\n5 4\\n1 0\\n3\\n9 1\\n5 5\\n1 8\\n0\", \"3\\n9 1\\n5 4\\n0 8\\n3\\n9 1\\n5 4\\n1 0\\n3\\n9 1\\n5 0\\n1 8\\n0\", \"3\\n9 1\\n5 4\\n1 4\\n3\\n9 1\\n5 4\\n1 0\\n3\\n9 1\\n5 5\\n1 8\\n0\", \"3\\n9 1\\n5 4\\n0 8\\n3\\n9 1\\n5 4\\n1 0\\n... | {
"index": "code_r1_train_213"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\", \"4 0\", \"6 5\", \"8 5\", \"5 2\", \"6 9\", \"2 0\", \"4 1\"], \"outputs\": [\"8\\n\", \"3\\n\", \"5\\n\", \"7\\n\", \"4\\n\", \"6\\n\", \"1\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_214"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 4\\n\", \"5 5 1 5 5 5\\n\", \"5 5 1 3 5 5\\n\", \"3 3 1 3 9 9\\n\", \"1 1 1 1 1 1\\n\", \"5 5 0 5 5 5\\n\", \"1 1 1 2 1 1\\n\", \"5 5 0 3 5 5\\n\"], \"outputs\": [\"2 2 \\n\", \"1 1 1 1 1 \\n\", \"1 1 1 1 1 \\n\", \"3 3 3 \\n\", \"1 \\n\", \"1 1 1 1 1 \... | {
"index": "code_r1_train_215"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"3\\n1 2 3\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 1\\n\", \"3\\n0 2 3\\n\"], \"outputs\": [\"0 \", \"1 \", \"0\\n\", \"1\\n\", \"0 1 2 \", \"0 2 1 \", \"0 2 3 \\n\", \"1 0 2 \\n\"]}"
} | {
"index": "code_r1_train_216"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 1\\n2\\n1 3\\n1\\n3\", \"5 1\\n2\\n1 3\\n1\\n3\", \"9 0\\n2\\n4 0\\n2\\n0\", \"3 0\\n2\\n1 3\\n1\\n3\", \"5 1\\n2\\n1 4\\n1\\n3\", \"3 0\\n1\\n1 3\\n1\\n3\", \"5 1\\n2\\n1 4\\n2\\n3\"], \"outputs\": [\"0\\n\", \"1\\n\", \"3\\n\", \"9\\n\", \... | {
"index": "code_r1_train_217"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"4\\n\", \"5\\n\", \"3\\n\", \"8\\n\", \"9\\n\", \"1\\n\"], \"outputs\": [\"6 1 2 3 4 5\\n\", \"7 1 2 3 4 5 6\\n\", \"4 1 2 3\\n\", \"5 1 2 3 4\\n\", \"3 1 2\\n\", \"8 1 2 3 4 5 6 7 \", \"9 1 2 3 4 5 6 7 8 \", \"1\\n\"]}"
} | {
"index": "code_r1_train_218"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2\\n5 2\\n8 6\\n\", \"1\\n2\\n4 1\\n5 3\\n\", \"1\\n2\\n1 0\\n2 2\\n\", \"1\\n2\\n3 1\\n6 6\\n\", \"1\\n2\\n2 1\\n3 3\\n\", \"1\\n2\\n2 0\\n3 2\\n\", \"1\\n2\\n3 0\\n5 5\\n\", \"1\\n2\\n3 1\\n5 4\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"... | {
"index": "code_r1_train_219"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n\", \"5\\n1 2 3 7 5\\n\", \"5\\n1 2 3 4 5\\n\", \"5\\n0 2 3 14 5\\n\", \"5\\n1 2 3 14 5\\n\", \"5\\n27 30 8 6 3\\n\", \"5\\n27 60 8 6 3\\n\", \"5\\n27 30 8 32 3\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"4\\n\", \"5\\n\", \"4\\n\", \"13\\n\", \"13... | {
"index": "code_r1_train_220"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2\\nz\\ny\\n\", \"1\\n2\\na\\ne\\n\", \"1\\n2\\nz\\ny\\n\", \"1\\n2\\na\\ne\\n\", \"1\\n1\\nz\\ny\\n\", \"1\\n2\\nxx\\nz\\n\", \"1\\n2\\naa\\nb\\n\", \"1\\n2\\naa\\na\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO... | {
"index": "code_r1_train_221"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n2\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n4\\n2\\n\", \"1\\n2\\n1\\n\", \"1\\n3\\n1\\n\", \"1\\n5\\n1\\n\", \"1\\n5\\n2\\n\", \"1\\n5\\n0\\n\"], \"outputs\": [\"-1\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_222"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 1\\n1\\n\", \"1 0\\n0\\n\", \"1 1\\n1\\n\", \"1 0\\n1\\n\", \"1 1\\n0\\n\", \"1 1\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_223"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n\", \"2\\n\", \"0\\n\", \"9\\n\", \"7\\n\", \"1\\n\", \"4\\n\", \"27\\n\"], \"outputs\": [\"3\\n1 3 4\\n\", \"1\\n1\\n\", \"0\\n\\n\", \"7\\n1 2 4 5 6 7 8 \", \"4\\n1 4 5 6 \", \"1\\n1 \", \"3\\n1 3 4 \", \"25\\n1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20... | {
"index": "code_r1_train_224"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2\\nabc 1\\nab 0\", \"2\\nabc 1\\nba 0\", \"2\\nabc 2\\nab 0\", \"2\\nabc 2\\nba 0\", \"2\\nbac 2\\nba 0\", \"2\\nbac 2\\nab 0\", \"2\\ncab 2\\nab 0\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"2\\n\", \"-1\\n... | {
"index": "code_r1_train_225"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n\", \"1\\n2\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n8\\n\", \"2\\n1 3\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"1 \", \"1 \", \"1 \", \"2 \", \"1\\n\", \"1\\n\", \"1 1 \", \"1 1 \"]}"
} | {
"index": "code_r1_train_226"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n3 3 5 3\\n4 2 4 4\\n7 1 7 5\", \"23\\n1 1 3 1\\n3 1 3 3\\n3 3 1 3\\n1 3 1 5\\n1 5 3 5\\n5 2 7 2\\n7 2 7 4\\n6 4 5 4\\n5 6 5 5\\n5 6 7 6\\n11 4 9 4\\n13 0 15 0\\n15 1 15 4\\n20 2 18 2\\n21 5 23 5\\n21 5 21 7\\n21 7 23 7\\n23 7 23 9\\n23 9 21 9\\n24 0... | {
"index": "code_r1_train_227"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAzaNA\", \"5\\nAMazA\", \"5\\nzAaNA\", \"5\\nAzaAN\", \"5\\nzAaNB\", \"5\\nAMAza\", \"5\\nAzaBN\", \"5\\nzAaNC\"], \"outputs\": [\"1\\nA\\n\", \"3\\nAAA\\n\", \"1\\nA\\n\", \"1\\nA\\n\", \"1\\nA\\n\", \"3\\nAAA\\n\", \"1\\nA\\n\", \"1\\nA\\n\"]}"
} | {
"index": "code_r1_train_228"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"B\\n\", \"B\\n\", \"A\\n\", \"C\\n\", \"@\\n\", \"D\\n\", \"?\\n\"], \"outputs\": [\"<A>\\n\", \"<B>\\n\", \"<B>\\n\", \"<A>\\n\", \"<C>\\n\", \"<@>\\n\", \"<D>\\n\", \"<?>\\n\"]}"
} | {
"index": "code_r1_train_229"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n1 2\\n\", \"2\\n1 2\\n3 4\\n\", \"2\\n1 2\\n1 2\\n\", \"2\\n1 2\\n3 4\\n\", \"2\\n1 2\\n1 0\\n\", \"2\\n1 4\\n2 1\\n\", \"2\\n1 2\\n3 0\\n\"], \"outputs\": [\"2 0\\n2 0\\n\", \"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"... | {
"index": "code_r1_train_230"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"1\", \"2\", \"2\", \"0\", \"1\", \"4\"], \"outputs\": [\"0\\n\", \"4\\n1 2\\n1 3\\n2 4\\n3 4\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"4\\n1 2\\n1 3\\n2 4\\n3 4\\n\"]}"
} | {
"index": "code_r1_train_231"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"300000 1\\n1 86053\\n\", \"300000 1\\n2 86053\\n\", \"300000 1\\n1 300000\\n\", \"300000 1\\n1 300000\\n\", \"3 4\\n1 3\\n1 1\\n1 2\\n2 3\\n\", \"4 4\\n1 3\\n1 1\\n1 2\\n2 3\\n\", \"4 4\\n1 3\\n2 1\\n1 2\\n2 3\\n\", \"4 4\\n1 1\\n2 1\\n1 2\\n2 3\\n\"], \"outputs\... | {
"index": "code_r1_train_232"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3 4\\n1\\n\", \"3 1\\n2 3 4\\n0\\n\", \"3 1\\n2 6 4\\n0\\n\", \"3 1\\n2 3 4\\n1\\n\", \"3 5\\n1 2 3\\n1 2 2 3 3\\n\", \"3 5\\n1 2 3\\n1 1 1 1 1\\n\", \"3 5\\n1 0 3\\n1 1 1 1 1\\n\", \"3 5\\n1 2 3\\n1 2 1 3 3\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n... | {
"index": "code_r1_train_233"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n2 6\\n2 1\\n4 3\\n5 31\\n6 89\", \"6\\n2 0\\n2 6\\n3 1\\n2 3\\n5 61\\n6 57\", \"6\\n2 1\\n2 8\\n3 1\\n2 3\\n4 61\\n1 57\", \"6\\n2 1\\n2 8\\n3 1\\n2 3\\n4 61\\n1 69\", \"6\\n3 2\\n6 8\\n4 1\\n2 3\\n3 29\\n1 54\", \"6\\n1 14\\n2 6\\n3 3\\n4 3\\n5 40\\n6 ... | {
"index": "code_r1_train_234"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"F\\n1\\n\", \"FT\\n1\\n\", \"TTFFF\\n49\\n\", \"FFFTFFF\\n3\\n\", \"FFFTFFF\\n2\\n\", \"FFFFTFTF\\n1\\n\", \"FTTTFTFF\\n8\\n\", \"FFFFTFTF\\n0\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"4\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"8\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_235"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 5\\n1 2 2\\n1 3 2\\n2 3 1\\n2 4 2\\n3 4 1\", \"7 9\\n2 1 2\\n1 3 1\\n2 3 2\\n2 4 4\\n2 6 1\\n6 4 1\\n3 5 1\\n3 5 1\\n4 7 3\\n5 7 2\\n6 7 1\", \"7 9\\n2 1 2\\n1 3 1\\n2 3 2\\n2 4 4\\n2 6 1\\n6 1 1\\n3 5 1\\n3 5 1\\n4 7 3\\n5 7 2\\n6 7 1\", \"7 9\\n2 1 2\\n1 3 1\... | {
"index": "code_r1_train_236"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"2\\n5 5\\n5 0\\n\", \"2\\n1 2\\n1 0\\n\", \"2\\n5 5\\n5 0\\n\", \"2\\n1 2\\n1 0\\n\", \"2\\n5 5\\n2 0\\n\", \"2\\n1 2\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"5\\n\", \"-1\\n\", \"5\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_237"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9312924 1000001000\\n6 51\\n1 481905067\\n\", \"4\\n1 1\\n7655209 1000001000\\n6 85\\n1 481905067\\n\", \"4\\n1 1\\n9312924 1000001000\\n6 70\\n1 481905067\\n\", \"4\\n1 1\\n7655209 1000001000\\n6 56\\n1 481905067\\n\", \"4\\n1 1\\n2508889 1010100000\\n... | {
"index": "code_r1_train_238"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 5\\n0 8 25 56 0\\n9 13 16 0 17\\n20 9 16 10 22\\n17 27 18 16\\n2 4 0\\n2 5\\n21\\n0 0\", \"3 5\\n22 4 30 19 71\\n5 12 11 0 8\\n5 8 1 11 19\\n17 21 19 16\\n9 12 0\\n19 3\\n6\\n0 0\", \"3 5\\n0 8 30 19 44\\n6 12 9 0 8\\n30 8 16 4 22\\n17 21 18 16\\n7 12 0\\n19 2\... | {
"index": "code_r1_train_239"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n4 1 2\\n1 0 1\", \"1 8 6\\n2 9 7\\n1 7 7\", \"0 8 8\\n0 8 8\\n0 0 8\", \"2 2 2\\n2 1 0\\n2 2 2\", \"1 0 1\\n4 1 2\\n0 0 1\", \"1 8 6\\n4 9 7\\n1 7 7\", \"0 8 2\\n0 8 8\\n0 0 8\", \"1 0 1\\n4 1 4\\n0 0 1\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \... | {
"index": "code_r1_train_240"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"3 0\\n0\\n0\\n0\\n\", \"2 1\\n1 2 1\\n0\\n0\\n\", \"2 1\\n1 2 3\\n1 0\\n0\\n\", \"2 1\\n1 2 3\\n0\\n1 3\\n\", \"2 1\\n1 2 4\\n0\\n1 3\\n\", \"2 1\\n1 2 1\\n1 0\\n0\\n\", \"2 1\\n1 1 3\\n1 0\\n0\\n\"], \"outputs\": [\"-1\", \"-1\", \"1\", \"4\"... | {
"index": "code_r1_train_241"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n0 2\\n\", \"2\\n88 5\\n\", \"2\\n88 0\\n\", \"2\\n-1 2\\n\", \"3\\n2 2 2\\n\", \"3\\n2 1 2\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_242"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"B\", \"D\", \"E\", \"F\", \"A\", \"G\", \"H\", \"I\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_243"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ndo\\nhet\\nbest\\n`nd\\nenjoy\\ntoday\\nat\\nacm\\nicpc\\n0\\noh\\nyes\\nby\\nfar\\nit\\nis\\nwow\\nso\\nbda\\nto\\nmd\\nyou\\nknow\\nhey\\n15\\nedcba\\nfghijkl\\nmnopq\\nrstuvwx\\nyzz\\nabcde\\nlkkihgf\\nmnopq\\nxwvutsr\\nyz\\nabcde\\nfghijkl\\nmnopq\\nrstuv... | {
"index": "code_r1_train_244"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n0\\n\", \"2\\n0 0\\n0 0\\n\", \"2\\n0 1\\n0 0\\n\", \"2\\n1 0\\n0 0\\n\"], \"outputs\": [\"-1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_245"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"2\\n10\\n\", \"2\\n11\\n\", \"2\\n11\\n\", \"2\\n10\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"10\\n\", \"1\\n\", \"1\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_246"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4\", \"1\", \"3\", \"6\", \"2\", \"12\", \"19\", \"24\"], \"outputs\": [\"3\\n\", \"1\\n\", \"2\\n\", \"3\", \"2\", \"5\\n\", \"6\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_247"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 105\\n8 5 105\\n1 2 24\\n4 98 3\\n12 5 26\\n1 22 23\\n1 13 201\\n13 0 42\\n3 24 50\\n2 82 89\\n1 84 125\\n1 3 999\\n99 3 999\\n98 99 999\\n1 99 11\\n99 1 12\\n0 0 0\", \"5 8 105\\n8 5 105\\n1 2 24\\n4 98 3\\n12 5 26\\n1 22 23\\n1 13 201\\n13 0 42\\n3 24 50\\n... | {
"index": "code_r1_train_248"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 10\\n\", \"1\\n1 1000\\n\", \"1\\n1000 1\\n\", \"2\\n1 1\\n1 1\\n\", \"2\\n2 1\\n3 1\\n\", \"2\\n4 3\\n2 1\\n\", \"1\\n1000 1000\\n\"], \"outputs\": [\"1\\n\", \"50\\n\", \"1000\\n\", \"1000\\n\", \"2\\n\", \"5\\n\", \"15\\n\", \"1000000\\n\... | {
"index": "code_r1_train_249"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 4\", \"2 0 1 3\", \"0 3 8 6\", \"0 3 8 5\", \"2 2 3 4\", \"4 2 0 4\", \"4 3 4 3\", \"6 1 1 7\"], \"outputs\": [\"0\\n\", \"1\\n\", \"-3\\n\", \"-2\\n\", \"2\\n\", \"4\\n\", \"3\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_250"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n3\\n\", \"1\\n1\\n1\\n\", \"4\\n1\\n2\\n3\\n1 2 3\\n5\\n1 1 1 1 1\\n3\\n3 3 2\\n\", \"4\\n1\\n2\\n3\\n1 3 3\\n5\\n1 1 1 1 1\\n3\\n3 3 2\\n\", \"4\\n1\\n1\\n3\\n1 3 3\\n5\\n1 1 1 1 1\\n3\\n3 3 2\\n\", \"4\\n1\\n1\\n3\\n1... | {
"index": "code_r1_train_251"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n200274443973227574 485348695690455822\\n\", \"1\\n999999999999999999 1000000000000000000\\n\", \"5\\n8 19\\n8 20\\n119 121\\n1 100000000000000000\\n1234567891011 1000000000000000000\\n\", \"2\\n747173626475907138 967354071062227214\\n818273638681004942 983018... | {
"index": "code_r1_train_252"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 0\\n\", \"2 1\\n1 2\\n1\\n\", \"2 1\\n1 2\\n1\\n\", \"2 1\\n1 4\\n1\\n\", \"5 3\\n1 2 3 4 5\\n1\\n2\\n10\\n\", \"5 3\\n1 2 3 4 5\\n1\\n2\\n18\\n\", \"5 3\\n1 2 3 4 5\\n2\\n2\\n18\\n\"], \"outputs\": [\"\", \"\\n\", \"1 2\\n\", \"1 2\\n\"... | {
"index": "code_r1_train_253"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6965 1\\n3\\n\", \"1685 1\\n3\\n\", \"4 7\\n4 4 7\", \"9 6\\n7 5 6\", \"5 7\\n7 3 6\", \"8 6\\n7 5 6\", \"5 7\\n5 3 6\", \"15 4\\n5 4 6\"], \"outputs\": [\"33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333... | {
"index": "code_r1_train_254"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n1\\n1\\n0\\n\", \"3\\n1 0 0\\n0 0 0\\n0 0 0\\n0 0 0\\n\", \"5\\n0 1 0 1 0\\n1 1 0 0 1\\n1 0 1 0 1\\n0 0 1 1 0\\n\", \"7\\n1 0 0 1 1 0 1\\n1 0 0 0 1 1 1\\n1 1 1 0 0 1 0\\n0 1 1 1 0 0 0\\n\", \"7\\n0 0 1 0 1 0 1\\n0 0 0 0 0 0 1\\n0 1 0 1 0 1 0\\n1 0 0 0 0 0... | {
"index": "code_r1_train_255"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n0\\n\", \"3\\n7 4 9\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_256"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 3\\n###\\n#A#\\n###\\n1\\nN 1\\n\", \"3 3\\n###\\n#A#\\n###\\n1\\nN 0\\n\", \"3 4\\n####\\n#-A#\\n####\\n2\\nW 1\\nN 2\\n\", \"3 4\\n####\\n#-A#\\n####\\n2\\nW 2\\nN 2\\n\", \"3 4\\n####\\n#.A#\\n####\\n2\\nW 1\\nN 2\\n\", \"4 9\\n#########\\n#AB#CDEF#\\n#........ | {
"index": "code_r1_train_257"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 1\\n1 1\\n1 1\\n\", \"1\\n1 1\\n3 3\\n1 1\\n\", \"1\\n1 6\\n5 9\\n5 9\\n\", \"1\\n1 2\\n1 2\\n1 2\\n\", \"1\\n1 1\\n3 3\\n1 1\\n\", \"1\\n1 1\\n1 1\\n1 1\\n\", \"1\\n1 6\\n5 9\\n5 9\\n\", \"1\\n1 2\\n1 2\\n1 2\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"4\\n... | {
"index": "code_r1_train_258"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000\\n\", \"1\\n1000\\n\", \"3\\n1 3 5\\n\", \"3\\n2 3 5\\n\", \"3\\n2 3 1\\n\", \"3\\n1 3 5\\n\", \"5\\n4 3 2 2 3\\n\", \"5\\n4 3 2 3 3\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_259"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"2 1\\n1\\n\", \"2 1\\n1\\n\", \"9 1\\n6\\n\", \"7 1\\n1\\n\", \"5 1\\n3\\n\", \"10 1\\n6\\n\", \"10 1\\n1\\n\"], \"outputs\": [\"3 2 1 5 4 \", \"1 2 \", \"1 2 \", \"6 5 4 3 2 1 9 8 7 \", \"1 7 6 5 4 3 2 \", \"3 2 1 5 4 \", \"6 5 4 3 2 1 10 9 8 7 \... | {
"index": "code_r1_train_260"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"500\\n1000\\n0\", \"500\\n0000\\n0\", \"500\\n1100\\n0\", \"500\\n0000\\n1\", \"500\\n0000\\n2\", \"500\\n0000\\n4\", \"500\\n0000\\n8\", \"500\\n0000\\n3\"], \"outputs\": [\"850\\n1520\\n\", \"850\\n\", \"850\\n1950\\n\", \"850\\n\", \"850\\n\", \"850\\n\", \"85... | {
"index": "code_r1_train_261"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"0\", \"0\\n\", \"-1\", \"-8\", \"42\", \"15\"], \"outputs\": [\"0\\n\", \"5\\n\", \"0\", \"0\\n\", \"-505\\n\", \"-510\\n\", \"40\\n\", \"15\\n\"]}"
} | {
"index": "code_r1_train_262"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"1 1\\n0\\n2 1\\n\", \"5 5\\n1 1 0 1 0\\n2 3\\n1 2\\n2 3\\n2 1\\n2 5\\n\", \"5 5\\n0 1 0 1 0\\n2 3\\n1 2\\n2 3\\n2 1\\n2 5\\n\", \"5 5\\n1 1 1 1 0\\n2 3\\n1 2\\n2 3\\n2 1\\n2 5\\n\", \"5 5\\n1 1 1 1 0\\n2 3\\n1 2\\n2 3\\n2 1\\n2 2\\n\", \"5 5... | {
"index": "code_r1_train_263"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"R\\n\", \"R\\n\", \"LR\\n\", \"UL\\n\", \"UD\\n\", \"LU\\n\", \"RR\\n\", \"LR\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_264"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"160\\n1 0 1 2\\n4\\n1 0 9 0\\n0\", \"160\\n2 0 4 1\\n83\\n1 0 4 5\\n0\", \"160\\n1 1 4 0\\n46\\n2 0 7 9\\n0\", \"160\\n2 2 6 1\\n86\\n1 0 4 5\\n0\", \"160\\n0 1 2 0\\n5\\n0 1 1 18\\n0\", \"160\\n0 0 0 2\\n4\\n1 0 14 0\\n0\", \"160\\n0 0 0 1\\n8\\n0 0 14 0\\n0\", ... | {
"index": "code_r1_train_265"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"29\\n0\\n8\\n5\\n22\", \"29\\n0\\n8\\n5\\n11\", \"29\\n1\\n8\\n9\\n11\", \"29\\n0\\n8\\n10\\n2\", \"29\\n0\\n8\\n17\\n2\", \"29\\n-1\\n8\\n0\\n3\", \"29\\n0\\n2\\n-1\\n3\"], \"outputs\": [\"41\\n\", \"72\\n\", \"61\\n\", \"71\\n\", \"52\... | {
"index": "code_r1_train_266"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 1\\n1 2\\n2 3\\n2 3\", \"3 1\\n1 2\\n1 3\\n2 3\", \"6 3\\n2 1\\n2 3\\n4 1\\n4 2\\n6 1\\n2 6\\n3 6\\n6 5\", \"6 3\\n2 1\\n2 3\\n4 1\\n4 2\\n6 1\\n2 6\\n3 6\\n4 5\", \"6 3\\n3 1\\n4 3\\n4 1\\n4 2\\n6 1\\n4 6\\n3 6\\n4 5\", \"6 3\\n2 1\\n2 3\\n4 1\\n4 2\\n6 1\\n2 ... | {
"index": "code_r1_train_267"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 3\\n001000\\n2 4\\n1 3\\n3 5\\n4 2\\n1111\\n1 4\\n2 3\\n\", \"2\\n6 3\\n001000\\n2 4\\n1 3\\n3 5\\n4 2\\n1111\\n1 4\\n1 3\\n\", \"2\\n6 3\\n001000\\n2 5\\n1 3\\n3 5\\n4 2\\n1111\\n1 4\\n1 3\\n\", \"2\\n6 3\\n001000\\n2 5\\n1 3\\n3 5\\n4 2\\n1011\\n1 4\\n1 3... | {
"index": "code_r1_train_268"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n0 2 2 4 7 6\\n3\\n2 3 4\\n6\\n5 5 3 19 1 4\\n2\\n5 9\", \"2\\n6\\n0 2 2 4 7 6\\n3\\n2 3 4\\n6\\n5 5 0 19 1 4\\n2\\n5 9\", \"2\\n6\\n0 2 2 4 7 6\\n3\\n2 5 4\\n6\\n5 5 0 19 1 4\\n2\\n5 9\", \"2\\n6\\n0 2 3 4 7 6\\n3\\n2 3 4\\n6\\n22 5 6 19 1 4\\n2\\n4 3\", ... | {
"index": "code_r1_train_269"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n3 5\", \"2 3\\n2 1\", \"2 2\\n3 5\", \"2 2\\n3 1\", \"2 2\\n6 1\", \"2 3\\n6 1\", \"2 4\\n6 1\", \"2 6\\n2 1\"], \"outputs\": [\"4\\n\", \"3\\n\", \"4\\n\", \"4\\n\", \"7\\n\", \"7\\n\", \"7\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_270"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"Z\\n\", \"A\\n\", \"B\\n\", \"C\\n\", \"D\\n\", \"E\\n\", \"F\\n\", \"G\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_271"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n3\\n1\", \"4\\n3\\n0\\n3\\n1\", \"4\\n0\\n0\\n3\\n1\", \"4\\n0\\n0\\n0\\n1\", \"4\\n0\\n0\\n1\\n1\", \"4\\n0\\n0\\n6\\n1\", \"4\\n0\\n1\\n6\\n1\", \"4\\n0\\n1\\n6\\n0\"], \"outputs\": [\"4\\n\", \"3\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"4\\n... | {
"index": "code_r1_train_272"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"1 1\\n0\\n0 0\\n\", \"2 1\\n1 1\\n0 0\\n\", \"2 1\\n1 0\\n0 0\\n\", \"2 1\\n2 0\\n0 0\\n\", \"2 1\\n0 0\\n0 0\\n\", \"2 1\\n0 1\\n0 0\\n\", \"2 1\\n2 1\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"... | {
"index": "code_r1_train_273"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 1 2\\n1\\n\", \"3 1 1 3\\n2\\n\", \"2 1 1 3\\n2\\n\", \"3 1 1 5\\n3\\n\", \"5 1 1 4\\n1\\n\", \"2 1 2 9\\n9\\n\", \"2 1 1 5\\n1\\n\", \"2 1 4 8\\n5\\n\"], \"outputs\": [\"Correct\\n\", \"Correct\\n\", \"Incorrect\\n\", \"Correct\\n\", \"Correct\\n\", \"Correc... | {
"index": "code_r1_train_274"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nk\\n\", \"1\\nk\\n\", \"1\\nl\\n\", \"1\\nm\\n\", \"1\\nj\\n\", \"1\\nzz\\n\", \"26\\na\\n\", \"2\\nab\\n\"], \"outputs\": [\"YES\\nk\\n\", \"YES\\nk\\n\", \"YES\\nl\\n\", \"YES\\nm\\n\", \"YES\\nj\\n\", \"YES\\nzz\\n\", \"NO\\n\", \"YES\\na\\nb\\n\"]}"
} | {
"index": "code_r1_train_275"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n\", \"2 1\\n7\\n\", \"7 1\\n7\\n\", \"4 1\\n7\\n\", \"2 1\\n12\\n\", \"7 1\\n15\\n\", \"4 1\\n12\\n\", \"1 1\\n20\\n\"], \"outputs\": [\"6 6\\n\", \"13 13\\n\", \"28 28\\n\", \"22 22\\n\", \"23 23\\n\", \"84 84\\n\", \"42 42\\n\", \"20 20\\n\"]}"
} | {
"index": "code_r1_train_276"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 4 7 8\", \"4\\n7 4 1 8\", \"4\\n7 4 2 9\", \"4\\n7 4 2 6\", \"4\\n6 4 3 8\", \"4\\n7 5 7 8\", \"4\\n6 4 3 3\", \"4\\n6 1 3 3\"], \"outputs\": [\"19\\n\", \"15\\n\", \"16\\n\", \"10\\n\", \"14\\n\", \"20\\n\", \"6\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_277"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n3\\n\", \"1 2\\n3\\n\", \"2 3\\n7 7\\n\", \"2 2\\n2 5\\n\", \"2 2\\n2 4\\n\", \"2 2\\n2 2\\n\"], \"outputs\": [\"Kevin\\n\", \"Kevin\\n\", \"Nicky\\n\", \"Nicky\\n\", \"Nicky\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Nicky\\n\"]}"
... | {
"index": "code_r1_train_278"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n5\\n\", \"1\\n0\\n\", \"1\\n5\\n\", \"1\\n8\\n\", \"1\\n1\\n\", \"1\\n9\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_279"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"2 1\\n0\\n1\\n\", \"2 1\\n0\\n1\\n\", \"2 1\\n1\\n1\\n\", \"1 5\\n11111\\n\", \"2 2\\n10\\n11\\n\", \"2 2\\n01\\n11\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\"]}"... | {
"index": "code_r1_train_280"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nG3 G3\\n\", \"2\\nW3 Y5\\n\", \"2\\nW5 Y5\\n\", \"2\\nW5 Y5\\n\", \"2\\nW3 Y5\\n\", \"2\\nW4 Y5\\n\", \"2\\nW3 Y4\\n\", \"2\\nG3 G3\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_281"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"xd 2\\n0\\n\", \"xd 3\\n0\\n\", \"dx 3\\n0\\n\", \"jmiqoyqf 4\\n0\\n\", \"jmiqoyqf 7\\n0\\n\", \"jmiqoyqf 2\\n0\\n\", \"jmiqoyqf 0\\n0\\n\", \"xmltrs 3\\n2\\ne a -27\\nc v -932\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\... | {
"index": "code_r1_train_282"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"7 5\\n3 1 4 1 5 9 3\", \"7 5\\n3 1 4 1 5 8 3\", \"7 8\\n4 2 5 1 5 9 3\", \"7 5\\n3 1 4 1 5 4 3\", \"7 1\\n3 1 4 1 5 4 3\", \"7 1\\n4 1 4 1 5 4 3\", \"7 1\\n6 1 4 1 5 4 3\", \"7 1\\n6 0 4 1 5 4 3\"], \"outputs\": [\"3\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"3\\n\", ... | {
"index": "code_r1_train_283"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 . 0 0 4\\n1 . . . . .\\n. . 2 2 . .\\n. . 2 2 3 3\\nP . . . . .\\n5\\n0 50 5 10\\n1 20 0 1\\n2 8 5 15\\n3 49 3 5\\n7 100 8 9\\n0 0\", \"6 5\\n1 1 . 0 0 4\\n1 . . . . .\\n. . 2 2 . .\\n. . 0 2 3 3\\nP . . . . .\\n5\\n0 50 5 10\\n1 20 0 1\\n2 8 5 15\\n3 4... | {
"index": "code_r1_train_284"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 6\", \"3\\n3 2 3\", \"3\\n2 5 3\", \"3\\n2 2 3\", \"3\\n3 2 6\", \"3\\n4 2 6\", \"3\\n2 2 0\", \"3\\n4 2 2\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_285"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n5\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n1\\n\"], \"outputs\": [\"3\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_286"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"17819\\n1010\\n10011\\n7865275925328748785018788\\n0\", \"17819\\n0110\\n10011\\n7865275925328748785018788\\n0\", \"17819\\n0110\\n10011\\n4852349612300523475741654\\n0\", \"17819\\n0110\\n00011\\n4852349612300523475741654\\n0\", \"17819\\n0110\\n01011\\n62991366... | {
"index": "code_r1_train_287"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"b\\n\", \"a\\n\", \"b\\n\", \"`\\n\", \"c\\n\", \"_\\n\", \"^\\n\"], \"outputs\": [\"a\\n\", \":(\\n\", \"a\", \":(\", \":(\\n\", \":(\\n\", \":(\\n\", \":(\\n\"]}"
} | {
"index": "code_r1_train_288"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"4 6\", \"7 4\", \"7 8\", \"5 7\", \"1 3\", \"5 2\", \"6 6\"], \"outputs\": [\"2222222\\n\", \"444444\\n\", \"4444444\\n\", \"77777777\\n\", \"5555555\\n\", \"111\\n\", \"22222\\n\", \"666666\\n\"]}"
} | {
"index": "code_r1_train_289"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"z\", \"b\", \"x\", \"`\", \"w\", \"_\", \"{\", \"^\"], \"outputs\": [\"{\\n\", \"c\\n\", \"y\\n\", \"a\\n\", \"x\\n\", \"`\\n\", \"|\\n\", \"_\\n\"]}"
} | {
"index": "code_r1_train_290"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"F\\n\", \"z\\n\", \"a\\n\", \"Z\\n\", \"G\\n\", \"H\\n\", \"I\\n\"], \"outputs\": [\"a\\n\", \"f\\n\", \"Z\\n\", \"A\\n\", \"z\\n\", \"g\\n\", \"h\\n\", \"i\\n\"]}"
} | {
"index": "code_r1_train_291"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n\", \"1\\n20\\n\", \"1\\n37\\n\", \"2\\n1 1\\n\", \"2\\n3 5\\n\", \"2\\n5 5\\n\", \"2\\n5 6\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\", \"0\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_292"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 1 1 1\\n2 2 1 1\\n2 3 1 1\", \"3\\n0 1 1 1\\n2 2 1 1\\n2 3 1 1\", \"3\\n0 1 1 1\\n4 2 1 1\\n2 3 1 1\", \"3\\n0 1 1 1\\n4 1 1 1\\n2 3 1 1\", \"3\\n1 1 1 1\\n2 2 1 1\\n2 3 1 1\", \"3\\n-1 1 1 0\\n4 1 1 1\\n2 3 0 1\", \"3\\n-1 1 1 1\\n4 1 1 1\\n2 3 1 1\", \"3\... | {
"index": "code_r1_train_293"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100\\n\", \"1 1 1\\n100\\n\", \"1 1 1\\n110\\n\", \"1 1 2\\n100\\n\", \"1 1 2\\n110\\n\", \"1 1 2\\n101\\n\", \"4 2 2\\n3 6 7 10\\n\", \"4 4 2\\n3 6 7 10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"13\\n\", \"8\\n\"]... | {
"index": "code_r1_train_294"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n3 3 3 3\\n3 3 3 2\\n\", \"1\\n4\\n3 3 3 3\\n3 3 3 2\\n\", \"1\\n4\\n3 3 3 4\\n3 3 3 2\\n\", \"1\\n4\\n3 3 3 4\\n3 3 6 2\\n\", \"1\\n4\\n3 3 3 4\\n3 3 3 3\\n\", \"1\\n4\\n3 3 3 4\\n3 3 4 3\\n\", \"1\\n4\\n3 3 3 8\\n3 3 4 3\\n\", \"1\\n4\\n3 3 3 15\\n3 3 4 ... | {
"index": "code_r1_train_295"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 3\", \"3\\n2 1\\n2 3\", \"3\\n1 2\\n2 3\", \"6\\n1 2\\n2 1\\n2 4\\n4 6\\n5 6\", \"6\\n1 2\\n2 3\\n2 4\\n6 6\\n5 6\", \"6\\n1 2\\n2 1\\n2 4\\n4 6\\n4 6\", \"6\\n1 3\\n2 3\\n2 4\\n6 6\\n5 6\", \"6\\n2 2\\n2 3\\n2 4\\n6 6\\n5 6\"], \"outputs\": [\"First\... | {
"index": "code_r1_train_296"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\", \"2\\n2 0\", \"2\\n4 0\", \"2\\n3 1\", \"2\\n3 1\\n\", \"2\\n2 -1\", \"2\\n4 -1\", \"2\\n5 -2\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\", \"2\", \"2\\n\", \"3\\n\", \"5\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_297"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n2 2\\n3 2\", \"3 4\\n1 1\\n2 3\\n3 2\", \"3 4\\n1 1\\n4 3\\n3 2\", \"3 5\\n2 2\\n1 1\\n8 3\", \"3 3\\n2 2\\n1 0\\n5 3\", \"3 3\\n2 2\\n1 0\\n7 3\", \"3 4\\n1 0\\n2 1\\n6 6\", \"3 0\\n2 2\\n0 0\\n3 6\"], \"outputs\": [\"3\\n\", \"2\\n\", \"4\\n\", \"8\... | {
"index": "code_r1_train_298"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n0 2 1\\n2 2 3\\n0\\n0\", \"3\\n0 2 2\\n2 2 3\\n0\\n0\", \"3\\n0 1 2\\n2 2 3\\n0\\n0\", \"3\\n1 1 2\\n2 2 3\\n0\\n0\", \"3\\n0 1 2\\n2 3 3\\n0\\n0\", \"3\\n1 0 2\\n2 2 3\\n0\\n0\", \"3\\n2 0 2\\n2 2 3\\n0\\n0\", \"3\\n0 1 3\\n2 2 3\\n0\\n0\"], \"outputs\": [\"... | {
"index": "code_r1_train_299"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.