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\": [\"2\\n42 9\\n\", \"2\\n42 9\\n\", \"2\\n74 1\\n\", \"2\\n2 10\\n\", \"2\\n2 12\\n\", \"2\\n1 12\\n\", \"2\\n75 7\\n\", \"2\\n42 7\\n\"], \"outputs\": [\"39\\n\", \"39\", \"39\\n\", \"9\\n\", \"10\\n\", \"7\\n\", \"46\\n\", \"35\\n\"]}" }
{ "index": "code_r1_train_2300" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"36\\n2\", \"36\\n3\", \"36\\n6\", \"36\\n5\", \"36\\n7\", \"36\\n0\", \"36\\n16\", \"36\\n36\"], \"outputs\": [\"GREATER\\n\", \"GREATER\\n\", \"GREATER\\n\", \"GREATER\\n\", \"GREATER\\n\", \"GREATER\\n\", \"GREATER\\n\", \"EQUAL\\n\"]}" }
{ "index": "code_r1_train_2301" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 5 1 5\", \"2\\n0 4 8 5 1 5\", \"2\\n0 7 8 5 1 5\", \"2\\n0 7 8 9 1 5\", \"2\\n1 4 8 9 1 2\", \"2\\n1 4 8 4 1 2\", \"2\\n5 2 8 5 1 5\", \"2\\n0 4 10 4 1 0\"], \"outputs\": [\"7\\n\", \"9\\n\", \"12\\n\", \"13\\n\", \"10\\n\", \"6\\n\", \"10\", \"5\\n\"]}...
{ "index": "code_r1_train_2302" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"1 1\\n0\\n\", \"1 2\\n0\\n\", \"2 1\\n0 0\\n\", \"2 2\\n0 1\\n\", \"2 2\\n1 0\\n\", \"2 2\\n1 0\\n\", \"2 2\\n0 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2303" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\nRRRRR\\nRRRRR\\n\", \"1\\n7\\nGGGRRBR\\nGGGRRBB\\n\", \"1\\n7\\nGRBBBBR\\nGGGRRGG\\n\", \"1\\n30\\nRBBBBBRRBRBBBBBRBBBBBRBBBBRBBB\\nBBBRRBRRBBRBBBBRBBBBBRBBBBRBBB\\n\", \"6\\n2\\nRG\\nRB\\n4\\nGRBG\\nGBGB\\n5\\nGGGGG\\nBBBBB\\n7\\nBBBBBBB\\nRRRRRRR\\n8\\n...
{ "index": "code_r1_train_2304" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 79\\n79\\n\", \"1 79\\n79\\n\", \"1 114\\n114\\n\", \"1 114\\n114\\n\", \"3 50\\n25 25 50\\n\", \"3 50\\n25 25 50\\n\", \"5 6\\n2 71 7 27 6\\n\", \"5 6\\n2 71 7 27 6\\n\"], \"outputs\": [\"2\\n0 79 \\n\", \"2\\n0 79 \", \"2\\n0 114 \\n\", \"2\\n0 114 \", \"3\\n...
{ "index": "code_r1_train_2305" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"6\", \"1\", \"8\", \"5\", \"2\", \"5\\n\"], \"outputs\": [\"5\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"3\", \"1\", \"3\\n\"]}" }
{ "index": "code_r1_train_2306" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n1 2 3 4 5\", \"5 7\\n1 2 3 4 4\", \"5 7\\n1 2 3 4 3\", \"5 7\\n1 0 0 5 4\", \"5 6\\n0 2 4 4 6\", \"5 7\\n1 2 3 5 4\", \"5 7\\n0 2 3 4 3\", \"5 7\\n1 2 0 5 4\"], \"outputs\": [\"6\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2307" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n44841 417\\n\", \"1\\n2\\n44841 2653\\n\", \"1\\n2\\n44841 66241\\n\", \"1\\n2\\n44841 83433\\n\", \"1\\n2\\n29981 18424\\n\", \"1\\n2\\n23338 18424\\n\", \"1\\n2\\n23338 34273\\n\", \"1\\n2\\n11672 34273\\n\"], \"outputs\": [\"18698697\\n\", \"118963173\...
{ "index": "code_r1_train_2308" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2\\n3 2\\n3\\n2 3\\n1 2\\n2 4\", \"2\\n3\\n1 2\\n2 2\\n3 2\\n3\\n2 3\\n1 2\\n2 8\", \"2\\n3\\n1 2\\n2 2\\n3 2\\n3\\n2 3\\n1 2\\n2 2\", \"2\\n3\\n1 1\\n2 2\\n3 2\\n3\\n2 3\\n1 2\\n2 2\", \"2\\n3\\n1 2\\n2 2\\n4 2\\n3\\n2 3\\n1 2\\n2 4\", \"2\\n3\\n...
{ "index": "code_r1_train_2309" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"23.5\\n158.1\\n-1.0\", \"23.72975180461117\\n158.1\\n-1.0\", \"24.206542817215936\\n158.1\\n-1.0\", \"24.615346202775605\\n158.1\\n-1.0\", \"25.190547978615548\\n158.1\\n-1.0\", \"23.529780841564097\\n158.1\\n-1.0\", \"24.722659099067236\\n158.1\\n-1.0\", \"23.5\...
{ "index": "code_r1_train_2310" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"0 9\\n\", \"0 9\\n\", \"0 1\\n\", \"10 1\\n\", \"10 2\\n\", \"10 9\\n\", \"10 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2311" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"3 1\\n1\\n1\\n1\\n\", \"3 1\\n1\\n1\\n1\\n\", \"3 1\\n1\\n1\\n2\\n\", \"1 1\\n2\\n1\\n1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2312" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"2\\n10\\n9\\n\", \"2\\n76\\n15\\n\", \"2\\n2922\\n2251\\n\", \"4\\n1\\n2\\n3\\n4567\\n\", \"1\\n1000000000\\n\", \"3\\n390\\n398\\n285\\n\", \"5\\n66\\n6666\\n666666\\n66666666\\n666666666\\n\"], \"outputs\": [\"2\\n\", \"4\\n4\\n\", \"11\\n5\\n\", ...
{ "index": "code_r1_train_2313" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1 5 24 67\\n4 7 35 45\\n3 3 1 78\\n4 1 1 18\\n3 15 50 101\\n0\\n1 8 3 397\\n1 7 4 33\\n4 1 28 553\\n0\", \"4\\n1 4 14 59\\n2 9 35 55\\n3 6 3 78\\n4 2 7 1\\n15 30 92 110\\n2\\n1 5 14 215\\n0 4 5 7\\n4 10 47 320\\n0\", \"4\\n1 7 24 67\\n2 7 35 55\\n3 7 3 78\\n8...
{ "index": "code_r1_train_2314" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1\", \"3\\n5 0 0\", \"3\\n0 0 0\", \"3\\n0 0 1\", \"3\\n2 0 2\", \"3\\n6 1 0\", \"3\\n4 1 2\", \"3\\n7 2 1\"], \"outputs\": [\"3\\n\", \"5\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"6\\n\", \"4\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_2315" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2 5\\n1234 5678\\n\", \"10 10\\n1 1 1 1 1 1 1 1 1 1\\n\", \"7 49\\n54 467 215 289 425 19 141\\n\", \"107 265\\n90 386 93 4 172 493 454 221 132 60 123 482 181 64 236 365 371 394 458 175 456 310 254 429 274 495 316 126 383 364 352 215 140 335 18...
{ "index": "code_r1_train_2316" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"1\\n\", \"2\\n\", \"7\\n\", \"8\\n\", \"2\\n\"], \"outputs\": [\"2\", \"5\", \"0\", \"1\", \"3\", \"4\", \"9\", \"3\\n\"]}" }
{ "index": "code_r1_train_2317" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0 0 0 0 0\\n0 0 0 0 0\\n0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n0 0\\n\", \"0 1 0 0 0\\n0 0 0 0 0\\n0 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n20 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n20 0\\n\", \"0 0 0 0 0\\n0 0 0 0 0\\n20 1\\n\", \"119 0 0 0 0\\n2 0 0 0 0\\n5 5\\n\", \"0 119 ...
{ "index": "code_r1_train_2318" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2 2\\n1 1\\n\", \"2 3\\n1 1\\n\", \"2 9\\n5 5\\n\", \"2 1\\n2 2\\n\", \"2 1\\n1 1\\n\", \"2 4\\n2 2\\n\", \"2 9\\n6 5\\n\"], \"outputs\": [\"2.500000\\n1.500000\\n\", \"1.000000\\n1.000000\\n\", \"1.500000\\n1.500000\\n\", \"4.500000\\n4.500000\...
{ "index": "code_r1_train_2319" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n4\\n\", \"2\\n448\\n6\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"1 0 0\\n\", \"0 1 0\\n\", \"2 0 0\\n\", \"-1\\n\", \"147 0 1\\n2 0 0\\n\"]}" }
{ "index": "code_r1_train_2320" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5\\nKouta 1\\nYuka 1\\nMayu 3\\nyucL 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 1\\nYuka 0\\nMayu 3\\nyucL 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 2\\nakuY 0\\nMayu 3\\nyucL 2\\nNana 5\\n2\\nLucy 2\\nNana 2\", \"2\\n5\\nKouta 1\\nYuka 1\\...
{ "index": "code_r1_train_2321" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 0 0\\n\", \"1 1 1\\n\", \"0 1 0\\n\", \"0 0 1\\n\", \"1 1 0\\n\", \"0 1 1\\n\", \"4 3 5\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2322" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 3 2\\n1 2\\n2 2\\n1 2\\n1 2\\n1 2\\n7 5\\n1 2 5 4 3 6 7\\n1 2\\n6 7\\n3 4\\n1 2\\n2 3\\n\", \"3\\n3 1\\n1 3 2\\n1 2\\n2 2\\n1 2\\n1 2\\n1 2\\n7 5\\n1 2 5 4 3 6 7\\n1 2\\n6 7\\n3 4\\n2 2\\n2 3\\n\", \"3\\n3 1\\n1 3 2\\n1 2\\n2 2\\n1 2\\n2 2\\n1 2\\n7 5...
{ "index": "code_r1_train_2323" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n890\\n\", \"1\\n454\\n\", \"1\\n638\\n\", \"1\\n540\\n\", \"1\\n119\\n\", \"1\\n176\\n\", \"1\\n187\\n\", \"1\\n353\\n\"], \"outputs\": [\"809\\n\", \"445\\n\", \"368\\n\", \"405\\n\", \"119\\n\", \"167\\n\", \"178\\n\", \"353\\n\"]}" }
{ "index": "code_r1_train_2324" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n4\\n\", \"1\\n5\\n\"], \"outputs\": [\"1 \\n\", \"-1\\n\", \"-1\\n\", \"1 \\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_2325" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 5\\n6\", \"1 2 9\\n9\", \"1 1 5\\n5\", \"1 1 5\\n1\", \"1 1 2\\n3\", \"1 2 4\\n3\", \"1 1 0\\n1\", \"1 1 5\\n3\"], \"outputs\": [\"5\\n\", \"7\\n\", \"4\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"3\"]}" }
{ "index": "code_r1_train_2326" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n4 5\\n\", \"1\\n4 3\\n\", \"1\\n8 2\\n\", \"1\\n6 9\\n\", \"1\\n7 3\\n\", \"1\\n13 5\\n\", \"1\\n19 6\\n\", \"1\\n17 6\\n\"], \"outputs\": [\"14\\n\", \"10\\n\", \"12\\n\", \"24\\n\", \"18\\n\", \"34\\n\", \"48\\n\", \"44\\n\"]}" }
{ "index": "code_r1_train_2327" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n-1 1\\n\", \"2\\n-1 -1\\n\", \"5\\n-1 -1 4 1 -1\\n\", \"5\\n-1 -1 4 2 -1\\n\", \"5\\n-1 -1 5 3 -1\\n\", \"5\\n-1 -1 5 1 -1\\n\", \"5\\n-1 -1 1 3 -1\\n\", \"5\\n-1 -1 1 5 -1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"4\\n\", \"3\\...
{ "index": "code_r1_train_2328" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n\", \"2 7\\n\", \"2 1\\n\", \"8 6\\n\", \"1 1\\n\", \"1 2\\n\", \"1 3\\n\"], \"outputs\": [\"6\\n\", \"5\\n\", \"5\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_2329" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n3 4\", \"2 2\\n1 3\\n3 4\", \"2 2\\n1 3\\n3 3\", \"2 2\\n1 3\\n3 1\", \"2 2\\n1 3\\n2 1\", \"2 2\\n1 3\\n4 1\", \"2 2\\n1 6\\n3 4\", \"2 2\\n0 3\\n3 4\"], \"outputs\": [\"24\", \"28\\n\", \"24\\n\", \"16\\n\", \"12\\n\", \"20\\n\", \"40\\n\", \"21\\n\...
{ "index": "code_r1_train_2330" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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:10\\n0\\n\", \"10:01\\n0\\n\", \"04:05\\n0\\n\", \"02:59\\n1\\n\", \"09:11\\n0\\n\", \"19:00\\n0\\n\", \"23:59\\n1\\n\", \"11:59\\n1\\n\"], \"outputs\": [\"10:10\\n\", \"10:01\\n\", \"04:05\\n\", \"03:00\\n\", \"09:11\\n\", \"19:00\\n\", \"00:00\\n\", \"12:00\...
{ "index": "code_r1_train_2331" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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()\\n\", \"4\\n()\\n()\\n()\\n()\\n\", \"4\\n)(\\n()\\n()\\n()\\n\", \"4\\n)(\\n()\\n((\\n()\\n\", \"4\\n()\\n()\\n)(\\n()\\n\", \"4\\n)(\\n))\\n()\\n()\\n\", \"4\\n)(\\n()\\n((\\n)(\\n\", \"4\\n()\\n))\\n()\\n()\\n\"], \"outputs\": [\"1\\n1\\n...
{ "index": "code_r1_train_2332" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 1\", \"4\\n2 2 3 2\", \"4\\n2 1 3 2\", \"4\\n4 1 3 2\", \"4\\n4 1 3 0\", \"4\\n4 1 3 1\", \"4\\n4 1 6 2\", \"4\\n0 1 9 6\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2333" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"9\\n2\\n\", \"25\\n1\", \"25\\n4\", \"25\\n5\", \"25\\n3\", \"25\\n9\", \"25\\n7\"], \"outputs\": [\"9\\n\", \"0\\n\", \"11\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2334" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5\\n1 2 3 1 2\\n4\\n1 2 2 3\", \"2\\n5\\n1 2 3 1 1\\n4\\n1 2 2 3\", \"2\\n5\\n1 2 3 1 2\\n4\\n1 3 2 3\", \"2\\n5\\n1 2 3 1 1\\n4\\n2 2 4 4\", \"2\\n5\\n1 3 3 1 1\\n4\\n0 2 0 3\", \"2\\n5\\n1 2 3 1 2\\n4\\n1 3 1 3\", \"2\\n5\\n2 2 3 1 2\\n4\\n1 3 1 3\", \"2\\n...
{ "index": "code_r1_train_2335" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 6\\n1 2 4 1 2 4 1 2\\n5 3\\n3 2 3 2 1\\n10 4\\n4 3 4 3 2 3 2 1 0 1\\n15 7\\n3 7 4 8 2 3 4 5 21 2 3 4 2 1 3\\n7 5\\n1 2 3 4 5 6 1\\n\", \"5\\n8 6\\n1 2 4 1 2 4 1 2\\n5 3\\n3 2 3 2 1\\n10 4\\n4 3 4 3 2 3 2 1 0 1\\n15 7\\n3 2 4 8 2 3 4 5 21 2 3 4 2 1 3\\n7 5\\...
{ "index": "code_r1_train_2336" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 2\\n\", \"1 2\\n\", \"1 3\\n\", \"1 4\\n\", \"1 5\\n\", \"2 2\\n\", \"2 3\\n\"], \"outputs\": [\"5\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2337" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n3 4 2\\n\", \"3\\n3 4 3\\n\", \"3\\n2 4 3\\n\", \"3\\n2 4 6\\n\", \"3\\n2 2 6\\n\", \"3\\n2 2 7\\n\", \"3\\n2 4 7\\n\", \"3\\n0 4 8\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2338" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0 0 0 0 0 0 0 0 0 0 0\\n\", \"1\\n0 0 0 0 0 0 0 0 0 0 0 0\\n\", \"1\\n0 0 0 0 0 0 0 0 0 0 1 0\\n\", \"0\\n0 0 0 1 0 0 0 1 1 2 3 0\\n\", \"5\\n1 1 1 1 2 2 6 2 2 1 1 1\\n\", \"0\\n0 0 0 1 0 0 1 1 1 2 3 0\\n\", \"5\\n1 1 1 1 0 2 6 2 2 1 1 1\\n\", \"0\\n0 0 0 0...
{ "index": "code_r1_train_2339" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"3\\n\", \"1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2340" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 0\\n\", \"5 0\\n\", \"3 0\\n\", \"6 0\\n\", \"15 0\\n\", \"2 1\\n1 1 3\\n\", \"7 1\\n3 4 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"3\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_2341" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n1 2 3 4 5 6 7 8 9\\n\", \"1\\n9\\n2 3 4 5 6 7 8 9 1\\n\", \"1\\n2\\n9 7 6 2 2 6 2 4 4\\n\", \"1\\n3\\n2 8 4 5 4 1 7 2 3\\n\", \"1\\n2\\n1 4 4 8 8 8 7 3 2\\n\", \"1\\n3\\n4 9 9 6 8 4 5 5 5\\n\", \"1\\n6\\n4 8 2 6 8 8 8 8 3\\n\", \"1\\n3\\n8 7 8 7 8 5 8 2 2...
{ "index": "code_r1_train_2342" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 2\\n1\\n0\\n\", \"1 1\\n1\\n0\\n\", \"1 1\\n0\\n0\\n\", \"1 2\\n0\\n1\\n\", \"1 2\\n1\\n0\\n\", \"4 26\\n0 0 0 0\\n13 15 18 1\\n\", \"5 1\\n0 0 0 0 0\\n0 0 0 0 0\\n\"], \"outputs\": [\"500000004\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"50000000...
{ "index": "code_r1_train_2343" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 1 -3 0 0\", \"5\\n1 1 -5 0 0\", \"5\\n13 1 5 4 17\", \"5\\n13 1 5 7 17\", \"5\\n13 0 5 7 17\", \"5\\n13 0 7 7 17\", \"5\\n23 0 7 7 17\", \"5\\n23 0 0 7 17\"], \"outputs\": [\"-3 1 -1\\n\", \"-5 1 -3\\n\", \"1 17 40\\n\", \"1 17 43\\n\", \"0 17 42\\n\", \"0 ...
{ "index": "code_r1_train_2344" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 1 3\\n\", \"1\\n6 3 4\\n\", \"1\\n6 3 3\\n\", \"1\\n3 1 3\\n\", \"1\\n6 2 3\\n\", \"1\\n6 2 2\\n\", \"1\\n6 5 3\\n\", \"1\\n3 2 3\\n\"], \"outputs\": [\"1 3\\n\", \"2 6\\n\", \"1 5\\n\", \"2 3\\n\", \"1 4\\n\", \"1 3\\n\", \"3 6\\n\", \"3 3\\n\"]}" }
{ "index": "code_r1_train_2345" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nIAO'001\\n\", \"1\\nIAO'089\\n\", \"1\\nIAO'089\\n\", \"1\\nIAO'001\\n\", \"1\\nIAO'088\\n\", \"1\\nIAO'002\\n\", \"1\\nIAO'102\\n\", \"1\\nIAO'079\\n\"], \"outputs\": [\"3001\\n\", \"3089\\n\", \"3089\\n\", \"3001\\n\", \"3088\\n\", \"3002\\n\", \"2102\\n\",...
{ "index": "code_r1_train_2346" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"1\\n1 2\\n\", \"1\\n2 2\\n\", \"4\\n1 5\\n5 2\\n3 7\\n7 3\\n\", \"4\\n5 6\\n6 7\\n7 8\\n8 5\\n\", \"4\\n5 6\\n6 7\\n7 8\\n8 5\\n\", \"4\\n5 8\\n6 7\\n7 8\\n8 5\\n\", \"4\\n5 8\\n6 7\\n7 3\\n8 5\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"...
{ "index": "code_r1_train_2347" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 25 5\\n33\", \"4\\n55 45 2 23\\n58\", \"7\\n2 5 4 9 7 33 6\\n44\", \"6\\n45 55 5 7 23 4\\n107\", \"8\\n4 8 9 7 45 6 3 27\\n56\", \"8\\n4 8 9 7 45 6 3 27\\n156\"], \"outputs\": [\"True\", \"False\", \"True\", \"True\", \"True\", \"False\"]}" }
{ "index": "code_r1_train_2348" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 4\", \"5 1 4\", \"5 1 0\", \"0 9 4\", \"5 1 1\", \"0 1 4\", \"6 1 1\", \"0 2 4\"], \"outputs\": [\"win\\n\", \"win\\n\", \"win\\n\", \"win\\n\", \"win\\n\", \"win\\n\", \"win\\n\", \"win\\n\"]}" }
{ "index": "code_r1_train_2349" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 6\\n2 2\\n3 2 \\n3 2 \\n4 3\\n4 4\\n4 3\", \"4 4 6\\n3 2\\n3 2 \\n3 2 \\n4 3\\n4 4\\n4 3\", \"4 4 6\\n3 2\\n3 2 \\n3 2 \\n4 3\\n4 4\\n4 1\", \"4 4 6\\n3 2\\n3 3 \\n3 2 \\n4 3\\n4 4\\n4 3\", \"4 6 6\\n3 2\\n2 3 \\n3 2 \\n4 3\\n4 4\\n4 3\", \"4 6 2\\n3 2\\n2 3 ...
{ "index": "code_r1_train_2350" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"30\", \"22\", \"41\", \"91\", \"36\", \"36\\n\", \"91\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"3\", \"8\", \"8\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_2351" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n0 2\\n0 3\\n2\\n0 4\\n1 0\\n1 1\\n1 2\", \"8\\n0 0\\n0 2\\n0 3\\n2\\n0 4\\n1 0\\n1 1\\n1 1\", \"8\\n0 0\\n0 2\\n0 3\\n2\\n1 0\\n1 0\\n1 1\\n1 1\", \"8\\n0 1\\n0 2\\n0 4\\n2\\n0 4\\n1 0\\n1 1\\n1 2\", \"8\\n0 0\\n0 2\\n0 3\\n2\\n0 4\\n1 0\\n1 1\\n0 2\", ...
{ "index": "code_r1_train_2352" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n8\\n\", \"1\\n6\\n\", \"1\\n10\\n\", \"1\\n10\\n\", \"2\\n1\\n2\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"0\\n0\\n\"]}" }
{ "index": "code_r1_train_2353" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"11\\n0 0 1\\n0 0 2\\n0 1 3\\n1 0\\n1 1\\n1 0\\n2 0\\n2 1\\n0 0 4\\n1 0\\n1 1\", \"11\\n0 0 1\\n0 0 2\\n0 1 3\\n1 0\\n1 1\\n1 0\\n2 0\\n2 1\\n0 0 4\\n1 0\\n2 1\", \"11\\n0 0 1\\n0 0 3\\n0 1 3\\n1 0\\n1 1\\n1 0\\n2 0\\n2 1\\n0 0 4\\n1 0\\n2 1\", \"11\\n0 0 1\\n0 0 ...
{ "index": "code_r1_train_2354" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"w\\n\", \"v\\n\", \"u\\n\", \"x\\n\", \"t\\n\", \"s\\n\", \"r\\n\", \"q\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2355" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5\", \"2\\n4\", \"2\\n1\", \"2\\n0\", \"2\\n2\", \"2\\n6\", \"2\\n9\", \"2\\n3\"], \"outputs\": [\"10\\n\", \"8\\n\", \"2\\n\", \"0\\n\", \"4\\n\", \"12\\n\", \"18\\n\", \"6\"]}" }
{ "index": "code_r1_train_2356" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n4\\n\", \"1\\n12\\n\", \"1\\n12\\n\", \"2\\n6\\n8\\n\", \"2\\n6\\n4\\n\", \"2\\n8\\n1\\n\", \"2\\n8\\n4\\n\", \"2\\n6\\n8\\n\"], \"outputs\": [\"1\\n\", \"3\\n\", \"3\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"2\\n-1\\n\", \"2\\n1\\n\", \"1\\n2\\n\"]}" }
{ "index": "code_r1_train_2357" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n1\\n1\\n0\\n2\", \"4\\n1\\n1\\n0\\n3\", \"4\\n2\\n1\\n1\\n2\", \"4\\n2\\n1\\n2\\n2\", \"4\\n1\\n1\\n1\\n2\", \"6\\n1\\n3\\n0\\n3\\n5\\n2\", \"6\\n1\\n3\\n0\\n3\\n5\\n0\", \"6\\n1\\n3\\n0\\n4\\n1\\n0\"], \"outputs\": [\"998244347\\n\", \"0\\n\", \"6\\n\", \"18...
{ "index": "code_r1_train_2358" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4\\n1 5 2 6\\n252 13 7 62\\n10 1 1 5\\n20 111 2 20\\n2 8 7 1\\n0 0 0 0\", \"10 5 4 1\\n1 5 2 2\\n150 5 7 31\\n5 1 3 5\\n35 110 2 20\\n4 14 7 1\\n0 0 0 0\", \"10 5 3 4\\n1 5 2 4\\n150 13 7 62\\n10 1 1 5\\n20 100 2 20\\n2 8 7 1\\n0 0 0 0\", \"10 5 3 5\\n1 5 2...
{ "index": "code_r1_train_2359" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0 0\", \"1 0\", \"2 0\", \"9 1\", \"9 0\", \"2 1\", \"4 0\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2360" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 3\\n5 0 3 0 3 3 1 4 0\\n2 2 3 1 4 1 2 1 5\\n\", \"6 3\\n5 0 3 1 3 3 1 4 0\\n2 2 3 1 4 1 2 1 5\\n\", \"6 3\\n5 0 4 0 3 3 1 4 0\\n2 2 3 2 4 0 2 1 5\\n\", \"6 3\\n5 0 4 0 4 3 1 4 0\\n2 2 3 2 4 0 2 1 5\\n\", \"6 3\\n5 0 3 0 3 3 1 4 0\\n2 2 3 2 4 1 2 1 5\\n\", \"6 3...
{ "index": "code_r1_train_2361" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n14\\n0\\n0 0\\n9\\n6\\n2 6 9 3 7 7\\n011000\", \"3\\n2\\n1 2\\n10\\n2\\n1 1\\n10\\n6\\n2 3 4 9 6 7\\n111000\", \"3\\n2\\n0 2\\n10\\n2\\n1 1\\n10\\n6\\n2 3 4 9 6 7\\n111000\", \"3\\n2\\n1 2\\n10\\n2\\n1 2\\n10\\n6\\n2 3 1 9 6 7\\n111000\", \"3\\n2\\n...
{ "index": "code_r1_train_2362" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n-1 -2\\n1 1\\n1 2\\n\", \"2 2\\n-2 -2\\n1 1\\n1 2\\n\", \"2 2\\n-1 -2\\n1 1\\n1 2\\n\", \"3 3\\n1 -1 3\\n1 2\\n2 3\\n1 3\\n\", \"3 3\\n1 -1 3\\n1 2\\n2 3\\n1 3\\n\", \"3 3\\n1 -1 3\\n1 1\\n2 3\\n1 3\\n\", \"3 3\\n1 -2 3\\n1 1\\n1 3\\n1 3\\n\", \"3 3\\n1 -2 ...
{ "index": "code_r1_train_2363" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 3\\n4 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n4 2 1 3 0\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n2 2 1 3 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n4 2 1 5 0\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n2 2 1 3 2\\n3 5\\n4 3\\n2 5\\n\", \"5 3\\n4 2 1 0 2\\n3 5\\n4 2\\n2 5\\n\", \"5 3\\n4 2 2...
{ "index": "code_r1_train_2364" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n634 0000 4021 35 4300\\n2 1\\n11 2\\n50\\n5\\n5000 1000 1822 3400 4300\\n0 1\\n165 4\\n51\\n10\\n100 101 100 000 100 111 100 100 000 000\\n20 7\\n83 10\\n100\\n\", \"3\\n5\\n634 0000 4021 35 6679\\n2 1\\n11 2\\n50\\n5\\n5000 1000 1822 3400 4300\\n0 1\\n16...
{ "index": "code_r1_train_2365" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n3\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n9\\n\", \"1\\n6\\n\", \"1\\n7\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2366" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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()(())()()\", \"1\\n((((()()))\", \"1\\n(()(()()))\", \"1\\n()((()(())\", \"1\\n()()()()()\", \"1\\n((((((()))\", \"1\\n((((()(())\", \"1\\n(((((((())\"], \"outputs\": [\"(())\\n\", \"((((()))))\\n\", \"((()))\\n\", \"(((())))\\n\", \"()\\n\", \"((((((())))))...
{ "index": "code_r1_train_2367" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"P\\n\", \"t\\n\", \"O\\n\", \"s\\n\", \"N\\n\", \"r\\n\", \"M\\n\", \"q\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2368" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"a\\nZ\\n\", \"q\\nq\\n\", \"O\\ni\\n\", \"m\\na\\n\", \"b\\nZ\\n\", \"q\\nr\\n\", \"O\\nj\\n\", \"m\\nb\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2369" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 4\\n1\\n\", \"1 4\\n1\\n\", \"1 8\\n1\\n\", \"1 5\\n1\\n\", \"1 7\\n1\\n\", \"1 6\\n1\\n\", \"1 9\\n1\\n\", \"1 1\\n1\\n\"], \"outputs\": [\"1\\n1 \\n\", \"1\\n1 \\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\"]}" }
{ "index": "code_r1_train_2370" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1987\\n\", \"2013\\n\", \"1000\\n\", \"1001\\n\", \"1234\\n\", \"5555\\n\", \"9000\\n\", \"1111\\n\"], \"outputs\": [\"2013\\n\", \"2014\\n\", \"1023\\n\", \"1023\\n\", \"1235\\n\", \"5601\\n\", \"9012\\n\", \"1203\\n\"]}" }
{ "index": "code_r1_train_2371" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 1 2\\n\", \"2\\n2 2 1 1\\n\", \"2\\n1 1 2 2\\n\", \"2\\n2 2 1 1\\n\", \"2\\n1 1 2 2\\n\", \"2\\n1 2 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"5\\n\", \"9\\n\", \"5\\n\", \"9\\n\", \"5\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_2372" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 7\\n\", \"1\\n2\\n7 7\\n\", \"1\\n2\\n3 7\\n\", \"1\\n2\\n0 7\\n\", \"1\\n2\\n11 7\\n\", \"1\\n2\\n0 13\\n\", \"1\\n2\\n1 13\\n\", \"1\\n2\\n1 21\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"YES\\n1 2\\n\", \"YES\\n1 2\\n\", \"YES\\n1 2\\n\", \"YES\\n1 ...
{ "index": "code_r1_train_2373" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2\\n0 1000100\\n0 1000000\\n721 0000000\\n0 9\\n\", \"1\\n2 2 2\\n0 1000100\\n0 1000000\\n887 0000000\\n0 9\\n\", \"1\\n2 2 2\\n0 1000000\\n0 1000000\\n70 1000000\\n0 34\\n\", \"1\\n2 2 2\\n0 1000000\\n0 1000000\\n21 1000000\\n0 34\\n\", \"1\\n2 2 2\\n0 1...
{ "index": "code_r1_train_2374" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"7 7\\n\", \"7 1\\n\", \"7 2\\n\", \"8 5\\n\", \"8 3\\n\", \"8 4\\n\", \"1 1\\n\", \"7 2\\n\"], \"outputs\": [\"6\", \"1\", \"3\", \"2\", \"5\", \"7\", \"1\", \"3\\n\"]}" }
{ "index": "code_r1_train_2375" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n0 0 3 0 0 2 3 2\\n0 0 3 0 1 1 1 7\\n0 0 3 0 1 1 2 2\", \"3\\n0 0 3 1 0 2 3 2\\n0 0 3 0 1 1 1 7\\n0 0 3 0 1 1 2 2\", \"3\\n0 0 3 1 0 2 3 2\\n0 1 3 0 1 1 1 7\\n0 0 3 0 1 1 2 2\", \"3\\n0 0 3 1 0 2 3 2\\n0 1 3 0 1 0 1 7\\n0 0 3 0 1 1 2 1\", \"3\\n0 0 3 0 0 2 3 2...
{ "index": "code_r1_train_2376" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"a\\n\", \"a\\n\", \"b\\n\", \"bb\\n\", \"aa\\n\", \"bb\\n\", \"ab\\n\", \"ba\\n\"], \"outputs\": [\"0 1\\n\", \"0 1\\n\", \"0 1\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"0 2\\n\", \"0 2\\n\"]}" }
{ "index": "code_r1_train_2377" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 5 4 3 2\\n\", \"6 0 0 2 8\\n\", \"5 8 2 1 3\\n\", \"2 0 0 1 3\\n\", \"1 5 6 2 1\\n\", \"5 0 0 6 7\\n\", \"6 0 1 6 7\\n\", \"3 5 1 1 2\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2378" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n1 2 2 2 4 4 4 5\\n\", \"1\\n6\\n1 2 2 2 4 4 4 5\\n\", \"1\\n6\\n1 1 2 2 4 4 4 5\\n\", \"1\\n9\\n2 4 3 2 1 2 3 4 5\\n\", \"1\\n9\\n2 4 4 2 1 2 3 4 5\\n\", \"1\\n9\\n2 4 4 2 2 2 3 4 5\\n\", \"1\\n9\\n2 4 4 2 2 2 3 3 5\\n\", \"1\\n9\\n2 4 4 2 2 2 3 1 5\\n\"]...
{ "index": "code_r1_train_2379" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"2 1 2\\n\", \"5 2 1\\n\", \"2 1 1\\n\", \"6 2 4\\n\", \"2 1 3\\n\", \"5 1 5\\n\", \"6 1 4\\n\"], \"outputs\": [\"4\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"8\\n\", \"3\\n\", \"20\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_2380" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n20\\naaaaaaaaaaaaaaaaaqwq\\n\", \"1\\n20\\naaaaaaaaaaaaaaaaaqwq\\n\", \"1\\n20\\naaaaaaabaaaaaaaaaqwq\\n\", \"1\\n20\\nabaaaaabaaaaaaaaaqwq\\n\", \"1\\n20\\nqwqaaaaaaaaabaaaaaba\\n\", \"1\\n20\\nqwqaaaaabaaabaaaaaba\\n\", \"1\\n20\\nabaaaaabaaabaaaaaqwq\\n\",...
{ "index": "code_r1_train_2381" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13 23 20 24 15 25\\n10\\n00 01 11 02 12 22 03 13 23 33\", \"6\\n13 23 20 24 11 25\\n10\\n00 01 11 02 12 22 03 13 23 33\", \"6\\n13 23 20 24 11 25\\n10\\n00 01 11 02 12 22 03 13 16 33\", \"6\\n16 23 16 16 15 25\\n10\\n00 01 11 02 12 22 03 13 13 33\", \"6\\n13 ...
{ "index": "code_r1_train_2382" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 5\", \"2 0\\n1 5\", \"2 1\\n1 2\", \"2 0\\n5 9\", \"2 0\\n1 0\", \"2 0\\n1 9\", \"2 0\\n4 0\", \"2 0\\n1 2\"], \"outputs\": [\"12\\n\", \"6\\n\", \"2\\n\", \"14\\n\", \"1\\n\", \"10\\n\", \"4\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_2383" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n4 3 2\\n2 3 5\\n4 1 2\\n\", \"5\\n4 5 3\\n2 5 1\\n1 3 5\\n\", \"5\\n1 2 3\\n2 3 4\\n3 4 5\\n\", \"5\\n5 4 3\\n4 3 2\\n3 2 1\\n\", \"5\\n5 2 3\\n4 5 3\\n1 5 4\\n\", \"5\\n2 3 1\\n5 1 3\\n5 3 4\\n\", \"5\\n2 3 4\\n2 4 1\\n5 3 2\\n\", \"5\\n4 5 3\\n2 5 1\\n1 3 5...
{ "index": "code_r1_train_2384" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"5\", \"8\", \"6\", \"1\", \"33\"], \"outputs\": [\"180\\n\", \"90\\n\", \"120\\n\", \"72\\n\", \"45\\n\", \"60\\n\", \"360\", \"120\\n\"]}" }
{ "index": "code_r1_train_2385" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n2 5 C\\n2 1 D\\n\", \"2 1 1\\n1 1 C\\n1 1 D\\n\", \"2 1 1\\n1 1 C\\n1 1 D\\n\", \"2 1 0\\n1 1 C\\n1 1 D\\n\", \"2 2 1\\n1 1 C\\n1 1 D\\n\", \"2 4 5\\n2 1 C\\n3 1 D\\n\", \"2 4 5\\n2 5 C\\n3 1 D\\n\", \"2 1 0\\n1 1 D\\n1 1 D\\n\"], \"outputs\": [\"0\\n\", ...
{ "index": "code_r1_train_2386" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n-1\\n\", \"1\\n-1\\n\", \"1\\n-2\\n\", \"1\\n777\\n\", \"2\\n1 0\\n\"], \"outputs\": [\"0\", \"0\", \"1\\n\", \"-1\", \"-1\", \"-1\\n\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_2387" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5\\n6\\n\", \"2\\n6\\n6\\n\", \"2\\n3\\n6\\n\", \"2\\n4\\n6\\n\", \"2\\n1\\n6\\n\", \"2\\n7\\n3\\n\", \"2\\n8\\n3\\n\", \"2\\n5\\n1\\n\"], \"outputs\": [\"2\\n4\\n\", \"4\\n4\\n\", \"2\\n4\\n\", \"3\\n4\\n\", \"1\\n4\\n\", \"3\\n2\\n\", \"5\\n2\\n\", \"2\\n1\...
{ "index": "code_r1_train_2388" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 8\\n\", \"3 8 5\\n\", \"9 8 3\\n\", \"10 2 5\\n\", \"21 4 6\\n\", \"21 7 9\\n\", \"3 4 14\\n\", \"5 20 3\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"5\\n\", \"5\\n\", \"9\\n\", \"12\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_2389" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 6\\n\", \"3\\n2 4 6\\n\", \"3\\n1 4 6\\n\", \"3\\n2 7 1000\\n\", \"5\\n1 2 3 4 5\\n\", \"5\\n1 2 3 7 8\\n\", \"3\\n30 61 381\\n\", \"3\\n30 55 539\\n\"], \"outputs\": [\"5\\n\", \"4\\n\", \"5\\n\", \"998\\n\", \"2\\n\", \"4\\n\", \"351\\n\", \"509\\n\"]}"...
{ "index": "code_r1_train_2390" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n4 9\\n2 4\", \"2 3\\n4 9\\n4 4\", \"2 6\\n4 9\\n4 4\", \"2 6\\n3 9\\n4 4\", \"2 6\\n3 9\\n2 4\", \"2 6\\n3 9\\n1 4\", \"2 3\\n3 4\\n1 6\", \"2 5\\n3 4\\n1 6\"], \"outputs\": [\"6\\n\", \"12\\n\", \"24\\n\", \"18\\n\", \"14\\n\", \"10\\n\", \"3\\n\", \"5\\n\...
{ "index": "code_r1_train_2391" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\n\", \"1 26\\nZ\\n\", \"2 2\\nAA\\n\", \"2 2\\nBA\\n\", \"2 3\\nAA\\n\", \"2 3\\n@A\\n\", \"2 3\\n?A\\n\", \"1 15\\nZ\\n\"], \"outputs\": [\"0\\nA\", \"0\\nZ\", \"1\\nBA\", \"0\\nBA\", \"1\\nAB\\n\", \"0\\n@A\", \"0\\n?A\", \"0\\nZ\"]}" }
{ "index": "code_r1_train_2392" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1\\n\", \"2 0\\n1 1\\n\", \"2 0\\n3 1\\n\", \"2 0\\n1 1\\n\", \"2 0\\n1 2\\n\", \"2 0\\n3 2\\n\", \"2 0\\n3 3\\n\", \"2 0\\n1 3\\n\"], \"outputs\": [\"1 0 \\n\", \"0 0 \\n\", \"1 0 \", \"0 0 \", \"0 1\\n\", \"1 0\\n\", \"0 0\\n\", \"0 1\\n\"]}" }
{ "index": "code_r1_train_2393" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"1 1\\n0\\n\", \"2 2\\n1 1\\n1 1\\n\", \"2 2\\n1 1\\n1 1\\n\", \"2 2\\n1 0\\n1 1\\n\", \"2 3\\n1 0 1\\n0 1 0\\n\", \"2 3\\n1 0 1\\n1 1 0\\n\", \"2 3\\n1 1 1\\n0 1 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"8\\n\", \"8\\n\", \"6\\n\", \"8\\n\", \"...
{ "index": "code_r1_train_2394" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n5 0\\n\", \"2\\n9 9\\n53 9\\n\", \"2\\n4 9\\n51 5\\n\", \"2\\n6 9\\n10 0\\n\", \"2\\n4 6\\n47 7\\n\", \"2\\n9 9\\n27 9\\n\", \"2\\n9 9\\n17 4\\n\", \"2\\n9 8\\n53 9\\n\"], \"outputs\": [\"-1\\n5\\n\", \"-1\\n8\\n\", \"-1\\n24\\n\", \"-1\\n19\\n\", \"-1\...
{ "index": "code_r1_train_2395" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n*.*..*\\n*.....\\n...-..\\n^.*#..\\n10\\nSRSSRRUSSR\\n2 2\\n<.\\n..\\n12\\nDDSRRSUUSLLS\\n3 5\\n>-#**\\n.-*#*\\n.-**#\\n15\\nSSSDRSSSDRSSSUU\\n5 5\\nv****\\n*****\\n*****\\n*****\\n*****\\n44\\nSSSSDDRSDRSRDSULUURSSSSRRRRDSSSSDDLSDLSDLSSD\", \"4\\n4 6\\...
{ "index": "code_r1_train_2396" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n2\\n2\\n\", \"1\\n1\\n100\\n\", \"1\\n1\\n100\\n\", \"1\\n50\\n100\\n\"], \"outputs\": [\"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\"]}" }
{ "index": "code_r1_train_2397" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"abb\", \"aaa\", \"baa\", \"bba\", \"aa`\", \"aab\", \"`aa\", \"bca\"], \"outputs\": [\"First\\n\", \"Second\\n\", \"First\\n\", \"First\\n\", \"First\\n\", \"First\\n\", \"First\\n\", \"First\\n\"]}" }
{ "index": "code_r1_train_2398" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 0\\n2 1 2\\n\", \"5 6 1\\n2 7 2\\n\", \"3 3 3\\n2 2 2\\n\", \"0 0 0\\n0 0 0\\n\", \"0 0 0\\n0 0 1\\n\", \"0 1 0\\n0 0 0\\n\", \"1 0 0\\n1 0 0\\n\", \"2 2 1\\n1 1 2\\n\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Ye...
{ "index": "code_r1_train_2399" }