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\": [\"AOZUNYANPERIPERO\", \"OREQIRMQEAYNUYOA\", \"OREPIREPNAYNUZOA\", \"OREPIRNPEAYNUZOA\", \"OREQIRNPEAYNUZOA\", \"OREQIRMPEAYNUZOA\", \"AOZUNYAEPMRIQERO\", \"OREQIRMQEAYNUZOA\"], \"outputs\": [\"AZ\\n\", \"-1\\n\", \"AZ\\n\", \"AZ\\n\", \"AZ\\n\", \"AZ\\n\", \"AZ\\n\...
{ "index": "code_r1_train_400" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 0\\n6\\n1 5\\n2 0\\n3 0\\n4 0\\n5 5\\n6 5\", \"2\\n1\\n4 0\\n6\\n1 8\\n2 0\\n3 0\\n4 0\\n5 5\\n6 5\", \"2\\n1\\n4 0\\n6\\n0 8\\n2 0\\n3 0\\n4 0\\n5 5\\n6 5\", \"2\\n1\\n4 0\\n6\\n1 8\\n2 0\\n3 0\\n4 0\\n5 5\\n6 4\", \"2\\n1\\n4 0\\n6\\n1 8\\n2 0\\n3 0\\...
{ "index": "code_r1_train_401" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ndxx\\naxx\\ndxx\", \"3 3\\ndxx\\naxx\\nxxd\", \"3 3\\ndxx\\nxxa\\nxxd\", \"3 3\\ncxx\\nxxa\\nxxd\", \"3 3\\ndxx\\n`xx\\ncxx\", \"3 3\\nxdx\\naxx\\ndxx\", \"3 3\\nxxd\\naxx\\nxxd\", \"3 3\\nxxd\\nxxa\\nxxd\"], \"outputs\": [\"axxdxxdxx\\n\", \"axxdxxxxd\\n\"...
{ "index": "code_r1_train_402" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n1\\n1\\n\", \"1 1\\n1 1\\n1\\n1\\n\", \"1 1\\n1 1\\n1\\n0\\n\", \"3 3\\n2 1\\n1 2 3\\n3 4 5\\n\", \"3 3\\n3 3\\n1 2 3\\n3 4 5\\n\", \"3 3\\n1 1\\n1 2 3\\n1 2 3\\n\", \"3 3\\n1 2\\n1 2 3\\n1 2 3\\n\", \"3 3\\n2 2\\n1 2 3\\n1 2 3\\n\"], \"outputs\": [\"...
{ "index": "code_r1_train_403" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nab\\nbc\\n\", \"3\\naa\\nbc\\n\", \"1\\ncb\\nac\\n\", \"1\\nab\\ncb\\n\", \"3\\nbb\\ncb\\n\", \"4\\naa\\nbb\\n\", \"4\\naa\\nbc\\n\", \"4\\nbc\\nca\\n\"], \"outputs\": [\"YES\\nacbacb\\n\", \"YES\\nacbacbacb\\n\", \"YES\\nabc\\n\", \"YES\\nbac\\n\", \"YES\\na...
{ "index": "code_r1_train_404" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"4\", \"8\", \"9\", \"0\", \"1\", \"2\"], \"outputs\": [\"ABC7\\n\", \"ABC3\\n\", \"ABC4\\n\", \"ABC8\\n\", \"ABC9\\n\", \"ABC0\\n\", \"ABC1\\n\", \"ABC2\\n\"]}" }
{ "index": "code_r1_train_405" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ny\\n\", \"y\\nz\\n\", \"z\\ny\\n\", \"y\\nz\\n\", \"ioi\\nimo\\n\", \"abc\\naaa\\n\", \"abc\\naaa\\n\", \"cba\\naaa\\n\"], \"outputs\": [\"z\\n\", \"y\\n\", \"z\\n\", \"y\\n\", \"ioi\\n\", \"aab\\n\", \"aab\\n\", \"aab\"]}" }
{ "index": "code_r1_train_406" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 10 3\\n100 3\\n99 1\\n\", \"2 100 2\\n100 2\\n100 2\\n\", \"2 1000 1\\n100 1\\n100 1\\n\", \"2 1000 1\\n100 1\\n100 2\\n\", \"2 1001 0\\n101 1\\n100 2\\n\", \"2 1000 1\\n101 1\\n100 2\\n\", \"2 1001 1\\n101 1\\n100 2\\n\", \"2 100 10\\n100 11\\n90 9\\n\"], \"ou...
{ "index": "code_r1_train_407" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"1 2 3 1\\n\", \"1 2 1 5\\n\", \"2 7 8 4\\n\", \"1 2 1 5\\n\", \"2 7 8 4\\n\", \"1 2 2 5\\n\", \"2 7 8 0\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"20\\n\", \"25\\n\", \"20\\n\", \"25\\n\", \"23\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_408" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"3\\n1\\n2\\n4\\n\", \"3\\n1\\n2\\n4\\n\", \"4\\n1\\n1\\n1\\n2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_409" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 100 101\\n77 100 50\\n110 010 18\\n42 80 50\\n4\\n1 0 110 110\\n8 22 50\\n25 50 58\\n9 154 65\\n806 205 50\\n0\", \"3\\n0 1 100 101\\n60 100 50\\n110 010 18\\n42 80 50\\n4\\n1 0 010 100\\n8 21 50\\n25 50 58\\n50 150 65\\n409 205 50\\n0\", \"3\\n0 0 100 10...
{ "index": "code_r1_train_410" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nhaneda\\noookayama\\nssu\\n2\\nazusa\\nazishirabe\\n2\\nsnuke\\nsnake\\n4\\nhaneda\\nhonda\\nhanamaki\\nhawaii\\n0\", \"3\\nhaneda\\noookayama\\ntsv\\n2\\nazusa\\nazishirabe\\n2\\nrnuke\\nsnake\\n4\\nhaneda\\nhonda\\nhanamaki\\nhawbii\\n0\", \"3\\nhaneda\\noo...
{ "index": "code_r1_train_411" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n1 -1\\n\", \"6 2\\n1 1 1 2 3 4\\n5 6\\n\", \"6 2\\n1 1 1 1 3 4\\n5 6\\n\", \"6 2\\n1 1 1 2 3 4\\n5 2\\n\", \"6 2\\n1 1 2 1 3 4\\n5 6\\n\", \"6 2\\n1 1 2 2 3 4\\n5 6\\n\", \"6 2\\n1 1 2 1 3 4\\n5 5\\n\", \"6 2\\n1 1 2 1 3 4\\n5 8\\n\"], \"outputs\": [\...
{ "index": "code_r1_train_412" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n4\\n0 1 4 7\\n\", \"1\\n4\\n0 2 4 7\\n\", \"1\\n8\\n0 1 2 4 5 6 8 9\\n\", \"2\\n8\\n0 1 2 4 5 6 8 9\\n1\\n8\\n\", \"3\\n8\\n0 1 2 4 5 6 8 9\\n1\\n8\\n1\\n8\\n\", \"7\\n1\\n8\\n1\\n8\\n1\\n8\\n1\\n8\\n1\\n8\\n1\\n8\\n1\\n8\\n\", \"7\\n1\\n1\\...
{ "index": "code_r1_train_413" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\", \"2 4\", \"1 3\", \"2 0\", \"2 3\", \"2 6\", \"2 1\", \"3 3\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\"]}" }
{ "index": "code_r1_train_414" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 4\\n3\\n9 a /\", \"1\\na 2 7\\n3\\n1 a /\", \"1\\na 1 5\\n3\\n9 a /\", \"1\\na 2 7\\n2\\n1 a /\", \"1\\na 2 5\\n3\\n9 a /\", \"1\\na 1 11\\n3\\n9 a /\", \"1\\na 1 3\\n3\\n19 a /\", \"1\\na 2 7\\n3\\n14 a /\"], \"outputs\": [\"correct\\n\", \"correct\\n\",...
{ "index": "code_r1_train_415" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n50\\n\", \"1\\n50\\n\", \"2\\n25 25\\n\", \"2\\n50 25\\n\", \"2\\n50 25\\n\", \"2\\n25 25\\n\", \"2\\n25 100\\n\", \"2\\n25 100\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_416" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 4\\n1\", \"1 2\\n0\", \"1 6\\n1\", \"1 2\\n1\", \"3 5\\n7\\n5\\n7\", \"3 6\\n7\\n5\\n7\", \"3 6\\n7\\n5\\n10\", \"3 6\\n7\\n5\\n12\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"6\\n\", \"5\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_417" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"abaca\\n1\\nab\\n\", \"ababa\\n1\\nab\\n\", \"nllnrlrnll\\n1\\nrl\\n\", \"nnllrlrnll\\n1\\nrl\\n\", \"nnllrlrnll\\n1\\nrk\\n\", \"nollrlrnll\\n1\\nrk\\n\", \"nomlrlrnll\\n1\\nrk\\n\"], \"outputs\": [\"0\", \"1\\n\", \"2\", \"1\", \"2\\n\", \"0\\n\",...
{ "index": "code_r1_train_418" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0\\n0 0 0 0 1\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 1 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 0 1 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 1\\n\", \...
{ "index": "code_r1_train_419" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n9\\n\", \"1\\n87\\n\", \"1\\n17\\n\", \"1\\n10\\n\", \"1\\n64\\n\", \"2\\n3 1\\n\"], \"outputs\": [\" 0\\n\", \"0\\n\", \"0\\n\", \" ...
{ "index": "code_r1_train_420" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1 1 1\\n1 1\\n\", \"1 1 1\\n0\\n1 1 0\\n1 1\\n\", \"1 1 1\\n0\\n1 1 0\\n1 1\\n\", \"1 1 1\\n1\\n1 1 0\\n1 1\\n\", \"1 1 1\\n0\\n1 1 0\\n1 0\\n\", \"1 1 1\\n1\\n1 1 1\\n1 1\\n\", \"3 3 3\\n1 2 3\\n1 2 1\\n1 3 2\\n2 3 4\\n1 2\\n1 3\\n2 3\\n\", \"3 3 3\\...
{ "index": "code_r1_train_421" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"800\\n4\\n10\\n4\\n0\", \"800\\n7\\n10\\n4\\n0\", \"800\\n2\\n5\\n-4\\n0\", \"800\\n2\\n3\\n0\\n-1\", \"800\\n0\\n0\\n-6\\n0\", \"800\\n5\\n0\\n-7\\n1\", \"800\\n37\\n63\\n1\\n1\", \"800\\n37\\n10\\n1\\n1\"], \"outputs\": [\"-46\\n\", \"-43\\n\", \"-52\\n\", \"-4...
{ "index": "code_r1_train_422" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n1 1 1 3 3 3 2\\n5\\n1 3 1 1 1\\n4\\n5 5 5 5\", \"3\\n7\\n1 1 1 3 3 3 2\\n5\\n1 3 1 1 2\\n4\\n5 5 5 5\", \"3\\n7\\n1 1 1 3 3 3 3\\n5\\n1 3 1 1 2\\n4\\n5 5 5 5\", \"3\\n7\\n1 1 1 3 3 3 2\\n5\\n1 0 1 1 1\\n4\\n5 5 5 5\", \"3\\n7\\n1 1 1 3 3 3 2\\n5\\n1 3 1 1...
{ "index": "code_r1_train_423" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nappme\\norange\\napple\\n1\\ngrape\", \"3\\nappme\\norange\\napple\\n0\\ngrape\", \"3\\nappme\\nprange\\napple\\n0\\ngrape\", \"3\\nappme\\nprange\\napple\\n0\\ngrepa\", \"3\\nappme\\nprangd\\napple\\n0\\ngrepa\", \"3\\nappme\\nprangd\\napple\\n0\\ngreqa\", \...
{ "index": "code_r1_train_424" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n1 2 6 4 5 6\", \"6\\n1 2 4 4 5 6\", \"6\\n1 2 4 3 4 6\", \"6\\n1 2 6 2 2 2\", \"6\\n1 2 3 4 5 6\", \"6\\n1 2 3 4 5 6\\n\", \"6\\n1 2 11 4 5 6\", \"6\\n1 2 6 2 3 -1\"], \"outputs\": [\"13\\n\", \"12\\n\", \"11\\n\", \"9\\n\", \"12\", \"12\\n\", \"18\\n\", \"10...
{ "index": "code_r1_train_425" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n41\\n\", \"1\\n41\\n\", \"1\\n75\\n\", \"1\\n101\\n\", \"1\\n101\\n\", \"1\\n001\\n\", \"1\\n000\\n\", \"1\\n654\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_426" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 20\\n0 0\", \"8 3\\n8 20\\n0 0\", \"4 3\\n6 20\\n0 0\", \"6 3\\n8 20\\n0 0\", \"6 6\\n8 20\\n0 0\", \"9 30\\n7 6\\n0 0\", \"4 6\\n8 20\\n0 0\", \"6 3\\n8 26\\n0 0\"], \"outputs\": [\"b\\nb\\n\", \"b\\nb\\n\", \"b\\nb\\n\", \"b\\nb\\n\", \"b\\nb\\n\", \"a\...
{ "index": "code_r1_train_427" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 5 6 5\", \"100 3\\n1 3 3\", \"5 2\\n3 5 6 5\", \"000 3\\n1 3 3\", \"5 2\\n3 7 6 5\", \"010 3\\n1 3 3\", \"010 3\\n1 3 5\", \"5 4\\n5 5 6 5\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"7\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"4\"]}" }
{ "index": "code_r1_train_428" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4548\", \"1 4548\", \"1 1010\", \"0 1010\", \"0 1000\", \"-1 4548\", \"2 666010\", \"2 489029\"], \"outputs\": [\"0\", \"1\", \"1\", \"0\", \"0\", \"0\", \"3\", \"3\"]}" }
{ "index": "code_r1_train_429" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n*.\\n**\\n\", \"2 2\\n**\\n.*\\n\", \"2 2\\n**\\n/*\\n\", \"2 3\\n*.*\\n..*\\n\", \"3 2\\n.*\\n..\\n**\\n\", \"2 5\\n*....\\n*...*\\n\", \"3 3\\n*.*\\n*..\\n-..\\n\", \"3 3\\n*.*\\n*..\\n...\\n\"], \"outputs\": [\"1 2\", \"2 1\", \"2 1\\n\", \"2 1\", \"1 1\...
{ "index": "code_r1_train_430" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nz\\n\", \"y\\ny\\n\", \"z\\nz\\n\", \"a\\nz\\n\", \"z\\na\\n\", \"z\\nz\\n\", \"y\\ny\\n\", \"z\\na\\n\"], \"outputs\": [\"1\\na z\\n\", \"0\\n\", \"0\\n\", \"1\\na z\\n\", \"1\\nz a\\n\", \"0\\n\", \"0\\n\", \"1\\nz a\\n\"]}" }
{ "index": "code_r1_train_431" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 0\\n1\\n\", \"1 1\\n1 1\\n1\\n\", \"1 1\\n1 -1\\n1\\n\", \"2 1\\n2 -4 -6\\n5 6 8 3 5 -2\\n1\\n\", \"2 1\\n2 -4 -6\\n5 6 8 3 5 -3\\n1\\n\", \"2 1\\n2 -4 -10\\n5 6 8 3 5 -3\\n1\\n\", \"3 4\\n3 1 6 -2\\n2 4 3\\n2 -5 1\\n2 3 1 3\\n\", \"3 4\\n3 1 6 -2\\n2 3 3...
{ "index": "code_r1_train_432" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8 2\", \"8 4\", \"8 5\", \"8 7\", \"8 0\", \"4 2\", \"7 2\"], \"outputs\": [\"12\\n\", \"28\\n\", \"10\\n\", \"6\\n\", \"1\\n\", \"64\\n\", \"3\\n\", \"19\\n\"]}" }
{ "index": "code_r1_train_433" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"7\\n\"], \"outputs\": [\"24\", \"132\", \"672\", \"3264\", \"15360\", \"3264\\n\", \"672\\n\", \"15360\\n\"]}" }
{ "index": "code_r1_train_434" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n999999999999\\n\", \"1\\n999999999999\\n\", \"1\\n1000000000000\\n\", \"1\\n1000000000000\\n\", \"2\\n405527623378\\n5204291237\\n\", \"2\\n620475187705\\n5204291237\\n\", \"2\\n620475187705\\n5369629849\\n\", \"2\\n392481106372\\n5369629849\\n\"], \"outputs\...
{ "index": "code_r1_train_435" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\\n\", \"4\\n\", \"1\\n\", \"4\\n\", \"9\\n\", \"8\\n\", \"2\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_436" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 0\\n0 1\\n\", \"3\\n2 1\\n1 0\\n0 1\\n\", \"5\\n0 0\\n0 1\\n0 2\\n0 3\\n0 4\\n\", \"5\\n0 0\\n0 1\\n0 2\\n0 3\\n0 4\\n\", \"2\\n72098079 0\\n72098078 1\\n\", \"2\\n73639551 1\\n73639551 0\\n\", \"2\\n72098079 0\\n72098078 1\\n\", \"2\\n73639551 1\\n73...
{ "index": "code_r1_train_437" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1 5\\n3\\n\", \"2 3\\n2 1\\n\", \"2 10\\n1 1\\n\", \"1 500000\\n1\\n\", \"5 2\\n2 1 1 1 1\\n\", \"6 4\\n3 2 2 2 3 3\\n\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\"]}" ...
{ "index": "code_r1_train_438" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2\\n4 5\", \"3\\n2 3\\n2 2\\n8 5\", \"3\\n2 2\\n6 2\\n4 2\", \"3\\n3 3\\n2 2\\n8 5\", \"3\\n2 2\\n6 2\\n4 3\", \"3\\n3 3\\n2 2\\n4 5\", \"3\\n2 2\\n6 0\\n4 3\", \"3\\n3 3\\n2 2\\n4 6\"], \"outputs\": [\"8\\n\", \"5\\n\", \"2\\n\", \"5\\n\", \"3\\n\", ...
{ "index": "code_r1_train_439" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ayvguplhjsoiencbkxdrfwmqtz\\nkhzvtbspcndierqumlojyagfwx\\n3\\n\", \"ayvguplhjsoiencbkxdrfwmqtz\\nkhzvtbspcndierqumlojyagfwx\\n3\\n\", \"ayvguplhjsoiebcnkxdrfwmqtz\\nkhzvtbspcndierqumlojyagfwx\\n3\\n\", \"ayvguplhjsoiebcnkxdrfwmqtz\\nkhzvtbspcndierqumlojyagfwx\\n1...
{ "index": "code_r1_train_440" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"50\\n\", \"24\\n\", \"545\\n\", \"404\\n\", \"685\\n\", \"672\\n\", \"258\\n\", \"157\\n\"], \"outputs\": [\"50\\n50\\n\", \"42\\n42\\n\", \"545\\n455\", \"440\\n440\", \"865\\n865\\n\", \"762\\n762\\n\", \"852\\n528\\n\", \"715\\n715\\n\"]}" }
{ "index": "code_r1_train_441" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 4\", \"2\\n0 1\", \"2\\n2 4\", \"2\\n0 3\", \"2\\n1 4\", \"2\\n1 4\\n\", \"7\\n4 1 0 12 23 0 0\"], \"outputs\": [\"0\\n\", \"8\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"5\", \"5\\n\", \"462\\n\"]}" }
{ "index": "code_r1_train_442" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0 1\\n102372403\\n4 1 1\\n\", \"0 1\\n102372403\\n4 1 1\\n\", \"0 2\\n394521962\\n4 1 1\\n2 0\\n\", \"0 2\\n394521962\\n4 1 1\\n2 0\\n\", \"2 3\\n7 4 9 9\\n1 2 8\\n3 1\\n4 2 4\\n\", \"2 3\\n7 6 6 9\\n1 2 8\\n3 0\\n4 2 4\\n\", \"2 3\\n7 4 6 9\\n1 2 8\\n3 1\\n4 2 4...
{ "index": "code_r1_train_443" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n\", \"1 0 1\\n\", \"3 1 69\\n\", \"67 1 3\\n\", \"2 1 69\\n\", \"67 2 6\\n\", \"67 2 9\\n\", \"67 2 3\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"5\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_444" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 575\\n89\\n\", \"1 81\\n385\\n\", \"3 3\\n1 5 11\", \"1 3\\n1 5 11\", \"1 3\\n2 5 11\", \"1 3\\n2 4 11\", \"3 3\\n1 7 11\", \"3 3\\n1 7 11\\n\"], \"outputs\": [\"486\\n\", \"304\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\", \"2\\n\"]}" }
{ "index": "code_r1_train_445" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n8\\n\", \"1\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\", \"1\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"8\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_446" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 1\\n1 1\\n1 1\\n\", \"2 2 1\\n1 1\\n2 2\\n\", \"2 2 1\\n1 1\\n1 1\\n\", \"2 2 1\\n1 1\\n2 2\\n\", \"3 2 1\\n1 1\\n1 1\\n\", \"2 2 1\\n2 1\\n2 2\\n\", \"3 3 2\\n1 2\\n2 1\\n3 3\\n3 2\\n\", \"2 5 2\\n1 1\\n1 1\\n1 1\\n1 1\\n\"], \"outputs\": [\"5\\nULRDL\", \"5...
{ "index": "code_r1_train_447" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"2\\n0 0\", \"2\\n2 2\", \"2\\n1 0\", \"2\\n1 1\", \"2\\n1 2\", \"2\\n1 2\\n\"], \"outputs\": [\"0 2 \", \"0 1 \", \"0 0 \", \"2 2 \", \"1 0 \", \"1 1 \", \"1 2\", \"1 2\\n\"]}" }
{ "index": "code_r1_train_448" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n1 2 2 2 5 6\\n2\\n4 4\\n6\\n1 1 3 4 4 5\\n1\\n1\\n6\\n1 1 1 2 2 2\\n\", \"5\\n6\\n1 2 2 2 5 6\\n2\\n2 4\\n6\\n1 1 3 4 4 5\\n1\\n1\\n6\\n1 1 1 2 2 2\\n\", \"5\\n6\\n1 2 2 2 5 6\\n2\\n4 4\\n6\\n1 1 3 4 4 5\\n1\\n1\\n6\\n1 1 1 2 2 3\\n\", \"5\\n6\\n1 2 2 4 5...
{ "index": "code_r1_train_449" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n1 2 2\", \"3\\n1 4 2\", \"3\\n1 3 2\", \"3\\n2 3 2\", \"3\\n2 3 1\", \"3\\n2 2 1\", \"3\\n2 2 2\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_450" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n4 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n1 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n1 2 1 3 0\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n1 2 1 3 1\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n4 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 6\\n1 2 0...
{ "index": "code_r1_train_451" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1\\n\", \"1 1 0\\n1\\n\", \"1 5 0\\n1\\n\", \"1 2 1\\n1\\n\", \"1 1 0\\n0\\n\", \"1 5 1\\n1\\n\", \"2 1 2\\n01\\n\", \"1 20 1\\n1\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\\n\", \"0\\n\", \"2\", \"0\"]}" }
{ "index": "code_r1_train_452" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"5 2\\n1 2\\n2 3\\n\", \"2 2\\n1 1\\n2 1\\n\", \"2 2\\n1 1\\n2 1\\n\", \"5 2\\n1 2\\n2 1\\n\", \"5 2\\n1 2\\n2 3\\n\", \"1 2\\n1 1\\n2 100\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"5\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"5\\n\"...
{ "index": "code_r1_train_453" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n5 5\\n2 3\\n5 8\\n2 1\", \"5\\n4 7\\n5 5\\n2 6\\n5 8\\n2 1\", \"5\\n4 7\\n5 5\\n2 3\\n6 8\\n2 1\", \"5\\n4 7\\n5 5\\n2 12\\n5 8\\n2 1\", \"5\\n0 7\\n5 5\\n2 12\\n5 8\\n2 1\", \"5\\n0 6\\n8 9\\n3 1\\n6 16\\n0 0\", \"5\\n0 7\\n5 5\\n2 12\\n5 16\\n2 1\", \...
{ "index": "code_r1_train_454" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\", \"2 9\", \"0 2\", \"0 0\", \"1 2\", \"2 2\", \"8 2\", \"0 9\"], \"outputs\": [\"17\\n\", \"11\\n\", \"2\\n\", \"0\\n\", \"3\\n\", \"4\\n\", \"10\\n\", \"9\\n\"]}" }
{ "index": "code_r1_train_455" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 4 3\\n\", \"3\\n1 1 1\\n1 2 3\\n\", \"3\\n3 4 5\\n4 5 6\\n\", \"1\\n1\\n1000000000\\n\", \"5\\n1 1 2 2 3\\n1 2 2 3 3\\n\", \"5\\n1 1 2 2 3\\n2 2 2 3 3\\n\", \"5\\n2 1 2 2 3\\n2 2 2 3 3\\n\", \"5\\n2 1 2 2 3\\n2 3 2 3 3\\n\"], \"outputs\": [\"6666666...
{ "index": "code_r1_train_456" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"10 3 5\\n10 3 3\\n6\\n1\\n6\\n10\", \"5 3 10\\n10 3 3\\n8\\n2\\n6\\n10\", \"10 3 5\\n10 3 3\\n3\\n1\\n6\\n10\", \"11 3 10\\n9 3 6\\n8\\n2\\n6\\n10\", \"5 3 14\\n10 3 3\\n8\\n2\\n6\\n10\", \"10 3 5\\n10 3 3\\n3\\n1\\n5\\n10\", \"10 3 5\\n10 0 3\\n3\\n1\\n5\\n10\",...
{ "index": "code_r1_train_457" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\ns 0 2\\ns 1 2\\ns 2 1\\nw 0\\ns 3 3\\ns 4 2\\n3 3\\ns 0 1\\ns 1 1\\ns 2 1\\n0 0\", \"4 6\\ns 0 2\\ns 1 3\\ns 2 1\\nw 0\\ns 3 3\\ns 4 2\\n3 3\\ns 0 1\\ns 0 1\\ns 2 1\\n0 0\", \"4 6\\ns 0 2\\ns 1 2\\ns 2 1\\nw 0\\ns 3 3\\ns 4 2\\n4 3\\ns 0 1\\ns 1 2\\ns 2 1\\...
{ "index": "code_r1_train_458" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\nATK 100\\n99\\n\", \"1 1\\nATK 100\\n99\\n\", \"1 1\\nATK 110\\n99\\n\", \"2 4\\nDEF 0\\nATK 0\\n0\\n0\\n1\\n1\\n\", \"2 4\\nDEF 0\\nATK 0\\n0\\n0\\n0\\n1\\n\", \"2 4\\nDEF 0\\nATK 0\\n0\\n0\\n1\\n1\\n\", \"2 3\\nATK 2000\\nDEF 1700\\n2500\\n2500\\n2500\\n\...
{ "index": "code_r1_train_459" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n8 6 9 1 2\", \"5 9\\n8 6 9 1 0\", \"7 9\\n8 6 7 1 2\", \"7 9\\n8 6 1 1 1\", \"7 9\\n8 6 8 0 3\", \"7 9\\n8 6 1 2 1\", \"7 9\\n8 6 8 1 3\", \"6 9\\n8 6 1 2 1\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" ...
{ "index": "code_r1_train_460" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nder\\ncod\", \"`?d\\nder\\ncod\", \"`?d\\nddr\\ncod\", \"`?d\\nddr\\ncoe\", \"`?d\\nddr\\ncof\", \"`>d\\nddr\\ncof\", \"d>`\\nddr\\ncof\", \"d>_\\nddr\\ncof\"], \"outputs\": [\"7\\n\", \"8\\n\", \"7\\n\", \"7\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"9\\n\"]}" ...
{ "index": "code_r1_train_461" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n75 26\\n\", \"4\\n6 5 5 8\", \"4\\n6 5 8 8\", \"4\\n6 2 0 8\", \"4\\n9 2 0 8\", \"4\\n9 2 0 9\", \"4\\n6 5 6 8\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"3\"]}" }
{ "index": "code_r1_train_462" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n0 1\\n\", \"2\\n0 0\\n\", \"5\\n0 1 0 1 3\\n\", \"5\\n0 1 0 1 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_463" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"UF\\n1 0\", \"FT\\n1 0\", \"FF\\n2 0\", \"UF\\n0 0\", \"TF\\n1 0\", \"FF\\n1 0\", \"FF\\n1 0\\n\", \"TF\\n1 0\\n\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\", \"No\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_464" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 0\\n\", \"3 1\\n2 0\", \"3 1\\n0 0\", \"3 0\\n1 0\", \"3 0\\n2 0\", \"3 0\\n2 1\", \"3 0\\n3 1\"], \"outputs\": [\"100\\n\", \"0\\n\", \"100\\n\", \"100\\n\", \"100\\n\", \"100\\n\", \"100\\n\", \"100\\n\"]}" }
{ "index": "code_r1_train_465" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n5\\nABCDE\\nEBCCA\\n0 5 20 30 4 50\\n1\\nCHEF\\nQUIZ\\n4 3 2 1 0\\n8\\nABBABAAB\\nBABABABA\\n100 101 100 100 000 101 100 000 100\", \"3\\n5\\nABDDC\\nEBCDA\\n0 8 20 30 40 3\\n4\\nCHEF\\nQUIZ\\n7 3 1 1 0\\n8\\nABBABAAB\\nBABABABA\\n100 100 100 100 100 101 100 ...
{ "index": "code_r1_train_466" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ncacaabba\", \"4\\nacbaacab\", \"4\\nhgfedcba\", \"4\\nabbaacac\", \"4\\nhgfbdcea\", \"4\\nacbaacac\", \"4\\nhgfbccea\", \"4\\ncacaabca\"], \"outputs\": [\"0\\n\", \"4\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_467" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n2\\n\", \"0 0 0 0\\n1\\n\", \"1 2 3 4\\n4\\n\", \"1 2 3 4\\n4\\n\", \"4 3 2 1\\n2\\n\", \"0 0 0 0\\n1\\n\", \"0 2 3 4\\n4\\n\", \"0 3 2 1\\n2\\n\"], \"outputs\": [\"3\\n\", \"0\\n\", \"4\\n\", \"4\\n\", \"3\\n\", \"0\\n\", \"4\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_468" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"4\\n\", \"9\\n\", \"6\\n\", \"2\\n\", \"8\\n\", \"3\\n\"], \"outputs\": [\"5\\n01111\\n10111\\n11010\\n11100\\n11000\\n\", \"5\\n01111\\n10111\\n11011\\n11100\\n11100\\n\", \"4\\n0111\\n1011\\n1101\\n1110\\n\", \"7\\n0111111\\n1011111\\n110110...
{ "index": "code_r1_train_469" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n1\\n1001000000\", \"4\\n0\\n6\\n6\\n1001000000\", \"4\\n0\\n0\\n9\\n1001000101\", \"4\\n1\\n0\\n9\\n1000000101\", \"4\\n2\\n1\\n9\\n1001000001\", \"4\\n6\\n2\\n7\\n0010010100\", \"4\\n6\\n2\\n5\\n0010010100\", \"4\\n4\\n6\\n15\\n1000000000\"], \"outpu...
{ "index": "code_r1_train_470" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n2\\n\", \"1\\n1 9\\n1\\n\", \"1\\n1 9\\n0\\n\", \"1\\n1 10\\n4\\n\", \"1\\n1 10\\n4\\n\", \"1\\n1 10\\n5\\n\", \"1\\n1 10\\n2\\n\", \"1\\n5 9\\n1 8 10 1 10\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n...
{ "index": "code_r1_train_471" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 256 1 100\\n\", \"1\\n1000 477 1 100\\n\", \"1\\n1000 477 1 101\\n\", \"1\\n1000 784 1 101\\n\", \"1\\n1200 512 300 700\\n\", \"1\\n1619 512 300 700\\n\", \"1\\n1619 579 300 700\\n\", \"1\\n1619 375 300 700\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\",...
{ "index": "code_r1_train_472" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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..\\n\", \"3 3\\n...\\n../\\n...\", \"3 3\\n...\\n...\\n...\", \"3 3\\n...\\n...\\n...\\n\", \"0 5\\n...#.\\n.#.#.\\n.#...\", \"0 5\\n.#...\\n.#.#.\\n.#...\", \"0 5\\n.#...\\n.#.#.\\n.$...\", \"0 5\\n.#..-\\n.#.#.\\n.$...\"], \"outputs\": [\"1\\n\", \"4\\n\...
{ "index": "code_r1_train_473" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ab\\nba\\n0\\n\", \"hi\\nhi\\n1\\n\", \"ab\\nba\\n9\\n\", \"aa\\naa\\n1\\n\", \"ab\\nab\\n0\\n\", \"ba\\naa\\n1\\n\", \"ab\\nb`\\n2\\n\", \"bb\\nab\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_474" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1 1\\n3\\n\", \"1 1\\n5\\n\", \"1 1\\n8\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n10\\n\", \"1 1\\n14\\n\"], \"outputs\": [\"Yes\\n1 \", \"Yes\\n1 \\n\", \"Yes\\n1\\n\", \"Yes\\n1\\n\", \"Yes\\n1\\n\", \"Yes\\n1\\n\", \"Yes\\n1\\n\", \"Yes\\n1...
{ "index": "code_r1_train_475" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000\\n\", \"3\\n1 2 2\\n\", \"3\\n1 2 1\\n\", \"3\\n1 2 3\\n\", \"3\\n2 1 16\\n\", \"3\\n3 1 16\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"2 2\\n\", \"2 2\\n\", \"1 3\\n\", \"1 3\\n\", \"1 3\\n\"]}" }
{ "index": "code_r1_train_476" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 +\", \"0 3 +\", \"0 3 *\", \"0 5 +\", \"0 1 +\", \"6 7 *\", \"0 4 +\", \"0 0 *\"], \"outputs\": [\"4\\n\", \"3\\n\", \"0\\n\", \"5\\n\", \"1\\n\", \"42\\n\", \"4\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_477" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\na\\nb\\n\", \"1\\nz\\ny\\n\", \"2\\nab\\nac\\n\", \"2\\nba\\nca\\n\", \"2\\nac\\ncb\\n\", \"2\\nab\\nba\\n\", \"2\\ner\\nre\\n\", \"3\\ntoy\\ntry\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_478" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\", \"5 5\", \"9 3\", \"2 4\", \"2 6\", \"1 4\", \"4 7\", \"6 5\"], \"outputs\": [\"-1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\\n\", \"1 2 3 4 5 6 7 8 9\\n\", \"-5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 11\\n\", \"3 4 5\\n\", \"5 6 7\\n\", \"4\\n\", \"4 5 6 7 8 9 10...
{ "index": "code_r1_train_479" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"y\\nz\\n\", \"a\\nz\\n\", \"q\\nz\\n\", \"x\\nz\\n\", \"a\\nb\\n\", \"w\\nz\\n\", \"p\\nz\\n\", \"b\\nc\\n\"], \"outputs\": [\"No such string\", \"b\", \"r\", \"y\", \"No such string\", \"x\\n\", \"q\\n\", \"No such string\\n\"]}" }
{ "index": "code_r1_train_480" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"2 2 0\", \"2 4 0\", \"4 5 1\", \"2 3 0\", \"4 4 0\", \"0 9 0\", \"4 5 0\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_481" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"1\\n7 362\\n\", \"1\\n7 454\\n\", \"1\\n7 576\\n\", \"1\\n9 374\\n\", \"1\\n9 525\\n\", \"1\\n9 535\\n\", \"1\\n9 510\\n\"], \"outputs\": [\"87\\n\", \"723\\n\", \"907\\n\", \"1151\\n\", \"747\\n\", \"1049\\n\", \"1069\\n\", \"1019\\n\"]}" }
{ "index": "code_r1_train_482" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 6\", \"5 1\", \"1 1\", \"0 2\", \"3 6\", \"5 2\", \"4 2\"], \"outputs\": [\"47\\n\", \"3\\n\", \"32\\n\", \"2\\n\", \"1\\n\", \"26\\n\", \"6\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_483" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n3 4\\n1 2\\n120 150\\n\", \"3\\n3 4\\n1 2\\n120 150\\n\", \"1\\n000000101 821042\\n\", \"1\\n000000101 321987\\n\", \"1\\n000001101 321987\\n\", \"1\\n10485760 20971520\\n\", \"1\\n20971520 41943040\\n\", \"1\\n10485760 20971520\\n\"], \"outputs\": [\"YES\\nN...
{ "index": "code_r1_train_484" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 7\", \"4 20\", \"4 37\", \"2 37\", \"6 20\", \"2 57\", \"1 67\", \"1 54\"], \"outputs\": [\"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"2\\n\", \"5\\n\", \"7\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_485" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 3\\n\", \"7 3\\n\", \"1 1\\n\", \"1 1\\n\", \"2 1\\n\", \"2 0\\n\", \"7 5\\n\"], \"outputs\": [\"1 1\\n\", \"2 0\\n\", \"3 2\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"0 1\\n\", \"5 1\\n\"]}" }
{ "index": "code_r1_train_486" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n709551 1 1 1\\n\", \"1\\n754851 1 1 1\\n\", \"1\\n6713132 1 0 1\\n\", \"1\\n4 8980272 0 4\\n\", \"1\\n9085944 1 0 1\\n\", \"1\\n4 8980272 0 1\\n\", \"1\\n4 8980272 0 2\\n\", \"1\\n4 8980272 0 3\\n\"], \"outputs\": [\"1419102\\n\", \"1509702\\n\", \"6713132\\n...
{ "index": "code_r1_train_487" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nrll\\nrll\\nr\\nlllr\", \"4\\nlrl\\nrll\\nr\\nrlll\", \"4\\nlrl\\nrll\\nr\\nllrl\", \"4\\nrll\\nllr\\nr\\nlllr\", \"4\\nrll\\nrll\\nr\\nllrl\", \"4\\nrll\\nllr\\nr\\nrlll\", \"4\\nllr\\nllr\\nr\\nrlll\", \"4\\nllr\\nrll\\nr\\nrlll\"], \"outputs\": [\"14\\n14\...
{ "index": "code_r1_train_488" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"insert 8\\ninsert 0\\nextract\\ninsert 4\\nextract\\ninsert 9\\nextract\\nextract\\nend\", \"insert 8\\ninsert 0\\nextract\\ninsert 5\\nextract\\ninsert 2\\nextract\\nextract\\nend\", \"insert 8\\ninsert 0\\nextract\\ninsert 7\\nextract\\ninsert 9\\nextract\\next...
{ "index": "code_r1_train_489" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\na\\n\", \"a\\na\\n`\\n\", \"ab\\nb\\na\\n\", \"aab\\nb\\naa\\n\", \"`ab\\nb\\naa\\n\", \"atob\\na\\na\\n\", \"`ab\\nb\\n`a\\n\", \"atnb\\na\\na\\n\"], \"outputs\": [\"fantasy\\n\", \"fantasy\\n\", \"backward\\n\", \"backward\\n\", \"fantasy\\n\", \"fantas...
{ "index": "code_r1_train_490" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\nX\\n1\\n1 1\\n\", \"1 1\\n.\\n1\\n1 1\\n\", \"4 5\\n..XXX\\n...X.\\n...X.\\n...X.\\n5\\n1 3\\n3 3\\n4 5\\n5 5\\n1 5\\n\", \"3 3\\n..X\\n.X.\\nX..\\n10\\n1 3\\n1 3\\n1 3\\n2 3\\n1 3\\n1 2\\n1 3\\n2 2\\n2 3\\n2 2\\n\", \"3 3\\n...\\nXXX\\nXX.\\n10\\n2 3\\n1 2...
{ "index": "code_r1_train_491" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n3\", \"3\\n1\\n2\\n2\", \"3\\n1\\n2\\n6\", \"3\\n2\\n2\\n2\", \"3\\n1\\n3\\n2\", \"3\\n1\\n3\\n6\", \"3\\n1\\n1\\n2\", \"3\\n1\\n1\\n6\"], \"outputs\": [\"1.0\\n3.0\\n5.5\", \"1.0\\n3.0\\n3.0\\n\", \"1.0\\n3.0\\n14.7\\n\", \"3.0\\n3.0\\n3.0\\n\", \"1....
{ "index": "code_r1_train_492" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n13\\n5\\n7\\n15\\n13\\n7\\n\", \"4 5\\n9 14 9 12 13\\n5 15 11 6 7\\n5 9 14 9 14\\n3 2 14 3 6\\n\", \"4 5\\n9 14 9 12 13\\n5 15 11 6 7\\n5 9 14 9 14\\n3 2 14 3 14\\n\", \"4 5\\n9 14 11 12 13\\n5 15 3 6 7\\n5 9 14 9 14\\n3 2 14 3 14\\n\", \"4 5\\n9 14 9 12 13...
{ "index": "code_r1_train_493" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n3\\nRGR\\n3\\nRRR\\n3\\nRGB\", \"3\\n3\\nRGR\\n3\\nRRR\\n3\\nGRB\", \"3\\n3\\nGRR\\n3\\nRRR\\n3\\nGRB\", \"3\\n3\\nRGR\\n3\\nRRR\\n3\\nRBG\", \"3\\n3\\nGRR\\n3\\nRRR\\n3\\nBRG\", \"3\\n3\\nRRG\\n3\\nRRR\\n3\\nRGB\", \"3\\n3\\nRGR\\n3\\nRRR\\n3\\nBRG\", \"3\\n...
{ "index": "code_r1_train_494" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n1 1 2\", \"3\\n1 2 2\", \"3\\n2 1 2\", \"3\\n2 1 1\", \"3\\n2 2 4\", \"3\\n2 4 4\", \"3\\n2 2 1\"], \"outputs\": [\"1 2 3 \\n\", \"3 1 2 3 \\n\", \"2 3 1 2 3 \\n\", \"1 3 2 1 3 \\n\", \"1 2 3 1 \\n\", \"3 1 2 3 3 1 2 3 \\n\", \"2 3 1 2 3 2 3 1 ...
{ "index": "code_r1_train_495" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"3\\n1 2 3\\n\", \"3\\n2 1 3\\n\", \"3\\n2 3 1\\n\", \"3\\n3 1 2\\n\", \"3\\n3 2 1\\n\", \"3\\n1 3 2\\n\"], \"outputs\": [\"0 \\n\", \"0 \", \"0 0 0 \\n\", \"0 1 1\\n\", \"0 2 2\\n\", \"0 0 2\\n\", \"0 1 3\\n\", \"0 1 1\\n\"]}" }
{ "index": "code_r1_train_496" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 5\\n\", \"2\\n3 10\\n\", \"3\\n3 1 6\", \"3\\n3 2 6\", \"3\\n3 3 6\", \"3\\n2 1 6\", \"3\\n7 0 6\", \"3\\n2 0 6\"], \"outputs\": [\"11\\n\", \"11\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"6\\n\", \"10\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_497" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 2\\n\", \"1\\n3\\n1 1 2\\n\", \"1\\n3\\n2 1 2\\n\", \"1\\n3\\n3 1 2\\n\", \"1\\n3\\n2 1 2\\n\", \"1\\n3\\n1 1 2\\n\", \"1\\n3\\n3 1 3\\n\", \"1\\n3\\n2 2 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\...
{ "index": "code_r1_train_498" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n20 1\\n1585117 913999333\\n\", \"1\\n19 1\\n1585117 913999333\\n\", \"1\\n7 1\\n107402237 913999333\\n\", \"1\\n7 1\\n107402237 913999333\\n\", \"1\\n11 1\\n107402237 913999333\\n\", \"1\\n11 1\\n159441243 913999333\\n\", \"1\\n20 1\\n159441243 913999333\\n\"...
{ "index": "code_r1_train_499" }