data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0 2 1\", \"0 3 1\", \"0 3 2\", \"1 3 2\", \"2 3 1\", \"1 5 0\", \"1 3 0\", \"10 2 5\"], \"outputs\": [\"1 3\\n\", \"1 4\\n\", \"2 5\\n\", \"2 4\\n\", \"1 2\\n\", \"0 4\\n\", \"0 2\\n\", \"2 0\\n\"]}" }
{ "index": "code_r1_train_1000" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 5\\npermit 192168?? ?12??34?\\ndeny 37680644 012343?5\\n10055649 6504995 HiIamAerackCr\\n19216891 01234345 lelHo\\n19216899 01234345 HiIamAlsoACracker\\n15866518 115970 World\\n00000000 99999999 TheEndOfTheWorld\\n1 2\\npermit 12345678 23456789\\n19216891 11995...
{ "index": "code_r1_train_1001" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9 2\\n0 0\\n0 1\\n0 2\\n1 0\\n1 1\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"7 4\\n0 0 0 0\\n0 0 0 1\\n0 0 0 2\\n0 0 1 0\\n0 0 2 0\\n0 1 0 0\\n0 2 0 0\\n\", \"8 4\\n0 0 0 0\\n0 0 0 1\\n0 0 0 2\\n0 0 1 0\\n0 0 2 0\\n0 1 0 0\\n1 0 0 0\\n2 2 0 0\\n\", \"18 4\\n...
{ "index": "code_r1_train_1002" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2 1\\n1 2\\n\", \"3 2\\n1 3\\n2 3\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 2\\n2 1\\n1 2\\n\", \"3 2\\n1 3\\n2 3\\n\", \"4 3\\n1 2\\n2 3\\n3 1\\n\", \"6 3\\n1 3\\n2 5\\n4 6\\n\"], \"outputs\": [\"1\\nAE\\n\", \"1\\nAE\\n\", \"2\\nAAE\\n\", \"-1\\n\", \...
{ "index": "code_r1_train_1003" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"ap\\n\", \"ap\\n\", \"pa\\n\", \"aq\\n\", \"dya\\n\", \"ass\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1004" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n7 6\\n\", \"2\\n2 2\\n\", \"2\\n2 1\\n\", \"2\\n1 1\\n\", \"2\\n2 2\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_1005" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n\", \"0 0\\n\", \"5 2\\n\", \"2 0\\n\", \"2 0\\n\", \"5 2\\n\", \"1 0\\n\", \"0 0\\n\"], \"outputs\": [\"1\\n\", \"infinity\\n\", \"1\\n\", \"2\\n\", \"2\", \"1\", \"1\", \"infinity\"]}" }
{ "index": "code_r1_train_1006" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\", \"5\", \"6\", \"4\", \"4\\n\", \"1\\n\", \"110\"], \"outputs\": [\"71\\n\", \"0\\n\", \"33\\n\", \"57\\n\", \"23\", \"23\\n\", \"1\\n\", \"32807\\n\"]}" }
{ "index": "code_r1_train_1007" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n8\\n\", \"1\\n9\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1008" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 3\\n\", \"1\\n8 1\\n\", \"1\\n10 3\\n\", \"1\\n10 10\\n\", \"1\\n10 10\\n\", \"1\\n10 13\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"8\\n\", \"8\\n\", \"10\\n\", \"10\\n\", \"10\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_1009" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n3 1\\n2 1\\n\", \"3 0\\n2 3\\n3 1\\n2 1\\n\", \"3 0\\n2 1\\n3 1\\n2 1\\n\", \"4 2\\n3 4\\n4 3\\n4 2\\n3 1\\n\", \"4 4\\n3 4\\n4 3\\n1 2\\n2 1\\n\", \"4 1\\n3 2\\n4 1\\n4 2\\n1 2\\n\", \"4 4\\n3 4\\n3 4\\n1 2\\n1 2\\n\", \"4 4\\n2 3\\n4 3\\n2 1\\n2 3\\...
{ "index": "code_r1_train_1010" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1\\n\", \"3\\n2 3 4\", \"5\\n1 2 3 0 5\", \"5\\n1 2 3 0 2\", \"5\\n1 2 4 0 2\", \"5\\n1 4 4 0 2\", \"5\\n1 4 4 1 2\"], \"outputs\": [\"READY FOR BATTLE\\n\", \"NOT READY\", \"READY FOR BATTLE\\n\", \"NOT READY\\n\", \"READY FOR BATTLE\\n\", \"READY...
{ "index": "code_r1_train_1011" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"860\", \"374\", \"425\", \"647\", \"317\", \"943\", \"308\", \"164\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_1012" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\n\", \"1\\nacc\\n\", \"1\\nbac\\n\", \"1\\naac\\n\", \"1\\ncaa\\n\", \"2\\nbba\\nabb\\n\", \"2\\nabc\\nbga\\n\", \"2\\naba\\naba\\n\"], \"outputs\": [\"YES\\nabc\\n\", \"YES\\nacc\\n\", \"YES\\nbac\\n\", \"YES\\naac\\n\", \"YES\\ncaa\\n\", \"YES\\nabba\\...
{ "index": "code_r1_train_1013" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2\", \"6\\n1 2\\n2 3\\n3 4\\n3 5\\n5 6\", \"6\\n1 2\\n2 3\\n6 4\\n3 5\\n5 6\", \"6\\n1 2\\n2 3\\n6 4\\n3 4\\n5 6\", \"6\\n1 2\\n2 3\\n3 4\\n3 5\\n1 6\", \"6\\n1 2\\n1 3\\n3 4\\n3 5\\n3 6\", \"6\\n1 2\\n2 3\\n3 4\\n3 5\\n2 6\", \"6\\n1 2\\n2 5\\n6 4\\n3 4\\n...
{ "index": "code_r1_train_1014" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"4\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"5\\n\", \"8\\n\"], \"outputs\": [\"3\\n\", \"7\\n\", \"14\\n\", \"1\\n\", \"14\\n\", \"1\\n\", \"25\\n\", \"92\\n\"]}" }
{ "index": "code_r1_train_1015" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 5 7 6 7 5 4 4 6 4\\n\", \"10\\n4 9 7 6 7 5 4 4 6 4\\n\", \"10\\n4 9 7 6 7 5 4 4 6 0\\n\", \"10\\n4 9 7 6 7 5 4 4 6 1\\n\", \"10\\n4 5 7 6 7 5 4 4 6 4\\n\", \"10\\n4 17 7 6 7 5 4 4 6 1\\n\", \"10\\n4 17 7 6 7 5 4 4 12 1\\n\", \"10\\n4 17 1 6 7 5 4 4 12 1\\n...
{ "index": "code_r1_train_1016" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 1\\n1\\n\", \"1 3\\n1\\n\", \"1 9\\n1\\n\", \"1 3\\n1\\n\", \"1 1\\n1\\n\", \"1 0\\n1\\n\", \"1 9\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1017" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 3 0\\n-1 0 1 1\", \"2\\n1 4 3 0\\n-1 0 0 0\", \"2\\n1 4 3 0\\n-1 0 1 0\", \"2\\n2 4 3 0\\n-1 0 1 0\", \"2\\n1 3 3 1\\n-8 0 0 0\", \"2\\n1 4 5 0\\n-1 0 0 1\", \"2\\n1 4 5 0\\n-1 0 0 0\", \"2\\n1 4 3 1\\n-3 0 0 1\"], \"outputs\": [\"0 2\\n1 0\\n\", \"0 2\\n...
{ "index": "code_r1_train_1018" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n1 2 3\\n\", \"3\\n1 3 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1019" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"2\\n00\\n\", \"2\\n10\\n\", \"2\\n11\\n\", \"2\\n01\\n\", \"3\\n101\\n\", \"3\\n001\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1020" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\nq\\n\", \"1\\na\\n\", \"1\\na\\n\", \"1\\nq\\n\", \"1\\nb\\n\", \"1\\np\\n\", \"1\\no\\n\", \"1\\nn\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1021" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 1 4 3 2\\n\", \"4 3 4 2 1\\n\", \"5 3 2 4 1\\n\", \"7 2 5 6 3\\n\", \"5 3 1 2 4\\n\", \"4 1 2 3 4\\n\", \"4 1 2 4 3\\n\", \"4 1 3 2 4\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_1022" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"2 1\", \"1 4\", \"2 4\", \"2 2\", \"5 3\", \"5 6\", \"9 8\"], \"outputs\": [\"1\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1023" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n\", \"1 0\\n\", \"2 0\\n\", \"4 0\\n\", \"8 0\\n\", \"3 0\\n\", \"50 0\\n\", \"50 0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1024" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n9\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n9\\n\", \"1\\n2\\n\", \"1\\n4\\n\"], \"outputs\": [\"0\", \"1\", \"9\", \"0\\n\", \"1\", \"9\", \"2\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_1025" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"-19 0 0\\n14 0 0\\n0 2 1\\n0 8 9\\n0 0 8\", \"-19 0 0\\n14 0 0\\n1 2 1\\n0 8 9\\n0 0 8\", \"-2 0 0\\n14 0 0\\n1 1 1\\n0 8 9\\n-1 0 4\", \"-2 0 0\\n14 0 0\\n1 1 1\\n0 8 9\\n-2 0 4\", \"-2 0 1\\n14 0 0\\n1 1 1\\n0 8 9\\n-2 0 4\", \"-2 0 1\\n14 0 0\\n1 1 1\\n0 8 9\\...
{ "index": "code_r1_train_1026" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n3 2 1\\n\", \"3\\n1 2 3\\n\", \"3\\n3 1 2\\n\", \"3\\n1 3 2\\n\", \"3\\n2 3 1\\n\"], \"outputs\": [\"0\", \"0\", \"1\", \"2\", \"0\", \"1\", \"1\", \"1\"]}" }
{ "index": "code_r1_train_1027" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2\\n\", \"3\\n2 3 1\\n\", \"3\\n3 2 1\\n\", \"3\\n2 1 3\\n\", \"3\\n1 2 3\\n\", \"3\\n3 1 2\\n\", \"3\\n1 3 2\\n\", \"5\\n3 4 1 5 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\", \"2\\n\"]}" }
{ "index": "code_r1_train_1028" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 5\\n6 7\\n0 0\", \"4 5\\n1 7\\n0 0\", \"8 5\\n6 7\\n0 0\", \"3 5\\n6 5\\n0 0\", \"2 5\\n1 0\\n0 0\", \"2 5\\n0 0\\n0 0\", \"4 5\\n0 0\\n0 0\", \"4 1\\n0 0\\n0 0\"], \"outputs\": [\"34567\\n6789101\\n\", \"45678\\n1234567\\n\", \"89101\\n6789101\\n\", \"34567\\n...
{ "index": "code_r1_train_1029" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2 3 2\", \"2\\n0 2 3 2\", \"2\\n1 2 3 1\", \"2\\n1 2 3 1\\n\", \"3\\n3 210 47 33 0 9 17 82\", \"3\\n3 312 47 33 0 9 17 82\", \"3\\n3 312 59 33 0 9 17 82\", \"3\\n2 312 59 33 0 9 17 82\"], \"outputs\": [\"3\\n4\\n5\\n\", \"2\\n3\\n5\\n\", \"3\\n4\\n5\", \"3\...
{ "index": "code_r1_train_1030" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n27\\n\", \"1 3\\n93\\n\", \"1 6\\n27\\n\", \"1 3\\n93\\n\", \"1 6\\n48\\n\", \"1 5\\n88\\n\", \"1 1\\n56\\n\", \"1 4\\n48\\n\"], \"outputs\": [\"3\\n\", \"9\\n\", \"3\\n\", \"9\\n\", \"5\\n\", \"9\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1031" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n1 1\\n1 1\\n1 1\\n\", \"1\\n1000000000\\n1\\n1 1\\n\", \"2\\n1 7\\n3\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 3\\n3\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 10\\n3\\n2 2\\n2 1\\n1 1\\n\", \"2\\n1 10\\n3\\n2 2\\n2 2\\n1 1\\n\", \"2\\n0 10\\n3\\n2 2\\n2 2\\n1 1\\n\", \"2...
{ "index": "code_r1_train_1032" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 0\\n2\\n\", \"1 2\\n1\\n\", \"1 4\\n1\\n\", \"1 0\\n3\\n\", \"1 7\\n1\\n\"], \"outputs\": [\"1 \\n\", \"\\n\", \"\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_1033" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 20 5 179\", \"1 3 8 13 1 179\", \"2 1 1 20 3 179\", \"6 1 1 7 29 123\", \"1 2 5 20 15 179\", \"1 1 5 20 27 179\", \"2 1 1 20 17 179\", \"6 1 1 20 29 141\"], \"outputs\": [\"105 5\\n\", \"100 0\\n\", \"103 3\\n\", \"123 23\\n\", \"115 15\\n\", \"125 25\\n\",...
{ "index": "code_r1_train_1034" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 99\\n\", \"1\\n2 99\\n\", \"1\\n1 75\\n\", \"1\\n2 75\\n\", \"1\\n2 52\\n\", \"1\\n1 14\\n\", \"1\\n2 60\\n\", \"1\\n99 99\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1035" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3\", \"5 4 2 3\", \"0 4 2 3\", \"8 5 7 5\", \"3 3 7 5\", \"7 4 2 3\", \"5 8 3 3\", \"8 4 2 3\"], \"outputs\": [\"460\\n\", \"435\\n\", \"0\\n\", \"1761124\\n\", \"1\\n\", \"78735\\n\", \"574\\n\", \"962894\\n\"]}" }
{ "index": "code_r1_train_1036" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\", \"1 2\", \"4 6\", \"3 6\", \"4 4\", \"5 1\", \"1 6\", \"1 1\"], \"outputs\": [\"1\\n\", \"3\\n\", \"2\\n\", \"9\\n\", \"8\\n\", \"-4\\n\", \"7\\n\", \"2\"]}" }
{ "index": "code_r1_train_1037" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n99999 100001 2\\n\", \"1\\n99999 100001 2\\n\", \"1\\n99999 100001 1\\n\", \"1\\n99999 100000 2\\n\", \"1\\n99999 100000 0\\n\", \"1\\n99999 100000 1\\n\", \"1\\n12 73 200000000\\n\", \"1\\n12 73 200000000\\n\"], \"outputs\": [\"REBEL\\n\", \"REBEL\\n\", \"RE...
{ "index": "code_r1_train_1038" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"11\\n\", \"11\\n\", \"101\\n\", \"110\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1039" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1 1 3\", \"3\\n0 1 0\\n1 1 2\", \"3\\n0 0 1\\n1 2 5\", \"3\\n0 0 1\\n1 0 7\", \"3\\n0 0 1\\n2 1 7\", \"3\\n0 0 1\\n1 1 8\", \"3\\n0 0 0\\n1 1 2\", \"3\\n0 0 0\\n1 2 5\"], \"outputs\": [\"0\\n\", \"2\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"0\\n...
{ "index": "code_r1_train_1040" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"1\\n1 0\", \"1\\n1 1\", \"1\\n4 0\", \"1\\n8 0\", \"1\\n7 0\", \"1\\n7 1\", \"1\\n0 30\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"1\\n\", \"-3\\n\", \"-7\\n\", \"-6\\n\", \"-5\\n\", \"31\\n\"]}" }
{ "index": "code_r1_train_1041" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n1\", \"1\\n1\\n\", \"1\\n-1\", \"1\\n-2\", \"1\\n-4\", \"4\\n4 3 2 1\", \"4\\n4 3 2 1\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"4\", \"4\\n\"]}" }
{ "index": "code_r1_train_1042" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n2 -1 3 4 1 6\\n7 2 16 14 7 12\\n1 14 15 10 1 27\\n19 20 35 5 6 39\\n7 27 54 60 30 31\\n33 4 35 36 34 35\\n47 38 75 40 41 42\\n44 45 49 47 48 49\\n\", \"1\\n8 6\\n2 -1 3 4 1 6\\n7 2 16 14 7 12\\n1 14 15 14 1 27\\n19 20 35 5 6 39\\n7 27 54 60 30 31\\n33 4...
{ "index": "code_r1_train_1043" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1\\n1\\n2\\n3\\n1\\n1 2\\n7\\n8\\n3\\n0 0\", \"3 3\\n2\\n1\\n1\\n2\\n3\\n1\\n1 2\\n1\\n8\\n3\\n0 0\", \"3 3\\n2\\n1\\n1\\n2\\n0\\n1\\n1 2\\n7\\n8\\n26\\n0 0\", \"3 3\\n1\\n2\\n1\\n2\\n6\\n1\\n1 2\\n10\\n7\\n6\\n0 0\", \"3 3\\n2\\n1\\n4\\n2\\n3\\n1\\n1 2...
{ "index": "code_r1_train_1044" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 4 1 5\\n3\\n5 4 3\", \"1\\n9\\n7\\n110 100 110 110 100\", \"1\\n9\\n7\\n100 100 110 110 100\", \"1\\n9\\n7\\n100 100 110 111 100\", \"1\\n9\\n2\\n100 100 110 111 100\", \"1\\n9\\n2\\n100 100 111 111 100\", \"1\\n9\\n2\\n100 000 111 111 100\", \"1\\n9\\n2\...
{ "index": "code_r1_train_1045" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\n3\\nabc\\nab\\nc\\n\", \"1\\nabbaa\\n4\\nab\\nbaa\\nabb\\na\\n\", \"1\\nabcabcab\\n3\\nabcab\\nca\\nb\\n\", \"1\\nabcde\\n4\\nabc\\ncd\\ne\\nbcde\\n\", \"1\\nabcdef\\n4\\nabc\\nde\\nef\\nbcdef\\n\", \"1\\nabcdefgh\\n3\\nabcde\\ndefg\\ncdefgh\\n\", \"1\\...
{ "index": "code_r1_train_1046" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1 1 1\\n4\\n\", \"1 6 5\\n9\\n\", \"1 1 2\\n4\\n\", \"1 8 3\\n10\\n\", \"1 1 3\\n10\\n\", \"1 8 5\\n10\\n\", \"1 8 6\\n10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"5\\n\", \"-1\\n\", \"3\\n\", \"-1\\n\", \"5\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_1047" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"3\\n1 3 3\\n\", \"3\\n1 1 1\\n\", \"3\\n3 3 3\\n\", \"3\\n1 3 3\\n\", \"3\\n3 3 3\\n\", \"3\\n1 1 1\\n\"], \"outputs\": [\"0\", \"0\\n\", \"1\", \"3\", \"3\", \"1\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1048" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1\\n5\", \"3\\n1 2 3\\n1\\n4\", \"3\\n1 2 4\\n1\\n4\", \"3\\n2 2 4\\n1\\n4\", \"3\\n2 2 5\\n1\\n4\", \"3\\n0 2 5\\n1\\n4\", \"3\\n1 2 5\\n1\\n4\", \"3\\n1 4 5\\n1\\n4\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n...
{ "index": "code_r1_train_1049" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 60\\n10 10\\n60 100\\n\", \"2 60\\n10 13\\n100 100\", \"2 60\\n10 13\\n100 101\", \"2 60\\n10 10\\n000 100\", \"2 60\\n10 20\\n100 101\", \"2 60\\n10 30\\n100 101\", \"2 60\\n10 10\\n100 100\", \"2 60\\n10 10\\n100 100\\n\"], \"outputs\": [\"110\\n\", \"113\\n\...
{ "index": "code_r1_train_1050" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 3\\n\", \"1 3\\n5 3\\n\", \"1 3\\n1 3\\n\", \"1 3\\n1 6\\n\", \"1 1\\n2 4\\n\", \"1 1\\n3 4\\n\", \"1 0\\n3 4\\n\", \"1 0\\n3 2\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n\", \"6\\n\", \"2\\n\", \"2\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1051" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 6\\nssr\\n\", \"5 2\\n8 7 2\\nrsrpr\", \"5 2\\n8 7 6\\nrsrpr\", \"5 2\\n8 7 6\\nrsrpr\\n\", \"5 2\\n12 7 2\\nrsrpr\", \"5 2\\n14 7 2\\nrsrpr\", \"5 2\\n18 7 2\\nrsrpr\", \"5 2\\n18 7 1\\nrsrpr\"], \"outputs\": [\"8\\n\", \"19\\n\", \"27\", \"27\\n\", \"...
{ "index": "code_r1_train_1052" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n17\\n17\", \"5\\n2 3 3 3 3\\n3 3 2 2 2\", \"5\\n1 1 1 2 2\\n6 2 1 1 1\", \"5\\n1 1 1 4 2\\n6 2 1 1 1\", \"5\\n1 1 1 4 2\\n6 2 1 1 0\", \"5\\n1 1 1 4 2\\n6 0 1 1 0\", \"5\\n1 1 1 4 2\\n6 1 1 1 0\", \"5\\n1 1 1 4 2\\n6 2 1 2 0\"], \"outputs\": [\"1\", \"4\\n\",...
{ "index": "code_r1_train_1053" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n1\\n\", \"2\\n780\\n\", \"2\\n524\\n\", \"2\\n203\\n\", \"2\\n9900\\n\", \"2\\n9900\\n\", \"4\\n35 15\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"Yes\\n4 780\\n\", \"Yes\\n16900 524\\n\", \"Yes\\n121 203\\n\", \"Yes\\n100 9900\\n\", \"Yes\\n100...
{ "index": "code_r1_train_1054" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n111\", \"3\\n110\", \"3\\n101\", \"3\\n100\", \"3\\n001\", \"3\\n011\", \"23\\n00110111001011011001111\", \"23\\n00110111001011011101111\"], \"outputs\": [\"2\\n2\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n2\\n1\\n\", \"0\\n1\\n2\\n\", \"2\\n2\\n0\\n\", \"2\\n1\\n1\",...
{ "index": "code_r1_train_1055" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nakzakr 2 1 8\\nfnmyi 5 2 3 4 6 9\\ntsnukk 5 2 3 4 7 9\\nyskwcnt 6 3 4 7 8 9 10\\n4\\nakzakr 1 2\\nfnmyi 3 5 11 12\\ntsnukk 2 1 8\\nyskwcnt 2 1 8\\n5\\nknmmdk 2 13 19\\nakmhmr 4 7 15 19 22\\nmksyk 6 3 7 12 13 15 19\\nskrkyk 3 1 4 8\\ntmemm 3 1 17 24\\n5\\nknmm...
{ "index": "code_r1_train_1056" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n3\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n5\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n3\\n3\\n2\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n3\\n3\\n2\\n7\\n6\\n7\\n8\\n9\\n\", \"9\\n2\\n3\\n3\\n2\\n7\\n6\\n7\\n8...
{ "index": "code_r1_train_1057" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 0\\n\", \"1 0\\n\", \"3 0\\n\", \"100000 0\\n\", \"100000 0\\n\", \"9 2\\n1 2 0\\n2 3 0\\n\", \"9 2\\n1 2 0\\n2 3 0\\n\", \"9 2\\n1 2 0\\n2 3 1\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \" 4\\n\", \"3...
{ "index": "code_r1_train_1058" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n1 1\\n\", \"1 2\\n1 1\\n\", \"5 3\\n5 1 4\\n\", \"5 3\\n5 2 4\\n\", \"5 3\\n5 1 3\\n\", \"5 3\\n5 2 3\\n\", \"5 3\\n5 1 4\\n\", \"100000 1\\n2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"9\\n\", \"9\\n\", \"10\\n\", \"9\\n\", \"9\\n\", \"299997\\n\"]}" }
{ "index": "code_r1_train_1059" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n12\\n2 2 2 2 4 4 4 4 6 6 6 6\\n\", \"1\\n12\\n2 2 2 2 4 4 4 4 6 6 6 6\\n\", \"1\\n12\\n1 2 2 2 4 4 4 4 6 6 6 6\\n\", \"1\\n12\\n1 2 2 2 4 4 2 4 6 6 6 6\\n\", \"1\\n12\\n2 2 2 2 7 4 4 4 6 6 6 6\\n\", \"1\\n12\\n1 2 2 2 8 4 2 4 6 6 6 6\\n\", \"1\\n12\\n2 2 2 2 ...
{ "index": "code_r1_train_1060" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 1\\n3 7\\n4 2 2\", \"2\\n2 1\\n1 1\\n3 7\\n4 2 2\", \"2\\n2 1\\n1 2\\n3 7\\n0 2 2\", \"2\\n2 2\\n1 1\\n3 3\\n4 1 6\", \"2\\n2 2\\n1 1\\n3 3\\n0 0 3\", \"2\\n2 1\\n1 2\\n3 7\\n4 2 2\", \"2\\n2 1\\n2 2\\n3 7\\n0 2 2\", \"2\\n2 0\\n1 1\\n3 7\\n4 2 2\"], ...
{ "index": "code_r1_train_1061" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"6 5 0\", \"4 2 6\", \"1 3 6\", \"1 0 6\", \"2 0 6\", \"4 0 6\", \"4 1 6\"], \"outputs\": [\"dangerous\\n\", \"delicious\\n\", \"safe\\n\", \"dangerous\\n\", \"dangerous\\n\", \"dangerous\\n\", \"dangerous\\n\", \"dangerous\\n\"]}" }
{ "index": "code_r1_train_1062" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9124\\n\", \"1\\n9602\\n\", \"1\\n16966\\n\", \"1\\n52232\\n\", \"1\\n13891\\n\", \"1\\n72551\\n\", \"1\\n74714\\n\", \"1\\n25335\\n\"], \"outputs\": [\"4\\n\", \"9\\n\", \"1\\n\", \"5\\n\", \"9\\n\", \"1\\n\", \"5\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1063" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000 499999999 3 2\\n\", \"1\\n1000000000 999999999 2 1\\n\", \"1\\n1000000000 499999999 3 2\\n\", \"1\\n1000000000 999999999 2 1\\n\", \"1\\n1001000000 499999999 3 2\\n\", \"1\\n1000010000 999999999 2 1\\n\", \"1\\n1001000000 316833107 3 2\\n\", \"1\\n...
{ "index": "code_r1_train_1064" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\nRRGG\\nGGRB\\nBRRR\\nBRRR\", \"1\\n2 1\\nRRGG\\nGGRB\\nBRRR\\nBRRR\", \"1\\n2 1\\nGGRR\\nGGRB\\nBRRR\\nBRRR\", \"1\\n1 1\\nGGRR\\nGGRB\\nBRRR\\nBRRR\", \"1\\n2 3\\nRRGG\\nGGRB\\nBRRR\\nRRBR\", \"1\\n2 1\\nRRGG\\nGGRB\\nRRRB\\nBRRR\", \"1\\n2 4\\nRRGG\\n...
{ "index": "code_r1_train_1065" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 100 1\", \"3 1\\n0 100 1\", \"3 2\\n1 100 1\", \"3 1\\n0 101 1\", \"3 4\\n1 100 1\", \"3 1\\n4 110 1\", \"3 1\\n1 100 1\", \"3 1000\\n1 101 1\"], \"outputs\": [\"107\\n\", \"104\\n\", \"109\\n\", \"105\\n\", \"115\\n\", \"119\\n\", \"106\", \"2204\\n\"]}"...
{ "index": "code_r1_train_1066" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n1 5\\nUURRURRRURRURRR\\n1 0\\nUDDDRLLL\\n0 -5\\nLDLDLDDDR\\n0 4\\nLLLLUU\\n6 -1\\nRDULRLLDR\\n1 6\\nRUDURUUUUR\\n\", \"6\\n10 1\\nRRRRRRRRRRUUUUU\\n1 1\\nRDDDULLL\\n0 -2\\nLDLDLDDDR\\n1 4\\nULLLUL\\n1 -1\\nRDLURLLDR\\n0 6\\nRUUUURUDUR\\n\", \"6\\n1 5\\nUURRUR...
{ "index": "code_r1_train_1067" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1337\\n\", \"1 1\\n1337\\n\", \"5 3\\n1 2 2 4 5\\n\", \"5 3\\n1 2 3 4 5\\n\", \"5 3\\n1 2 3 3 3\\n\", \"5 3\\n1 2 4 4 5\\n\", \"5 3\\n1 2 1 4 5\\n\", \"5 3\\n1 3 3 3 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"1\\n\"...
{ "index": "code_r1_train_1068" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n2 1\\n\", \"1\\n4 1\\n\", \"2\\n3 2\\n3 2\\n\", \"2\\n3 1\\n3 2\\n\", \"2\\n4 2\\n4 1\\n\", \"2\\n5 2\\n5 1\\n\", \"2\\n3 1\\n3 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_1069" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nflovr-with-eggs 010\\nchadken-him -26\\nflotrswithout-efg- 7\\nriwpep--tdpsghif 0001\\n3\\nf\\nilour.wfth\\n.huix-ruokf\\na\\nld\\nkicj\", \"4\\nflovr-with-eggs 000\\nchbdken-him -26\\nflotrswithouu-efg- 7\\nriwpep--tdpsghif 0001\\n3\\nf\\nitour.wflh\\n.huix-...
{ "index": "code_r1_train_1070" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 1 5\\n\", \"1\\n2 5 1 1\\n\", \"1\\n3 4 3 3\\n\", \"1\\n2 5 1 1\\n\", \"1\\n3 4 3 3\\n\", \"1\\n8 5 1 5\\n\", \"1\\n1 5 1 1\\n\", \"1\\n8 4 1 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1071" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"4\\n\", \"5\\n\", \"3\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"1 \\n\", \"-1\\n\", \"2 4 1 3 \\n\", \"2 5 3 1 4 \\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2 8 4 6 3 5 1 7 \\n\"]}" }
{ "index": "code_r1_train_1072" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 50001\\n1 50000\\n\", \"1 50001\\n1 50000\\n\", \"1 1000000\\n1 561774\\n\", \"1 1000000\\n1 561774\\n\", \"1 1000000\\n1 672641\\n\", \"1 1000000\\n1 1000000\\n\", \"1 1000000\\n1 1000000\\n\", \"1 1100000\\n1 1000000\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1...
{ "index": "code_r1_train_1073" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n\", \"3 3 1 1\\n\", \"2 2 3 3\\n\", \"3 3 3 9\\n\", \"3 3 3 9\\n\", \"3 3 1 1\\n\", \"2 2 3 3\\n\", \"3 3 3 5\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1074" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1 0\", \"4\\n0 0 1 0\", \"4\\n0 0 0 0\", \"4\\n0 0 0 1\", \"4\\n0 0 1 1\", \"4\\n0 1 1 1\", \"4\\n0 0 1 2\", \"4\\n0 1 1 2\"], \"outputs\": [\"5\\n\", \"6\\n\", \"7\\n\", \"6\\n\", \"7\\n\", \"6\\n\", \"6\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_1075" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n7\\n0\\n1\\n7\", \"3 3\\n5\\n7\\n5\\n7\\n7\", \"3 3\\n5\\n7\\n5\\n1\\n7\", \"3 3\\n5\\n7\\n5\\n1\\n5\", \"5 3\\n5\\n7\\n5\\n9\\n7\", \"3 3\\n5\\n7\\n5\\n7\\n6\", \"5 3\\n5\\n7\\n2\\n0\\n6\", \"5 3\\n5\\n7\\n5\\n1\\n5\"], \"outputs\": [\"7\\n\", \"2\\n\"...
{ "index": "code_r1_train_1076" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\", \"0 2\", \"1 7\", \"6 4\", \"0 3\", \"0 3\\n\", \"0 1\\n\", \"1 13\"], \"outputs\": [\"2\\n\", \"1\\n\", \"4\\n\", \"5\\n\", \"IMPOSSIBLE\", \"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_1077" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n\", \"6 2\\n\", \"5 2\\n\", \"5 11\\n\", \"6 16\\n\", \"5 29\\n\", \"1 30\\n\", \"5 29\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"3\", \"3\", \"6\", \"30\", \"6\\n\"]}" }
{ "index": "code_r1_train_1078" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n7\\n\", \"1\\n9\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n8\\n\", \"1\\n6\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1079" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n00 1\\n\", \"1\\n00 4\\n\", \"1\\n01 1\\n\", \"1\\n00 4\\n\", \"1\\n01 1\\n\", \"1\\n00 1\\n\", \"1\\n00 2\\n\", \"1\\n00 5\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1080" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"w\\n\", \"y\\n\", \"xx\\n\", \"yx\\n\", \"xy\\n\", \"wy\\n\", \"x,x\\n\"], \"outputs\": [\"x\\n\", \"w\\n\", \"y\\n\", \"xx\\n\", \"yx\\n\", \"xy\\n\", \"wy\\n\", \"x, x\\n\"]}" }
{ "index": "code_r1_train_1081" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB\\n\", \"1\\nB\\n\", \"1\\nC\\n\", \"2\\nBG\\n\", \"2\\nBB\\n\", \"2\\nBB\\n\", \"2\\nBG\\n\", \"2\\nGB\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_1082" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2 1\\n1 2\\n\", \"4 2\\n1 2\\n2 3\\n\", \"4 2\\n1 3\\n2 4\\n\", \"4 2\\n1 3\\n2 4\\n\", \"4 2\\n1 2\\n2 3\\n\", \"4 2\\n2 3\\n2 4\\n\", \"4 2\\n1 2\\n2 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", ...
{ "index": "code_r1_train_1083" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n18\\n\", \"1\\n24\\n\", \"1\\n29\\n\", \"1\\n46\\n\", \"1\\n27\\n\", \"1\\n10\\n\", \"2\\n2 1\\n\", \"2\\n2 2\\n\"], \"outputs\": [\"18\\n\", \"24\\n\", \"29\\n\", \"46\\n\", \"27\\n\", \"10\", \"3\\n\", \"5\"]}" }
{ "index": "code_r1_train_1084" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n63\\n\", \"1\\n68\\n\", \"1\\n170\\n\", \"1\\n331\\n\", \"2\\n3 0\\n\", \"2\\n2 0\\n\", \"1\\n120\\n\", \"1\\n116\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1085" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 9\\n1\", \"1 8 3\\n1\", \"1 8 5\\n1\", \"1 8 10\\n1\", \"1 12 10\\n1\", \"1 10 10\\n1\", \"3 4 11\\n3 1 2\", \"3 26 30\\n3 1 2\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"4\", \"26\"]}" }
{ "index": "code_r1_train_1086" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n995\\n\", \"1\\n995\\n\", \"1\\n1000\\n\", \"1\\n1000\\n\", \"2\\n179 5\\n\", \"2\\n251 75\\n\", \"2\\n251 42\\n\", \"2\\n251 30\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_1087" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n4 4 2 5 2 3\\n\", \"6\\n4 4 2 5 2 6\\n\", \"6\\n4 4 2 5 2 3\\n\", \"6\\n4 4 2 5 2 11\\n\", \"9\\n5 1 3 1 5 2 4 2 5\\n\", \"9\\n5 1 3 2 5 2 4 2 5\\n\", \"9\\n5 1 3 2 5 2 4 3 5\\n\", \"9\\n5 1 3 1 5 2 4 2 5\\n\"], \"outputs\": [\"14\\n\", \"17\\n\", \"14\\n\", ...
{ "index": "code_r1_train_1088" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n0 2\\n\", \"2\\n0 3\\n\", \"2\\n-1 1\\n\", \"2\\n-2 1\\n\", \"2\\n-4 1\\n\", \"2\\n-6 1\\n\"], \"outputs\": [\"0 0\\n0 0\\n\", \"1 1\\n1 1\\n\", \"2 2\\n2 2\\n\", \"3 3\\n3 3\\n\", \"2 2\\n2 2\\n\", \"3 3\\n3 3\\n\", \"5 5\\n5 ...
{ "index": "code_r1_train_1089" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 6\\n8 2 2\\n1\\n5\\n\", \"1 1 1\\n1 1 1\\n5\\n1 2 3 4 5\\n\", \"1 1 1\\n1 1 1\\n5\\n1 2 3 3 4\\n\", \"1 1 1\\n1 2 1\\n5\\n1 2 3 4 5\\n\", \"1 1 1\\n1 1 1\\n5\\n1 2 3 3 3\\n\", \"1 2 1\\n1 1 1\\n5\\n1 1 1 1 1\\n\", \"1 1 1\\n1 2 2\\n5\\n1 2 3 4 5\\n\", \"1 1 1...
{ "index": "code_r1_train_1090" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n0 x 2 4 x\\n2\\nx x\\n2\\n1 2\\n2\\n2 1\\n2\\n1000000000 x\\n4\\nx 2 1 x\\n0\", \"5\\n1 x 2 0 x\\n2\\nx x\\n2\\n1 2\\n2\\n2 1\\n2\\n1000000000 x\\n4\\nx 2 1 x\\n0\", \"5\\n0 x 2 4 x\\n2\\nx x\\n2\\n1 2\\n2\\n0 1\\n2\\n1000000000 x\\n4\\nx 2 1 x\\n0\", \"5\\n0...
{ "index": "code_r1_train_1091" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7082632\\n\", \"1 1 1\\n7082632\\n\", \"1 1 1\\n7647119\\n\", \"1 1 1\\n99996055\\n\", \"1 1 1\\n99996055\\n\", \"1 1 1\\n37049130\\n\", \"1 1 1\\n50273182\\n\", \"1 1 1\\n14314026\\n\"], \"outputs\": [\"7082632\\n\", \"7082632\\n\", \"7647119\\n\", \"999...
{ "index": "code_r1_train_1092" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nab\\nb\\n1\\nabcd\\n\", \"ab\\na\\nb\\n1\\nabcd\\n\", \"a\\nab\\na\\n1\\nabcd\\n\", \"ba\\na\\nb\\n1\\nabcd\\n\", \"a\\nab\\na\\n1\\naccd\\n\", \"ba\\na\\na\\n1\\nabcd\\n\", \"a\\n`b\\na\\n1\\naccd\\n\", \"a\\nab\\nb\\n1\\naccd\\n\"], \"outputs\": [\"WA\\n\",...
{ "index": "code_r1_train_1093" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\", \"2\\n-10 9\\n\", \"3\\n-1 5 1\", \"3\\n-2 5 1\", \"3\\n-1 1 1\", \"3\\n-2 0 1\", \"3\\n-10 5 0\", \"3\\n-14 5 0\"], \"outputs\": [\"2\\n\", \"1\\n\", \"5\\n\", \"6\\n\", \"1\\n\", \"3\\n\", \"15\\n\", \"19\\n\"]}" }
{ "index": "code_r1_train_1094" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\nA\\n\", \"1\\nD\\n\", \"1\\nA\\n\", \"1\\nD\\n\", \"2\\nDA\\n\", \"2\\nDA\\n\", \"2\\nDA\\n\", \"2\\nAD\\n\"], \"outputs\": [\"Anton\\n\", \"Danik\\n\", \"Anton\\n\", \"Danik\\n\", \"Friendship\\n\", \"Friendship\\n\", \"Friendship\\n\", \"Friendship\\n\"]}" ...
{ "index": "code_r1_train_1095" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 10\\n0 15 5\\n3\\n2 93 78\\n1 71 59\\n3 57 96\\n19\\n19 23 16\\n9 90 26\\n12 85 70\\n19 67 78\\n1 16 16\\n18 48 28\\n5 4 24\\n12 97 97\\n4 57 87\\n8 91 74\\n18 100 76\\n7 31 46\\n9 100 5\\n3 76 73\\n6 84 93\\n1 6 84\\n11 75 94\\n19 15 3\\n12 11 34\", ...
{ "index": "code_r1_train_1096" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"fdg\\n\", \"gdf\\n\", \"hdf\\n\", \"fdh\\n\", \"dfh\\n\", \"hfd\\n\", \"hfe\\n\", \"hff\\n\"], \"outputs\": [\"fdg\\n\", \"gdf\\n\", \"hdf\\n\", \"fdh\\n\", \"dfh\\n\", \"hfd\\n\", \"hfe\\n\", \"hff\\n\"]}" }
{ "index": "code_r1_train_1097" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n-1\\n\", \"1\\n-1\\n\", \"2\\n0 0\\n0 0\\n\", \"2\\n0 1\\n1 0\\n\", \"2\\n0 1\\n1 1\\n\", \"2\\n1 1\\n1 0\\n\", \"2\\n-1 0\\n0 0\\n\"], \"outputs\": [\"0\\n\", \"0 \", \"0 \", \"0 0 \", \"1 1 \", \"1 1 \", \"1 1 \", \"0 0 \"]}" }
{ "index": "code_r1_train_1098" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"3\\n1 4 6\\n\", \"3\\n1 2 6\\n\", \"3\\n1 3 6\\n\", \"3\\n1 4 7\\n\", \"3\\n1 3 6\\n\", \"3\\n1 4 6\\n\", \"3\\n1 2 6\\n\"], \"outputs\": [\"0\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"0\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_1099" }