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\": [\"5\\n1 1 5\\n1 5 11\\n2 1 2\\n1 2 9\\n2 1 2\\n\", \"5\\n1 1 5\\n1 5 11\\n2 1 2\\n1 2 9\\n2 1 3\\n\", \"5\\n1 2 5\\n1 5 11\\n2 1 2\\n1 2 4\\n2 1 3\\n\", \"5\\n1 2 5\\n1 5 11\\n2 1 2\\n1 2 9\\n2 1 3\\n\", \"5\\n1 2 5\\n1 5 11\\n2 1 2\\n1 3 9\\n2 1 3\\n\", \"5\\n1 1 ...
{ "index": "code_r1_train_4600" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n4 3 5 6 7\", \"5\\n2 3 3 6 7\", \"5\\n6 2 5 0 3\", \"5\\n9 2 2 0 6\", \"5\\n0 0 7 6 0\", \"5\\n0 0 7 1 0\", \"5\\n0 9 2 0 2\", \"5\\n0 0 7 0 0\"], \"outputs\": [\"11\\n\", \"9\\n\", \"8\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"2\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4601" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9850\\n38\\n8\\n357\\n78\\n55\\n946\\n2795\\n4727\\n980\\n0\", \"9850\\n38\\n8\\n357\\n67\\n55\\n946\\n2795\\n4727\\n980\\n0\", \"9850\\n38\\n8\\n357\\n380\\n55\\n946\\n2795\\n4727\\n980\\n0\", \"9850\\n38\\n8\\n357\\n435\\n55\\n946\\n2795\\n4727\\n980\\n0\", \"9...
{ "index": "code_r1_train_4602" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"3 2\\n1 2\\n2 1 3\\n\", \"3 2\\n2 1 2\\n1 3\\n\", \"5 3\\n1 4\\n3 1 2 3\\n1 5\\n\", \"7 3\\n3 1 3 7\\n2 2 5\\n2 4 6\\n\", \"8 5\\n2 1 2\\n2 3 4\\n1 5\\n2 6 7\\n1 8\\n\", \"10 10\\n1 5\\n1 4\\n1 10\\n1 3\\n1 7\\n1 1\\n1 8\\n1 6\\n1 9\\n1 2\\n\", ...
{ "index": "code_r1_train_4603" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\\n\", \"8\\n\", \"4\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"2\\n\"], \"outputs\": [\"1\\n\", \"48\\n\", \"44\\n\", \"20\\n\", \"36\\n\", \"32\\n\", \"28\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_4604" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1\\n\", \"1 4\\n2 3 4 1\\n\", \"1 4\\n2 3 4 1\\n\", \"2 3\\n3 1 2\\n1 2 3\\n\", \"2 3\\n3 1 2\\n1 2 3\\n\", \"2 4\\n1 3 2 4\\n1 3 4 2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\", \"NO\\n\", \"NO\", \"YES\\n\", \"YES\...
{ "index": "code_r1_train_4605" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"FC\", \"DF\", \"EF\", \"FD\", \"FE\", \"GE\", \"GD\", \"ED\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_4606" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 7\\n\", \"4 3\\n\", \"1 4\\n\", \"2 1\\n\", \"1 8\\n\", \"7 2\\n\", \"7 1\\n\", \"2 5\\n\"], \"outputs\": [\"20\\n\", \"12\\n\", \"2\\n\", \"0\\n\", \"6\\n\", \"12\\n\", \"6\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_4607" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n()\\n(?)\\n(??)\\n??()\\n)?(?\\n\", \"5\\n()\\n(?)\\n)??(\\n??()\\n)?(?\\n\", \"5\\n()\\n(?)\\n(??)\\n??()\\n?(?)\\n\", \"5\\n()\\n?()\\n(??)\\n??()\\n)?(?\\n\", \"5\\n()\\n(?)\\n(??)\\n)(??\\n?(?)\\n\", \"5\\n)(\\n?()\\n(??)\\n??()\\n)?(?\\n\", \"5\\n)(\\n(?...
{ "index": "code_r1_train_4608" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n-1 1\\n\", \"2\\n-1 1\\n\", \"3\\n1 2 -3\\n\", \"3\\n1 2 -3\\n\", \"4\\n1 -5 3 2\\n\", \"4\\n1 -5 2 2\\n\", \"4\\n2 -5 2 2\\n\", \"4\\n1 -5 4 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4609" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4 2\\n\", \"5 4\\n\", \"7 5\\n\", \"4 1\\n\", \"9 8\\n\", \"8 2\\n\", \"5 3\\n\"], \"outputs\": [\"1 2 \\n\", \"1 3 2 4 \", \"1 5 2 4 3 \\n\", \"1 6 2 5 3 4 7 \", \"1 2 3 4 \\n\", \"1 9 2 8 3 7 4 6 5 \\n\", \"1 3 2 4 5 6 7 8 \", \"1 4 2 3 5 \"]}" }
{ "index": "code_r1_train_4610" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1 1\\n1 0\\n\", \"1 2\\n1 0\\n\", \"1 4\\n5 -3\\n\", \"1 4\\n5 -3\\n\", \"2 2\\n1 2\\n2 -2\\n\", \"2 2\\n1 2\\n2 -2\\n\", \"2 2\\n1 2\\n4 -2\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \...
{ "index": "code_r1_train_4611" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\", \"2 1\", \"3 1\", \"2 2\", \"2 4\", \"4 1\", \"1 4\", \"9 5\"], \"outputs\": [\"9\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4612" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 8 1\\n2 6 7\\n\", \"3 8 2\\n4 6 8\\n\", \"3 8 3\\n1 2 6\\n\", \"3 8 3\\n1 2 6\\n\", \"3 8 2\\n4 6 8\\n\", \"3 8 1\\n2 6 7\\n\"], \"outputs\": [\"1\\n\", \"1\", \"6\\n\", \"4\\n\", \"3\\n\", \"3\", \"4\", \"6\"]}" }
{ "index": "code_r1_train_4613" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n\", \"1 2\\n\", \"1 3\\n\", \"1 4\\n\", \"1 5\\n\", \"1 6\\n\", \"1 7\\n\", \"2 2\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4614" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 3 8\\n6\\n6\\n5\", \"3 3\\n9 3 8\\n4\\n6\\n3\", \"3 3\\n9 3 8\\n6\\n6\\n2\", \"3 2\\n1 3 8\\n4\\n6\\n3\", \"3 3\\n9 2 8\\n4\\n6\\n5\", \"3 3\\n9 3 8\\n4\\n6\\n1\", \"3 2\\n0 3 8\\n4\\n3\\n3\", \"3 2\\n0 3 4\\n4\\n6\\n4\"], \"outputs\": [\"3\\n3\\n4\\n\", ...
{ "index": "code_r1_train_4615" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\ne\\ne\\na\\n\", \"1 1\\ne\\na\\ne\\na\\n\", \"1 1\\na\\ne\\ne\\ne\\n\", \"1 1\\ne\\ne\\ne\\ne\\n\", \"1 1\\na\\na\\na\\na\\n\", \"1 1\\na\\ne\\na\\ne\\n\", \"1 1\\na\\na\\na\\ne\\n\", \"1 1\\ne\\na\\ne\\ne\\n\"], \"outputs\": [\"abba\\n\", \"abab\\n\", ...
{ "index": "code_r1_train_4616" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"1\\n1 0\\n\", \"3\\n3 1\\n2 1\\n4 0\\n\", \"3\\n6 1\\n2 1\\n4 0\\n\", \"3\\n6 1\\n2 0\\n4 0\\n\", \"3\\n3 1\\n2 1\\n4 0\\n\", \"3\\n11 1\\n2 0\\n4 0\\n\", \"5\\n22 59\\n26 60\\n72 72\\n47 3\\n97 16\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"5\\n2\...
{ "index": "code_r1_train_4617" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n(Follow.my.style\\n.........starting.from.round.brackets)\\n{then.curly.brackets\\n.....[.and.finally\\n.......square.brackets.]}\\n(Thank.you\\n{for.showing.me\\n[all\\nthe.secrets]})\\n4 2\\n(This.time.I.will.show.you\\n.........(how.to.use.round.brackets...
{ "index": "code_r1_train_4618" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1000000\\n\", \"1\\n999999 1000000\\n\", \"5\\n1 3\\n5 8\\n2 5\\n3 19\\n56678 164422\\n\", \"3\\n186850 373693\\n1 4\\n313129 626299\\n\", \"6\\n1 4\\n1 4\\n4 5\\n631059 999974\\n1 2\\n1 2\\n\", \"4\\n2 3\\n183887 367789\\n3 4\\n316073 632198\\n\", \"5\...
{ "index": "code_r1_train_4619" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 3\\n2\\n433380201\\n0\\n\", \"1\\n3\\n1 8 1\\n2\\n433380201\\n0\\n\", \"1\\n3\\n1 8 3\\n2\\n5593576686\\n0\\n\", \"1\\n3\\n1 8 2\\n2\\n5593576686\\n0\\n\", \"1\\n3\\n1 8 1\\n2\\n5593576686\\n0\\n\", \"1\\n3\\n1 8 2\\n2\\n5366841113\\n0\\n\", \"1\\n3\\...
{ "index": "code_r1_train_4620" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n\", \"7\\n\", \"4\\n\", \"6\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"9\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4621" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n3\\n1 4 15\\n1 2 1\\n3\\n18 40 30\\n6 2 22\", \"2\\n3\\n1 4 15\\n2 2 1\\n3\\n18 40 30\\n6 2 22\", \"2\\n3\\n1 4 15\\n1 2 1\\n3\\n26 40 30\\n6 2 22\", \"2\\n3\\n2 4 15\\n2 2 1\\n3\\n18 40 30\\n6 2 22\", \"2\\n3\\n2 4 15\\n2 0 1\\n3\\n18 40 30\\n6 2 22\", \"2\\...
{ "index": "code_r1_train_4622" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"1 2 9\", \"1 1 9\", \"1 2 7\", \"0 2 6\", \"2 2 9\", \"2 1 9\", \"1 2 5\"], \"outputs\": [\"Unlucky Chef\\n\", \"Lucky Chef\\n\", \"Lucky Chef\\n\", \"Unlucky Chef\\n\", \"Unlucky Chef\\n\", \"Unlucky Chef\\n\", \"Unlucky Chef\\n\", \"Lucky Chef\\n\"]}...
{ "index": "code_r1_train_4623" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naa\\naA\\n3 0\\naba\\nbab\\naba\\n4 4\\naabb\\naabb\\nbbaa\\nbbaa\", \"3\\n2 2\\naa\\naA\\n3 3\\naba\\nbab\\naba\\n4 4\\naabb\\naabb\\nbbaa\\nbaaa\", \"3\\n2 2\\naa\\naA\\n3 3\\naba\\nb`b\\naba\\n4 4\\naabb\\naabb\\nbba`\\nbaaa\", \"3\\n2 2\\nab\\naA\\n...
{ "index": "code_r1_train_4624" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 1\\n3 6 1\\n\", \"3\\n1 1 1\\n3 2 1\\n3 7 1\\n\", \"3\\n1 1 1\\n3 2 0\\n3 7 1\\n\", \"3\\n1 1 1\\n1 2 1\\n3 3 1\\n\", \"3\\n1 1 1\\n2 2 1\\n3 7 1\\n\", \"3\\n1 1 1\\n2 2 1\\n3 9 1\\n\", \"3\\n1 1 1\\n1 2 1\\n3 9 1\\n\", \"3\\n1 1 1\\n3 2 2\\n3 7 1...
{ "index": "code_r1_train_4625" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"3 1 1\", \"3 1 5\", \"1 1 3\", \"6 1 5\", \"1 2 2\", \"0 2 2\", \"0 2 4\"], \"outputs\": [\"1 1 0\", \"1\\n\", \"1 1 0 0 0\\n\", \"1 0 0\\n\", \"0 1 1 0 0\\n\", \"1 0\\n\", \"0 0\\n\", \"0 0 0 0\\n\"]}" }
{ "index": "code_r1_train_4626" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n3\\n1 2 1\\n5\\n4 7 9 6 8\\n5\\n1 3 1 3 1\\n4\\n5 2 1 10\\n\", \"4\\n3\\n1 2 1\\n5\\n4 7 9 6 8\\n5\\n2 3 1 3 1\\n4\\n5 2 1 10\\n\", \"4\\n3\\n1 2 1\\n5\\n4 7 9 6 8\\n5\\n2 3 1 3 2\\n4\\n5 2 1 10\\n\", \"4\\n3\\n1 2 1\\n5\\n4 7 9 6 8\\n5\\n2 3 1 3 2\\n4\\n5 2 ...
{ "index": "code_r1_train_4627" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n17\\n\", \"2\\n1 2\\n\", \"1\\n500\\n\", \"1\\n987\\n\", \"1\\n585\\n\", \"1\\n435\\n\", \"1\\n474\\n\"], \"outputs\": [\"1\\n\", \"17\\n\", \"1\\n\", \"500\\n\", \"987\\n\", \"585\\n\", \"435\\n\", \"474\\n\"]}" }
{ "index": "code_r1_train_4628" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAZAMON APPLE\\nAZAMON AAAAAAAAAAALIBABA\\nAPPLE BANANA\\n\", \"3\\nAZAMON APPLE\\nAZAMON AAAAAAAAAAALIBABA\\nAPPLE BANANA\\n\", \"3\\nAZAMON APPLE\\nAZOMAN AAAAAAAAAAALIBABA\\nAPPLE BANANA\\n\", \"3\\nAZAMNO ELPPA\\nAZAMON AAAAAAAAAAALIBABA\\nAPPLE BANANA\\n\...
{ "index": "code_r1_train_4629" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4\\n1 4\\n2 3\\n6 2\\n8 1\", \"4 4\\n1 4\\n2 3\\n6 2\\n8 0\", \"4 4\\n0 4\\n2 3\\n6 2\\n8 1\", \"4 4\\n2 4\\n3 3\\n6 2\\n8 1\", \"4 4\\n1 4\\n2 6\\n6 2\\n8 1\", \"4 2\\n0 0\\n1 1\\n2 2\\n3 3\", \"4 4\\n1 4\\n3 3\\n6 2\\n8 1\", \"4 4\\n1 4\\n3 3\\n6 2\\n8 1\\n\"...
{ "index": "code_r1_train_4630" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n2 5\", \"0 0\\n0 1\\n2 5\", \"0 0\\n0 1\\n1 5\", \"0 0\\n0 2\\n1 5\", \"0 0\\n0 2\\n1 7\", \"0 0\\n0 2\\n1 3\", \"1 1\\n0 4\\n12 5\", \"1 2\\n-1 2\\n2 5\"], \"outputs\": [\"0\\n\", \"infinity\\n\", \"infinity\\n\", \"infinity\\n\", \"infinity\\n\", \"...
{ "index": "code_r1_train_4631" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n1 2\\n\", \"2 1 2 1\\n1 2\\n\", \"2 1 2 2\\n1 2\\n\", \"2 1 1 2\\n1 2\\n\", \"3 2 2 3\\n1 2\\n2 3\\n\", \"3 2 1 3\\n1 2\\n2 3\\n\", \"3 2 2 3\\n1 2\\n2 3\\n\", \"3 2 1 3\\n1 2\\n2 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", ...
{ "index": "code_r1_train_4632" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n6\\n3 9 2 6 7 5\\n1\\n1000000\\n2\\n2 1\\n10\\n31 5 59 26 53 58 97 93 23 84\\n7\\n3 2 1 2 3 4 5\\n\", \"5\\n6\\n3 5 4 6 7 4\\n1\\n1000000\\n2\\n2 0\\n10\\n2 41 59 26 53 58 97 93 23 84\\n7\\n3 2 1 2 3 4 5\\n\", \"5\\n6\\n3 9 2 6 7 5\\n1\\n1000000\\n2\\n2 1\\n1...
{ "index": "code_r1_train_4633" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n7 7 3 5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 5\\n4 5 2 3\\n1 2\\n2 3\\n3 4\\n4 1\\n4 2\\n4 3 2 1\\n1 2\\n2 3\\n4 1\\n\", \"3\\n7 7 3 5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 5\\n4 5 2 3\\n1 2\\n2 3\\n4 4\\n4 1\\n4 2\\n4 3 2 1\\n1 2\\n2 3\\n4 1\\n\", \"3\\...
{ "index": "code_r1_train_4634" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n0\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n0\\n1\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4635" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n8\\n\", \"1\\n20\\n\", \"1\\n19\\n\"], \"outputs\": [\"6\\n\", \"2\\n\", \"4\\n\", \"3\\n\", \"5\\n\", \"8\\n\", \"20\\n\", \"19\\n\"]}" }
{ "index": "code_r1_train_4636" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"11\\n\", \"101010\\n\", \"111010\\n\", \"111110\\n\", \"110010\\n\", \"110011\\n\", \"111011\\n\"], \"outputs\": [\"0\\n\", \"3\\n\", \"9\\n\", \"8\\n\", \"7\\n\", \"9\\n\", \"9\\n\", \"8\\n\"]}" }
{ "index": "code_r1_train_4637" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\", \"0 1\", \"2 5\", \"2 2\", \"0 5\", \"0 2\", \"3 1\"], \"outputs\": [\"0 0 0 0\\n\", \"1\\n\", \"0\\n\", \"1 2 2 2 2\\n\", \"1 2\\n\", \"0 0 0 0 0\\n\", \"0 0\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4638" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n6\\n\", \"1\\n8\\n\", \"1\\n11\\n\", \"1\\n10\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4639" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2 2\\n0 5\\n\", \"1\\n2 2\\n0 5\\n\", \"1\\n2 2\\n0 8\\n\", \"1\\n2 2\\n0 0\\n\", \"1\\n2 2\\n1 8\\n\", \"1\\n2 4\\n0 0\\n\", \"1\\n2 1\\n0 0\\n\", \"1\\n2 2\\n-1 0\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2...
{ "index": "code_r1_train_4640" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 4\\n1010\\n1101\\n\", \"4 4\\n1010\\n1111\\n\", \"4 4\\n1010\\n1011\\n\", \"4 4\\n1110\\n1111\\n\", \"4 4\\n1000\\n1011\\n\", \"4 4\\n0111\\n1111\\n\", \"4 4\\n0111\\n1101\\n\", \"4 4\\n0010\\n1011\\n\"], \"outputs\": [\"12\\n\", \"14\\n\", \"12\\n\", \"22\\n\"...
{ "index": "code_r1_train_4641" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabacaba\\n1 3\\n2 5\\n1 7\\n\", \"7 3\\nabacaba\\n2 3\\n2 5\\n1 7\\n\", \"7 3\\nabacaba\\n2 6\\n2 5\\n1 7\\n\", \"7 3\\nabacaba\\n2 6\\n2 6\\n1 7\\n\", \"7 3\\nabacaba\\n2 3\\n4 5\\n1 7\\n\", \"7 1\\nabacaba\\n2 6\\n2 5\\n1 7\\n\", \"7 2\\nabacaba\\n2 6\\n2...
{ "index": "code_r1_train_4642" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n2 3\\n\", \"1\\n2 2\\n\", \"1\\n0 2\\n\", \"1\\n1 3\\n\", \"1\\n2 4\\n\", \"1\\n5 20\\n\", \"1\\n9 20\\n\"], \"outputs\": [\"8\\n\", \"8\\n\", \"4\\n\", \"0\\n\", \"1\\n\", \"16\\n\", \"430973056\\n\", \"953271190\\n\"]}" }
{ "index": "code_r1_train_4643" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nacab\\nzzqzqq\\nabc\\nkklkwwww\", \"4\\nacab\\nzzqzqq\\ncba\\nkklkwwww\", \"4\\nacbb\\nzzqzqq\\ncba\\nkkmkwvww\", \"4\\ncbba\\nqrzqyz\\nbab\\nkllkxwvw\", \"4\\naccc\\nqrzqyz\\nbab\\nkklkxwvw\", \"4\\nabbb\\nzzqzqq\\ncba\\nkkmkwwww\", \"4\\ncbbb\\nqqzqyz\\nbab...
{ "index": "code_r1_train_4644" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n42\\n\", \"1\\n42\\n\", \"1\\n15\\n\", \"1\\n16\\n\", \"1\\n23\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4645" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 2\\n\", \"6 3\\n\", \"5 3\\n\", \"1 1\\n\", \"2 1\\n\", \"2 2\\n\", \"1 1\\n\"], \"outputs\": [\"10 10\\n\", \"1 1\\n\", \"3 6\\n\", \"2 3\\n\", \"0 0\\n\", \"1 1\\n\", \"0 0\\n\", \"0 0\\n\"]}" }
{ "index": "code_r1_train_4646" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n-1 0 1\\n\", \"2\\n-1 -1 1\\n\", \"2\\n50 54 50\\n\", \"2\\n50 50 50\\n\", \"3\\n-1 1 1 1 1\\n\", \"3\\n-2 3 4 5 6\\n\", \"3\\n-2 3 0 5 6\\n\", \"2\\n-1 -112 -1\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"154\\n\", \"150\\n\", \"5\\n\", \"20\\n\", \"16\\n\", \...
{ "index": "code_r1_train_4647" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 7\\n0 0\", \"2 7\\n0 0\", \"7 9\\n0 0\", \"5 6\\n0 0\", \"7 6\\n0 0\", \"2 2\\n0 0\", \"7 2\\n0 0\", \"6 9\\n0 0\"], \"outputs\": [\"1\\n\", \"0\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_4648" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n1\\n\", \"5\\n4 1 5 4 1\\n6\\n1\\n6\\n2\\n3\\n4\\n5\\n\", \"5\\n4 4 4 4 4\\n6\\n1\\n3\\n6\\n5\\n2\\n4\\n\", \"1\\n1000000000\\n1\\n1000000000\\n\", \"16\\n1 1 4 3 2 1 1 6 4 4 1 1 4 4 6 4\\n50\\n46\\n47\\n48\\n23\\n24\\n25\\n15\\n16\\n17\\n11\\n12\\n13...
{ "index": "code_r1_train_4649" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 2 3\\n4 5 6\\n4\", \"1\\n3 1\\n1 4 3\\n4 5 6\\n4\", \"1\\n6 1\\n1 4 3\\n4 5 6\\n1\", \"1\\n6 1\\n0 4 3\\n4 5 6\\n1\", \"1\\n3 1\\n1 2 1\\n4 5 6\\n4\", \"1\\n6 1\\n0 8 6\\n2 5 6\\n1\", \"1\\n8 1\\n1 1 3\\n4 6 2\\n0\", \"1\\n1 1\\n2 8 2\\n4 2 4\\n0\"], ...
{ "index": "code_r1_train_4650" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 9\\n3\\n2 2\\n1 1\\n2 1\\n\", \"2\\n2 9\\n3\\n2 1\\n1 1\\n2 1\\n\", \"2\\n4 9\\n3\\n2 1\\n1 1\\n2 1\\n\", \"2\\n4 9\\n3\\n2 1\\n2 1\\n2 1\\n\", \"2\\n2 9\\n3\\n2 2\\n1 1\\n2 2\\n\", \"2\\n...
{ "index": "code_r1_train_4651" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"U\\n\", \"L\\n\", \"R\\n\", \"D\\n\", \"LLUD\", \"EULL\", \"EULM\", \"DULL\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\"]}" }
{ "index": "code_r1_train_4652" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 0\\n\", \"6 3\\n1 4\\n1 3\\n5 1\\n\", \"6 3\\n1 2\\n4 2\\n5 2\\n\", \"6 3\\n1 4\\n4 2\\n5 1\\n\", \"6 3\\n1 4\\n5 2\\n5 4\\n\", \"6 3\\n1 2\\n4 2\\n5 1\\n\", \"6 3\\n1 4\\n4 3\\n5 1\\n\", \"6 3\\n1 5\\n4 2\\n5 4\\n\"], \"outputs\": [\"1 2 3 4 5\\n\", \"2 3 4 5 ...
{ "index": "code_r1_train_4653" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n1 0\\n\", \"2 2\\n0 0\\n0 0\\n\", \"2 2\\n0 0\\n0 0\\n\", \"2 2\\n0 0\\n0 1\\n\", \"2 2\\n0 1\\n0 0\\n\", \"2 2\\n0 2\\n0 0\\n\", \"2 2\\n0 4\\n0 0\\n\", \"2 2\\n0 6\\n0 0\\n\"], \"outputs\": [\"-1\", \"0\", \"0\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \...
{ "index": "code_r1_train_4654" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\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_4655" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n5\\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n8\\n\", \"1\\n14\\n\", \"2\\n1 2\\n\", \"2\\n1 3\\n\"], \"outputs\": [\"4 0\\n\", \"1 0\\n\", \"4 0\\n\", \"1 0\\n\", \"7 0\\n\", \"13 0\\n\", \"1 0\\n\", \"2 0\\n\"]}" }
{ "index": "code_r1_train_4656" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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?W\\n\", \"1\\nW?\\n\", \"1\\n?W\\n\", \"2\\n??\\nW?\\n\", \"2\\n??\\n?W\\n\", \"2\\n??\\nW?\\n\", \"4\\nBB\\n??\\nW?\\n??\\n\", \"4\\nBB\\n??\\n?W\\n??\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"2\\n\", \"2\\n\", \"2\", \"10\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_4657" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nu\\n\", \"1 1\\nu\\n\", \"2 1\\nzz\\n\", \"2 1\\nzz\\n\", \"4 3\\nhack\\n\", \"4 3\\nzzzz\\n\", \"4 3\\nhack\\n\", \"4 3\\nzzzz\\n\"], \"outputs\": [\"\\n\", \"\\n\", \"z\\n\", \"z\\n\", \"k\\n\", \"z\\n\", \"k\\n\", \"z\\n\"]}" }
{ "index": "code_r1_train_4658" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 3\\n3 3\\n\", \"2 3\\n3 3\\n\", \"2 6\\n3 3\\n\", \"2 6\\n5 3\\n\", \"2 6\\n2 3\\n\", \"2 6\\n3 5\\n\", \"2 7\\n3 5\\n\", \"2 9\\n3 5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4659" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n75 2\\n\", \"1\\n2\\n65 0\\n\", \"1\\n2\\n777 1\\n\", \"1\\n2\\n777 1\\n\", \"1\\n2\\n386 1\\n\", \"1\\n2\\n665 1\\n\", \"1\\n2\\n449 1\\n\", \"1\\n2\\n327 1\\n\"], \"outputs\": [\"39\\n\", \"33\\n\", \"389\\n\", \"389\\n\", \"194\\n\", \"333\\n\", \"225\...
{ "index": "code_r1_train_4660" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\\n\", \"1\\n\", \"100\\n\", \"000\\n\", \"000\\n\", \"101\\n\"], \"outputs\": [\"no\", \"no\", \"no\\n\", \"no\\n\", \"no\", \"no\", \"no\\n\", \"no\\n\"]}" }
{ "index": "code_r1_train_4661" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n--+-\\n---\\n++--+-\\n\", \"3\\n-+--\\n---\\n++--+-\\n\", \"3\\n--+-\\n---\\n+--++-\\n\", \"3\\n-+--\\n---\\n+--++-\\n\", \"3\\n--+-\\n---\\n-+-++-\\n\", \"3\\n---+\\n---\\n++--+-\\n\", \"3\\n-+--\\n---\\n---+++\\n\", \"3\\n--+-\\n---\\n-+--++\\n\"], \"output...
{ "index": "code_r1_train_4662" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1.000 31.000\\n12 0\\n20 0\\n31 0\\n5 0\\n3\\n1.000 30.000\\n1 10\\n7 8\\n26 5\\n\", \"2\\n4\\n1.000 31.000\\n12 3\\n20 6\\n30 1\\n5 1\\n3\\n1.000 30.000\\n1 10\\n10 8\\n20 8\\n\", \"2\\n4\\n1.000 31.000\\n12 0\\n20 6\\n31 0\\n5 0\\n3\\n1.000 30.000\\n1 1...
{ "index": "code_r1_train_4663" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na1\\na1\\n\", \"1 1\\na1\\na1\\n\", \"1 2\\na1\\na1\\n\", \"1 100\\na1\\na1\\n\", \"2 1\\n1\\n12\\n12\\n\", \"2 1\\na\\nab\\nab\\n\", \"2 1\\n1\\n12\\n12\\n\", \"2 1\\na\\nab\\nab\\n\"], \"outputs\": [\"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"1 1\\n\", \"7 7\\n...
{ "index": "code_r1_train_4664" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n999999997 999999998\\n999999999 1000000000\\n\", \"1\\n2\\n999999997 999999998\\n999999999 1000000000\\n\", \"1\\n2\\n905303520 999999998\\n999999999 1000000000\\n\", \"1\\n2\\n905303520 999999998\\n999999999 1000000001\\n\", \"1\\n1\\n905303520 999999998...
{ "index": "code_r1_train_4665" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 10\\n7\\n\", \"1 5 6\\n10\\n\", \"1 5 6\\n10\\n\", \"1 5 10\\n9\\n\", \"1 5 10\\n7\\n\", \"2 6 8\\n2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4666" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\"], \"outputs\": [\"1\\nR\\n\", \"1\\nR\\n\", \"1\\nR\\n\", \"2\\nRR\\n\", \"2\\nLR\\n\", \"1\\nR\", \"2\\nLR\\n\", \"2\\nRR\\n\"]}" }
{ "index": "code_r1_train_4667" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 3\\n\", \"1 1\\n\", \"5 3\\n\", \"1 4\\n\", \"5 4\\n\", \"9 7\\n\", \"2 3\\n\", \"6 7\\n\"], \"outputs\": [\"6\\n\", \"1\\n\", \"6\\n\", \"1\\n\", \"24\\n\", \"5040\\n\", \"2\\n\", \"720\\n\"]}" }
{ "index": "code_r1_train_4668" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"1 1\\n2000\\n\", \"3 5\\n1 2 1\\n\", \"1 1999\\n2000\\n\", \"1 1000000000\\n0\\n\", \"10 998244353\\n31 41 59 26 53 58 97 93 23 84\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"8\\n\", \"0\\n\", \"1...
{ "index": "code_r1_train_4669" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbyg\\ndwg\\nl\\nx\\n\", \"3 3\\nbzg\\ndwg\\nl\\nx\\n\", \"4 4\\nlocw\\na\\nr\\nba\\nxuv\\n\", \"4 4\\nlocw\\na\\ns\\nba\\nxuv\\n\", \"4 4\\nlocw\\na\\ns\\nba\\nwuv\\n\", \"4 4\\nlocw\\na\\ns\\nba\\nwtv\\n\", \"4 4\\nlodw\\na\\nr\\nba\\nxuv\\n\", \"5 5\\nvpj...
{ "index": "code_r1_train_4670" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1 0\\n\", \"2\\n1 1\\n1 0\\n\", \"2\\n2 1\\n0 -1\\n\", \"2\\n2 1\\n1 -1\\n\", \"2\\n2 2\\n1 -1\\n\", \"2\\n2 0\\n1 -1\\n\", \"2\\n3 0\\n1 -1\\n\", \"2\\n1 0\\n1 -1\\n\"], \"outputs\": [\"8\\n1 1 R\\n2\\n1 1 L\\n3\\n1 1 R\\n2\\n1 1 L\\n3\\n\", \"10\\n1 1...
{ "index": "code_r1_train_4671" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9\\n2\\n3\\n1\\n\", \"7\\n2\\n3\\n1\\n\", \"7\\n2\\n3\\n1\\n\", \"7\\n2\\n1\\n1\\n\", \"9\\n2\\n3\\n0\\n\", \"9\\n2\\n3\\n1\\n\", \"5\\n5\\n2\\n20\\n\", \"19\\n3\\n4\\n2\\n\"], \"outputs\": [\"6\\n\", \"8\\n\", \"8\\n\", \"4\\n\", \"3\\n\", \"6\\n\", \"8\\n\", \"...
{ "index": "code_r1_train_4672" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"0 0 0\", \"1 1 0\", \"1 0 0\", \"0 1 0\", \"0 0 0\", \"0 1 0\", \"1 0 0\", \"1 1 0\"], \"outputs\": [\"Close\\n\", \"Open\\n\", \"Close\\n\", \"Close\\n\", \"Close\\n\", \"Close\\n\", \"Close\\n\", \"Open\\n\"]}" }
{ "index": "code_r1_train_4673" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n\", \"1\\n7 7\\n\", \"3\\n1 3 2 4 5 3\\n\", \"3\\n1 1 1 2 2 2\\n\", \"10\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"10\\n9 13 18 7 18 13 2 2 5 16 3 17 5 4 18 2 15 11 7 15\\n\", \"10\\n9 13 18 7 18 13 2 2 5 16 3 17 5 4 18 2 15 11 7 15\\n\", \"10\\...
{ "index": "code_r1_train_4674" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n1 2\\n2 2\", \"3 2\\n1 2\\n2 1\", \"3 2\\n1 2\\n3 1\", \"6 2\\n1 2\\n2 1\", \"9 2\\n1 2\\n2 4\", \"6 2\\n1 1\\n2 1\", \"4 2\\n2 2\\n3 1\", \"1 0\\n2 2\\n1 1\"], \"outputs\": [\"1\\n2\\n3\\n4\\n5\\n\", \"1 2\\n1 2\\n3\\n\", \"1\\n2\\n3\\n\", \"1 2\\n1 2\\n3\...
{ "index": "code_r1_train_4675" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n\", \"3 1 4\\n\", \"1 1 2\\n\", \"3 1 2\\n\", \"3 1 1\\n\", \"1 1 1\\n\", \"3 1 4\\n\", \"4 78149 46740\\n\"], \"outputs\": [\"2\\n\", \"370000006\\n\", \"500000005\", \"722222231\", \"250000006\", \"2\\n\", \"370000006\\n\", \"604608981\"]}" }
{ "index": "code_r1_train_4676" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 59\\n\", \"1\\n1 51\\n\", \"1\\n1 374\\n\", \"1\\n2 366\\n\", \"1\\n2 692\\n\", \"1\\n2 374\\n\", \"1\\n1 182\\n\", \"1\\n1 257\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4677" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n99999 999 999\\n103 5 21\\n973 1 2\\n3406 4 4\\n0 0 0\", \"6 1 7\\n99999 999 999\\n103 5 21\\n973 1 2\\n3406 4 4\\n0 0 0\", \"7 1 5\\n99999 999 999\\n710 5 14\\n973 1 2\\n771 4 11\\n0 0 0\", \"8 1 5\\n99999 999 999\\n238 8 10\\n973 1 2\\n771 4 11\\n0 0 0\...
{ "index": "code_r1_train_4678" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5\\n1 2 2 1 3\\n\", \"5\\n1 2 2 1 1\\n\", \"5\\n1 2 4 1 3\\n\", \"5\\n1 2 1 1 1\\n\", \"5\\n2 2 2 1 3\\n\", \"5\\n1 2 1 2 1\\n\", \"5\\n1 2 1 1 2\\n\", \"5\\n2 1 2 1 3\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"2\...
{ "index": "code_r1_train_4679" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 2\\n1\\n\", \"1 1 1\\n0\\n\", \"2 1 1\\n1\\n1\\n\", \"2 1 1\\n1\\n0\\n\", \"2 1 1\\n0\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n1\\n\", \"0\\n0\\n\", \"0\\n0\\n\"]}" ...
{ "index": "code_r1_train_4680" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2 1\\n1 2\\n1 2\\n\", \"4 2\\n1 3 2 4\\n3 2\\n2 4\\n\", \"4 2\\n1 3 2 4\\n3 2\\n2 1\\n\", \"4 2\\n1 3 2 4\\n1 2\\n2 1\\n\", \"4 2\\n1 3 2 4\\n3 2\\n4 1\\n\", \"4 2\\n1 3 2 4\\n3 2\\n2 4\\n\", \"3 4\\n1 2 3\\n1 3\\n1 2\\n1 3\\n2 3\\n\"], \"...
{ "index": "code_r1_train_4681" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"B\\n1 1 1\\n1 1 1\\n381\\n\", \"B\\n1 1 1\\n1 1 1\\n381\\n\", \"B\\n1 2 1\\n1 1 1\\n381\\n\", \"BSC\\n3 5 6\\n7 3 9\\n100\\n\", \"BSC\\n3 5 6\\n7 3 9\\n100\\n\", \"BSC\\n3 5 9\\n7 3 9\\n100\\n\", \"BSC\\n3 5 9\\n7 3 5\\n100\\n\", \"BSC\\n3 5 9\\n7 3 5\\n101\\n\"]...
{ "index": "code_r1_train_4682" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"2 3 4\", \"3 1 2\", \"3 1 0\", \"1 1 3\", \"3 0 0\", \"1 6 5\", \"1 6 6\"], \"outputs\": [\"4\\n\", \"5\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"6\\n\", \"7\\n\"]}" }
{ "index": "code_r1_train_4683" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\"], \"outputs\": [\"-1\", \"1\", \"1\", \"1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4684" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n2\\n1\\n\", \"1\\n2\\n2\\n\", \"1\\n2\\n0\\n\", \"1\\n3\\n0\\n\", \"1\\n5\\n1\\n\", \"1\\n5\\n0\\n\", \"1\\n4\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4685" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1000000000\\n2 1\\n\", \"1 1 1\\n1000000000\\n2 1\\n\", \"1 0 1\\n1000000000\\n2 1\\n\", \"4 2 8\\n300 950 500 28\\n1 3\\n2 4\\n2 3\\n1 1\\n2 4\\n2 1\\n2 2\\n1 1\\n\", \"4 2 8\\n300 950 500 200\\n1 3\\n2 4\\n2 3\\n1 1\\n1 2\\n2 1\\n2 2\\n2 3\\n\", \"4 2 8...
{ "index": "code_r1_train_4686" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ABBCABA\", \"ABABBBA\", \"@BABBBA\", \"@BABCBA\", \"AB@BCAB\", \"BCABACB\", \"ABCBACB\", \"ABACBBA\"], \"outputs\": [\"2\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"5\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4687" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n2 4\\n-1 1\", \"3\\n2 0\\n2 2\\n-1 1\", \"3\\n3 0\\n2 2\\n-1 0\", \"3\\n0 0\\n2 2\\n-1 1\", \"3\\n3 0\\n2 2\\n-2 -1\", \"3\\n3 0\\n2 2\\n-2 -2\", \"3\\n3 0\\n1 2\\n-2 -2\", \"3\\n3 0\\n1 2\\n-2 -4\"], \"outputs\": [\"4.5\\n\", \"3.0\\n\", \"4.0\\n\", \"...
{ "index": "code_r1_train_4688" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 1\\n4 2 1\\n2 3 1\", \"3 6\\n4 2 1\\n2 3 1\", \"3 1\\n8 2 1\\n2 3 1\", \"3 8\\n4 1 1\\n2 3 1\", \"3 1\\n2 2 1\\n2 3 1\", \"3 6\\n4 4 1\\n2 3 1\", \"3 2\\n8 2 1\\n2 3 1\", \"3 1\\n8 2 1\\n1 3 1\"], \"outputs\": [\"4\\n\", \"1\\n\", \"7\\n\", \"0\\n\", \"3\\n\", ...
{ "index": "code_r1_train_4689" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n\", \"1\\na 1 3\\n\", \"2\\naba 1 1\\nb 1 2\\n\", \"3\\nab 1 1\\naba 1 3\\nab 2 3 5\\n\", \"3\\na 4 1 3 5 7\\nab 2 1 5\\nca 1 4\\n\", \"4\\na 2 1 10\\na 3 1 2 9\\na 2 3 8\\na 2 4 7\\n\", \"4\\na 2 1 10\\na 3 1 2 9\\na 2 3 8\\na 2 4 3\\n\", \"4\\na 2 1...
{ "index": "code_r1_train_4690" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3\", \"4 5 2 3\", \"4 7 9 3\", \"4 7 9 3\\n\", \"0 011 5 8\", \"0 011 5 3\", \"0 111 5 3\", \"0 111 1 3\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\"]}" }
{ "index": "code_r1_train_4691" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\", \"1 3 1\", \"1 3 0\", \"0 2 7\", \"6 1 7\", \"8 1 7\", \"4 2 9\", \"2 3 0\"], \"outputs\": [\"B\\n\", \"B\\n\", \"B\\n\", \"A\\n\", \"B\\n\", \"B\\n\", \"A\\n\", \"A\\n\"]}" }
{ "index": "code_r1_train_4692" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\nA A B C\\n5\\nL M N L O\\n1\\nJ K K K J K\\n0\\nX Y Y Y Z X\\n8\\nB B A B A C A D C B\\n1\\nV V U U U W V W V V\\n0\", \"1\\nA\\n4\\nA A B B\\n5\\nL M N L N\\n6\\nK K K K K K\\n6\\nX X X Y Z X\\n10\\nA A A B A C A C C B\\n1\\nV U U U U V V W V W\\n0\"...
{ "index": "code_r1_train_4693" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"8 2 4\", \"3 1 2\", \"3 2 2\", \"8 2 3\", \"0 2 2\", \"7 2 3\", \"0 2 1\", \"7 2 5\"], \"outputs\": [\"Alice\\n\", \"Borys\\n\", \"Alice\\n\", \"Borys\\n\", \"Alice\\n\", \"Borys\\n\", \"Borys\\n\", \"Borys\\n\"]}" }
{ "index": "code_r1_train_4694" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 2\\n1 2 9 011\\n2 2 5 500\", \"2 2 1 2\\n1 2 6 001\\n1 2 2 893\", \"2 2 1 2\\n1 2 8 111\\n1 1 4 526\", \"2 1 1 2\\n1 2 10 001\\n1 2 5 58\", \"2 2 1 2\\n1 2 6 101\\n1 2 5 893\", \"2 1 1 2\\n1 2 5 101\\n1 2 5 500\", \"2 1 1 2\\n1 2 10 001\\n1 2 5 28\", \"2 2 ...
{ "index": "code_r1_train_4695" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"2\\n2 2\\n\", \"2\\n1 1\\n\", \"2\\n1 5\\n\", \"2\\n1 2\\n\", \"2\\n5 1\\n\", \"2\\n1 5\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\", \"0\\n\\n\"]}" }
{ "index": "code_r1_train_4696" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 -2 3\\n-1 5 6\\n7 8 -9\", \"3\\n1 -2 3\\n-1 5 6\\n7 8 -2\", \"3\\n1 -2 5\\n-1 2 1\\n6 2 -3\", \"3\\n-2 -7 3\\n0 0 1\\n45 0 0\", \"3\\n2 -4 5\\n0 2 0\\n1 4 -25\", \"3\\n1 -2 3\\n-4 5 6\\n7 8 -9\", \"3\\n1 -2 3\\n-1 5 6\\n6 8 -15\", \"3\\n1 -2 5\\n-1 3 1\\n6 ...
{ "index": "code_r1_train_4697" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 3 4 4 4 4 6 6\\n\", \"1\\n2\\n3 3 4 4 4 4 6 6\\n\", \"1\\n2\\n3 3 4 4 4 4 6 4\\n\", \"1\\n2\\n3 3 4 4 8 4 6 6\\n\", \"1\\n2\\n3 3 6 4 4 4 6 4\\n\", \"1\\n2\\n3 3 6 4 4 7 6 4\\n\", \"1\\n2\\n6 3 6 4 4 7 6 4\\n\", \"1\\n2\\n3 3 4 4 4 4 1 6\\n\"], \"output...
{ "index": "code_r1_train_4698" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1 0 1\\n2\\n\", \"1 1 1\\n2\\n\", \"1 -1 1\\n2\\n\", \"1 -2 1\\n2\\n\", \"1 228 1\\n1\\n\", \"1 228 1\\n1\\n\", \"1 230 1\\n1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4699" }