data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 3\\n1 2\\n2 3\\n1 3\\n4 3\\n1 2\\n1 3\\n1 4\\n4 6\\n1 2\\n1 3\\n1 2\\n2 3\\n3 4\\n2 4\\n0 0\", \"3 3\\n2 2\\n2 3\\n2 3\\n4 3\\n1 2\\n1 3\\n1 4\\n4 6\\n1 4\\n1 3\\n1 4\\n2 3\\n3 4\\n2 4\\n0 0\", \"3 3\\n2 2\\n2 3\\n2 3\\n4 3\\n1 2\\n1 3\\n1 4\\n6 6\\n1 4\\n1 3\\...
{ "index": "code_r1_train_2000" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9\", \"7\", \"4\", \"53\", \"17\", \"28\", \"13\", \"25\"], \"outputs\": [\" 3 6 9\\n\", \" 3 6\\n\", \" 3\\n\", \" 3 6 9 12 13 15 18 21 23 24 27 30 31 32 33 34 35 36 37 38 39 42 43 45 48 51 53\\n\", \" 3 6 9 12 13 15\\n\", \" 3 6 9 12 13 15 18 21 23 24 27\\n\", ...
{ "index": "code_r1_train_2001" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n0\\n8\", \"4\\n2\\n4\\n2\\n7\", \"4\\n1\\n8\\n7\\n5\", \"4\\n2\\n3\\n3\\n7\", \"4\\n7\\n7\\n3\\n1\", \"4\\n2\\n4\\n2\\n8\", \"4\\n2\\n4\\n0\\n3\", \"4\\n2\\n4\\n0\\n0\"], \"outputs\": [\"0\\n\", \"4\\n\", \"5\\n\", \"3\\n\", \"7\\n\", \"2\\n\", \"2\\n...
{ "index": "code_r1_train_2002" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 0 3 2\\n0 0 9 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1000 245\", \"4\\n0 -3 2 0 3 2\\n0 0 9 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1010 707\", \"4\\n0 -3 2 0 3 2\\n0 0 6 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1010 707\", \"4\\n1 -6 2 0 3 2\\n0 0 9 8 8 2\\n0 ...
{ "index": "code_r1_train_2003" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\", \"0 7\", \"0 5\", \"3 4\", \"4 7\", \"2 5\", \"4 8\", \"3 5\"], \"outputs\": [\"0\\n\", \"64\\n\", \"16\\n\", \"4\\n\", \"42\\n\", \"15\\n\", \"99\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_2004" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 2\\n32 32 32\\n57 3 57\\n5\\n77 3 49\\n7 30 44\\n12 21 21\\n33 56 56\\n21 82 4\\n3\\n45 52 28\\n36 26 36\\n40 55 61\\n10\\n33 8 39\\n50 57 15\\n35 21 12\\n6 17 11\\n0 21 58\\n45 40 53\\n45 30 53\\n39 1 8\\n55 48 30\\n7 48 15\\n0\", \"3\\n8 8 2\\n32 32 32\...
{ "index": "code_r1_train_2005" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\", \"5\\n2 2 3 4 5\", \"5\\n2 2 6 4 5\", \"5\\n0 2 6 4 5\", \"5\\n1 2 5 4 6\", \"5\\n0 2 3 4 5\", \"5\\n2 2 6 6 5\", \"5\\n1 2 8 4 6\"], \"outputs\": [\"9\", \"11\\n\", \"18\\n\", \"14\\n\", \"15\\n\", \"7\\n\", \"24\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_2006" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"555\\n1\\n8\\n4\", \"555\\n2\\n6\\n6\", \"555\\n3\\n6\\n6\", \"555\\n9\\n6\\n6\", \"555\\n2\\n28\\n4\", \"555\\n0\\n28\\n4\", \"555\\n1\\n11\\n0\", \"555\\n1\\n11\\n1\"], \"outputs\": [\"5\\n\", \"8\\n\", \"9\\n\", \"15\\n\", \"6\\n\", \"4\\n\", \"1\\n\", \"2\\n\...
{ "index": "code_r1_train_2007" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n\", \"1060 67456\\n\", \"1000000000000 1\\n\", \"7449088 3336990720\\n\", \"6064022 70812167400\\n\", \"2000000 1000000000000\\n\", \"3059787769 226424289430\\n\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\...
{ "index": "code_r1_train_2008" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 16 6 3\\n2 2 2 3\\n2 3 0 0\\n31415 92653 97266 32384\\n1000000000 1000001000 11747768 999999999\", \"5\\n4 16 6 6\\n6 5 4 3\\n1 2 0 0\\n31415 92653 58979 3909\\n1000000000 1000000000 999999999 999999999\", \"5\\n4 10 6 6\\n6 5 4 3\\n1 1 0 0\\n31415 92653 58...
{ "index": "code_r1_train_2009" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n8\\n\", \"9 9\\n3\\n\", \"1 1\\n1\\n\", \"3 3\\n2\\n\", \"3 3\\n1\\n\", \"9 10\\n1\\n\", \"10 9\\n4\\n\", \"7 10\\n1\\n\"], \"outputs\": [\"0\\n\", \"8\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"17\\n\", \"5\\n\", \"15\\n\"]}" }
{ "index": "code_r1_train_2010" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n\", \"2 1\\n\", \"6 8\\n\", \"2 2\\n\", \"1 2\\n\", \"3 4\\n\", \"1 4\\n\", \"1 6\\n\"], \"outputs\": [\"0\", \"0\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2011" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\", \"4 8\", \"6 8\", \"3 7\", \"5 7\", \"5 8\", \"5 3\", \"7 4\"], \"outputs\": [\"5\\n\", \"4\\n\", \"6\\n\", \"3\\n\", \"5\\n\", \"5\\n\", \"4\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_2012" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n\", \"1 0 0\\n\", \"1 0 1\\n\", \"2 0 0\\n\", \"2 0 1\\n\", \"2 1 2\\n\", \"2 2 3\\n\", \"2 0 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2013" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"10\\n\", \"1111111111111111111\\n\", \"11100000110100000010101101011111001100000\\n\", \"110011111011111010101111000110101110110100001011011011111100101001110010\\n\", \"10010011010011000011011110000011000000000011011110101001100000100101011101111111010...
{ "index": "code_r1_train_2014" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 3\\n\", \"1\\n8 4\\n\", \"1\\n3 4\\n\", \"1\\n3 6\\n\", \"1\\n3 3\\n\", \"1\\n29 4\\n\", \"1\\n9 75\\n\", \"1\\n9 95\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"3\\n\", \"66\\n\", \"86\\n\"]}" }
{ "index": "code_r1_train_2015" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 2 1\", \"1 5\\n3\\n3 2 1\", \"1 5\\n3\\n3 0 1\", \"2 3\\n3\\n3 0 1\", \"2 3\\n3\\n2 1 2\", \"4 2\\n3\\n2 1 2\", \"0 5\\n3\\n3 2 1\", \"1 9\\n3\\n3 0 1\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", ...
{ "index": "code_r1_train_2016" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 7 3\\n\", \"0 1 0\\n\", \"0 0 0\\n\", \"0 0 1\\n\", \"0 0 2\\n\", \"0 1 0\\n\", \"0 1 1\\n\", \"0 1 2\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2017" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 c\\n2 3 b\\n\", \"1\\n2\\n1 1 b\\n2 1 b\\n\", \"1\\n2\\n2 1 b\\n1 1 b\\n\", \"1\\n2\\n1 1 c\\n2 1 b\\n\", \"1\\n2\\n1 1 z\\n2 1 z\\n\", \"1\\n2\\n1 1 c\\n2 1 c\\n\", \"1\\n2\\n1 3 c\\n2 3 c\\n\", \"1\\n2\\n2 1 a\\n1 1 z\\n\"], \"outputs\": [\"NO\\nYES...
{ "index": "code_r1_train_2018" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n0\\n\"], \"outputs\": [\"YES\\n1 \", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n1\\n\"]}" }
{ "index": "code_r1_train_2019" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 8 2\\n\", \"3\\n3 5 6\\n\", \"3\\n6 8 2\\n\", \"3\\n1 1 1\\n\", \"3\\n4 8 2\\n\", \"3\\n3 5 6\\n\", \"1\\n100000\\n\", \"1\\n100000\\n\"], \"outputs\": [\"2\", \"5\", \"5\\n\", \"0\\n\", \"2\\n\", \"5\\n\", \"0\", \"0\\n\"]}" }
{ "index": "code_r1_train_2020" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n0\\n\", \"1\\n10\\n0\\n\", \"1\\n10\\n0\\n\", \"1\\n14\\n0\\n\", \"1\\n11\\n0\\n\", \"1\\n16\\n0\\n\", \"1\\n50\\n1\\n1 2\\n\", \"1\\n100\\n1\\n1 1\\n\"], \"outputs\": [\"7\\n\", \"10\\n\", \"10\\n\", \"14\\n\", \"11\\n\", \"16\\n\", \"0\\n\", \"0\\n\"]}"...
{ "index": "code_r1_train_2021" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 4\\n0 2 2\\n2 3 3\\n\", \"3\\n1 0 5987\\n2 0 8891\\n\", \"3\\n1 0 5987\\n2 0 8891\\n\", \"3\\n1 0 5987\\n2 1 8891\\n\", \"4\\n0 1 4\\n0 2 2\\n1 3 3\\n\", \"4\\n0 1 4\\n0 2 4\\n2 3 4\\n\", \"4\\n0 1 6\\n0 2 4\\n1 3 4\\n\", \"3\\n1 0 1844\\n2 0 8891\\n\"], ...
{ "index": "code_r1_train_2022" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 0\\n\", \"4 0\\n\", \"2 0\\n\", \"4 0\\n\", \"3 0\\n\", \"7 0\\n\", \"5 0\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"6\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_2023" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n114514 1919810\\n114514 1919810\\n\", \"1\\n2\\n114514233 114514233\\n114514233 114514233\\n\", \"1\\n3\\n141592 653589 793238\\n141592 653589 793238\\n\", \"1\\n10\\n123 123 123 123 123 123 123 123 123 123\\n1 1 1 1 1 11 1 1 11 1\\n\", \"1\\n10\\n12345 1...
{ "index": "code_r1_train_2024" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n2 1\\n\", \"2\\n1 0\\n\", \"2\\n2 0\\n\", \"2\\n2 2\\n\", \"2\\n0 0\\n\", \"2\\n1 2\\n\", \"3\\n1 3 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_2025" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"0 0 2 2\", \"2 0 1 2\", \"1 1 0 4\", \"2 0 2 2\", \"1 1 0 6\", \"2 0 2 4\", \"0 1 0 6\"], \"outputs\": [\"no\\n\", \"yes\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\"]}" }
{ "index": "code_r1_train_2026" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 2 9\\n5 1\", \"2 2 2 9\\n9 1\", \"2 1 1 9\\n6 1\", \"2 2 2 9\\n9 2\", \"2 2 2 9\\n1 2\", \"2 3 2 9\\n1 2\", \"2 3 2 9\\n1 0\", \"2 3 1 9\\n1 0\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2027" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n10\\n2\\n\", \"1\\n10\\n5\\n\", \"2\\n1\\n5\\n1\\n\", \"2\\n1\\n5\\n1\\n\", \"2\\n2\\n5\\n1\\n\", \"2\\n1\\n10\\n1\\n\", \"2\\n1\\n10\\n1\\n\"], \"outputs\": [\"15 15\\n\", \"12 12\\n\", \"15 15\\n\", \"5 6\\n\", \"5 6\\n\", \"5 7\\n\", \"1...
{ "index": "code_r1_train_2028" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"2\\n\", \"8\\n\", \"9\\n\", \"6\\n\", \"7\\n\", \"5\\n\", \"4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_2029" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 1 -1\\n\", \"4\\n1 -1 1 1\\n\", \"4\\n1 -1 1 1\\n\", \"4\\n3 9 0 -1\\n\", \"4\\n0 9 0 -1\\n\", \"4\\n3 9 1 -1\\n\", \"2\\n-1 1000000000\\n\", \"2\\n1000000000 -1\\n\"], \"outputs\": [\"0\", \"1\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\", \"1000000000\", \"0\"...
{ "index": "code_r1_train_2030" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13 2 61\\n\", \"1\\n13 0 61\\n\", \"1\\n13 0 39\\n\", \"1\\n31 2 104\\n\", \"1\\n33 6 100\\n\", \"1\\n31 2 104\\n\", \"1\\n33 6 100\\n\", \"1\\n23 2 104\\n\"], \"outputs\": [\"54\\n\", \"52\\n\", \"39\\n\", \"95\\n\", \"72\\n\", \"95\\n\", \"72\\n\", \"94\\n\...
{ "index": "code_r1_train_2031" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n5 5 5 5\\n3 2\\n0 0 0\\n\", \"2\\n4 2\\n5 5 5 5\\n3 2\\n0 0 0\\n\", \"2\\n4 2\\n5 5 5 5\\n3 2\\n0 0 1\\n\", \"2\\n4 3\\n5 5 2 5\\n3 2\\n0 1 0\\n\", \"2\\n4 3\\n5 5 2 1\\n3 2\\n0 1 0\\n\", \"2\\n4 3\\n5 1 2 1\\n3 2\\n0 1 0\\n\", \"2\\n4 2\\n2 5 5 0\\n3 2...
{ "index": "code_r1_train_2032" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n5 4\\n5\\n789 5\\n166 22\\n9 3\\n617 252\\n972 303\\n2\\n8 5\\n6 20\\n0\", \"2\\n4 3\\n7 8\\n0\\n480 10\\n255 46\\n9 1\\n617 12\\n219 303\\n2\\n0 1\\n2 37\\n0\", \"2\\n4 3\\n9 4\\n5\\n480 2\\n48 46\\n9 5\\n617 252\\n972 303\\n2\\n8 5\\n61 20\\n0\", \"2\...
{ "index": "code_r1_train_2033" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"338 4\\n55043 5\\n65 6\\n0 1\\n17 2\\n0 0\", \"338 4\\n55043 5\\n65 1\\n0 1\\n17 2\\n0 0\", \"338 4\\n55043 5\\n65 1\\n0 1\\n17 3\\n0 0\", \"338 4\\n83268 5\\n125 6\\n0 1\\n17 2\\n0 0\", \"338 4\\n25484 5\\n125 6\\n0 1\\n17 2\\n0 0\", \"338 4\\n83268 5\\n182 6\\n...
{ "index": "code_r1_train_2034" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6174\\n3729\\n90\\n0000\", \"6174\\n990\\n3333\\n0000\", \"6174\\n503\\n4924\\n0000\", \"6174\\n3985\\n3333\\n0000\", \"6174\\n1779\\n3333\\n0000\", \"6174\\n1779\\n2211\\n0000\", \"6174\\n2012\\n3078\\n0000\", \"6174\\n3985\\n5889\\n0000\"], \"outputs\": [\"0\\n...
{ "index": "code_r1_train_2035" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"2 1 2\\n1\\n\", \"3 1 3\\n1 2\\n\", \"3 2 3\\n2 2\\n\", \"4 2 3\\n3 2 2\\n\", \"4 2 3\\n2 1 3\\n\", \"4 2 3\\n3 2 1\\n\", \"5 2 3\\n2 4 2 3\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2 3\\n\", \"2 3\\n\", \"3 3 2\\n\", \"3 1 3\\n\", \"3 3 1\\n\"...
{ "index": "code_r1_train_2036" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\namer arem mrea\\n\", \"3\\namer mera mrea\\n\", \"3\\nrema mera mrea\\n\", \"3\\nrema mera erma\\n\", \"3\\nrema arem erma\\n\", \"3\\nrema aerm erma\\n\", \"3\\namer arem mrea\\n\", \"5\\na aa aaa ab abb\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n...
{ "index": "code_r1_train_2037" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 4\\n4 7 2 4\", \"2\\n1 1 0 4\\n2 7 2 4\", \"2\\n1 1 1 3\\n14 7 2 4\", \"2\\n1 1 1 2\\n14 7 2 4\", \"2\\n1 1 1 4\\n14 7 2 4\", \"2\\n1 1 0 4\\n14 7 2 4\", \"2\\n1 1 1 4\\n2 10 2 0\", \"2\\n1 1 1 4\\n3 29 2 0\"], \"outputs\": [\"19\\n18\\n\", \"19\\n21\\n...
{ "index": "code_r1_train_2038" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 1\\n\", \"2\\n1 1\\n2 2\\n\", \"2\\n2 1\\n1 2\\n\", \"2\\n2 1\\n1 2\\n\", \"2\\n1 1\\n2 2\\n\", \"2\\n1 3\\n2 1\\n\"], \"outputs\": [\"Poor Alex\\n\", \"Poor Alex\\n\", \"Happy Alex\\n\", \"Poor Alex\\n\", \"Happy Alex\...
{ "index": "code_r1_train_2039" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"6 2\\n\", \"2 4\\n\", \"1 1\\n\", \"2 4\\n\", \"1 1\\n\", \"2 6\\n\", \"1 0\\n\"], \"outputs\": [\"3\\n\", \"875000008\\n\", \"562500005\\n\", \"1\\n\", \"562500005\\n\", \"1\\n\", \"140625002\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2040" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1\\n\", \"x\\n1\\n1 1\\n\", \"x\\n1\\n1 0\\n\", \"zyxxxxxxyyz\\n5\\n5 5\\n1 3\\n1 6\\n1 4\\n3 6\\n\", \"zyxxxxxxyyz\\n5\\n5 5\\n1 3\\n1 11\\n1 4\\n3 6\\n\", \"zyxxxxxxyyz\\n5\\n5 5\\n1 3\\n1 11\\n1 4\\n3 1\\n\", \"zyxxxxxxyyz\\n5\\n2 5\\n1 3\\n1 11\\n1 ...
{ "index": "code_r1_train_2041" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n\", \"6\\n\", \"8\\n\", \"3\\n\", \"9\\n\", \"2\\n\", \"4\\n\", \"7\\n\"], \"outputs\": [\"71\\n\", \"73\\n\", \"97\\n\", \"31\\n\", \"107\\n\", \"17\\n\", \"37\\n\", \"79\\n\"]}" }
{ "index": "code_r1_train_2042" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 1 5\\n9 4 1 2\\n2 3 6 4\\n6 4 3 7\\n7 2 5 8\", \"5\\n1 6 1 5\\n1 4 1 2\\n2 3 6 3\\n6 4 3 7\\n8 2 5 8\", \"5\\n1 6 1 5\\n1 4 1 2\\n2 3 6 3\\n6 4 3 6\\n8 2 5 8\", \"5\\n1 6 1 5\\n1 5 1 2\\n2 3 6 1\\n6 4 3 7\\n8 2 5 7\", \"5\\n1 6 1 5\\n1 6 1 2\\n2 3 6 1\\n6...
{ "index": "code_r1_train_2043" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"10\\n1 3\\n4 3\\n10 4\\n5 6\\n6 2\\n5 2\\n7 5\\n7 8\\n7 9\\n\", \"10\\n1 3\\n4 3\\n10 4\\n5 5\\n6 2\\n5 2\\n7 5\\n7 8\\n7 9\\n\", \"10\\n1 3\\n4 3\\n10 4\\n7 5\\n6 2\\n5 2\\n7 5\\n7 8\\n7 9\\n\", \"10\\n1 3\\n4 3\\n10 6\\n7 5\\n6 2\\n5 2\\n7 5\\n7...
{ "index": "code_r1_train_2044" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n3\\n0\\n\", \"1\\n6\\n0\\n\", \"1\\n10\\n0\\n\", \"1\\n13\\n0\\n\", \"2\\n10 5\\n0\\n\", \"2\\n11 5\\n0\\n\", \"2\\n14 5\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_2045" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000\\n\", \"1\\n1\\n1000000000\\n\", \"1\\n1\\n1000000001\\n\", \"1\\n1\\n1000001001\\n\", \"1\\n1\\n1000011001\\n\", \"1\\n1\\n1000111001\\n\", \"1\\n1\\n1000101001\\n\", \"1\\n1\\n1000101101\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\...
{ "index": "code_r1_train_2046" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"11\\n\", \"11\\n\", \"58\\n\", \"30\\n\", \"26\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2047" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 5 3 3 2\\n4\\n1 3 2 1\\n5\\n1 2 3 3 2\\n10\\n1 2 1 4 5 2 7 8 9 7\\n3\\n3 3 2\\n\", \"5\\n5\\n1 5 3 3 2\\n4\\n1 3 2 1\\n5\\n1 3 3 3 2\\n10\\n1 2 1 4 5 2 7 8 9 7\\n3\\n3 3 2\\n\", \"5\\n5\\n1 5 3 3 2\\n4\\n1 3 2 1\\n5\\n1 3 3 3 2\\n10\\n1 2 1 5 5 2 7 8 9 ...
{ "index": "code_r1_train_2048" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nq\\n\", \"1 1\\nq\\n\", \"1 1\\np\\n\", \"2 1\\nab\\n\", \"1 1\\nab\\n\", \"1 1\\nba\\n\", \"2 1\\nba\\n\", \"1 1\\nac\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2049" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1 2\\n\", \"1\\n2 2\\n\", \"1\\n1 3\\n\", \"1\\n9 74\\n\", \"1\\n4 74\\n\", \"1\\n4 30\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2050" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n3 99\\n9 14\\n47 4\\n6 6\\n1 13\\n1 4\", \"6\\n3 99\\n5 14\\n47 4\\n6 6\\n1 13\\n1 4\", \"6\\n3 20\\n5 14\\n47 4\\n6 6\\n1 13\\n1 4\", \"6\\n3 20\\n5 14\\n47 4\\n6 6\\n2 13\\n1 4\", \"6\\n1 20\\n5 14\\n37 4\\n6 6\\n2 16\\n1 4\", \"6\\n5 99\\n9 10\\n47 11\\n6 ...
{ "index": "code_r1_train_2051" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 1\", \"1 1\", \"2 0\", \"1 9\", \"1 7\", \"4 8\", \"4 1\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"0\\n\", \"9\\n\", \"7\\n\", \"8\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_2052" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\", \"6\", \"9\", \"8\", \"5\", \"0\", \"1\", \"7\"], \"outputs\": [\"hon\\n\", \"pon\\n\", \"hon\\n\", \"pon\\n\", \"hon\\n\", \"pon\\n\", \"pon\\n\", \"hon\\n\"]}" }
{ "index": "code_r1_train_2053" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n00001\\n\", \"5\\n1 2 3 4 5\\n00001\\n\", \"5\\n0 2 3 4 5\\n00001\\n\", \"5\\n2 0 4 0 2\\n00001\\n\", \"5\\n1 2 3 0 5\\n00001\\n\", \"5\\n2 2 3 0 5\\n00001\\n\", \"5\\n2 0 3 0 5\\n00001\\n\", \"5\\n2 0 4 0 5\\n00001\\n\"], \"outputs\": [\"6 100000...
{ "index": "code_r1_train_2054" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n2 1\\n\", \"1 2 1\\n1\\n2 1\\n\", \"1 2 1\\n2\\n2 1\\n\", \"1 2 31\\n1\\n1 2\\n\", \"1 2 23\\n1\\n1 2\\n\", \"1 2 31\\n1\\n1 2\\n\", \"2 2 2\\n2 1\\n1 2\\n\", \"2 2 2\\n2 1\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"62\\n\", \"46\\n\",...
{ "index": "code_r1_train_2055" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 2 1\\n4 6\\n1 5\\n3 8\", \"2 2 2 6\\n4 6\\n1 5\\n3 8\", \"2 2 2 8\\n4 6\\n1 5\\n3 8\", \"2 2 2 8\\n4 6\\n1 5\\n3 8\\n\", \"3 3 3 5\\n1 10 101\\n2 20 200\\n1 10 100\", \"3 3 3 5\\n1 10 100\\n2 20 200\\n1 10 100\", \"3 3 3 5\\n1 10 100\\n2 20 200\\n1 10 100\\n\...
{ "index": "code_r1_train_2056" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n2\\n2\\n3\\n4\\n9\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n2\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n17\\n\", \"9\\n3\\n2\\n3\\n4\\n5\\n9\\n15\\n8\\n7\\n\", \"9\\n1\\n2\\n3\\n4\\n5\\n12\\n7\...
{ "index": "code_r1_train_2057" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5 3\\n\", \"2 1\\n\", \"7 2\\n\", \"9 1\\n\", \"5 1\\n\", \"1 1\\n\", \"7 2\\n\"], \"outputs\": [\"0 0 1\\n\", \"0 0 5\\n\", \"0 0 2\\n\", \"1 2 4\\n\", \"2 2 5\\n\", \"1 1 3\\n\", \"0 0 1\\n\", \"1 2 4\\n\"]}" }
{ "index": "code_r1_train_2058" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"2\\n0\\n1\\n\", \"4\\n1\\n10\\n1\\n11\\n\", \"4\\n1\\n10\\n01\\n11\\n\", \"4\\n00\\n10\\n01\\n11\\n\", \"4\\n00\\n10\\n01\\n11\\n\", \"3\\n100101\\n1100011\\n10101010\\n\", \"3\\n100101\\n1100011\\n10001010\\n\"], \"outputs\": [\"0\\n1\\n\", \"0...
{ "index": "code_r1_train_2059" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"b\\n\", \"a\\n\", \"z\\n\", \"y\\n\", \"c\\n\", \"x\\n\", \"d\\n\", \"aa\\n\"], \"outputs\": [\"b\\n\", \"a\\n\", \"z\\n\", \"y\\n\", \"c\\n\", \"x\\n\", \"d\\n\", \"aa\\n\"]}" }
{ "index": "code_r1_train_2060" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 2 4 2 2\", \"5\\n5 2 4 2 1\", \"5\\n4 3 4 2 1\", \"5\\n2 1 6 0 2\", \"5\\n2 3 6 2 1\", \"5\\n2 1 7 0 2\", \"5\\n2 1 7 0 0\", \"5\\n8 0 2 2 0\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"5\\n\", \"4\\n\", \"6\\n\", \"7\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_2061" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1\\n6 6\\n\", \"1\\n0 0\\n\", \"1\\n6 6\\n\", \"1\\n9 6\\n\", \"1\\n-1 0\\n\", \"1\\n18 6\\n\", \"1\\n0 -1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2062" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2063" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n6\\n1 1\\n\", \"1 1\\n6\\n1 1\\n\", \"1 1\\n7\\n1 1\\n\", \"1 1\\n5\\n1 1\\n\", \"1 1\\n2\\n1 1\\n\", \"1 1\\n3\\n1 1\\n\", \"2 5\\n1 1\\n1 2\\n2 2\\n2 2\\n1 2\\n1 2\\n\", \"2 5\\n1 1\\n1 2\\n2 2\\n2 2\\n1 2\\n1 2\\n\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\"...
{ "index": "code_r1_train_2064" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\nab\\nda\", \"2\\nab\\nad\", \"2\\nab\\nac\", \"2\\nba\\nca\", \"2\\nbb\\nca\", \"2\\nbb\\nac\", \"2\\ncb\\nac\", \"2\\ncb\\nab\"], \"outputs\": [\"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2065" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n6 2 2\\n\", \"3 2 1 2\\n3 1 2\\n\", \"3 2 1 2\\n6 3 2\\n\", \"3 2 1 2\\n3 6 3\\n\", \"3 2 0 2\\n3 3 9\\n\", \"3 2 0 2\\n4 5 1\\n\", \"3 2 0 2\\n1 3 2\\n\", \"3 2 1 2\\n5 9 3\\n\"], \"outputs\": [\"0\\n\", \"6\\n\", \"3\\n\", \"6\\n\", \"0\\n\", \"3\\n\"...
{ "index": "code_r1_train_2066" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n1\\n8\\n1 6 7 7 3 9\\n\", \"1\\n1 1 6\\n1\\n4\\n1 6 8 7 8 9\\n\", \"1\\n1 1 6\\n1\\n8\\n1 6 8 7 3 9\\n\", \"1\\n1 1 6\\n1\\n11\\n1 6 7 7 8 9\\n\", \"1\\n1 1 6\\n1\\n11\\n1 6 7 7 8 9\\n\", \"1\\n1 1 6\\n2\\n11\\n1 6 7 7 8 9\\n\", \"1\\n1 1 6\\n3\\n11\\...
{ "index": "code_r1_train_2067" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 1\\n\", \"1\\n0 0 0 1\\n\", \"1\\n1 0 0 1\\n\", \"1\\n1 1 0 0\\n\", \"1\\n1 0 1 1\\n\", \"1\\n0 0 1 1\\n\", \"1\\n0 0 1 2\\n\", \"1\\n0 0 1 3\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"...
{ "index": "code_r1_train_2068" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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++X\\n\", \"1\\nX--\\n\", \"1\\nX--\\n\", \"1\\n--X\\n\", \"1\\nX++\\n\", \"1\\n++X\\n\", \"2\\nX++\\n--X\\n\", \"2\\n--X\\n--X\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"-2\\n\"]}" }
{ "index": "code_r1_train_2069" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1\\n\", \"2 1 1\\n2\\n1\\n\", \"2 1 1\\n1\\n2\\n\", \"2 1 1\\n2\\n1\\n\", \"1 1 1\\n1\\n1\\n\", \"2 1 1\\n1\\n2\\n\", \"1 1 0\\n1\\n1\\n\", \"1 1 0\\n1\\n0\\n\"], \"outputs\": [\"1\\n\", \"2 1\\n\", \"1 2\\n\", \"2 1 \", \"1 \", \"1 2 \", \"1\\n\", \"...
{ "index": "code_r1_train_2070" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n837757580 0\\n\", \"1\\n-59873019 0\\n\", \"1\\n-60730778 0\\n\", \"3\\n4 3\\n3 4\\n1 2\\n\", \"1\\n837757580 2\\n\", \"3\\n4 3\\n3 4\\n1 1\\n\", \"1\\n837757580 4\\n\", \"1\\n837757580 1\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"7\\n\", \"2\\n\", \"6\\n...
{ "index": "code_r1_train_2071" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 0 1\\n4 3 5\\n3 1 2\\n1 4 7\\n4 10 0\\n10 20 10 20\\n2 5 5\\n0 11\\n1 9 9\\n99\\n\", \"5\\n3 0 1\\n4 3 5\\n3 1 2\\n1 4 7\\n4 10 0\\n18 20 10 20\\n2 5 5\\n0 11\\n1 9 9\\n99\\n\", \"5\\n3 0 1\\n8 3 5\\n3 1 2\\n1 4 7\\n4 10 0\\n18 20 10 20\\n2 5 5\\n0 11\\n1 9...
{ "index": "code_r1_train_2072" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2\\n2 2\\n\", \"1\\n2\\n2 2\\n\", \"1\\n2\\n1 2\\n\", \"1\\n11\\n1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n11\\n1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n11\\n1 1 1 2 1 1 1 1 1 1 1\\n\", \"1\\n11\\n1 1 1 1 1 1 1 1 2 1 1\\n\", \"1\\n11\\n1 1 1 2 1 1 2 1 1 1 1\\n\"], \"outputs...
{ "index": "code_r1_train_2073" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"1\\n66\\n\", \"1\\n45\\n\", \"1\\n12\\n\", \"1\\n213\\n\", \"1\\n129\\n\", \"1\\n216\\n\"], \"outputs\": [\"15\\n\", \"25\\n\", \"165\\n\", \"115\\n\", \"30\\n\", \"535\\n\", \"325\\n\", \"540\\n\"]}" }
{ "index": "code_r1_train_2074" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n1 2 8 7\", \"4 2 5\\n1 1 5 7\", \"4 2 5\\n1 2 5 7\", \"7 2 101\\n18 8 32 1 146 3 37\", \"7 2 101\\n13 8 32 1 146 3 37\", \"7 2 101\\n13 8 32 1 182 3 37\", \"7 2 101\\n20 14 32 1 72 3 37\", \"7 2 100\\n13 8 32 1 182 3 37\"], \"outputs\": [\"5\\n\", \"9\\n\...
{ "index": "code_r1_train_2075" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2 3\\n2 0\\n100000 0\\n0 0\", \"3 2\\n1 2\\n2 3\\n3 0\\n100000 0\\n0 0\", \"5 2\\n1 2\\n2 3\\n5 0\\n100000 0\\n0 0\", \"3 2\\n1 2\\n2 3\\n4 0\\n100000 0\\n0 0\", \"5 2\\n1 2\\n2 3\\n2 0\\n100000 0\\n0 0\", \"5 2\\n1 2\\n2 1\\n2 0\\n100000 0\\n0 0\", \...
{ "index": "code_r1_train_2076" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 2\\n3 2\\n\", \"4 3\\n1 2\\n4 3\\n3 2\\n\", \"5 5\\n1 2\\n2 3\\n3 1\\n4 1\\n5 4\\n\", \"5 5\\n1 2\\n2 3\\n3 1\\n4 1\\n5 3\\n\", \"5 5\\n1 2\\n2 3\\n3 1\\n4 1\\n5 2\\n\", \"5 6\\n1 5\\n2 3\\n3 5\\n2 1\\n2 5\\n2 4\\n\", \"5 6\\n1 5\\n2 3\\n3 5\\n2 1\\...
{ "index": "code_r1_train_2077" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"5\", \"7\", \"4\", \"6\", \"9\", \"8\"], \"outputs\": [\"0\\n\", \"54\\n\", \"14670\\n\", \"2531214\\n\", \"974\\n\", \"199262\\n\", \"359376750\\n\", \"30683774\\n\"]}" }
{ "index": "code_r1_train_2078" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n72\\n\", \"1\\n5\\n16\\n\", \"1\\n3\\n31\\n\", \"1\\n5\\n12\\n\", \"1\\n3\\n47\\n\", \"1\\n5\\n15\\n\", \"1\\n1\\n100\\n\", \"1\\n1\\n101\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2079" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 46\\n6 10\", \"2 85\\n6 10\", \"2 50\\n4 10\", \"2 62\\n6 10\", \"2 50\\n6 10\", \"2 50\\n6 10\\n\", \"2 46\\n10 10\", \"2 12\\n10 10\"], \"outputs\": [\"2\\n\", \"3\\n\", \"0\\n\", \"2\\n\", \"2\", \"2\\n\", \"5\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2080" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\na. b.\\n\", \"4\\na. A.\\n\", \"2\\na- b.\\n\", \"8\\nabc! ab.\\n\", \"5\\nabc. abcd.\\n\", \"5\\na. b. c. d.\\n\", \"5\\na. b. c- d.\\n\", \"5\\na. b/ c- d.\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"Impossible\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \...
{ "index": "code_r1_train_2081" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n.*.\\n***\\n2 3\\n.*.\\n**.\\n4 5\\n.***.\\n*****\\n*****\\n*.*.*\\n5 7\\n..*.*..\\n.*****.\\n*******\\n.*****.\\n..*.*..\\n\", \"4\\n2 3\\n..*\\n***\\n2 3\\n.*.\\n**.\\n4 5\\n.***.\\n*****\\n*****\\n*.*.*\\n5 7\\n..*.*..\\n.*****.\\n*******\\n.*****.\\...
{ "index": "code_r1_train_2082" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 1 2\\n1 1\\n2 2000000000 2\\n1 1\\n\", \"2\\n2 1 2\\n1 1\\n2 2000000000 2\\n1 1\\n\", \"2\\n2 1 2\\n1 2\\n2 2000000000 2\\n1 1\\n\", \"2\\n2 1 2\\n1 1\\n2 2000000000 2\\n1 2\\n\", \"8\\n5 6 2\\n2 4 3 5 6\\n5 5 2\\n2 4 3 5 7\\n3 1 1\\n4 1 6\\n5 4 2\\n2 1 3 9...
{ "index": "code_r1_train_2083" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2 2 1\\n1 2\\n2 3\", \"3\\n1 1 1\\n1 2\\n2 3\", \"3\\n1 2 0\\n1 2\\n2 3\", \"3\\n2 2 2\\n1 2\\n2 3\", \"3\\n2 1 1\\n1 2\\n2 3\", \"3\\n0 2 0\\n1 2\\n2 3\", \"3\\n3 1 1\\n1 2\\n2 3\", \"3\\n2 2 0\\n1 2\\n2 3\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", ...
{ "index": "code_r1_train_2084" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"aba\\n\", \"abc\\n\", \"abab\\n\", \"abac\\n\", \"abca\\n\", \"abcb\\n\", \"abcab\\n\"], \"outputs\": [\"Second\\n\", \"First\\n\", \"Second\\n\", \"Second\\n\", \"First\\n\", \"Second\\n\", \"First\\n\"]}" }
{ "index": "code_r1_train_2085" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 1\\n1 2 3 4 5\\n1\\n\", \"5 1\\n1 2 3 4 5\\n1\\n\", \"5 1\\n1 4 3 4 5\\n1\\n\", \"5 1\\n1 2 3 4 5\\n2\\n\", \"5 1\\n2 5 1 8 5\\n1\\n\", \"5 1\\n1 4 3 4 6\\n1\\n\", \"5 1\\n1 2 3 4 6\\n1\\n\", \"5 1\\n1 4 3 5 5\\n1\\n\"], \"outputs\": [\"1 \", \"1 \", \"1 \", \"...
{ "index": "code_r1_train_2086" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2006 3 2 522 6 3\\n2006 8 1 89 11 11\\n2004 1 2 362 1 2\\n3334 2 1 2180 1 1\\n2000 2 1 2101 1 1\\n-1 -1 -1 -1 -1 -1\", \"2006 9 2 522 9 2\\n2006 9 1 19 11 11\\n2004 1 2 2005 1 1\\n1153 1 1 2006 1 1\\n2000 1 1 2101 1 1\\n-1 -1 -1 -1 -1 -1\", \"2006 9 2 522 9 3\\n2...
{ "index": "code_r1_train_2087" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nqvwli hz\\n\", \"1\\nqvilw hz\\n\", \"1\\nqvilw gz\\n\", \"1\\nqvilw zg\\n\", \"1\\nqvhlw zg\\n\", \"1\\nqvhlw gz\\n\", \"1\\nqvhlv gz\\n\", \"1\\nrvhlv gz\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2088" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 2\", \"2 1\", \"2 0\", \"0 0\", \"0 1\", \"6 1\", \"9 0\", \"6 0\"], \"outputs\": [\"5\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"0\\n\", \"6\\n\", \"10\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_2089" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\npassword\\nlogin\\nnimda\\nroot\\nmaster\", \"5\\nbraprswp\\nlofho\\nojdma\\nsnnt\\nfuarsm\", \"5\\nbraprsxp\\noofhk\\nojcma\\nsnnt\\nfuarsm\", \"5\\napssword\\nlogin\\nnimda\\nroot\\nmaster\", \"5\\nopssward\\nlogin\\nnimda\\nroot\\nmaster\", \"5\\ndrawsspo\...
{ "index": "code_r1_train_2090" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2 2\", \"3\\n1 1 2\", \"3\\n1 2 3\", \"3\\n1 2 3\\n\", \"4\\n2 3 1 1\", \"4\\n2 3 1 0\", \"4\\n1 3 1 1\", \"4\\n1 3 1 1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\", \"0\\n\", \"3\\n\", \"2\\n\", \"2\", \"2\\n\"]}" }
{ "index": "code_r1_train_2091" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1\\n1\\n\", \"1 1 1\\n2\\n1\\n1\\n\", \"2 1 1\\n1 2\\n1 1\\n1\\n\", \"2 1 1\\n1 2\\n1 1\\n2\\n\", \"5 1 1\\n4 3 2 1 5\\n1 1 1 1 1\\n5\\n\", \"5 1 1\\n4 3 2 1 5\\n1 1 1 1 1\\n1\\n\", \"7 3 1\\n1 5 3 4 6 7 2\\n1 3 1 2 1 2 2\\n3\\n\", \"7 3 1\\n1 5 3 4 6...
{ "index": "code_r1_train_2092" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n2 6\\n3 100\\n\", \"1 1\\n1889\\n2867\\n\", \"1 1\\n1889\\n2867\\n\", \"2 2\\n2 6\\n3 100\\n\", \"2 3\\n10 10\\n1 1 1\\n\", \"2 3\\n10 10\\n1 1 2\\n\", \"2 3\\n10 10\\n0 1 2\\n\", \"2 3\\n10 10\\n0 1 0\\n\"], \"outputs\": [\"11\\n\", \"1889\\n\", \"1889\\n\...
{ "index": "code_r1_train_2093" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 0\", \"1 2\", \"7 0\", \"0 2\", \"5 0\", \"0 8\", \"0 6\", \"0 0\"], \"outputs\": [\"Possible\\n\", \"Possible\\n\", \"Possible\\n\", \"Possible\\n\", \"Possible\\n\", \"Possible\\n\", \"Possible\\n\", \"Possible\\n\"]}" }
{ "index": "code_r1_train_2094" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"HEISEI 1 1 7\\nHEISEI 21 4 73\\nIEISEJ 31 5 1\\nHEISEI 39 12 2\\nHEISEJ 38 8 8\\nHEITEI 98 0 22\\nHEISEI 3 3 15\\nHEISEI 53 4 25\\n#\", \"HEISEI 1 1 7\\nHEISEI 21 4 73\\nIEISEJ 31 5 1\\nHEISEI 39 12 2\\nHEISEJ 38 8 8\\nHEITEI 98 0 22\\nHEISEI 3 4 15\\nHEISEI 53 4...
{ "index": "code_r1_train_2095" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"3\\n1 1 1\\n\", \"3\\n1 2 1\\n\", \"3\\n1 2 2\\n\", \"3\\n1 2 3\\n\", \"7\\n1 2 1 2 7 4 7\\n\", \"13\\n1 2 3 2 1 3 3 4 5 5 5 4 7\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_2096" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"0\\n\", \"1\\n\", \"11\\n\", \"01\\n\", \"10\\n\", \"01\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"6\\n\", \"2\\n\", \"4\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_2097" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\", \"2\", \"2\\n\", \"1\\n\", \"3\\n\", \"7\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"9\\n\", \"-1\", \"-1\\n\", \"1\\n\", \"3\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2098" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 0\\n1\\n\", \"3 3\\n1 3 1\\n\", \"5 5\\n1 2 4 2 2\\n\", \"5 5\\n1 1 4 2 2\\n\", \"6 2\\n1 1 2 2 1 1\\n\", \"6 2\\n0 1 2 2 1 1\\n\", \"6 2\\n0 0 2 2 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"9\\n\", \"1075\\n\", \"1000\\n\", \"16\\n\", \"20\...
{ "index": "code_r1_train_2099" }