data_source
stringclasses
1 value
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
extra_info
dict
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n643\\n\", \"1 0\\n674\\n\", \"1 0\\n376\\n\", \"1 0\\n416\\n\", \"1 0\\n3660\\n\", \"1 0\\n4387\\n\", \"1 0\\n6094\\n\", \"1 0\\n1852\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4900" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 4\\n\", \"6 2 1 1\\n\", \"4 4 4 4\\n\", \"7 4 3 1\\n\", \"7 4 1 1\\n\", \"3 9 1 1\\n\", \"3 4 3 1\\n\", \"3 3 1 1\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"0\\n\", \"3\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4901" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n0 2 2 1\\n\", \"5\\n0 0 0 1 1\\n\", \"6\\n0 0 0 3 0 0\\n\", \"6\\n4 4 2 6 6 6\\n\", \"8\\n0 8 8 8 0 4 4 2\\n\", \"10\\n0 9 9 9 9 0 8 8 8 8\\n\", \"10\\n0 10 10 0 0 3 3 0 0 0\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\\n\", ...
{ "index": "code_r1_train_4902" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 1 1\\n\", \"3\\n2 1 1\\n\", \"3\\n1 2 1\\n\", \"3\\n1 1 2\\n\", \"3\\n1 1 0\\n\", \"3\\n3 4 2\\n\", \"3\\n4 5 5\\n\", \"3\\n3 4 1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"5\\n\", \"7\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_4903" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n2 1 3 5 4\", \"5\\n2 1 0 5 4\", \"5\\n4 1 0 5 4\", \"5\\n4 1 0 5 6\", \"5\\n4 0 0 5 6\", \"5\\n4 0 0 0 3\", \"5\\n4 0 1 0 3\", \"5\\n7 0 1 0 3\"], \"outputs\": [\"4\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4904" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n15 11\\n1 1 4 4 4 4 2 2 5 4 4 4 1 5 1\\n\", \"1\\n15 11\\n1 1 4 4 4 4 2 2 5 4 4 4 1 5 1\\n\", \"1\\n15 11\\n1 1 4 4 4 4 2 0 5 4 4 4 1 5 1\\n\", \"1\\n15 11\\n1 1 4 4 4 8 2 0 5 4 4 4 1 5 1\\n\", \"1\\n15 11\\n1 1 4 4 4 8 2 0 5 4 4 4 1 7 1\\n\", \"1\\n15 11\\n1...
{ "index": "code_r1_train_4905" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"01\\n0\\n\", \"13\\n3\\n\", \"14\\n4\\n\", \"21\\n2\\n\", \"12\\n2\\n\", \"10\\n0\\n\", \"10\\n0\\n\", \"13\\n3\\n\"], \"outputs\": [\"0\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"2\\n\", \"0\\n\", \"0\", \"3\"]}" }
{ "index": "code_r1_train_4906" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n\", \"1\\n\", \"2\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"2\\n\", \"9\\n\"], \"outputs\": [\"6 6\\n\", \"1 1\\n\", \"2 2\\n\", \"7 7\\n\", \"7 7\\n\", \"7 7\\n\", \"2 2\\n\", \"7 7\\n\"]}" }
{ "index": "code_r1_train_4907" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0 0 0 0 0 0\\n1 1 1 0 0 0 0 0 0 0\\n0 1 0 0 0 0 0 0 0 0\\n0 0 0 0 0 1 0 0 0 0\\n0 0 0 1 0 0 1 0 0 0\\n0 0 0 0 1 1 0 0 0 0\\n0 0 0 0 0 0 0 0 0 0\\n0 0 0 0 0 0 0 0 1 0\\n0 0 0 0 0 0 0 1 1 1\\n0 0 0 0 0 0 0 0 1 0\", \"1\\n0 1 0 0 0 0 0 0 0 0\\n1 1 1 0 0 ...
{ "index": "code_r1_train_4908" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"4\\nb\\n\", \"4\\nb\\n\", \"4\\na\\n\", \"4\\nc\\n\", \"4\\n`\\n\", \"4\\nd\\n\", \"4\\n_\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4909" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabc\\nabcdef\\naA\\nabAZ\\naaa\\na\\nwhat\\nnone\", \"4\\nacb\\nabcdef\\naA\\nabAZ\\naaa\\na\\nwhat\\nnone\", \"4\\nacb\\nabcdef\\nAa\\nabZA\\naaa\\n`\\nwhat\\nnone\", \"4\\naca\\nebcdaf\\naA\\nAbZa\\n`aa\\n`\\nswha\\nnomf\", \"4\\nac`\\nebcdae\\naA\\nAbZa\\n...
{ "index": "code_r1_train_4910" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n1\\n3\\n\", \"1\\n2\\n3\\n\", \"1\\n2\\n4\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4911" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nABCA\\nXBAZ\\nBAE\", \"3\\nACBA\\nZABX\\nAEB\", \"3\\n@DBA\\nZAAX\\nAEB\", \"3\\nABCA\\nXBAZ\\nBEA\", \"3\\nABCA\\nZABX\\nBEA\", \"3\\nABCA\\nZABX\\nAEA\", \"3\\nABCA\\nZABX\\nAEB\", \"3\\nADBA\\nZABX\\nAEB\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"2\...
{ "index": "code_r1_train_4912" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1\", \"3\\n0\\n1\\n0\", \"3\\n0\\n0\\n0\", \"3\\n0\\n2\\n2\", \"3\\n0\\n1\\n2\", \"3\\n0\\n2\\n0\", \"3\\n1\\n1\\n0\", \"3\\n1\\n0\\n0\"], \"outputs\": [\"-1\\n\", \"1\\n\", \"0\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4913" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n5\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"3\\n2 1 1\\n\", \"3\\n4 1 1\\n\"], \"outputs\": [\"1\\n1 \", \"-1\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2\\n1 1 2 \", \"-1\\n\"]}" }
{ "index": "code_r1_train_4914" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 4\\n3 0\\n\", \"1\\n0 0 4\\n3 0\\n\", \"1\\n0 0 4\\n2 0\\n\", \"1\\n0 0 3\\n2 0\\n\", \"1\\n1 0 3\\n2 0\\n\", \"1\\n1 0 1\\n2 0\\n\", \"1\\n1 0 1\\n3 0\\n\", \"1\\n1 0 1\\n4 0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"...
{ "index": "code_r1_train_4915" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7 9 4 6\", \"4 4 9 4 6\", \"4 4 9 0 6\", \"3 4 9 0 5\", \"3 7 9 0 5\", \"3 7 9 0 3\", \"3 7 9 0 2\", \"5 1 5 2 4\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\"]}" }
{ "index": "code_r1_train_4916" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n1 0\\n\", \"2\\n2 2\\n\", \"2\\n2 0\\n\", \"2\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4917" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n0\\n\", \"1\\n00\\n\", \"1\\n31\\n\", \"2\\n0\\n0\\n\", \"1\\n3444\\n\", \"3\\n8\\n5\\n8\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"0\\n0\\n\", \"1\\n\", \"0\\n0\\n0\\n\"]}" }
{ "index": "code_r1_train_4918" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 2\\n1\\n\", \"5 6 3\\n5 4 3 2 1\\n\", \"5 6 3\\n5 5 5 5 5\\n\", \"5 6 3\\n1 2 1 1 1\\n\", \"5 6 3\\n1 2 2 1 1\\n\", \"5 6 3\\n5 4 6 2 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"5\\n\", \"10\\n\", \"2\\n\", \"3\\...
{ "index": "code_r1_train_4919" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2021\\n\", \"1\\n4\\n2029\\n\", \"1\\n4\\n2030\\n\", \"1\\n4\\n2040\\n\", \"1\\n4\\n2050\\n\", \"1\\n4\\n2090\\n\", \"1\\n4\\n2080\\n\", \"1\\n4\\n2070\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\...
{ "index": "code_r1_train_4920" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n7\\nF\\nF\\nF\\n\", \"4\\n3\\nC\\n3\\nC\\n\", \"4\\n0\\n0\\n0\\n1\\n\", \"4\\nA\\nA\\nA\\nA\\n\", \"4\\n3\\n3\\n3\\n3\\n\", \"4\\nE\\nE\\nE\\nE\\n\", \"4\\nF\\n0\\nF\\n0\\n\", \"4\\n3\\nF\\nF\\nF\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"...
{ "index": "code_r1_train_4921" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000 0\\n\", \"1\\n5\\n1000000000 1000000000 1000000000 1000000000 1000000000\\n\", \"1\\n6\\n100000000 999999999 999999999 999999999 999999999 1000000000\\n\", \"4\\n4\\n2 3 3 2\\n3\\n1 5 2\\n2\\n0 0\\n4\\n1000000000 1000000000 1000000000 100000000...
{ "index": "code_r1_train_4922" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n\", \"6\\n\", \"65\\n\", \"11\\n\", \"12\\n\", \"1752\\n\", \"449171\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"12\\n\", \"2\\n\", \"3\\n\", \"319\\n\", \"81668\\n\"]}" }
{ "index": "code_r1_train_4923" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"t\\n\", \"N\\n\", \"s\\n\", \"O\\n\", \"r\\n\", \"P\\n\", \"q\\n\", \"Q\\n\"], \"outputs\": [\"t\", \"N\", \"s\\n\", \"O\\n\", \"r\\n\", \"P\\n\", \"q\\n\", \"Q\\n\"]}" }
{ "index": "code_r1_train_4924" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 12 1\\n1 1 6\", \"2\\n0 12 0\\n1 1 6\", \"2\\n0 12 0\\n2 1 6\", \"2\\n0 56 0\\n1 1 21\", \"2\\n0 56 0\\n1 0 21\", \"2\\n0 56 1\\n0 0 21\", \"2\\n0 56 2\\n0 0 21\", \"2\\n1 33 1\\n15 2 5\"], \"outputs\": [\"23\\n33\\n\", \"1\\n33\\n\", \"1\\n34\\n\", \"1\\n3...
{ "index": "code_r1_train_4925" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4 2 10 1\\n2\\n1 3\\n2\\n6 1\\n3\\n1 4 2\\n5\\n1 2 3 4 3\\n12\\n4 27 9 1 30 20 34 46 42 16 3 16\\n\", \"6\\n4\\n4 2 10 1\\n2\\n1 3\\n2\\n6 1\\n3\\n2 4 2\\n5\\n1 2 3 4 3\\n12\\n4 27 9 1 30 20 34 46 42 16 3 16\\n\", \"6\\n4\\n4 2 10 1\\n2\\n1 3\\n2\\n6 1\\n...
{ "index": "code_r1_train_4926" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\naba\\n\", \"4 2 1\\nabcd\\n\", \"4 1 1\\nabcd\\n\", \"4 10 2\\naaaa\\n\", \"4 10 1\\naaaa\\n\", \"1 3102 3554\\nb\\n\", \"1 3102 6861\\nb\\n\", \"1 5003 6861\\nb\\n\"], \"outputs\": [\"7\", \"8\\n\", \"4\", \"14\\n\", \"12\", \"3102\", \"3102\\n\", \"5003...
{ "index": "code_r1_train_4927" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nlu ru ld rd\\n4\\nlu ld lu ru\\n0\\nlu\\n6\\nsv lu lc rd ru rd ru lu rc ld\\n0\", \"4\\nlu ru ld rd\\n4\\nlu ld lu ru\\n0\\nlu\\n6\\nsv lu lc rd ru dr ru lu rc ld\\n0\", \"4\\nlu ru ld rd\\n4\\nlu ld lu ru\\n0\\nlu\\n6\\nsv lu lc sd ru dr ru lu rc ld\\n0\", \...
{ "index": "code_r1_train_4928" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0 0\\n\", \"1\\n0 0\\n\", \"1\\n0 1\\n\", \"1\\n0 2\\n\", \"1\\n0 3\\n\", \"1\\n0 -1\\n\", \"1\\n0 -2\\n\", \"1\\n0 -3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\"]}" }
{ "index": "code_r1_train_4929" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000\\n\", \"1\\n1000000\\n\", \"1\\n1000001\\n\", \"1\\n1000100\\n\", \"1\\n0000001\\n\", \"1\\n1000110\\n\", \"1\\n0001001\\n\", \"1\\n1001110\\n\"], \"outputs\": [\"2 1\\n\", \"2 1\\n\", \"2 1 \", \"2 1 \", \"2 1 \", \"2 1 \", \"2 1 \", \"2 1 \"]}" }
{ "index": "code_r1_train_4930" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n9 3\\n\", \"1\\n8 2\\n\", \"1\\n3 7\\n\", \"1\\n2 7\\n\", \"1\\n0 4\\n\", \"1\\n25 6\\n\", \"1\\n24 6\\n\", \"1\\n25 6\\n\"], \"outputs\": [\"Alice\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\", \"Bob\\n\", \"Alice\\n\"]}" }
{ "index": "code_r1_train_4931" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n4 3 3\\n\", \"5 1 1\\n4 3 2\\n\", \"1 2 3\\n3 2 1\\n\", \"1 8 4\\n3 1 9\\n\", \"6 1 2\\n4 9 6\\n\", \"3 2 1\\n1 2 3\\n\", \"1 7 9\\n4 5 7\\n\", \"4 6 4\\n4 5 6\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\...
{ "index": "code_r1_train_4932" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n2\\n7\\n9\", \"4 1\\n1\\n2\\n7\\n2\", \"4 1\\n1\\n1\\n7\\n9\", \"3 1\\n1\\n2\\n7\\n9\", \"4 1\\n1\\n2\\n8\\n2\", \"4 1\\n1\\n3\\n7\\n2\", \"3 1\\n1\\n4\\n7\\n9\", \"4 1\\n1\\n2\\n8\\n4\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", ...
{ "index": "code_r1_train_4933" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n1 10\\n1\\n\", \"1 1 2 1\\n1 10\\n0\\n\", \"1 1 2 1\\n2 10\\n1\\n\", \"1 1 10 18\\n5 6\\n5\\n\", \"1 1 10 18\\n3 6\\n5\\n\", \"1 1 10 24\\n5 6\\n5\\n\", \"2 2 10 18\\n10 4\\n20 6\\n5 3\\n\", \"3 1 8 10\\n10 8\\n5 7\\n11 9\\n3\\n\"], \"outputs\": [\"-1\\...
{ "index": "code_r1_train_4934" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1 1\\n\", \"1 2 1 2 1 2\\n\", \"2 4 5 3 3 6\\n\", \"7 5 4 8 4 5\\n\", \"3 2 1 4 1 2\\n\", \"7 1 7 3 5 3\\n\", \"9 2 9 3 8 3\\n\", \"1 6 1 5 2 5\\n\"], \"outputs\": [\"6\\n\", \"13\\n\", \"83\\n\", \"175\\n\", \"25\\n\", \"102\\n\", \"174\\n\", \"58\\n\"]}...
{ "index": "code_r1_train_4935" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 3 5 21\\n\", \"2 4 3 0 6 17\\n\", \"2 0 3 3 5 21\\n\", \"2 4 3 0 6 17\\n\", \"4 0 4 1 5 100\\n\", \"4 0 4 1 0 100\\n\", \"4 0 4 1 0 100\\n\", \"4 0 4 1 5 100\\n\"], \"outputs\": [\"3\\n\", \"2\\n\", \"3\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"...
{ "index": "code_r1_train_4936" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 2\\n\", \"3 4\\n\", \"4 3\\n\", \"1 1\\n\", \"2 3\\n\", \"3 2\\n\", \"1 2\\n\"], \"outputs\": [\"ABA\\n\", \"AA\\nAA\\n\", \"AAAB\\nAAAC\\nAAAB\\n\", \"AAA\\nAAA\\nAAA\\nBCB\\n\", \"A\\n\", \"AAB\\nAAC\\n\", \"AA\\nAA\\nBC\\n\", \"AB\\n\"]}" }
{ "index": "code_r1_train_4937" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 294\\n132\\n\", \"2 15\\n14 1\\n\", \"2 15\\n14 2\\n\", \"4 3\\n1 3 2 3\\n\", \"5 6\\n1 2 3 4 5\\n\", \"5 5\\n1 2 3 4 5\\n\", \"4 100\\n11 3 3 6\\n\"], \"outputs\": [\"2\\n\", \"133\\n\", \"16\\n\", \"18\\n\", \"12\\n\", \"16\\n\", \"17\\n\", \"...
{ "index": "code_r1_train_4938" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0 0\\n0 0 0\\n0 0 1\\n\", \"1 0 1\\n8 8 8\\n2 0 3\\n\", \"0 0 0\\n0 0 0\\n0 0 0\\n\", \"0 0 0\\n0 1 0\\n0 0 0\\n\", \"0 0 0\\n0 0 0\\n0 0 1\\n\", \"0 0 0\\n0 0 0\\n0 0 1\\n\", \"0 0 0\\n0 1 0\\n0 0 0\\n\", \"0 0 0\\n0 0 0\\n0 0 0\\n\"], \"outputs\": [\"001\\n01...
{ "index": "code_r1_train_4939" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n\", \"5 5\\n\", \"5 5\\n\", \"1 1\\n\", \"0 1\\n\", \"0 0\\n\", \"7 10\\n\", \"6 39\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"7\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_4940" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3\\n2 5\\n6 9\", \"1\\n3\\n1 3\\n0 5\\n6 9\", \"1\\n3\\n1 3\\n2 5\\n1 6\", \"1\\n3\\n1 3\\n2 5\\n6 6\", \"1\\n3\\n0 3\\n0 5\\n6 9\", \"1\\n3\\n0 3\\n1 5\\n6 9\", \"1\\n3\\n1 3\\n2 2\\n6 9\", \"1\\n3\\n0 3\\n0 5\\n5 9\"], \"outputs\": [\"2\", \"2\\n\", \...
{ "index": "code_r1_train_4941" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n25\\n2\\n5 25\\n\", \"2\\n1\\n25\\n2\\n5 25\\n\", \"2\\n1\\n31\\n2\\n5 25\\n\", \"1\\n2\\n141440 554400\\n\", \"1\\n2\\n141440 554400\\n\", \"2\\n8\\n8 2 12 6 4 24 16 3\\n1\\n2\\n\", \"2\\n8\\n8 2 12 6 4 24 16 3\\n1\\n2\\n\", \"2\\n5\\n999983 999979 99996...
{ "index": "code_r1_train_4942" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1\\nb\\n\", \"1\\nc\\n\", \"2\\nz\\nz\\n\", \"1\\nabc\\n\", \"1\\nabc\\n\", \"2\\nz\\nz\\n\"], \"outputs\": [\"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\", \"0\", \"0\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4943" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nxdd\\n1 2 3\\n\", \"3\\nxdd\\n1 2 3\\n\", \"3\\nxdd\\n2 2 3\\n\", \"3\\nxdd\\n2 3 3\\n\", \"3\\nxdd\\n1 3 3\\n\", \"3\\nxdd\\n1 4 3\\n\", \"3\\nxdd\\n1 8 3\\n\", \"3\\nxdd\\n1 8 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"...
{ "index": "code_r1_train_4944" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n42\\n\", \"1\\n19\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n1 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4945" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"C>A\\nC<B\\nB>A\\n\", \"C<B\\nB<A\\nC>A\\n\", \"C<B\\nB>A\\nA<C\\n\", \"A>C\\nC>B\\nB<A\\n\", \"C<B\\nC<A\\nB<A\\n\", \"A>B\\nC>B\\nA<C\\n\", \"A>C\\nC<B\\nB>A\\n\", \"B>A\\nC<A\\nC>B\\n\"], \"outputs\": [\"ACB\\n\", \"Impossible\\n\", \"ACB\\n\", \"BCA\\n\", \"C...
{ "index": "code_r1_train_4946" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n000\\n122\\n001\\n2\\n57\\n75\\n4\\n0123\\n4012\\n3401\\n2340\\n1\\n9\\n8\\n42987101\\n98289412\\n55677983\\n87599023\\n92834718\\n83917348\\n19823743\\n38947912\\n\", \"5\\n3\\n000\\n122\\n001\\n2\\n57\\n75\\n4\\n0123\\n4012\\n3401\\n2340\\n1\\n9\\n8\\n4...
{ "index": "code_r1_train_4947" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 35 7\\n0\\n26\", \"2 9 4\\n20\\n91\", \"2 10 4\\n20\\n37\", \"2 17 4\\n20\\n37\", \"2 11 7\\n20\\n37\", \"2 10 4\\n39\\n37\", \"2 10 4\\n39\\n64\", \"2 10 4\\n20\\n20\"], \"outputs\": [\"1\\n\", \"11\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"4\"...
{ "index": "code_r1_train_4948" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 2\\n1\\n\", \"1 1000\\n19\\n\", \"1 1000\\n548\\n\", \"1 1000\\n548\\n\", \"1 1000\\n892\\n\", \"1 1000\\n406\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4949" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 0\\n3 1\\n3 3\\n3 3\\n1\\n4 3\\n8 2\\n4 12\\n8 9\\n5\\n0 0\\n52 2\\n8 5\\n2 2\\n5\\n3 7\\n23 2\\n4 9\\n37 1\\n0\\n0 0\", \"2 0\\n3 1\\n3 3\\n3 3\\n1\\n4 3\\n16 2\\n4 12\\n8 9\\n5\\n5 0\\n10 2\\n8 5\\n7 2\\n5\\n3 7\\n23 2\\n16 9\\n37 1\\n0\\n0 0\", \"2 0\\n3 1\\...
{ "index": "code_r1_train_4950" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n4 6\\n\", \"2\\n3 3\\n\", \"2\\n3 3\\n\", \"2\\n4 6\\n\", \"2\\n3 5\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"12\\n\", \"3\\n\", \"3\\n\", \"12\\n\", \"15\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4951" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n1 1\\n\", \"1\\n1\\n1\\n1 1\\n\", \"1\\n0\\n1\\n1 1\\n\", \"5\\n01\\n10\\n101\\n11111\\n0\\n3\\n1 2\\n6 5\\n4 4\\n\", \"5\\n01\\n10\\n101\\n11111\\n0\\n3\\n1 2\\n6 5\\n4 7\\n\", \"5\\n01\\n10\\n101\\n11111\\n0\\n3\\n1 2\\n6 5\\n4 4\\n\", \"5\\n01\\n1\...
{ "index": "code_r1_train_4952" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"abcdef\\n1\\n2\\n\", \"abcdef\\n1\\n1\\n\", \"abdcef\\n1\\n2\\n\", \"abcdef\\n1\\n2\\n\", \"vwxyz\\n2\\n2 2\\n\", \"vwwyz\\n2\\n2 2\\n\", \"vwwyz\\n2\\n2 1\\n\", \"vwxyz\\n2\\n2 2\\n\"], \"outputs\": [\"aedcbf\\n\", \"fedcba\\n\", \"aecdbf\\n\", \"aedcbf\\n\", \"...
{ "index": "code_r1_train_4953" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n9\\n9\\n\", \"4\\n1\\n8\\n7\\n42\\n\", \"4\\n1\\n1\\n7\\n42\\n\", \"4\\n1\\n3\\n7\\n42\\n\", \"4\\n1\\n1\\n7\\n27\\n\", \"4\\n1\\n2\\n7\\n27\\n\", \"4\\n2\\n3\\n7\\n27\\n\", \"4\\n2\\n1\\n9\\n27\\n\"], \"outputs\": [\"1\\n2\\n3\\n3\\n\", \"1\\n3\\n3\\...
{ "index": "code_r1_train_4954" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"1 1\\n3 2\\n\", \"1 3\\n2 1\\n\", \"1 2\\n3 1\\n\", \"1 2\\n3 1\\n\", \"1 3\\n2 1\\n\", \"1 1\\n3 2\\n\", \"1 1\\n2 1\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"-1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4955" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"<table><tr><td></td></tr></table>\\n\", \"<\\nt\\na\\nble><tr><td></td>\\n</\\ntr>\\n</\\nt\\nab\\nle>\\n\", \"<table><tr><td><table><tr><td></td></tr></table></td></tr></table>\\n\", \"&lt;table&gt;&lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;\\n\", \...
{ "index": "code_r1_train_4956" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1000\\n1 0 B\\n0 1 W\", \"2 1000\\n1 0 B\\n0 1 X\", \"2 1001\\n1 0 B\\n0 1 X\", \"2 0001\\n1 0 B\\n0 1 X\", \"1 0101\\n0 0 B\\n1 0 W\", \"0 0101\\n0 0 B\\n2 0 W\", \"0 0101\\n0 0 B\\n4 0 W\", \"0 0101\\n0 0 C\\n4 0 W\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n...
{ "index": "code_r1_train_4957" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"z\\na\\n\", \"a\\nb\\n\", \"a\\na\\n\", \"b\\nb\\n\", \"b\\na\\n\", \"ac\\na\\n\", \"z\\nww\\n\", \"ab\\nb\\n\"], \"outputs\": [\"z\\n\", \"-1\\n\", \"-1\\n\", \"-1\", \"b\", \"ac\\n\", \"z\\n\", \"ba\\n\"]}" }
{ "index": "code_r1_train_4958" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 3\", \"2 2\", \"1 3\", \"2 4\", \"0 3\", \"2 8\", \"1 8\", \"1 6\"], \"outputs\": [\"15584\\n\", \"47\\n\", \"20\\n\", \"1053\\n\", \"1\\n\", \"257337\\n\", \"1280\\n\", \"256\\n\"]}" }
{ "index": "code_r1_train_4959" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n1 2\\n2\\n0 0 0 1\\n0 0 1 0\\n4 3\\n4\\n1 0 0 0\\n3 3 2 3\\n4 0 4 0\\n0 2 0 3\\n1 3\\n0\", \"4\\n2 2\\n0\\n0 2\\n2\\n0 0 0 1\\n0 0 2 0\\n2 3\\n4\\n1 0 0 0\\n3 1 4 3\\n5 0 1 0\\n0 2 0 3\\n3 4\\n0\", \"4\\n3 2\\n0\\n0 2\\n2\\n0 0 0 1\\n0 0 1 0\\n2 3\\...
{ "index": "code_r1_train_4960" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n2 2\\n\", \"1\\n3 2\\n\", \"1\\n4 2\\n\", \"1\\n0 2\\n\", \"2\\n3 4\\n5 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4961" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"7 5\", \"5 5\", \"7 4\", \"7 2\", \"5 2\", \"3 3\", \"2 3\"], \"outputs\": [\"5\\n20\\n10\\n\", \"3\\n12\\n6\\n0\\n0\\n\", \"1\\n0\\n0\\n0\\n0\\n\", \"4\\n18\\n12\\n1\\n\", \"6\\n15\\n\", \"4\\n6\\n\", \"1\\n0\\n0\\n\", \"0\\n0\\n0\\n\"]}" }
{ "index": "code_r1_train_4962" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1001\\n01100\\n111\\n0000\\n01010\\n\", \"6\\n1\\n1001\\n01100\\n101\\n0000\\n01010\\n\", \"6\\n1\\n1111\\n01100\\n101\\n1000\\n11010\\n\", \"6\\n1\\n1010\\n11100\\n100\\n0000\\n01010\\n\", \"6\\n0\\n1011\\n01100\\n010\\n0000\\n01010\\n\", \"6\\n0\\n1001\...
{ "index": "code_r1_train_4963" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100\\n\", \"2\\n1 1\\n\", \"2\\n1 4\\n\", \"2\\n1 1\\n\", \"1\\n100\\n\"], \"outputs\": [\"3\", \"3\\n\", \"5\\n\", \"201\", \"3\", \"6\", \"3\\n\", \"201\\n\"]}" }
{ "index": "code_r1_train_4964" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4 2\\n1 13 7 0\\n1 3\\n6 2\\n10 0 10 10 6 11\\n3 3\\n4 4\\n1000000000 1000000000 1000000000 1000000000\\n1 1 1 1\\n\", \"3\\n4 2\\n1 13 7 1\\n1 3\\n6 2\\n7 10 11 0 11 19\\n3 3\\n4 4\\n1000000000 1000000000 1000000000 1000000000\\n1 1 1 1\\n\", \"3\\n4 2\\n0 1...
{ "index": "code_r1_train_4965" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 0\", \"2 0\", \"1 1\\n\", \"16 4\", \"35 7\", \"20 7\", \"20 8\"], \"outputs\": [\"3\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"8\\n\", \"21\\n\", \"6\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_4966" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0 0 0 0\\n\", \"1\\n0 0 -1 0\\n\", \"1\\n0 10 0 19\\n\", \"1\\n0 10 1 11\\n\", \"1\\n0 -1 -1 0\\n\", \"1\\n0 10 0 11\\n\", \"1\\n0 -1 -1 1\\n\", \"1\\n0 10 0 10\\n\"], \"outputs\": [\"0\", \"0\\n\", \"-10\\n\", \"-9\\n\", \"0\\n\", \"-10\\n\", \"0\\n\", \"-10...
{ "index": "code_r1_train_4967" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1 3\\n5\\n\", \"1 2\\n3\\n\", \"1 3\\n2\\n\", \"1 6\\n5\\n\", \"1 3\\n5\\n\", \"1 1\\n2\\n\", \"1 2\\n3\\n\"], \"outputs\": [\"1 0\\n\\n\", \"1 0\\n\\n\", \"1 0\\n\\n\", \"2 1\\n1\\n\", \"5 1\\n1\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\"]}" }
{ "index": "code_r1_train_4968" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"1\\n\", \"00\\n\", \"01\\n\", \"00\\n\", \"01\\n\", \"000\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4969" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6\\n\", \"9\\n\", \"8\\n\", \"71\\n\", \"13\\n\", \"16\\n\", \"26\\n\", \"19\\n\"], \"outputs\": [\"byte\\n\", \"byte\\n\", \"byte\\n\", \"byte\\n\", \"byte\\n\", \"byte\\n\", \"byte\\n\", \"byte\\n\"]}" }
{ "index": "code_r1_train_4970" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"8\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2 1\\n\", \"4\\n\", \"3\\n\", \"3 1\\n\", \"3 2\\n\", \"4 \\n\"]}" }
{ "index": "code_r1_train_4971" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\", \"1 2\", \"5 1\", \"5 0\", \"7 0\", \"7 1\", \"2 2\"], \"outputs\": [\"0\\n\", \"1\\n\", \"-1\\n\", \"5\\n\", \"10\\n\", \"21\\n\", \"14\\n\", \"-2\\n\"]}" }
{ "index": "code_r1_train_4972" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 5 9 2 6 3 7 0 10 4\", \"10\\n8 5 9 2 6 3 7 0 10 3\", \"10\\n8 5 9 2 6 3 7 1 10 4\", \"10\\n8 5 9 2 6 4 11 0 10 3\", \"10\\n8 5 9 2 6 4 11 0 10 5\", \"10\\n8 5 9 2 6 4 11 1 10 5\", \"10\\n10 5 9 2 6 4 11 1 10 5\", \"10\\n10 5 9 2 6 4 19 1 10 5\"], \"outputs...
{ "index": "code_r1_train_4973" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 11 11\\n4\\n13 13\\n2 15\\n10 9\\n5 10\\n1 3 20 18\\n4\\n6 13\\n2 15\\n1 10\\n25 4\", \"2\\n1 3 20 16\\n4\\n13 13\\n2 15\\n10 10\\n5 10\\n0 3 20 0\\n4\\n1 8\\n1 15\\n10 10\\n25 4\", \"2\\n1 1 11 11\\n4\\n13 25\\n2 15\\n10 9\\n5 14\\n1 3 20 18\\n4\\n6 13\\...
{ "index": "code_r1_train_4974" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"111100001111\\n111000001111\\n110000001111\\n100000001111\\n000100010000\\n000000111000\\n000001111100\\n100011111110\\n110001111100\\n111000111000\\n111100010000\\n000000000000\\n\\n010001111100\\n110010000010\\n010010000001\\n010000000001\\n010000000110\\n01000...
{ "index": "code_r1_train_4975" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"16 5 2\\n8 2\\n5 1\\n\", \"16 5 2\\n8 2\\n2 1\\n\", \"16 5 2\\n8 2\\n5 1\\n\", \"153 8 1\\n96 83995\\n\", \"200 8 1\\n96 83995\\n\", \"153 40 1\\n96 83995\\n\", \"153 11 1\\n96 83995\\n\", \"153 11 1\\n96 74103\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\"...
{ "index": "code_r1_train_4976" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n12\\n1\\n6\\n3\\n8\\n2\\n0\\n7\\n2\\n1\\n0\\n0\", \"4\\n1\\n1\\n3\\n12\\n1\\n6\\n1\\n8\\n2\\n0\\n7\\n2\\n1\\n0\\n0\", \"4\\n1\\n1\\n3\\n17\\n2\\n6\\n3\\n8\\n2\\n0\\n7\\n2\\n1\\n0\\n0\", \"4\\n1\\n2\\n3\\n12\\n1\\n6\\n1\\n8\\n2\\n0\\n7\\n2\\n1\\n0\...
{ "index": "code_r1_train_4977" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nxabb\\naabx\\ntechnocup\\ntechnocup\\na\\nz\\n\", \"3\\nxabb\\naabx\\nteohnccup\\ntechnocup\\na\\nz\\n\", \"3\\nbcbw\\nxaaa\\ntdohncbup\\npvconhcet\\nb\\nz\\n\", \"3\\nxabb\\naabx\\ntdohnccup\\ntechnocup\\na\\nz\\n\", \"3\\nxabb\\nxbaa\\ntdohnccup\\ntechnocup...
{ "index": "code_r1_train_4978" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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()\\n\", \"2\\n()\\n\", \"2\\n()\\n\", \"4\\n(())\\n\", \"4\\n(())\\n\", \"4\\n()()\\n\", \"4\\n(())\\n\", \"8\\n((()))()\\n\"], \"outputs\": [\"00\\n\", \"00\\n\", \"00\\n\", \"0110\\n\", \"0110\\n\", \"0000\", \"0110\\n\", \"01001000\\n\"]}" }
{ "index": "code_r1_train_4979" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"1\\n5\\n\", \"1\\n3\\n\", \"1\\n0\\n\", \"1\\n-1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4980" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n5 21 8 7 9\\n6 3\\n2 3 7 2 18 7\\n8 7\\n2 21 9 7 7 14 2 3\\n\", \"3\\n5 1\\n5 21 8 7 9\\n6 3\\n2 3 7 2 18 7\\n8 7\\n2 11 9 7 7 14 2 3\\n\", \"3\\n5 1\\n5 21 8 7 9\\n6 3\\n2 3 7 2 18 7\\n8 7\\n2 11 9 7 7 14 3 3\\n\", \"3\\n5 1\\n5 21 8 7 9\\n6 3\\n2 3 7 ...
{ "index": "code_r1_train_4981" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n4\\n5\\n0\", \"3\\n0\\n7\\n61\", \"3\\n0\\n8\\n24\", \"3\\n0\\n12\\n5\", \"3\\n3\\n4\\n70\", \"3\\n32\\n5\\n7\", \"3\\n1\\n7\\n44\", \"3\\n1\\n5\\n44\"], \"outputs\": [\"0\\n1\\n1\\n\", \"1\\n0\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n1\\n\", \"1\\n0\\n1\\n\", \...
{ "index": "code_r1_train_4982" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"2 3\\n10 1\\n\", \"2 3\\n10 5\\n\", \"2 3\\n10 5\\n\", \"2 3\\n10 1\\n\", \"2 3\\n13 5\\n\", \"2 2\\n10 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"10\\n\", \"10\\n\", \"2\\n\", \"10\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4983" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1\\n\", \"1\\n2 1\\n1\\n1\\n\", \"1\\n2 1\\n1\\n1\\n\", \"1\\n1 1\\n1\\n1\\n\", \"1\\n0 1\\n1\\n1\\n\", \"1\\n0 1\\n1\\n2\\n\", \"1\\n0 1\\n1\\n3\\n\", \"1\\n0 1\\n1\\n5\\n\"], \"outputs\": [\"1 1\\n1 1\\n\", \"0 0\\n\", \"0 0\\n\", \"1 1\\n1 1\\n\"...
{ "index": "code_r1_train_4984" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\\n\", \"3\\n\", \"1\\n\", \"4\\n\", \"5\\n\", \"8\\n\", \"6\\n\"], \"outputs\": [\"1\\n1 \", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n2\\n\", \"0\\n\\n\", \"1\\n4\\n\", \"1\\n3\\n\"]}" }
{ "index": "code_r1_train_4985" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"2 1 2\\n\", \"2 2 1\\n\", \"2 3 4\\n\", \"2 1 1\\n\", \"1 1 1\\n\", \"1 2 1\\n\", \"1 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4986" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n920400783 7\\n\", \"1\\n718772242 7\\n\", \"1\\n718772242 8\\n\", \"1\\n718772242 3\\n\", \"1\\n718772242 5\\n\", \"1\\n589741341 5\\n\", \"1\\n589741341 9\\n\", \"1\\n459104377 9\\n\"], \"outputs\": [\"131485833\\n\", \"102681755\\n\", \"89846534\\n\", \"239...
{ "index": "code_r1_train_4987" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"2\\n0 1\\n\", \"2\\n1 0\\n\", \"2\\n0 0\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4988" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n23\\n\", \"1\\n1\\n46\\n\", \"1\\n1\\n114\\n\", \"1\\n1\\n157\\n\", \"1\\n1\\n305\\n\", \"1\\n1\\n292\\n\", \"1\\n1\\n430\\n\", \"2\\n3\\n1 2 2\\n4\\n5 5 5 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YE...
{ "index": "code_r1_train_4989" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 17\\n11 12\\n2\\nN -1\\nE 1\\n2\\n10 11\\n8 12\\n2\\nN 3\\nW 1\\n3\\n0 15\\n5 8\\n5 12\\n5\\nW 20\\nS 9\\nN 5\\nE 11\\nS 10\\n0\", \"2\\n3 17\\n11 12\\n2\\nN -1\\nE 1\\n2\\n10 11\\n11 12\\n2\\nN 3\\nW 1\\n3\\n0 15\\n5 8\\n5 12\\n5\\nW 20\\nS 9\\nN 5\\nE 11\...
{ "index": "code_r1_train_4990" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"D B E\\n\", \"C F A\\n\", \"D B B\\n\", \"A F D\\n\", \"A H B\\n\", \"A B C\\n\", \"F E A\\n\", \"A D F\\n\"], \"outputs\": [\"strange\\n\", \"major\\n\", \"strange\\n\", \"minor\\n\", \"strange\\n\", \"strange\\n\", \"strange\\n\", \"minor\\n\"]}" }
{ "index": "code_r1_train_4991" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 3 4 6\\n7\\n1 4 2 3 6 4 9\\n5\\n5 4 3 2 1\\n1\\n9\\n\", \"4\\n4\\n5 3 4 6\\n7\\n1 4 2 3 6 4 9\\n5\\n5 4 6 2 1\\n1\\n9\\n\", \"4\\n4\\n5 3 4 6\\n7\\n1 4 2 3 6 4 9\\n5\\n5 5 6 2 1\\n1\\n9\\n\", \"4\\n4\\n5 3 4 6\\n7\\n1 4 2 1 6 4 9\\n5\\n5 4 6 2 1\\n1\\n9...
{ "index": "code_r1_train_4992" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 1\", \"2 30 9\", \"2 7 26\", \"2 1 26\", \"2 2 26\", \"2 4 26\", \"2 6 26\", \"1 7 26\"], \"outputs\": [\"6\", \"225084266\\n\", \"8192\\n\", \"2\\n\", \"8\\n\", \"128\\n\", \"2048\\n\", \"64\\n\"]}" }
{ "index": "code_r1_train_4993" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"3\\n1 2 3\\n1 1\\n\", \"3\\n1 1 3\\n1 1\\n\", \"3\\n2 2 3\\n1 2\\n\", \"3\\n2 0 3\\n1 2\\n\", \"3\\n2 0 1\\n1 2\\n\", \"3\\n1 2 3\\n1 1\\n\", \"3\\n2 2 3\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\"...
{ "index": "code_r1_train_4994" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\", \"6\", \"5\", \"0\", \"8\", \"9\", \"3\"], \"outputs\": [\"1\\n\", \"8\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"4\"]}" }
{ "index": "code_r1_train_4995" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"_\\n\", \"a\\n\", \"D\\n\", \"_\\n\", \"?\\n\", \"?\\n\", \"R\\n\"], \"outputs\": [\"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\", \"Too weak\\n\"]}" }
{ "index": "code_r1_train_4996" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"3\\n1 4 2\", \"3\\n1 2 0\", \"3\\n1 8 2\", \"3\\n1 6 2\", \"3\\n1 0 0\", \"3\\n1 6 3\", \"3\\n0 0 3\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4997" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 0\\n\", \"3 0\\n\", \"3 0\\n\", \"6 0\\n\", \"9 0\\n\", \"2 0\\n\", \"2 0\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4998" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4\\nDCBA\\n7\\nXYZZYZZ\", \"2\\n4\\nDCBA\\n7\\nXYZZYZY\", \"2\\n4\\nDCBA\\n7\\nXZZZYZZ\", \"2\\n4\\nABCD\\n7\\nXYZZYZY\", \"2\\n4\\nCBAD\\n7\\nXYZZYZY\", \"2\\n4\\nCBAD\\n7\\nYZYZZYX\", \"2\\n4\\nCDAB\\n7\\nYZYZZYX\", \"2\\n4\\nCDAB\\n7\\nYZYZZYW\"], \"output...
{ "index": "code_r1_train_4999" }