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\": [\"0 8\", \"5 1\", \"0 9\", \"8 1\", \"8 0\", \"5 5\", \"5 2\", \"3 1\"], \"outputs\": [\"Yay!\\n\", \"Yay!\\n\", \":(\\n\", \"Yay!\\n\", \"Yay!\\n\", \"Yay!\\n\", \"Yay!\\n\", \"Yay!\\n\"]}" }
{ "index": "code_r1_train_4800" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 5\\n\", \"3 8\\n\", \"5 7\\n\", \"1 1\\n\", \"3 4\\n\", \"1 4\\n\", \"4 4\\n\", \"3 9\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"7\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_4801" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 3 34\\nTokyo Kyoto\\nTokyo Niigata 335\\nTokyo Shizuoka 174\\nShizuoka Nagoya 176\\nNagoya Kyoto 195\\nToyama Niigata 161\\nToyama Kyoto 296\\nNagoya\\nNiigata\\nToyama\\n6 3 30\\nTokyo Kyoto\\nTokyo Niigata 66\\nTokyo Shizuoka 174\\nShizuoka Nagoya 176\\nNagoy...
{ "index": "code_r1_train_4802" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n3 2 1\\n1 2\\n1 3\", \"3 2\\n3 2 1\\n1 2\\n2 2\", \"3 2\\n3 2 1\\n1 1\\n1 3\", \"5 1\\n1 2 3 4 5\\n1 5\", \"3 2\\n3 2 1\\n1 2\\n2 3\", \"5 2\\n5 3 1 4 3\\n1 3\\n5 4\", \"5 2\\n5 3 1 4 2\\n1 2\\n5 4\", \"5 2\\n5 3 1 4 2\\n1 2\\n5 3\"], \"outputs\": [\"3\\n\"...
{ "index": "code_r1_train_4803" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\nabc\\na\\nb\\nabba\\nbaab\", \"3\\nabc\\nabc\\nb\\nb\\nabba\\nbaab\", \"3\\nbaa\\n`cc\\nb\\nb\\n`bab\\nbaac\", \"3\\naab\\n_dc\\na\\nb\\nba`b\\ncbaa\", \"3\\nabc\\nacc\\na\\nb\\nabba\\nbaab\", \"3\\nbaa\\ndc^\\n`\\nb\\n`b`b\\naaac\", \"3\\n_ba\\ndb`\\nb...
{ "index": "code_r1_train_4804" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n1 1\\n\", \"2 1\\n2 1\\n\", \"2 1\\n1 2\\n\", \"3 2\\n3 1 0\\n\", \"3 2\\n2 1 0\\n\", \"3 2\\n3 1 1\\n\", \"3 1\\n3 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4805" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"2\\n1 1\\n1 2\\n2 1\\n2 2\\n\", \"2\\n1 1\\n2 2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 2\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 1\\n2 2\\n1 2\\n2 1\\n\", \"2\\n1 1\\n2 2\\n1 2\\n1 1\\n\"], \"outputs\": [\"1 \\n\", \"1...
{ "index": "code_r1_train_4806" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 66\", \"0 1 66\", \"1 1 34\", \"2 1 73\", \"0 0 25\", \"-2 0 3\", \"-4 1 6\", \"-5 4 1\"], \"outputs\": [\"7\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"0\\n\", \"-2\\n\", \"-3\\n\", \"-4\\n\"]}" }
{ "index": "code_r1_train_4807" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"8\", \"6\", \"7\", \"5\", \"9\"], \"outputs\": [\"1\\n\", \"2\\n\", \"5\\n\", \"34\\n\", \"13\\n\", \"21\\n\", \"8\\n\", \"55\\n\"]}" }
{ "index": "code_r1_train_4808" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"121\", \"888\", \"435\", \"684\", \"394\", \"124\", \"143\", \"110\"], \"outputs\": [\"21\\n\", \"271\\n\", \"193\\n\", \"243\\n\", \"182\\n\", \"24\\n\", \"43\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_4809" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"3\\n\", \"8\\n\", \"2\\n\", \"3\\n\", \"8\\n\", \"2\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \" 1\", \" ...
{ "index": "code_r1_train_4810" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"18\\ninsert 4\\ninsert 2\\ninsert 3\\ninsert 7\\ninsert 8\\ninsert 1\\nfind 0\\nfind 2\\nfind 3\\nfind 4\\nfind 5\\nfind 6\\nfind 3\\nfind 5\\nprint\\ndelete 3\\ndelete 7\\nprint\", \"18\\ninsert 8\\ninsert 2\\ninsert 3\\ninsert 7\\ninsert 22\\ninsert 1\\nfind 1\...
{ "index": "code_r1_train_4811" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n0 2 2 4\", \"4\\n0 2 2 3\", \"4\\n0 2 2 2\", \"4\\n0 1 2 2\", \"4\\n0 0 0 4\", \"4\\n0 0 1 4\", \"4\\n1 2 2 3\", \"4\\n0 0 2 8\"], \"outputs\": [\"0 2 4\\n\", \"0 2 3\\n\", \"0 2\\n\", \"0 1 2\\n\", \"0 4\\n\", \"0 1 4\\n\", \"1 2 3\\n\", \"0 2 8\\n\"]}" }
{ "index": "code_r1_train_4812" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\".\\n\", \"+\\n\", \">\\n\", \"<\\n\", \",\\n\", \"-\\n\", \"[\\n\", \"]\\n\"], \"outputs\": [\"12\\n\", \"10\\n\", \"8\\n\", \"9\\n\", \"13\\n\", \"11\\n\", \"14\\n\", \"15\\n\"]}" }
{ "index": "code_r1_train_4813" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"7\\n\", \"3\\n\", \"5\\n\", \"8\\n\", \"6\\n\", \"9\\n\"], \"outputs\": [\"25\", \"25\", \"25\\n\", \"25\\n\", \"25\\n\", \"25\\n\", \"25\\n\", \"25\\n\"]}" }
{ "index": "code_r1_train_4814" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 5\\n1 8 11\\n2 1 2\\n1 2 9\\n2 1 2\\n\", \"5\\n1 1 4\\n1 8 11\\n1 1 2\\n1 3 9\\n2 1 2\\n\", \"5\\n1 1 4\\n1 8 11\\n2 1 2\\n1 2 9\\n2 1 2\\n\", \"5\\n1 1 4\\n1 8 11\\n2 1 2\\n1 3 9\\n2 1 2\\n\", \"5\\n1 1 5\\n1 5 13\\n2 1 2\\n1 2 9\\n2 1 2\\n\", \"5\\n1 0 ...
{ "index": "code_r1_train_4815" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ns?or?\\nsco??\\nstor?\\nsco??\", \"2\\ns?o?r\\nsco??\\nstor?\\nsco??\", \"2\\nr?o?s\\nsco??\\nstor?\\nsco??\", \"2\\nr?o?s\\nsco??\\n?rots\\nsco??\", \"2\\nr?o?s\\nsco??\\n@rots\\nsco??\", \"2\\nr?o?s\\nsco??\\n@rots\\n??ocs\", \"2\\nr?o?s\\nsco??\\n@rots\\nt...
{ "index": "code_r1_train_4816" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n2 5 7 4 6\\n5 4\\n\", \"5 1 4\\n2 5 1 4 6\\n5 4\\n\", \"5 1 4\\n2 5 7 4 6\\n5 4\\n\", \"7 4 5\\n2 5 4 2 6 3 1\\n2 1\\n6 5\\n2 1\\n3 1\\n\", \"7 4 5\\n2 5 4 2 6 3 1\\n2 1\\n6 8\\n2 1\\n3 1\\n\", \"7 4 5\\n2 5 4 2 6 3 2\\n2 1\\n6 8\\n2 1\\n3 1\\n\", \"7 4 5...
{ "index": "code_r1_train_4817" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0224\", \"6\\n123123\", \"19\\n5546189040285140044\", \"19\\n4753841743850076999\", \"19\\n9039528710159876563\", \"19\\n3616863455241776042\", \"19\\n2785343766571511696\", \"19\\n2922045480066417189\"], \"outputs\": [\"3\", \"17\", \"273\\n\", \"311\\n\", \...
{ "index": "code_r1_train_4818" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nay\\n\", \"1\\n2\\nae\\n\", \"1\\n2\\nya\\n\", \"1\\n2\\nzb\\n\", \"1\\n2\\nbz\\n\", \"1\\n2\\nab\\n\", \"1\\n2\\nbf\\n\", \"1\\n2\\nyz\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4819" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5 7\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 3\\n\", \"2\\n2 0\\n\", \"2\\n2 7\\n\"], \"outputs\": [\"2 5\\n\", \"1 1\\n\", \"2 1\\n\", \"2 1\\n\", \"1 1\\n\", \"2 1\\n\", \"1 0\\n\", \"2 2\\n\"]}" }
{ "index": "code_r1_train_4820" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n2\\n3\\n1 1 1 1\\n2\\n4\\n6\\n3 2 2 2\\n1 2 3\\n2 4\\n6 8\", \"3\\n1 1 1 1\\n1\\n2\\n3\\n1 1 1 1\\n3\\n4\\n6\\n3 2 2 2\\n1 2 3\\n2 4\\n6 8\", \"3\\n1 1 1 1\\n1\\n4\\n5\\n1 1 1 1\\n3\\n4\\n6\\n3 2 2 2\\n2 2 3\\n2 7\\n6 8\", \"3\\n1 1 1 1\\n1\\n4\...
{ "index": "code_r1_train_4821" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n1\\n\", \"1 1 1\\n0\\n\", \"1 1 1\\n1\\n\", \"1 1 2\\n1\\n\", \"1 1 0\\n1\\n\", \"1 1 2\\n0\\n\", \"1 1 5\\n1\\n\", \"1 1 1\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_4822" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"byeybe\", \"eybcxb\", \"ebyeyb\", \"eybeyb\", \"eybdyb\", \"eybcyb\", \"byecxb\", \"cyebxb\"], \"outputs\": [\"1\\n\", \"6\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"6\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_4823" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 4\\n\", \"5 3\\n\", \"9 9\\n\", \"3 5\\n\", \"3 6\\n\", \"7 3\\n\", \"7 4\\n\"], \"outputs\": [\"###\\n..#\\n###\\n\", \"####\\n...#\\n####\\n\", \"###\\n..#\\n###\\n#..\\n###\\n\", \"#########\\n........#\\n#########\\n#........\\n#########\\n........
{ "index": "code_r1_train_4824" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 20\\n1 3\", \"2\\n3 20\\n0 3\", \"2\\n8 20\\n1 13\", \"2\\n8 40\\n1 10\", \"2\\n3 20\\n1 13\", \"2\\n12 20\\n1 6\", \"2\\n8 40\\n2 10\", \"2\\n16 20\\n1 6\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4825" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n10\\n\", \"1\\n19\\n\", \"1\\n19\\n\", \"1\\n10\\n\", \"1\\n19\\n\", \"1\\n35\\n\", \"1\\n14\\n\", \"1\\n70\\n\"], \"outputs\": [\"chest\\n\", \"chest\\n\", \"chest\\n\", \"chest\\n\", \"chest\\n\", \"chest\\n\", \"chest\\n\", \"chest\\n\"]}" }
{ "index": "code_r1_train_4826" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000\\n2 1\\n\", \"4 2 8\\n300 950 500 232\\n1 3\\n2 4\\n2 3\\n1 1\\n1 2\\n2 1\\n2 2\\n2 3\\n\", \"4 3 8\\n300 950 500 232\\n1 3\\n2 4\\n2 3\\n1 1\\n1 2\\n2 1\\n2 2\\n2 3\\n\", \"4 3 8\\n300 950 500 360\\n1 3\\n2 4\\n2 3\\n1 1\\n1 2\\n2 1\\n2 2\\n2 ...
{ "index": "code_r1_train_4827" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 5 9\\n\", \"2 3 3\\n\", \"2 3 5\\n\", \"1 0 1\\n\", \"5 6 0\\n\", \"2 1 0\\n\", \"2 3 1\\n\", \"5 4 6\\n\"], \"outputs\": [\"14\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4828" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4\\n\", \"1 1 2 3\\n\", \"7 3 6 3\\n\", \"1 2 3 3\\n\", \"1 2 2 7\\n\", \"3 1 1 1\\n\", \"2 3 3 4\\n\", \"1 1 4 2\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_4829" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 59\\n22\\n1\\n9\\n\", \"2\\n7 28\\n83\\n1\\n-46\\n\", \"2\\n7 28\\n26\\n1\\n-46\\n\", \"3\\n2 3 4\\n4 1\\n1\\n-1\\n\", \"3\\n2 3 4\\n4 1\\n1\\n-2\\n\", \"3\\n2 2 4\\n4 1\\n1\\n-2\\n\", \"3\\n2 3 4\\n2 1\\n1\\n-1\\n\", \"2\\n73 16\\n25\\n1\\n9988\\n\"], \"ou...
{ "index": "code_r1_train_4830" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.100 1.200\\n\", \"1\\n0.061 0.330\\n\", \"1\\n0.900 0.900\\n\", \"1\\n0.001 0.001\\n\", \"1\\n6418.669 157.986\\n\", \"1\\n6418.000 157.986\\n\", \"1\\n6418.000 157.000\\n\", \"2\\n0.001 0.001 0.001 0.001\\n\"], \"outputs\": [\"0.700\\n\", \"0.609\\n\", \"0...
{ "index": "code_r1_train_4831" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 9\\n5 6 3\", \"3\\n6 0\\n5 6 3\", \"3\\n6 0\\n5 9 3\", \"3\\n6 0\\n5 3 3\", \"3\\n6 0\\n5 3 2\", \"3\\n6 0\\n5 1 2\", \"3\\n8 0\\n5 1 2\", \"3\\n8 0\\n1 1 2\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" ...
{ "index": "code_r1_train_4832" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n-1\\n\", \"1 1\\n+1\\n\", \"2 1\\n+2\\n+1\\n\", \"2 0\\n-2\\n-2\\n\", \"2 2\\n+1\\n+1\\n\", \"3 1\\n+2\\n+3\\n+3\\n\", \"3 2\\n-1\\n+2\\n+3\\n\", \"3 0\\n-2\\n-2\\n-2\\n\"], \"outputs\": [\"Lie\\n\", \"Truth\\n\", \"Not defined\\nNot defined\\n\", \"Lie\\nL...
{ "index": "code_r1_train_4833" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2000 1139 818658270\\n\", \"1\\n2000 2000 1000000006\\n\", \"2\\n1398 1034 726329524\\n602 156 640769482\\n\", \"7\\n3 3 2\\n2 1 10\\n6 3 10\\n6 4 10\\n100 1 1\\n4 4 0\\n69 4 20\\n\", \"3\\n763 499 769431935\\n827 50 784148915\\n410 241 11071818\\n\", \"4\\n1...
{ "index": "code_r1_train_4834" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7 3\\n\", \"4 1\\n\", \"5 2\\n\", \"5 2\\n\", \"1 1\\n\", \"2 1\\n\", \"3 1\\n\"], \"outputs\": [\"3\\n1 2\\n2 3\\n3 1\\n\", \"21\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n3 6\\n4 5\\n4 6\\n4 7\\n5 6\\n5 7\\n5 1\\n6 7\\n6 1\\n6 2\\n7 1\\n7 2\\...
{ "index": "code_r1_train_4835" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n4 2 2\\n1 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 5 6 7\\n4 2 2\\n1 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n4 2 2\\n2 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n5 2 2\\n2 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3...
{ "index": "code_r1_train_4836" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 6\\n3 4 7 8\\n\", \"2\\n4 4 4 5\\n4 5 1 2\\n\", \"2\\n4 4 4 5\\n4 5 1 2\\n\", \"2\\n1 2 3 6\\n3 4 7 8\\n\", \"3\\n1 3 2 4\\n4 5 6 7\\n3 4 5 5\\n\", \"3\\n1 4 1 2\\n2 5 2 3\\n3 6 3 4\\n\", \"3\\n1 3 1 4\\n3 5 2 5\\n5 7 3 6\\n\", \"3\\n1 4 1 2\\n2 5 2 3\\...
{ "index": "code_r1_train_4837" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"3\\n1 0 1\", \"3\\n1 1 0\", \"3\\n0 0 0\", \"3\\n0 0 0\", \"3\\n1 1 0\", \"3\\n1 0 1\"], \"outputs\": [\"0\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"0\\n\\n\", \"0\\n\\n\", \"1\\n2\\n\", \"1\\n3\\n\"]}" }
{ "index": "code_r1_train_4838" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1\\n\", \"1 1\\n1\\n3 1\\n\", \"1 1\\n2\\n3 1\\n\", \"1 1\\n0\\n3 1\\n\", \"1 3\\n1\\n1 1 2\\n2 1\\n3 1\\n\", \"1 3\\n1\\n1 1 2\\n2 1\\n3 1\\n\", \"1 3\\n1\\n1 1 1\\n2 1\\n3 1\\n\", \"4 4\\n579010521 995684640 1830027497 63411296\\n3 3\\n3 1\\n2 590\\...
{ "index": "code_r1_train_4839" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 7\", \"0 3 0 7\", \"1 4 4 2\", \"1 4 4 4\", \"0 0 9 1\", \"3 5 2 7\", \"3 5 2 7\\n\", \"2 1 1 11\"], \"outputs\": [\"14\\n\", \"0\\n\", \"8\\n\", \"16\\n\", \"9\\n\", \"15\", \"15\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_4840" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"110 101 1 3\\n76 0 0 100 50\\n71 280 1 1\\n0 0 640 99 100\\n0 0 0 0\", \"100 100 1 2\\n76 0 0 100 50\\n640 280 1 1\\n0 0 640 57 100\\n0 0 0 0\", \"100 100 1 2\\n76 0 0 100 50\\n640 280 1 1\\n0 0 640 99 100\\n0 0 0 0\", \"110 100 1 2\\n76 0 0 100 50\\n640 280 1 1\...
{ "index": "code_r1_train_4841" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"oo\\n4\", \"oo\\n7\", \"rq\\n81\", \"oo\\n13\", \"qq\\n81\", \"rr\\n552\", \"rr\\n826\", \"rr\\n757\"], \"outputs\": [\"4\\n\", \"7\\n\", \"0\\n\", \"13\\n\", \"81\", \"552\\n\", \"826\\n\", \"757\\n\"]}" }
{ "index": "code_r1_train_4842" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"8\\n12345678\\n\", \"8\\n12345678\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4843" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nWWEEW\", \"5\\nEWEWW\", \"5\\nWWEWE\", \"5\\nWEWEW\", \"5\\nWEWWE\", \"5\\nEWWWE\", \"5\\nEWWEW\", \"5\\nWWWEE\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4844" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n3 3\\n...\\n.L.\\n...\\n4 5\\n#....\\n..##L\\n...#.\\n.....\\n1 1\\nL\\n1 9\\n.#..L....\\n\", \"4\\n3 3\\n...\\n.L.\\n...\\n4 5\\n#....\\n..##L\\n.#...\\n.....\\n1 1\\nL\\n1 9\\n.#..L....\\n\", \"4\\n3 3\\n...\\n..L\\n...\\n4 5\\n#....\\n..##L\\n.#...\\n........
{ "index": "code_r1_train_4845" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"2 1 1\\n0\\n\", \"3 1 1\\n0\\n\", \"2 0 1\\n2 3\\n\", \"2 0 1\\n0 3\\n\", \"2 3 1\\n2 3\\n\", \"3 2 2\\n4 1 3\\n\", \"1 6 19\\n110000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"114\\n\"]}" }
{ "index": "code_r1_train_4846" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n9\\n\", \"1\\n2\\n\", \"1\\n7\\n\", \"1\\n8\\n\", \"1\\n15\\n\"], \"outputs\": [\"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\"]}" }
{ "index": "code_r1_train_4847" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n\", \"1 0\\n\", \"2525 -425\\n\", \"23294 13184\\n\", \"97692 12674\\n\", \"24115 24178\\n\", \"66977 75123\\n\", \"13582 27162\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"10314607400\\n\", \"5523272501050\\n\", \"606889464360839\\n\", \"2319008467426\\n\", ...
{ "index": "code_r1_train_4848" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 4\\n4 4\\n\", \"2 1\\n1 1\\n\", \"2 1\\n2 2\\n\", \"2 1\\n1 1\\n\", \"2 4\\n4 4\\n\", \"2 1\\n2 2\\n\", \"2 1\\n3 2\\n\", \"2 1\\n3 4\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4849" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nR\\n0\\n\", \"1\\nr\\n0\\n\", \"1\\nR\\n0\\n\", \"1\\nr\\n0\\n\", \"1\\nQ\\n0\\n\", \"1\\ns\\n0\\n\", \"1\\nffff\\n1\\nffff r\\n\", \"1\\nffff\\n1\\nffff r\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"0 1\\n\", \"0 1\\n\", \"0 4\\n\"...
{ "index": "code_r1_train_4850" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"Q\\n\", \"Q\\n\", \"P\\n\", \"O\\n\", \"AI\\n\", \"IS\\n\", \"IS\\n\", \"JS\\n\"], \"outputs\": [\"YES\\n\", \"YES\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\", \"YES\\n\"]}" }
{ "index": "code_r1_train_4851" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n5\\n\", \"1 1\\n5\\n5\\n\", \"1 1\\n5\\n7\\n\", \"1 1\\n5\\n8\\n\", \"1 1\\n1\\n5\\n\", \"1 1\\n5\\n9\\n\", \"1 1\\n1\\n3\\n\", \"1 1\\n5\\n0\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4852" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n3 5 5 1\", \"4\\n3 3 4 1\", \"4\\n3 5 6 1\", \"4\\n4 3 4 1\", \"4\\n3 5 0 1\", \"4\\n4 1 4 1\", \"4\\n3 5 0 0\", \"4\\n2 1 4 1\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_4853" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4 4\\n\", \"7 7\\n\", \"7 4\\n\", \"4 7\\n\", \"0 7\\n\", \"1 7\\n\", \"44 4\\n\"], \"outputs\": [\"4\\n\", \"14\\n\", \"17\\n\", \"14\\n\", \"7\\n\", \"7\\n\", \"7\\n\", \"45\\n\"]}" }
{ "index": "code_r1_train_4854" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n10\\n\", \"1 1\\na\\n10\\n\", \"1 1\\nb\\n10\\n\", \"1 2\\nav\\n10 10\\n\", \"1 2\\nav\\n10 10\\n\", \"1 2\\naw\\n10 10\\n\", \"3 3\\nabc\\nada\\nssa\\n1 1 1\\n1 1 1\\n1 1 1\\n\", \"3 3\\nbac\\nada\\nssa\\n1 1 1\\n1 1 1\\n1 1 1\\n\"], \"outputs\": [\"0\...
{ "index": "code_r1_train_4855" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n0 0 0 100 100 0\\n1 1 1 5 5 1\", \"2\\n0 0 0 100 100 0\\n1 2 1 5 5 1\", \"2\\n0 0 0 111 000 1\\n1 2 0 3 2 1\", \"2\\n0 0 0 100 100 0\\n1 2 1 5 5 2\", \"2\\n0 0 0 100 100 0\\n1 2 1 5 9 2\", \"2\\n0 0 0 100 100 0\\n1 2 1 5 9 1\", \"2\\n0 0 0 100 100 0\\n1 2 1 7...
{ "index": "code_r1_train_4856" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"14 4 24336\", \"20 4 24336\", \"20 4 13351\", \"3 3 9645713\", \"7 6 9645713\", \"4 1 2216083\", \"13 1 725909\", \"13 2 725909\"], \"outputs\": [\"6561\\n\", \"10656\\n\", \"347\\n\", \"8\\n\", \"120\\n\", \"13\\n\", \"3136\\n\", \"714\\n\"]}" }
{ "index": "code_r1_train_4857" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0101000\\n1101100\\n5\\n01100\\n10101\\n2\\n01\\n01\\n6\\n000000\\n111111\\n\", \"4\\n7\\n0101000\\n1101100\\n5\\n01100\\n10101\\n2\\n01\\n01\\n6\\n000100\\n111111\\n\", \"4\\n7\\n0101000\\n1101100\\n5\\n01000\\n10101\\n2\\n01\\n01\\n6\\n000000\\n111111\\...
{ "index": "code_r1_train_4858" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\", \"1\\n2 6\", \"1\\n2 7\", \"1\\n1 6\", \"1\\n4 5\", \"1\\n4 6\", \"1\\n3 5\", \"1\\n2 3\"], \"outputs\": [\"mo3tthi\\n\", \"mo3tthi\\n\", \"mo3tthi\\n\", \"tubuann\\n\", \"mo3tthi\\n\", \"tubuann\\n\", \"tubuann\\n\", \"mo3tthi\\n\"]}" }
{ "index": "code_r1_train_4859" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"1\\n2\\n1 2\\n\", \"1\\n4\\n2 1 3 4\\n\", \"1\\n4\\n2 1 3 4\\n\", \"1\\n3\\n2 1 3 4\\n\", \"1\\n4\\n2 1 2 4\\n\", \"1\\n3\\n2 0 3 4\\n\", \"1\\n5\\n1 3 4 2 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\...
{ "index": "code_r1_train_4860" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"FVF\\nr \\n\", \"FVF\\nq \\n\", \"FFV\\nq \\n\", \"VFF\\nq \\n\", \"VFG\\nq \\n\", \"GtPXu\\nd\\n\", \"GPtXu\\nd\\n\", \"XPtGu\\nd\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4861" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\nabDefb\\nbSpoon\\nNIKHil\\n6 6\\naaaaaa\\nssssss\\nxuisdP\\noooooo\\nioowoo\\nbdylan\\n6 5\\nbdfhj\\ncacac\\nopqrs\\nddddd\\nindia\\nyucky\", \"3\\n3 6\\nabDefb\\nbSpoon\\nNIKHil\\n6 6\\naaaaaa\\nssssss\\nxuisdP\\noooooo\\nioowoo\\nbdylan\\n6 5\\njhfdb\...
{ "index": "code_r1_train_4862" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 2 3\\n\", \"1 3\\n3 1 2 3\\n\", \"1 1000000\\n1 1\\n\", \"1 1000000\\n1 1\\n\", \"2 3\\n2 1 2\\n2 2 3\\n\", \"2 3\\n2 1 2\\n2 2 3\\n\", \"2 4\\n2 1 2\\n3 2 3 4\\n\", \"2 2\\n3 2 2 1\\n2 1 2\\n\"], \"outputs\": [\"6\\n\", \"6\\n\", \"128233642\\n\", \"12...
{ "index": "code_r1_train_4863" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"a\\n0\\n\", \"a\\n2\\n\", \"aa\\n2\\n\", \"aa\\n3\\n\", \"cky\\n79\\n\", \"aaaa\\n4\\n\", \"aaaa\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\na\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\naaaa\"]}" }
{ "index": "code_r1_train_4864" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 10\\n\", \"1\\n3\\n3 2 1\\n\", \"1\\n3\\n7 3 1\\n\", \"1\\n4\\n8 2 2 1\\n\", \"1\\n3\\n100 3 1\\n\", \"1\\n3\\n999 2 1\\n\", \"1\\n3\\n999 3 1\\n\", \"1\\n3\\n999 100 1\\n\"], \"outputs\": [\"9\\n\", \"1\\n\", \"4\\n\", \"6\\n\", \"97\\n\", \"997\\n\", ...
{ "index": "code_r1_train_4865" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 1\\n0 1\\n9 2\\n10 3\\n8 2\\n4 8\\n8 2\", \"7 2\\n4 1\\n9 1\\n9 2\\n3 5\\n2 2\\n4 3\\n11 2\", \"7 2\\n4 1\\n0 1\\n4 2\\n10 3\\n8 2\\n4 8\\n8 2\", \"7 4\\n4 1\\n13 1\\n9 2\\n3 5\\n3 2\\n4 3\\n11 2\", \"7 5\\n4 1\\n13 2\\n9 2\\n10 3\\n8 2\\n4 8\\n11 2\", \"...
{ "index": "code_r1_train_4866" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 2 2\", \"4 2 1\", \"7 9 8\", \"2 5 8\", \"6 2 2\", \"1 5 8\", \"2 3 2\", \"2 1 8\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_4867" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n.\\n\", \"1\\n1 1 1\\n*\\n\", \"1\\n1 1 1\\n*\\n\", \"1\\n1 1 1\\n.\\n\", \"1\\n1 1 0\\n.\\n\", \"1\\n1 1 2\\n*\\n\", \"1\\n1 5 1\\n.....\\n\", \"1\\n1 5 1\\n.....\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\...
{ "index": "code_r1_train_4868" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n399462040\\n\", \"1\\n338186953\\n\", \"1\\n158575687\\n\", \"1\\n313577823\\n\", \"1\\n247528392\\n\", \"1\\n452215226\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"798924063\\n\", \"676373895\\n\", \"317151359\\n\", \"627155631\\n\"...
{ "index": "code_r1_train_4869" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"find\\n4\\nfind\\nfindfirstof\\nfindit\\nf\", \"fjnd\\n4\\nfind\\nfindfirstof\\nfindit\\nf\", \"njfd\\n4\\nfind\\nfotsqifdmig\\nfindit\\nf\", \"dfjn\\n4\\nfind\\nfotsqifdmig\\nfindit\\nf\", \"dfjm\\n4\\nfinc\\ngimdfiqstpf\\nfiidnt\\nf\", \"fjnd\\n4\\nfind\\nfindf...
{ "index": "code_r1_train_4870" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 3\\n1 2 3 4\\n\", \"4 2\\n-3 -2 -1 0\\n\", \"5 19\\n1 10 20 30 50\\n\", \"3 1000000000\\n-5 -1 1\\n\", \"1 14751211\\n847188590\\n\", \"2 1000000000\\n-14348867 1760823\\n\", \"10 5\\n31 36 43 47 48 50 56 69 71 86\\n\", \"10 50\\n1 4 20 27 65 79 82 83 99 100\\n...
{ "index": "code_r1_train_4871" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"bba\", \"cab\", \"abb\", \"aab\", \"aac\", \"bbb\", \"baa\", \"caa\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_4872" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\", \"2\\n1 2\", \"2\\n1 2\\n\", \"2\\n-1 1\", \"2\\n-1 2\", \"2\\n-3 0\", \"2\\n-1 0\"], \"outputs\": [\"4\\n\", \"2\\n\", \"3\", \"3\\n\", \"6\\n\", \"5\\n\", \"13\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_4873" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n0 2\\n\", \"3 9 6 7\\n0 1 9\\n\", \"3 2 1 2\\n0 1 2\\n\", \"2 10 5 7\\n0 10\\n\", \"3 8 2 3\\n0 7 8\\n\", \"3 2 1 2\\n0 0 2\\n\", \"3 8 1 3\\n0 7 8\\n\", \"3 2 0 2\\n0 0 2\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n7\\n\", \"0\\n\", \"2\\n5 7\\n\", \"1\\n...
{ "index": "code_r1_train_4874" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"PETER POTTRE\", \"RETEP POTTRE\", \"RETEP PNTTRE\", \"REETP PNTTRE\", \"REETP PMTTRE\", \"RETEP PMTTRE\", \"RETEP PRTTME\", \"RETEP TRTPME\"], \"outputs\": [\"?D-C'KOPDA\\n\", \"RR'''KOPDA\\n\", \"RR''?HRZ,M\\n\", \"RWH'?HRZ,M\\n\", \"RWH'?GJZ,M\\n\", \"RR''?GJZ,...
{ "index": "code_r1_train_4875" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"2\\n1 2 3\\n\", \"2\\n1 2 10\\n\", \"2\\n2 1 1000000000\\n\", \"2\\n2 1 1010000000\\n\", \"2\\n2 1 1000000001\\n\", \"4\\n1 2 4\\n3 1 2\\n1 4 7\\n\", \"4\\n1 2 4\\n1 3 47\\n1 4 7447\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"0\", ...
{ "index": "code_r1_train_4876" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 1\\n1 2\\n2 3\", \"3\\n1 1\\n1 3\\n2 3\", \"3\\n1 2\\n1 3\\n2 3\", \"3\\n1 1\\n1 1\\n2 3\", \"3\\n1 1\\n2 1\\n2 3\", \"3\\n1 3\\n1 3\\n2 2\", \"3\\n1 1\\n2 1\\n1 3\", \"3\\n1 2\\n2 1\\n2 3\"], \"outputs\": [\"0/1\\n1/2\\n1/2\", \"0/1\\n1/3\\n1/2\\n\", \"1/2...
{ "index": "code_r1_train_4877" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\", \"4\", \"9\", \"8\", \"2\", \"6\"], \"outputs\": [\"3\\n\", \"5\\n\", \"7\\n\", \"4\\n\", \"9\\n\", \"8\\n\", \"2\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_4878" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 1\", \"8 3 3\", \"4 0 1\", \"12 3 2\", \"8 0 11\", \"17 4 0\", \"-1 0 1\", \"13 3 1\"], \"outputs\": [\"1\\n\", \"0\\n\", \"3\\n\", \"2\\n\", \"-1\\n\", \"4\\n\", \"-2\\n\", \"3\"]}" }
{ "index": "code_r1_train_4879" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"2 8\\n\", \"1 1\\n\", \"3 20\\n\", \"8 17\\n\", \"25 100\\n\", \"52627 828929983\\n\", \"1 576460752303423488\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"3\\n\", \"14\\n\", \"60\\n\"]}" }
{ "index": "code_r1_train_4880" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"y\\n\", \"z\\n\", \"b\\n\", \"c\\n\", \"d\\n\", \"e\\n\", \"f\\n\"], \"outputs\": [\"a\\n\", \"y\\n\", \"z\\n\", \"b\\n\", \"c\\n\", \"d\\n\", \"e\\n\", \"f\\n\"]}" }
{ "index": "code_r1_train_4881" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 9 2 8\\n0 0 2 2\\n38 204 6 13\\n1010010010 0000000000 6 2\\n1000000000 2 1 0100001000\\n1 1000100110 1000011100 1\\n1 0 1 1\\n6 8 2 2\\n4 1 2 5\\n\", \"9\\n10 8 2 5\\n1 1 2 2\\n52 311 22 9\\n1000000000 1000000000 1 1\\n1000000000 1 1 1000000000\\n1 10000000...
{ "index": "code_r1_train_4882" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"1+1\\n\", \"1+2\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"1+1\\n\", \"1+2\\n\"]}" }
{ "index": "code_r1_train_4883" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 2 7 4\\n9 9 1 9\", \"2\\n3 2 7 4\\n9 3 1 9\", \"2\\n3 2 4 4\\n7 3 1 9\", \"2\\n3 2 6 4\\n7 3 1 9\", \"2\\n3 2 6 4\\n4 3 1 9\", \"2\\n3 2 6 4\\n4 3 2 9\", \"2\\n3 2 6 4\\n4 3 2 4\", \"2\\n3 4 6 4\\n4 3 2 4\"], \"outputs\": [\"6\\n8\\n\", \"6\\n14\\n\", \"3\\...
{ "index": "code_r1_train_4884" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 2\", \"0 3\", \"1 0\", \"1 3\", \"3 0\", \"4 0\", \"7 0\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4885" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n28\\n94\\n\", \"2\\n99\\n11\\n\", \"2\\n37\\n97\\n\", \"2\\n85\\n96\\n\", \"2\\n64\\n97\\n\", \"2\\n37\\n94\\n\", \"2\\n19\\n97\\n\", \"2\\n54\\n96\\n\"], \"outputs\": [\"-1\\n\", \"8\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n1 -1\\n\", \"-1\\n\", \"...
{ "index": "code_r1_train_4886" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1\\n2\\n3\\n\", \"3 1 3\\n2\\n2\\n3\\n\", \"3 1 3\\n1\\n2\\n3\\n\", \"4 0 4\\n1\\n2\\n3\\n4\\n\", \"4 0 4\\n1\\n2\\n3\\n2\\n\", \"4 0 4\\n1\\n2\\n3\\n3\\n\", \"5 2 5\\n2\\n2\\n3\\n4\\n5\\n\", \"5 2 5\\n1\\n2\\n3\\n4\\n5\\n\"], \"outputs\": [\"...\", \"..X...
{ "index": "code_r1_train_4887" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n01\\n\", \"2\\n00\\n\", \"2\\n11\\n\", \"3\\n101\\n\", \"3\\n000\\n\", \"3\\n010\\n\"], \"outputs\": [\"2 \", \"1 \", \"2 3 \", \"1 \", \"4 \", \"4 5 6 7 \", \"1 \", \"2 3 4 5 \"]}" }
{ "index": "code_r1_train_4888" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5000 1000 2000 3400 4300\\n1 1\\n99 2\\n7\\n5\\n5000 1000 2000 3400 4300\\n1 1\\n99 2\\n51\\n10\\n100 100 100 100 100 100 100 100 100 100\\n50 10\\n50 10\\n100\\n\", \"3\\n5\\n5000 1000 2000 3400 4300\\n1 2\\n99 2\\n7\\n5\\n5000 1000 2000 3400 4300\\n1 1\...
{ "index": "code_r1_train_4889" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\\n\", \"2 1\\n\", \"10 2\\n\", \"16 2\\n\", \"15 2\\n\", \"10 2\\n\", \"9 188\\n\", \"9 188\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"954137859\\n\", \"954137859\\n\"]}" }
{ "index": "code_r1_train_4890" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3\\n1 2 3\\n5\\n1 2 3 4\\n1 1 1 1\\n6\\n1 2 1 1 2\\n1 2 1 2 2\\n7\\n1 1 3 4 4 5\\n1 2 1 4 2 5\\n\", \"4\\n4\\n1 2 3\\n1 2 3\\n5\\n1 2 3 4\\n1 1 1 1\\n6\\n1 2 1 1 2\\n1 2 1 2 2\\n7\\n1 1 3 4 4 5\\n1 2 1 4 4 5\\n\", \"4\\n4\\n1 2 3\\n1 2 3\\n5\\n1 4 3 4...
{ "index": "code_r1_train_4891" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n4\\n0110\\n8\\n11101000\\n\", \"3\\n2\\n10\\n4\\n0110\\n8\\n11100001\\n\", \"3\\n2\\n10\\n4\\n1010\\n8\\n11101000\\n\", \"3\\n2\\n10\\n4\\n0011\\n8\\n11101000\\n\", \"3\\n2\\n10\\n4\\n0101\\n8\\n11100001\\n\", \"3\\n2\\n10\\n4\\n0101\\n8\\n11101000\\...
{ "index": "code_r1_train_4892" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"WBWBWBWB\\nBWBWBWBW\\nBWBWBWBW\\nBWBWBWBW\\nWBWBWBWB\\nWBWBWBWB\\nBWBWBWBW\\nWBWBWBWB\\n\", \"WBWBWBWB\\nWBWBWBWB\\nBBWBWWWB\\nBWBWBWBW\\nBWBWBWBW\\nBWBWBWWW\\nBWBWBWBW\\nBWBWBWBW\\n\", \"BWBWBWBW\\nWBWBWBWB\\nBWBWBWBW\\nBWBWBWBW\\nWBWBWBWB\\nWBWBWBWB\\nWBWBWBWB\...
{ "index": "code_r1_train_4893" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\", \"2 2\", \"3 2\", \"6 2\", \"9 2\", \"2 5\", \"4 5\"], \"outputs\": [\"0\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"12\\n\", \"18\\n\", \"10\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_4894" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nGT\\n\", \"2 1\\nTG\\n\", \"2 1\\nTG\\n\", \"2 1\\nGT\\n\", \"3 1\\nTG#\\n\", \"3 1\\nGT#\\n\", \"3 2\\nG.T\\n\", \"3 1\\nTG#\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_4895" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"a\\n\", \"g\\n\", \"b\\n\", \"e\\n\", \"c\\n\", \"h\\n\", \"d\\n\"], \"outputs\": [\"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\", \"Impossible\\n\"]}" }
{ "index": "code_r1_train_4896" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0\", \"1\", \"2\", \"3\", \"95\", \"79\", \"89\", \"36\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4897" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 2\", \"4 1 2\", \"2 1 0\", \"4 1 3\", \"2 2 0\", \"0 1 2\", \"7 1 3\"], \"outputs\": [\"Hom\\n\", \"Tem\\n\", \"Tem\\n\", \"Tem\\n\", \"Hom\\n\", \"Tem\\n\", \"Tem\\n\", \"Hom\\n\"]}" }
{ "index": "code_r1_train_4898" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 3\\n\", \"1\\n2\\n9 8\\n\", \"1\\n2\\n6 5\\n\", \"1\\n2\\n4 8\\n\", \"1\\n2\\n7 8\\n\", \"1\\n2\\n10 8\\n\", \"1\\n3\\n6 5 4\\n\", \"1\\n3\\n3 2 2\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES...
{ "index": "code_r1_train_4899" }