data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1 0\\n\", \"1 1 100000\\n100000 100000\\n\", \"2 3 8\\n2 3 3 4\\n74 7 7 4\\n50 4 3 6\", \"3 3 8\\n62 3 3 4\\n74 7 7 2\\n50 2 3 6\", \"3 3 8\\n12 3 3 4\\n74 7 7 4\\n50 4 3 6\", \"3 3 10\\n60 2 2 4\\n70 8 7 2\\n50 2 3 9\", \"3 3 10\\n60 2 2 4\\n68 8 7 2\\n5...
{ "index": "code_r1_train_300" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"CSS\\nBSR\", \"SRR\\nSSR\", \"SSR\\nRTS\", \"STR\\nSTR\", \"RSR\\nSSS\", \"SSC\\nBSR\", \"RSR\\nSSR\", \"SSR\\nRSS\"], \"outputs\": [\"1\\n\", \"2\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_301" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n8 2\\n1 6\\n1 1\\n2 1\\n4 0\\n10 0\\n5 12\\n2 20\\n9 4\\n4 18\\n46 18\\n1 9\\n\", \"4\\n8 2\\n8 3\\n1 5\\n1 1\\n2 1\\n1 0\\n10 1\\n19 1\\n2 20\\n5 7\\n16 18\\n7 0\\n4 13\\n\", \"4\\n4 2\\n8 2\\n1 5\\n1 1\\n2 1\\n0 0\\n9 6\\n14 6\\n2 3\\n5 10\\n13 18\\n4...
{ "index": "code_r1_train_302" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1 0\\n1\\n\", \"1\\n1 0\\n1\\n\", \"1\\n1 1\\n0\\n\", \"1\\n1 -1\\n1\\n\", \"1\\n2 2\\n00\\n\", \"1\\n2 2\\n00\\n\", \"1\\n1 -1\\n1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_303" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"6\\n\", \"9\\n\", \"8\\n\", \"4\\n\", \"5\\n\", \"16\\n\"], \"outputs\": [\"3\\n1 2 \\n1 3 \\n2 3 \\n\", \"4\\n1 2 3 \\n1 4 5 \\n2 4 6 \\n3 5 6 \\n\", \"4\\n1 2 3 \\n1 4 5 \\n2 4 6 \\n3 5 6 \\n\", \"4\\n1 2 3 \\n1 4 5 \\n2 4 6 \\n3 5 6 \\n\", ...
{ "index": "code_r1_train_304" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2\\n1 2\\n2 1\\n4\\n2 1 4 1\\n2 4 1 4\", \"2\\n2\\n1 2\\n2 1\\n4\\n2 1 4 1\\n2 5 1 4\", \"2\\n2\\n2 2\\n2 1\\n4\\n2 1 4 1\\n4 4 1 4\", \"2\\n2\\n1 2\\n2 1\\n4\\n1 1 4 1\\n2 5 1 4\", \"2\\n2\\n2 2\\n2 1\\n4\\n2 1 4 1\\n2 4 1 4\", \"2\\n2\\n2 2\\n2 1\\n4\\n2 1 ...
{ "index": "code_r1_train_305" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2919\", \"4 1\\n2020\", \"4 3\\n1541\", \"4 3\\n3041\", \"4 2\\n3041\", \"4 6\\n1793\", \"4 4\\n3041\", \"4 2\\n1173\"], \"outputs\": [\"4\\n\", \"10\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"1\\n\", \"6\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_306" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n1 2\", \"2 2\\n0 0\\n1 2\", \"2 4\\n0 1\\n1 3\", \"2 2\\n1 1\\n1 2\", \"2 4\\n0 1\\n1 1\", \"2 2\\n0 0\\n0 2\", \"2 4\\n1 1\\n1 3\", \"2 2\\n1 1\\n0 2\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" ...
{ "index": "code_r1_train_307" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 0\\n\", \"2 0 1\\n\", \"1 1 0\\n\", \"0 0 1\\n\", \"1 0 1\\n\", \"5 7 1\\n\", \"1 1 1\\n\", \"0 0 0\\n\"], \"outputs\": [\"-\", \"+\", \"0\", \"?\", \"?\", \"-\", \"?\", \"0\"]}" }
{ "index": "code_r1_train_308" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ftprru\\n\", \"ftprru\\n\", \"ftparua\\n\", \"httpzru\\n\", \"ftparua\\n\", \"httpzru\\n\", \"httprrur\\n\", \"httprrur\\n\"], \"outputs\": [\"ftp://r.ru\\n\", \"ftp://r.ru\", \"ftp://a.ru/a\\n\", \"http://z.ru\\n\", \"ftp://a.ru/a\\n\", \"http://z.ru\", \"http:/...
{ "index": "code_r1_train_309" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n6\\n\", \"1\\n1 1\\n2\\n\", \"1\\n1 1\\n2\\n\", \"1\\n1 5\\n6\\n\", \"1\\n1 9\\n6\\n\", \"1\\n1 3\\n6\\n\", \"1\\n1 3\\n9\\n\", \"1\\n1 5\\n4\\n\"], \"outputs\": [\"6\\n\", \"2\\n\", \"2\\n\", \"6\\n\", \"10\\n\", \"3\\n\", \"3\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_310" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n.\\n\", \"1 1\\n-\\n\", \"1 1\\n-\\n\", \"1 1\\n.\\n\", \"2 2\\n..\\n..\\n\", \"3 1\\n-\\n.\\n.\\n\", \"3 1\\n-\\n.\\n.\\n\", \"2 2\\n..\\n-.\\n\"], \"outputs\": [\"B\\n\", \"-\\n\", \"-\\n\", \"B\\n\", \"BW\\nWB\\n\", \"-\\nW\\nB\\n\", \"-\\nW\\nB\\n\", \"...
{ "index": "code_r1_train_311" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 4\\n0 0\", \"3 1\\n6 4\\n0 0\", \"3 4\\n4 1\\n0 0\", \"3 1\\n4 2\\n0 0\", \"3 2\\n6 4\\n0 0\", \"3 7\\n4 1\\n0 0\", \"4 4\\n4 1\\n0 0\", \"4 1\\n4 2\\n0 0\"], \"outputs\": [\"0\\n2\\n\", \"0\\n3\\n\", \"4\\n1\\n\", \"0\\n4\\n\", \"3\\n3\\n\", \"0\\n1\\n\"...
{ "index": "code_r1_train_312" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nq\\n\", \"5\\naaaab\", \"5\\naa`ab\", \"5\\naa``b\", \"5\\nba_`a\", \"5\\nbaaaa\", \"5\\naa_`b\", \"5\\nca_`a\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"2\\n\", \"4\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_313" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\na\\n\", \"9\\n1\\n9\\n\", \"9\\n1\\n13\\n\", \"hb\\n1\\nAa\\n\", \"abc\\n1\\nb\\n\", \"hb\\n1\\nBa\\n\", \"cba\\n1\\nb\\n\", \"abcde\\n1\\nf\\n\"], \"outputs\": [\"1 0\", \"0 0\", \"1 0\\n\", \"2 0\", \"1 0\", \"2 0\\n\", \"1 0\\n\", \"5 0\"]}" }
{ "index": "code_r1_train_314" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 1\", \"2\\n0 0\\n1 1\", \"2\\n0 0\\n1 2\", \"2\\n1 1\\n1 1\", \"2\\n1 1\\n1 1\\n\", \"2\\n0 -1\\n1 2\", \"2\\n9 9\\n0 -1\", \"2\\n0 2\\n39 0\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"0\", \"0\\n\", \"4\\n\", \"19\\n\", \"41\\n\"]}" }
{ "index": "code_r1_train_315" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"6\\n\", \"5\\n\", \"9\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_316" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100000\\n\", \"1\\n100000\\n\", \"6\\n1 1 1 2 2 2\\n\", \"6\\n6 1 2 1 6 2\\n\", \"6\\n1 2 1 2 2 2\\n\", \"6\\n1 2 1 4 2 2\\n\", \"6\\n1 3 1 4 2 2\\n\", \"6\\n0 3 1 4 2 2\\n\"], \"outputs\": [\"1\", \"1\\n\", \"5\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"6\...
{ "index": "code_r1_train_317" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 6\\n011 1\", \"2 2\\n0 6\\n011 1\", \"2 4\\n0 6\\n011 1\", \"2 4\\n0 2\\n011 1\", \"2 6\\n0 2\\n011 1\", \"3 6\\n0 2\\n011 1\", \"3 6\\n0 2\\n011 0\", \"3 6\\n0 4\\n011 0\"], \"outputs\": [\"3\\n6\\n12\\n\", \"4\\n6\\n12\\n\", \"6\\n6\\n12\\n\", \"6\\n2\\...
{ "index": "code_r1_train_318" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 9 9\", \"4\\n4 4 8 9\", \"4\\n0 4 8 9\", \"4\\n2 3 7 9\", \"4\\n2 3 7 9\\n\", \"4\\n2 3 13 9\", \"4\\n4 4 13 9\", \"4\\n0 4 8 18\"], \"outputs\": [\"7\\n\", \"5\\n\", \"9\\n\", \"7\", \"7\\n\", \"11\\n\", \"9\\n\", \"18\\n\"]}" }
{ "index": "code_r1_train_319" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"4 4 2 2\\n\", \"8 3 2 1\\n\", \"4 3 2 1\\n\", \"4 4 1 1\\n\", \"2 1 3 1\\n\", \"6 6 1 3\\n\", \"1 4 1 1\\n\"], \"outputs\": [\"474774\", \"44747774\", \"44444447477\", \"4447477\", \"44477774\", \"-1\", \"-1\", \"74777\"]}" }
{ "index": "code_r1_train_320" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"6\\n\", \"8\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"2\\n\"], \"outputs\": [\"1 4\\n2 3\\n\", \"1 16 2 15\\n3 14 4 13\\n5 12 6 11\\n7 10 8 9\\n\", \"1 36 2 35 3 34\\n4 33 5 32 6 31\\n7 30 8 29 9 28\\n10 27 11 26 12 25\\n13 24 14 23 15 22\\n16 21 ...
{ "index": "code_r1_train_321" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4\\n9\\n\", \"2\\n1\\n0\\n\", \"2\\n2\\n0\\n\", \"2\\n2\\n1\\n\", \"2\\n3\\n9\\n\", \"2\\n0\\n2\\n\", \"2\\n3\\n1\\n\", \"2\\n3\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_322" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"5 2\\n\", \"7 2\\n\", \"2 1\\n\", \"2 1\\n\", \"7 2\\n\", \"3 2\\n\", \"4 3\\n\"], \"outputs\": [\"3\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_323" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\na\\n\", \"1\\nf\\n\", \"1\\na\\n\", \"1\\nf\\n\", \"1\\nb\\n\", \"1\\ng\\n\", \"1\\nc\\n\", \"1\\nh\\n\"], \"outputs\": [\"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\", \"1\\n\\n\"]}" }
{ "index": "code_r1_train_324" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n11010\\n11010\\n2\\n01\\n11\\n3\\n000\\n101\\n9\\n100010111\\n101101100\\n9\\n001011011\\n011010101\\n\", \"5\\n5\\n11000\\n11010\\n2\\n01\\n11\\n3\\n000\\n101\\n9\\n100010111\\n101101100\\n9\\n001011011\\n011010101\\n\", \"5\\n5\\n11010\\n11010\\n2\\n01\...
{ "index": "code_r1_train_325" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2 2 2\\n\", \"0 6 2 5\\n\", \"1 6 2 5\\n\", \"1 2 0 4\\n\", \"1 0 2 2\\n\", \"2 0 2 2\\n\", \"0 2 0 1\\n\", \"0 2 1 1\\n\"], \"outputs\": [\"DRAW\\n\", \"DRAW\\n\", \"FIRST\\n6\\n\", \"FIRST\\n2\\n\", \"DRAW\\n\", \"DRAW\\n\", \"DRAW\\n\", \"SECOND\\n\"]}" }
{ "index": "code_r1_train_326" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n60,10\\n100,20\\n120,30\\n310,45\\n10,4\\n50\\n5\\n60,10\\n100,20\\n120,30\\n210,45\\n10,4\\n0\", \"50\\n5\\n60,10\\n100,20\\n110,30\\n310,45\\n10,4\\n50\\n5\\n60,10\\n100,20\\n120,30\\n210,45\\n00,4\\n0\", \"50\\n5\\n60,10\\n100,20\\n100,32\\n210,45\\n1...
{ "index": "code_r1_train_327" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n4\\n1024 512 8 512\\n1\\n2048\\n3\\n32 512 2\\n2\\n4096 1\\n1\\n2048 2 2048 2048 2048 2048 2048\\n2\\n2048 4096\\n\", \"6\\n4\\n1024 512 64 512\\n1\\n2048\\n3\\n64 512 2\\n2\\n4096 4\\n7\\n2048 2 2048 2048 2048 2048 2048\\n2\\n2048 4096\\n\", \"6\\n4\\n1024 5...
{ "index": "code_r1_train_328" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 3\\n\", \"1 3\\n\", \"2 14\\n\", \"3 12\\n\", \"2 21\\n\", \"3 19\\n\", \"2 19\\n\"], \"outputs\": [\"0\\n\", \"5\\n\", \"4\\n\", \"43\\n\", \"24\\n\", \"14\\n\", \"94\\n\", \"93\\n\"]}" }
{ "index": "code_r1_train_329" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 3 8\\n2 1 1\\n1 5 5\\n4 0 4\\n\", \"4\\n1 4 8\\n4 0 0\\n1 5 5\\n8 1 6\\n\", \"4\\n9 3 8\\n2 1 1\\n1 5 1\\n4 0 4\\n\", \"4\\n8 4 8\\n2 1 1\\n1 5 5\\n8 1 6\\n\", \"4\\n1 4 8\\n4 0 0\\n1 5 5\\n8 1 1\\n\", \"4\\n1 4 8\\n6 0 0\\n1 5 5\\n8 1 1\\n\", \"4\\n5 3 4\\...
{ "index": "code_r1_train_330" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 2\\n3\\n2 2 3\\n5\\n0 0 0 2 2\\n\", \"3\\n3\\n2 2 0\\n3\\n2 2 3\\n5\\n0 0 0 2 2\\n\", \"3\\n3\\n4 2 0\\n3\\n2 2 3\\n5\\n0 0 0 2 2\\n\", \"3\\n3\\n4 2 0\\n3\\n2 2 4\\n5\\n0 0 0 2 2\\n\", \"3\\n3\\n1 2 2\\n3\\n2 2 3\\n5\\n0 1 0 2 2\\n\", \"3\\n3\\n2 2 2...
{ "index": "code_r1_train_331" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4 7\\n1 4 0 4\\n4 5\\n1 1 3 4\\n\", \"2\\n4 8\\n1 2 3 4\\n4 1\\n1 4 2 4\\n\", \"2\\n4 4\\n1 3 3 3\\n4 5\\n1 2 4 4\\n\", \"2\\n4 2\\n1 3 3 3\\n4 5\\n1 2 4 4\\n\", \"2\\n4 3\\n1 2 5 0\\n4 8\\n1 2 3 4\\n\", \"2\\n4 9\\n2 3 3 4\\n4 5\\n1 2 3 4\\n\", \"2\\n4 9\\n2...
{ "index": "code_r1_train_332" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n14 5 14\\n\", \"1\\n19 18 16\\n\", \"7\\n1 4 3\\n2 5 8\\n9 11 20\\n0 0 0\\n20 20 20\\n4 12 3\\n15 7 8\\n\", \"12\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n\", \"19\\n19 8 10\\n19 8 10\\n19 8 10\\n19 8 10...
{ "index": "code_r1_train_333" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n\", \"4\\n\", \"4\\n\", \"5\\n\", \"8\\n\", \"1\\n\", \"2\\n\", \"7\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_334" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1 1\\n\", \"1\\n0 1 1\\n1\\n1 1 1\\n\", \"1\\n9 10 7\\n1\\n7 1 3\\n\", \"1\\n15 10 7\\n1\\n7 1 3\\n\", \"1\\n16 10 7\\n1\\n7 1 3\\n\", \"1\\n16 10 7\\n1\\n9 1 3\\n\", \"1\\n16 10 7\\n1\\n8 1 3\\n\", \"1\\n500 500 1\\n1\\n1 1 500\\n\"], \"outputs...
{ "index": "code_r1_train_335" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0\\n0\\n\", \"1 0 0 0\\n1\\n\", \"1 0 0 1\\n1\\n\", \"2 0 0 0\\n1 1\\n\", \"2 0 0 0\\n2 1\\n\", \"2 0 0 0\\n0 1\\n\", \"2 0 0 1\\n0 1\\n\", \"2 0 0 1\\n-1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]...
{ "index": "code_r1_train_336" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n2 1\\n0 1\\n3 2\\n0 1 0\\n5 2\\n1 1 0 1 0\\n4 2\\n0 1 0 1\\n1 1\\n0\\n\", \"5\\n2 1\\n0 1\\n3 2\\n0 1 0\\n5 2\\n1 1 1 1 0\\n4 2\\n0 1 0 1\\n1 1\\n0\\n\", \"5\\n2 1\\n0 1\\n3 2\\n0 1 0\\n5 2\\n1 0 1 1 0\\n4 2\\n0 1 0 1\\n1 1\\n0\\n\", \"5\\n2 1\\n0 1\\n3 2\\n0...
{ "index": "code_r1_train_337" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"5 3\\n\", \"6 2\\n\", \"6 4\\n\", \"5 1\\n\", \"5 4\\n\", \"5 2\\n\", \"5 5\\n\"], \"outputs\": [\"010\\n\", \"00011\\n\", \"000010\\n\", \"000100\\n\", \"00001\\n\", \"00100\\n\", \"00010\\n\", \"00101\\n\"]}" }
{ "index": "code_r1_train_338" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n1\\n1\\n2\", \"1 1\\n1\\n0\\n0\", \"1 1\\n0\\n0\\n0\", \"1 2\\n1\\n1\\n0\", \"1 2\\n1\\n0\\n0\", \"0 2\\n0\\n0\\n0\", \"1 2\\n1\\n1\\n2\", \"1 1\\n0\\n-1\\n0\"], \"outputs\": [\"Yes\\nNo\", \"No\\n\", \"Yes\\n\", \"Yes\\nNo\\n\", \"No\\nNo\\n\", \"Yes\\nYes...
{ "index": "code_r1_train_339" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n!\\n\", \"1 1\\n!\\n\", \"2 2\\nR1\\n\", \"2 1\\nR1\\n\", \"2 1\\nOA\\n\", \"2 2\\nGW\\n\", \"2 1\\nOA\\n\", \"2 2\\nGW\\n\"], \"outputs\": [\"PRINT !\\n\", \"PRINT !\\n\", \"PRINT 1\\nLEFT\\nPRINT R\\n\", \"PRINT R\\nRIGHT\\nPRINT 1\\n\", \"PRINT O\\nRIGHT...
{ "index": "code_r1_train_340" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 7\", \"3\\n4 8 7\", \"3\\n4 2 5\", \"3\\n7 6 8\", \"3\\n7 6 8\\n\", \"3\\n4 6 9\\n\", \"3\\n9 28 18\", \"3\\n9 28 30\"], \"outputs\": [\"7\\n\", \"4\\n\", \"2\\n\", \"2\", \"2\\n\", \"3\\n\", \"9\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_341" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n2\\n\", \"2\\n1 1\\n\", \"2\\n2 3\\n\", \"2\\n1 4\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_342" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n51\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_343" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3 2\\n1 2 4 8\", \"10\\n1 1 3 2\\n0 2 3 8\", \"10\\n1 2 3 4\\n1 3 4 8\", \"10\\n1 1 3 2\\n0 2 3 1\", \"10\\n0 2 1 4\\n0 1 0 8\", \"10\\n1 2 3 2\\n0 0 4 3\", \"10\\n1 1 6 2\\n1 1 2 1\", \"10\\n1 1 5 1\\n0 1 6 1\"], \"outputs\": [\"4\\n\", \"3\\n\", \"6\\n...
{ "index": "code_r1_train_344" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n2 2\\n\", \"2\\n2 4\\n\", \"2\\n1 4\\n\", \"2\\n4 3\\n\", \"2\\n8 3\\n\"], \"outputs\": [\"3\", \"2\", \"2\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"7\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_345" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n2\\n1 1\\n\", \"1\\n2\\n2 1\\n\", \"1\\n2\\n2 2\\n\", \"1\\n2\\n0 1\\n\", \"1\\n2\\n2 3\\n\", \"1\\n2\\n1 2\\n\", \"1\\n2\\n0 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\...
{ "index": "code_r1_train_346" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n3 7 3 6\\n0\\n\", \"10 1\\n4 3 5 2 4\\n1\\n\", \"2 2\\n2 1 2\\n1 2\\n0 0\", \"4 2\\n2 1 2\\n1 2\\n0 1\", \"4 0\\n1 1 2\\n1 2\\n0 1\", \"7 2\\n2 1 2\\n1 1\\n0 1\", \"4 2\\n1 1 2\\n1 2\\n0 1\", \"4 2\\n2 1 2\\n1 1\\n0 1\"], \"outputs\": [\"512\\n\", \"512\\n...
{ "index": "code_r1_train_347" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 2\\n\", \"2\\n0 0\\n\", \"2\\n0 0\\n\", \"2\\n2 2\\n\", \"2\\n2 4\\n\", \"2\\n4 4\\n\", \"2\\n1 4\\n\", \"2\\n1 3\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_348" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\", \"8 2 9\", \"1 9 8\", \"2 6 2\", \"1 9 1\", \"1 2 5\", \"8 0 6\", \"3 5 7\"], \"outputs\": [\"4\\n\", \"2\\n\", \"72\\n\", \"6\\n\", \"9\\n\", \"10\\n\", \"0\\n\", \"10\"]}" }
{ "index": "code_r1_train_349" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"21 3 64\", \"21 0 64\", \"4 767 636\", \"7 770 636\", \"5 936 910\", \"15 90 456\", \"8 18 2018\", \"28 90 542\"], \"outputs\": [\"3\\n\", \"0\\n\", \"4\\n\", \"7\\n\", \"5\\n\", \"15\\n\", \"24\\n\", \"28\\n\"]}" }
{ "index": "code_r1_train_350" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"1 1 0\", \"0 2 0\", \"1 0 1\", \"2 0 0\", \"1 0 0\", \"2 2 1\", \"2 0 1\"], \"outputs\": [\"aab\\n\", \"ab\\n\", \"bb\\n\", \"ac\\n\", \"aa\\n\", \"a\\n\", \"abbac\\n\", \"aac\\n\"]}" }
{ "index": "code_r1_train_351" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 2\\n8 2 12\\n2 30 6\\n4 2 1\\n2663549 214779 659567\\n\", \"5\\n6 5 2\\n8 2 12\\n12 30 6\\n4 2 1\\n2663549 214779 659567\\n\", \"5\\n6 7 4\\n8 9 3\\n12 11 3\\n0 1 1\\n7341628 25065973 296620\\n\", \"5\\n6 7 4\\n8 9 3\\n12 11 3\\n0 1 1\\n7341628 21556586 2...
{ "index": "code_r1_train_352" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n8\\n\", \"1\\n5\\n\", \"1\\n7\\n\", \"1\\n3\\n\", \"1\\n83\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_353" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n6\\n3\", \"2\\n6\\n2\", \"2\\n5\\n2\", \"2\\n1\\n2\", \"2\\n1\\n3\", \"2\\n8\\n3\", \"2\\n5\\n1\", \"2\\n3\\n2\"], \"outputs\": [\"8\\n\", \"7\\n\", \"6\\n\", \"2\\n\", \"3\\n\", \"10\\n\", \"5\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_354" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n1000\\n\", \"1\\n1000\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n1000 \\n\", \"1\\n1000\\n\"]}" }
{ "index": "code_r1_train_355" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"x\\nww\", \"y\\nww\", \"y\\nvw\", \"z\\nvw\", \"z\\nvv\", \"{\\nvv\", \"z\\nwv\", \"y\\nwv\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_356" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"3\\n2 3 8\", \"3\\n0 0 8\", \"3\\n0 2 4\", \"3\\n3 3 8\", \"3\\n0 2 8\", \"3\\n6 3 8\", \"3\\n0 4 8\"], \"outputs\": [\"2\\n\", \"6\\n\", \"1\\n\", \"2\\n\", \"6\\n\", \"2\\n\", \"6\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_357" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 3\\n1 2\\n\", \"1 3\\n0 2\\n\", \"1 0\\n1 9\\n\", \"1 6\\n0 2\\n\", \"1 0\\n1 7\\n\", \"1 10\\n1 9\\n\", \"1 1\\n0 10\\n\", \"1 22\\n22 33\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_358" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 7 4 2\\n2 1 2 0\\n4\\n1 0 3 8\\n3 5 4 3\\n2\\n1 2\\n10 4\\n2\\n9 10\\n0 2\\n\", \"4\\n4\\n3 7 4 2\\n2 1 2 0\\n4\\n1 0 3 8\\n3 5 4 3\\n2\\n1 2\\n10 4\\n2\\n9 10\\n1 2\\n\", \"4\\n4\\n3 7 4 2\\n2 1 2 0\\n4\\n1 0 3 8\\n3 5 4 3\\n2\\n1 2\\n10 10\\n2\\n9 6\\...
{ "index": "code_r1_train_359" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 english\\n6 mathematics\\n8 geography\\n-1\\n3 graphics\\n-1\", \"6\\n9 english\\n6 mathematics\\n6 geography\\n-1\\n3 grcphias\\n-1\", \"6\\n9 english\\n6 mathematics\\n0 geography\\n-1\\n3 grcphias\\n-1\", \"6\\n9 english\\n6 mathematics\\n0 geography\\n-...
{ "index": "code_r1_train_360" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ncodechef\\n2\\ncode\\nchef\\nfoo\\n1\\nbar\\nmississippi\\n4\\nssissi\\nmippi\\nmi\\nppi\", \"3\\ncodechef\\n2\\ncode\\nchef\\nfoo\\n1\\nbar\\nmississippi\\n4\\nssissi\\nmippi\\nmi\\nipp\", \"3\\ncodechef\\n2\\ncode\\ndhef\\nfoo\\n1\\nbar\\nmississippi\\n4\\n...
{ "index": "code_r1_train_361" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\n01000010\\n5 1\\n01101110\\n\", \"2\\n1 1\\n01000110\\n5 1\\n01101110\\n\", \"2\\n2 1\\n01000110\\n5 1\\n01101110\\n\", \"2\\n2 1\\n01000110\\n5 1\\n01101101\\n\", \"2\\n2 1\\n11000111\\n5 1\\n01101001\\n\", \"2\\n1 1\\n01000110\\n5 2\\n01101110\\n\", \...
{ "index": "code_r1_train_362" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n15 2 1 5 3\\n\", \"1\\n1000000000\\n\", \"1\\n1000000000\\n\", \"5\\n15 2 2 5 3\\n\", \"5\\n15 2 1 8 3\\n\", \"5\\n15 2 2 4 3\\n\", \"5\\n15 2 1 5 3\\n\", \"10\\n13 2 5 55 21 34 1 8 1 3\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"5\\n\", \"...
{ "index": "code_r1_train_363" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 3\", \"2\\n2 5\", \"2\\n4 5\", \"2\\n2 7\", \"2\\n7 8\", \"2\\n2 6\", \"2\\n3 5\"], \"outputs\": [\"2000\\n\", \"1500\\n\", \"2500\\n\", \"1250\\n\", \"3500\\n\", \"1142\\n\", \"3000\\n\", \"1666\\n\"]}" }
{ "index": "code_r1_train_364" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3\\n3\\n1 2 1\", \"2\\n3\\n1 2 3\\n3\\n1 2 2\", \"2\\n3\\n1 2 3\\n3\\n0 2 1\", \"2\\n3\\n1 0 3\\n3\\n0 2 1\", \"2\\n3\\n1 0 2\\n3\\n0 2 1\", \"2\\n3\\n1 1 2\\n3\\n0 4 1\", \"2\\n3\\n1 1 4\\n3\\n0 4 1\", \"2\\n3\\n1 1 4\\n3\\n0 3 1\"], \"outputs\": [\"...
{ "index": "code_r1_train_365" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 40\\n770493 0\\n\", \"1 100\\n4847850\\n\", \"6 2\\n0 9 0 -1 3 2\", \"6 4\\n-10 8 2 0 2 6\", \"6 4\\n-10 3 2 0 2 6\", \"6 4\\n-10 3 4 0 2 6\", \"6 2\\n-10 3 6 0 2 6\"], \"outputs\": [\"1\\n\", \"770493\\n\", \"4847850\\n\", \"9\\n\", \"14\\n\", ...
{ "index": "code_r1_train_366" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 1\\n0.1\\n\", \"3 1\\n0.9\\n\", \"3 3\\n9.9\\n\", \"3 1\\n9.5\\n\", \"3 1\\n9.9\\n\", \"3 2\\n0.9\\n\", \"3 0\\n0.1\\n\", \"3 2\\n9.5\\n\"], \"outputs\": [\"0.1\", \"1\", \"10\", \"10\", \"10\", \"1\", \"0.1\\n\", \"10\"]}" }
{ "index": "code_r1_train_367" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 1 1 1 1 1 1 8\\n3 2 3 2 3 2 3 2 6\\n6 4 4 7 7 b a 2 2e\\ne1 13 ce 28 ca 6 ab 46 a6d\\nb08 49e2 6128 f27 8cf2 bc50 7380 7fe1 723b\\n4eba eb4 a352 fd14 6ac1 eed1 dd06 bb83 392bc\\nef593c08 847e522f 74c02b9c 26f3a4e1 e2720a01 6fe66007\\n7a4e96ad 6ee5cef6 385...
{ "index": "code_r1_train_368" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\nYYN\\n\", \"1 3 1\\nYYN\\n\", \"3 1 1\\nN\\nY\\nN\\n\", \"3 1 1\\nN\\nY\\nN\\n\", \"2 4 2\\nNYNY\\nNYNY\\n\", \"2 4 2\\nNYNY\\nNYNY\\n\", \"2 4 2\\nYNNY\\nNYNY\\n\", \"2 4 1\\nYNNY\\nNYNY\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n...
{ "index": "code_r1_train_369" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 5\\n\", \"3\\n1 1 3\\n\", \"3\\n2 5 5\\n\", \"3\\n1 1 2\\n\", \"4\\n1 2 4 8\\n\", \"4\\n3 6 28 9\\n\", \"5\\n25 3 44 6 48\\n\", \"5\\n49 3 6 44 24\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"4\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_370" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 2 3 4 5\\n5 4 3 2 1\", \"5 3 3\\n1 2 3 4 5\\n5 4 3 0 1\", \"5 3 3\\n1 0 3 5 5\\n5 4 3 0 1\", \"5 3 3\\n1 2 3 4 5\\n2 4 2 0 2\", \"5 3 3\\n1 2 5 4 5\\n2 4 2 1 3\", \"5 3 3\\n1 2 5 4 9\\n2 4 2 1 2\", \"5 3 3\\n1 2 4 4 9\\n2 4 2 1 2\", \"5 3 3\\n1 0 3 4 5\...
{ "index": "code_r1_train_371" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n8 4 1\\n2\\n2 3\\n1 2\\n\", \"3\\n6 4 1\\n2\\n2 3\\n1 2\\n\", \"3\\n8 4 1\\n2\\n2 3\\n2 2\\n\", \"3\\n8 0 1\\n2\\n2 3\\n2 2\\n\", \"3\\n8 1 1\\n2\\n2 3\\n2 2\\n\", \"3\\n8 4 1\\n2\\n1 3\\n1 2\\n\", \"3\\n8 4 1\\n2\\n1 3\\n2 2\\n\", \"3\\n8 0 1\\n2\\n2 2\\n2 2...
{ "index": "code_r1_train_372" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n####\\n##.#..#\\n##..#.#\\n##.#....#\", \"4\\n####\\n#..#.##\\n##..#.#\\n##.#....#\", \"4\\n####\\n#..#.##\\n#.#..##\\n##.#....#\", \"4\\n####\\n##.#..#\\n#.#..##\\n##.#....#\", \"4\\n####\\n##.#..#\\n#.#..##\\n#....#.##\", \"4\\n####\\n#..#.##\\n#.#..##\\n#....
{ "index": "code_r1_train_373" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"011\", \"111\", \"101\", \"001\", \"000\", \"110\", \"100\", \"010\"], \"outputs\": [\"2\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"2\"]}" }
{ "index": "code_r1_train_374" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"1\", \"2\", \"3\", \"4\", \"1\", \"4\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_375" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 0 1\", \"18 9 0 0\", \"30 9 0 0\", \"45 9 0 0\", \"63 9 0 0\", \"63 2 0 0\", \"63 4 0 0\", \"82 4 0 0\"], \"outputs\": [\"Bob\\n\", \"Draw\\n\", \"Draw\\n\", \"Draw\\n\", \"Draw\\n\", \"Draw\\n\", \"Draw\\n\", \"Draw\\n\"]}" }
{ "index": "code_r1_train_376" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nI\\n\", \"1 1\\nD\\n\", \"1 1\\nM\\n\", \"1 1\\nA\\n\", \"1 1\\nD\\n\", \"1 1\\nM\\n\", \"1 1\\nA\\n\", \"1 1\\nI\\n\"], \"outputs\": [\"Poor Dima!\\n\", \"Poor Dima!\\n\", \"Poor Dima!\\n\", \"Poor Dima!\\n\", \"Poor Dima!\\n\", \"Poor Dima!\\n\", \"Poor D...
{ "index": "code_r1_train_377" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 6 1\", \"2 9 7 0\", \"4 1 3 5\", \"4 1 1 5\", \"4 1 1 7\", \"1 2 2 2\", \"6 1 1 7\", \"4 2 2 5\"], \"outputs\": [\"0\\n\", \"1\\n\", \"24\\n\", \"56\\n\", \"8\\n\", \"2\\n\", \"792\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_378" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"3 0\\n\", \"3 0\\n\", \"5 0\\n\", \"9 0\\n\", \"10 0\\n\", \"4000 0\\n\", \"4000 0\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_379" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 0 2\\n9\\n7\\n\", \"1 1 0 0\\n1\\n1\\n\", \"1 1 0 0\\n1\\n2\\n\", \"1 1 2 1\\n7\\n8\\n\", \"1 1 1 0\\n1\\n1\\n\", \"1 1 0 0\\n9\\n7\\n\", \"1 1 0 0\\n1\\n4\\n\", \"1 1 2 1\\n7\\n6\\n\"], \"outputs\": [\"0\\n\", \"1\\n1 1\\n\", \"0\\n\", \"1\\n1 1\\n\", \"1\\n...
{ "index": "code_r1_train_380" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n\", \"9\\n\", \"3\\n\", \"6\\n\", \"2\\n\", \"5\\n\"], \"outputs\": [\"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\"]}" }
{ "index": "code_r1_train_381" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 4\\n5 0 1\\n4 3 7\", \"3\\n3 5 4\\n2 0 1\\n4 3 7\", \"3\\n3 5 4\\n2 0 1\\n4 3 0\", \"3\\n3 5 4\\n1 0 1\\n4 3 6\", \"3\\n3 5 0\\n2 0 1\\n4 3 7\", \"3\\n3 5 0\\n3 0 1\\n4 3 7\", \"3\\n5 5 0\\n3 0 1\\n4 3 7\", \"3\\n5 5 0\\n3 1 1\\n4 3 7\"], \"outputs\": [\"...
{ "index": "code_r1_train_382" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 0\\n1 3\\n\", \"2 2 13\\n1 13\\n2 12\\n\", \"1 1 1000000\\n1 1000000\\n\", \"4 2 4\\n1 9\\n1 0\\n1 4\\n2 6\\n\", \"4 2 4\\n1 9\\n1 1\\n1 4\\n2 6\\n\", \"4 2 4\\n1 4\\n1 1\\n1 4\\n2 6\\n\", \"4 2 8\\n1 9\\n1 10\\n1 4\\n2 6\\n\", \"4 2 4\\n1 9\\n1 10\\n1 4\\n2 ...
{ "index": "code_r1_train_383" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3\\n1 1 1\\n\", \"3\\n1 1 1\\n2 2 2\\n\", \"3\\n1 1 1\\n2 2 2\\n\", \"3\\n1 2 0\\n2 2 2\\n\", \"3\\n1 1 0\\n2 2 2\\n\", \"3\\n3 3 6\\n1 1 1\\n\", \"3\\n3 2 6\\n1 1 1\\n\", \"3\\n0 2 0\\n2 2 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"4\\n\", \"0\\...
{ "index": "code_r1_train_384" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1 0 1 3\\n1 0 2 1 2 2 0 3\\n5\", \"0 1 -2 1 1 0 1 3\\n1 0 2 1 2 2 0 6\\n5\", \"0 1 -2 1 1 0 1 3\\n1 0 2 1 0 2 0 6\\n5\", \"-2 1 0 1 2 0 1 3\\n1 0 2 1 2 2 0 3\\n8\", \"-2 1 0 1 2 0 1 3\\n1 0 2 1 2 2 1 3\\n8\", \"0 1 -2 1 1 0 1 3\\n2 0 2 1 2 2 0 3\\n5\", \...
{ "index": "code_r1_train_385" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n\", \"5 4 3 1\\n\", \"4 3 2 1\\n\", \"98 2 1 1\\n\", \"27 3 2 3\\n\", \"13 7 6 2\\n\", \"15 6 4 5\\n\", \"21 3 1 3\\n\"], \"outputs\": [\"4\\n3\\n1\\n\", \"-1\\n\", \"4\\n3\\n2\\n\", \"98\\n3\\n1\\n\", \"-1\\n\", \"-1\\n\", \"15\\n11\\n5\\n\", \"-1\\n\"...
{ "index": "code_r1_train_386" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbabe\\n\", \"1\\nbabe\\n\", \"1\\nbbae\\n\", \"1\\ndcab\\n\", \"1\\nbaae\\n\", \"1\\nabae\\n\", \"1\\nabbe\\n\", \"1\\nebba\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_387" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nZCTH\\n\", \"4\\nNPGT\\n\", \"4\\nAZTG\\n\", \"4\\nYCTG\\n\", \"4\\nANTG\\n\", \"4\\nOCTG\\n\", \"4\\nACHG\\n\", \"4\\nANTG\\n\"], \"outputs\": [\"2\", \"52\", \"3\", \"2\", \"11\", \"12\", \"12\", \"11\\n\"]}" }
{ "index": "code_r1_train_388" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n4\\n6 5 5 6\\n\", \"1\\n4\\n6 5 5 6\\n\", \"1\\n4\\n6 5 5 7\\n\", \"1\\n4\\n6 4 5 7\\n\", \"1\\n4\\n6 4 9 7\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"4\\n...
{ "index": "code_r1_train_389" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3 3\", \"4\\n3 3 3 3\", \"5\\n2 4 1 4 1\", \"5\\n1 4 2 4 2\", \"5\\n1 4 1 4 1\", \"5\\n1 4 1 4 2\", \"5\\n1 3 2 4 2\", \"5\\n1 3 3 4 2\"], \"outputs\": [\"1\\n\", \"1\", \"4\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"2\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_390" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n29 2\\n\", \"1\\n24 2\\n\", \"1\\n24 1\\n\", \"1\\n21 2\\n\", \"1\\n16 0\\n\", \"1\\n20 0\\n\", \"1\\n31 0\\n\", \"1\\n35 0\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_391" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n1\\n\", \"1\\n2\\n1\\n1\\n\", \"1\\n2\\n1\\n1\\n\", \"1\\n1\\n1\\n1\\n\", \"1\\n2\\n1\\n0\\n\", \"1\\n4\\n1\\n0\\n\", \"1\\n1\\n3\\n3 1 1\\n\", \"1\\n1\\n3\\n3 1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"0\\n\", \"0\\n\", \"3\\n\", \"...
{ "index": "code_r1_train_392" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"8\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"5\\n\", \"6\\n\", \"3\\n\", \"9\\n\"], \"outputs\": [\"44\\n\", \"4\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_393" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n+ 1\\n\", \"2 1\\n- 2\\n\", \"2 1\\n+ 1\\n\", \"2 1\\n+ 2\\n\", \"20 1\\n- 16\\n\", \"2 2\\n- 1\\n+ 1\\n\", \"6 2\\n+ 1\\n- 2\\n\", \"6 2\\n+ 1\\n- 4\\n\"], \"outputs\": [\"1\\n1 \\n\", \"2\\n1 2 \\n\", \"2\\n1 2 \\n\", \"2\\n1 2 \\n\", \"20\\n1 2 3 4 5 6 7...
{ "index": "code_r1_train_394" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"24\\n1 2 3 4\\n1 2 4 3\\n1 3 2 4\\n1 3 4 2\\n1 4 1 3\\n1 4 3 2\\n2 1 3 4\\n2 1 4 3\\n2 3 1 4\\n2 3 4 1\\n2 4 1 3\\n2 4 3 1\\n3 1 2 4\\n3 1 4 2\\n3 2 1 4\\n3 2 4 1\\n3 4 1 2\\n3 4 2 1\\n4 1 2 3\\n4 1 3 2\\n4 2 1 3\\n4 2 3 1\\n4 3 1 2\\n4 3 2 1\", \"24\\n2 2 3 4\\n...
{ "index": "code_r1_train_395" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n0 0\\n0 -1\\n3 0\\n-2 0\\n-2 1\\n\", \"5\\n0 0\\n2 0\\n0 -1\\n-2 0\\n-2 1\\n\", \"5\\n0 0\\n0 -1\\n3 1\\n-2 0\\n-2 1\\n\", \"5\\n0 1\\n2 0\\n0 -1\\n-2 0\\n-2 1\\n\", \"5\\n0 0\\n2 0\\n0 -1\\n-2 0\\n-2 1\\n\", \"5\\n0 0\\n0 -1\\n3 0\\n-2 0\\n-2 1\\n\", \"4\\n1...
{ "index": "code_r1_train_396" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 3\\n\", \"5 7 2\\n\", \"2 2 1\\n\", \"3 5 1\\n\", \"3 6 1\\n\", \"1 5 3\\n\", \"5 4 2\\n\", \"2 2 2\\n\"], \"outputs\": [\"0\\n\", \"15\\n\", \"0\\n\", \"6\\n\", \"10\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_397" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n271\\n\", \"1\\n833\\n\", \"1\\n497\\n\", \"1\\n643\\n\", \"1\\n997\\n\", \"1\\n611\\n\", \"1\\n887\\n\"], \"outputs\": [\"2 6\\n2 4\\n\", \"2 270\\n\", \"2 832\\n\", \"2 496\\n\", \"2 642\\n\", \"2 996\\n\", \"2 610\\n\", \"2 886\\n\"]}" }
{ "index": "code_r1_train_398" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"4 3 2\", \"4 3 0\", \"5 3 0\", \"0 1 6\", \"1 1 8\", \"0 1 8\", \"1 6 3\"], \"outputs\": [\"3\\n\", \"2\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"5\"]}" }
{ "index": "code_r1_train_399" }