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 0\\n2 1\\n\", \"1 1 0\\n3 4\\n\", \"1 0 0\\n2 1\\n\", \"1 1 0\\n3 4\\n\", \"1 0 0\\n0 1\\n\", \"1 1 0\\n3 3\\n\", \"1 1 0\\n0 1\\n\", \"1 1 0\\n10 1\\n\"], \"outputs\": [\"1\\n\", \"4\\n\", \"1\\n\", \"4\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2700" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n1\\n1\\n0\\n\", \"1\\n4\\n0\\n1\\n1\\n0\\n\", \"1\\n4\\n0\\n1\\n1\\n1\\n\", \"1\\n1\\n0\\n1\\n1\\n1\\n\", \"1\\n3\\n0\\n0110\\n1\\n\", \"1\\n3\\n0\\n0110\\n1\\n\", \"1\\n3\\n0\\n1110\\n1\\n\", \"1\\n1\\n0\\n1110\\n1\\n\"], \"outputs\": [\"4\\n\", \"4\...
{ "index": "code_r1_train_2701" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcd\\n\", \"1\\na\\nabcd\\n\", \"1\\na\\ndbca\\n\", \"1\\na\\nebca\\n\", \"1\\na\\nabce\\n\", \"1\\ndaaaaaaaa\\nbbbbbbbbb\\n\", \"1\\ndaaaaaaaa\\nbbbbbbbbb\\n\", \"1\\ndaaaaaaba\\nbbbbbbbbb\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\...
{ "index": "code_r1_train_2702" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ecneyek\", \"ecneyel\", \"ecleyen\", \"neyelce\", \"neyemce\", \"oeyemce\", \"oemeyce\", \"oemeycd\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2703" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"18\\n\", \"1800\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"670320\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2704" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"this is b pen.\", \"tiis is b pen.\", \"tiis is a pen.\", \"tiis it a pen.\", \"tiis it a pem.\", \"tiis it a .mep\", \"tiis it b .mep\", \"tiis it b pem.\"], \"outputs\": [\"THIS IS B PEN.\\n\", \"TIIS IS B PEN.\\n\", \"TIIS IS A PEN.\\n\", \"TIIS IT A PEN.\\n\"...
{ "index": "code_r1_train_2705" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n35 950009\\n\", \"1\\n2 1615745\\n\", \"1\\n6 1687697\\n\", \"1\\n59 950009\\n\", \"1\\n22 313455\\n\", \"1\\n6 2518353\\n\", \"1\\n62 950009\\n\", \"1\\n35 669530\\n\"], \"outputs\": [\"26\\n\", \"1\\n\", \"5\\n\", \"4\\n\", \"21\\n\", \"3\\n\", \"45\\n\", \...
{ "index": "code_r1_train_2706" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 2 4\", \"6 2 1\", \"6 1 1\", \"6 0 1\", \"4 0 0\", \"1 0 0\", \"2 0 0\", \"1 1 0\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2707" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 4\\n3\\n\", \"1 64\\n64\\n\", \"1 33\\n34\\n\", \"2 2\\n3 5\\n\", \"3 5\\n3 3 3\\n\", \"4 10\\n6 1 2 7\\n\", \"8 29\\n6 10 9 7 5 3 2 6\\n\", \"6 231759\\n58478 68246 31455 68061 22344 58784\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", ...
{ "index": "code_r1_train_2708" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 1 3 4\\n1 2 5\\n2 3 9\\n2 4 5\\n1 3 8\\n1 4 8\\n0 0 0 0 0\", \"4 5 1 3 4\\n1 2 5\\n2 3 9\\n2 4 5\\n1 3 3\\n1 4 8\\n0 0 0 0 0\", \"6 5 1 3 4\\n1 2 5\\n4 3 5\\n2 3 5\\n1 3 8\\n1 4 8\\n0 0 0 0 0\", \"4 5 1 3 4\\n1 2 5\\n2 3 5\\n2 4 5\\n1 3 8\\n2 4 8\\n0 0 0 0 0\...
{ "index": "code_r1_train_2709" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n3 5\\n5 3\\n6 6\\n8 0\\n0 0\\n\", \"6\\n1 0\\n3 5\\n5 3\\n6 6\\n8 0\\n0 0\\n\", \"6\\n2 0\\n3 5\\n5 3\\n6 6\\n8 0\\n0 0\\n\", \"6\\n4 0\\n3 5\\n5 6\\n6 6\\n8 0\\n0 0\\n\", \"6\\n4 0\\n3 5\\n5 6\\n6 1\\n8 0\\n0 0\\n\", \"6\\n4 0\\n3 5\\n5 6\\n5 1\\n8 0\\...
{ "index": "code_r1_train_2710" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB\\n\", \"1 1\\nB\\n\", \"3 7\\n.......\\n.......\\n.BB.B..\\n\", \"4 5\\n..B..\\n..B..\\nB.B.B\\nBBB.B\\n\", \"3 7\\n.......\\n..../..\\n.BB.B..\\n\", \"3 7\\n.......\\n....0..\\n.BB.B..\\n\", \"3 7\\n.......\\n..0....\\n.BB.B..\\n\", \"3 7\\n.......\\n..0...
{ "index": "code_r1_train_2711" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"10\\n0\\n\", \"11\\n1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2712" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 234872\\n4\\n5 2 7 3\\n\", \"2\\n3\\n1 1 234872\\n4\\n5 2 7 3\\n\", \"2\\n3\\n1 1 234872\\n4\\n5 2 7 2\\n\", \"2\\n3\\n1 1 199277\\n4\\n2 0 7 3\\n\", \"2\\n3\\n1 1 234872\\n4\\n1 0 7 2\\n\", \"2\\n3\\n1 1 199277\\n4\\n2 0 7 1\\n\", \"2\\n3\\n1 2 23487...
{ "index": "code_r1_train_2713" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1 2 3\\n5 4 100\\n\", \"2\\n1 2 3\\n7 4 100\\n\", \"2\\n1 1 3\\n5 4 100\\n\", \"2\\n1 1 3\\n5 4 101\\n\", \"2\\n1 1 3\\n5 4 111\\n\", \"2\\n1 2 3\\n5 4 100\\n\", \"16\\n1 1 1\\n3 4 7\\n4 5 13\\n456 123 7890123\\n1 1 1000000000\\n45 12 782595420\\n1 1000000000...
{ "index": "code_r1_train_2714" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"35.68 139.77 51.15 359.82\\n1.37 103.92 41.78 272.25\\n51.15 359.82 -34.58 301.52\\n-1 -1 -1 -1\", \"35.68 139.77 51.15 360.3067312023825\\n1.37 103.92 41.78 272.25\\n51.15 359.82 -34.58 301.52\\n-1 -1 -1 -1\", \"35.68 139.77 51.15 359.82\\n1.37 103.92 41.78 272....
{ "index": "code_r1_train_2715" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"6\\n6 5 4 3 2 1\\n\", \"6\\n1 2 3 4 5 6\\n\", \"10\\n10 7 4 2 5 8 9 6 3 1\\n\", \"10\\n10 2 7 8 6 5 3 4 2 1\\n\", \"10\\n10 9 7 8 6 5 3 0 2 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"4\...
{ "index": "code_r1_train_2716" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"300 0\\n\", \"5 100\\n\", \"5 100\\n\", \"4 100\\n\", \"360 0\\n\", \"7 100\\n\", \"700 0\\n\", \"6 100\\n\"], \"outputs\": [\"300\\n\", \"5\\n\", \"5\\n\", \"4\\n\", \"360\\n\", \"7\\n\", \"700\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_2717" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naa\\nsb\\n\", \"2 2\\nas\\nsa\\n\", \"2 1\\nas\\nsa\\n\", \"2 0\\nas\\nas\\n\", \"2 1\\naa\\nbs\\n\", \"2 2\\nas\\nas\\n\", \"2 1\\nar\\nsa\\n\", \"2 0\\nar\\nas\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\...
{ "index": "code_r1_train_2718" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\", \"2\\n2\\n6\", \"2\\n1\\n2\", \"2\\n2\\n5\", \"2\\n0\\n9\", \"2\\n1\\n3\", \"2\\n2\\n4\", \"2\\n1\\n9\"], \"outputs\": [\"00:00\\n05:26\\n06:34\\n\", \"03:16\\n08:44\\n02:12\\n09:48\\n\", \"04:22\\n07:38\\n03:16\\n08:44\\n\", \"03:16\\n08:44\\n02:10\...
{ "index": "code_r1_train_2719" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n2 2 1\\n3 3 1\\n3 1 3\\n1 1 1\\n2 1 1\\n1 2 3\\n\", \"5 1 1\\n1 2 2\\n2 2 2\\n2 2 2\\n1 2 2\\n2 2 2\\n2 2 2\\n\", \"1 1 1\\n3 3 1\\n1 1 1\\n3 2 2\\n2 2 2\\n1 3 1\\n3 3 2\\n\", \"1 3 1\\n1 3 3\\n2 3 2\\n2 1 3\\n1 3 2\\n3 3 2\\n3 1 1\\n\", \"3 1 3\\n1 1 2\\...
{ "index": "code_r1_train_2720" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n1 3\\n\", \"2\\n2 1\\n\", \"2\\n0 0\\n\", \"2\\n1 0\\n\"], \"outputs\": [\"0\", \"1\", \"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2721" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4 5\", \"6 5\", \"0 2\", \"4 1\", \"6 9\", \"0 8\", \"8 1\"], \"outputs\": [\"0\\n\", \"2\\n\", \"5\\n\", \"-1\\n\", \"6\\n\", \"7\\n\", \"26\\n\", \"28\\n\"]}" }
{ "index": "code_r1_train_2722" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n()(())()\\n10 1\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n()(())()\\n10 1\\n))()()()((\\n2 1\\n()\\n2 1\\n()\\n\", \"4\\n8 1\\n()(())()\\n10 1\\n))()()()((\\n2 1\\n()\\n2 1\...
{ "index": "code_r1_train_2723" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2\\n0 0 1 1 1 2\\n3 0 0 4 4 7\", \"1\\n2\\n0 1 1 1 1 2\\n3 0 0 4 4 7\", \"1\\n2\\n0 2 1 0 1 1\\n3 0 0 4 4 7\", \"1\\n1\\n0 2 1 0 1 1\\n3 0 0 4 4 7\", \"1\\n1\\n0 2 2 0 1 1\\n3 0 0 8 4 7\", \"1\\n2\\n0 1 1 0 1 1\\n3 0 0 0 4 7\", \"1\\n2\\n0 1 1 1 1 1\\n3 0 0 4...
{ "index": "code_r1_train_2724" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n3 2 1\\n\", \"4\\n6 2 7 3\\n\", \"4\\n6 2 12 3\\n\", \"82\\n3 10 19 34 53 84 87 92 99 121 143 173 188 202 239 245 246 259 273 278 280 292 316 613 1 324 341 399 400 406 422 429 452 456 463 466 510 522 532 542 565 570 575 596 617 632 635 636 643 644 672 674 678...
{ "index": "code_r1_train_2725" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"a\\n\", \"a\\n\", \"b\\n\", \"thereisnoanswer\\n\", \"thereisnoansweq\\n\", \"thereisnoanswer\\n\", \"aacceeggiikkmmooqqssuuwwyy\\n\", \"abcdefghijklmnopqrstuvwxxx\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"abcdefghij...
{ "index": "code_r1_train_2726" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n50 77 110 80\\n7 3\\n3 300 110 194 77 600 75\\n0 0\", \"4 1\\n50 77 110 80\\n7 6\\n3 300 110 194 77 600 75\\n0 0\", \"4 3\\n50 59 100 80\\n7 3\\n400 290 000 700 4 600 57\\n0 0\", \"4 4\\n50 59 100 80\\n7 3\\n400 290 000 700 4 600 57\\n0 0\", \"4 2\\n50 40 1...
{ "index": "code_r1_train_2727" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nABACAB\\nABBA\\nAC\\nABC\\nCABCBB\\nBCBCBCBCBCBCBCBC\\n\", \"6\\nABACAB\\nABBA\\nAC\\nABC\\nCABCBB\\nCBCBCBCBCBCBCBCB\\n\", \"6\\nABACAB\\nABBA\\nAC\\nABC\\nCABCBB\\nBCBCBCBCBCACBCBC\\n\", \"6\\nABACAB\\nABBA\\nBC\\nABB\\nCABCBB\\nCBCBCBCBCBCBCBCB\\n\", \"6\\...
{ "index": "code_r1_train_2728" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n1 2\\n2 2\\n\", \"2\\n2 2\\n2 2\\n\", \"2\\n1 2\\n1 2\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2729" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"2\\n1\\n2\\n\", \"2\\n3\\n3\\n\", \"2\\n2\\n1\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_2730" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\", \"5\", \"4\", \"6\", \"2\", \"7\", \"9\", \"8\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\"]}" }
{ "index": "code_r1_train_2731" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nb\\naabbbabaa\\nabbb\\nabbaab\\n\", \"4\\nb\\naabbbabaa\\nabbb\\nabbaab\\n\", \"4\\na\\naabbbabaa\\nabbb\\nabbaab\\n\", \"4\\nb\\naabbbabaa\\nabbb\\nabbabb\\n\", \"4\\na\\naabababaa\\nabbb\\nabbaab\\n\", \"4\\nb\\naabbbacaa\\nabbb\\nabbabb\\n\", \"4\\nc\\naab...
{ "index": "code_r1_train_2732" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 68635146\\n\", \"5 98318737\\n\", \"7 87363353\\n\", \"9 97331762\\n\", \"5 32104940\\n\", \"5 21787470\\n\", \"5 10757978\\n\", \"1 993244853\\n\"], \"outputs\": [\"4982400\\n\", \"1116\\n\", \"59904\\n\", \"4982400\\n\", \"1116\\n\", \"1116\\n\", \"1116\\n\",...
{ "index": "code_r1_train_2733" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"5\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"74\\n\", \"88\\n\"], \"outputs\": [\"-1\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_2734" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n6\\n2\\n7\", \"2 2\\n3\\n9\\n2\\n7\", \"2 2\\n3\\n9\\n0\\n7\", \"2 2\\n3\\n9\\n1\\n7\", \"2 2\\n1\\n8\\n1\\n7\", \"2 2\\n3\\n5\\n2\\n7\", \"2 2\\n3\\n16\\n2\\n7\", \"2 2\\n3\\n32\\n2\\n7\"], \"outputs\": [\"31\\n\", \"35\\n\", \"29\\n\", \"32\\n\", \"27...
{ "index": "code_r1_train_2735" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 3\\n2 5\\n2 9\", \"3\\n2 3\\n2 5\\n2 9\", \"3\\n1 3\\n2 5\\n1 9\", \"3\\n3 3\\n2 5\\n2 16\", \"3\\n4 0\\n5 0\\n1 21\", \"3\\n2 1\\n8 0\\n1 45\", \"3\\n2 3\\n2 5\\n2 16\", \"3\\n3 3\\n2 5\\n1 16\"], \"outputs\": [\"4\\n\", \"3\\n\", \"4\", \"2\\n\", \"5\\n\"...
{ "index": "code_r1_train_2736" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"4\", \"6\", \"7\", \"5\", \"9\"], \"outputs\": [\"3\\n\", \"0\\n\", \"39\\n\", \"84\\n\", \"258\\n\", \"399\\n\", \"155\\n\", \"819\\n\"]}" }
{ "index": "code_r1_train_2737" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"a`bbaa\", \"b`aba`\", \"b``aaa\", \"a`bcaa\", \"a`acaa\", \"c`aaaa\", \"b`aaaa\", \"b`abaa\"], \"outputs\": [\"5\\n\", \"6\\n\", \"4\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_2738" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"F\\n1\\n\", \"F\\n0\\n\", \"TF\\n1\\n\", \"FT\\n1\\n\", \"TTFFF\\n49\\n\", \"FFFTFFF\\n2\\n\", \"FTTTFTFF\\n8\\n\", \"FFFFTFTF\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"8\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_2739" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n13\\nOIIOIOIOIIOIO\\n2\\n13\\nOOIOIOIOIIOII\\n0\", \"1\\n13\\nOOIOIOIOIIOII\\n3\\n13\\nOOIOIOIOIIOII\\n0\", \"1\\n25\\nOOIOIOIOIIOII\\n3\\n13\\nOOJOIOIOIIOIJ\\n0\", \"1\\n25\\nOIIOIOIOIIOIO\\n0\\n13\\nOOJOIOIOIIOIJ\\n0\", \"1\\n25\\nOOIOIOIOIIOII\\n1\\n13\\nJ...
{ "index": "code_r1_train_2740" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n2\\n1 7\\n\", \"1\\n2\\n2 7\\n\", \"1\\n2\\n3 7\\n\", \"1\\n2\\n2 3\\n\", \"1\\n2\\n4 7\\n\", \"1\\n2\\n5 7\\n\", \"1\\n2\\n3 3\\n\", \"1\\n2\\n3 6\\n\"], \"outputs\": [\"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"HL\\n\", \"T\\n\"]}" }
{ "index": "code_r1_train_2741" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 1\", \"4 7\", \"0 1\", \"1 0\", \"8 7\", \"1 2\", \"2 5\", \"4 1\"], \"outputs\": [\"0\\n\", \"3\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2742" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n2 9\\n6 2\", \"3\\n4 5\\n2 9\\n6 3\", \"3\\n4 7\\n2 9\\n6 2\", \"3\\n8 3\\n2 14\\n3 3\", \"5\\n1 10\\n3 6\\n5 2\\n4 4\\n2 8\", \"2\\n1 1000100000\\n1000000000 1\", \"2\\n1 1000100000\\n1000000010 1\", \"2\\n0 1000110010\\n1000001010 1\"], \"outputs\": [...
{ "index": "code_r1_train_2743" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n1\\n\", \"2\\n2\\n\", \"2\\n1\\n\", \"2\\n2\\n\", \"3\\n1 2\\n\", \"3\\n1 3\\n\", \"3\\n2 3\\n\", \"3\\n2 1\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \" 2\", \" ...
{ "index": "code_r1_train_2744" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2\\n1\\n1\\n\", \"1 2\\n1\\n1\\n\", \"2 1\\n0 1\\n2 1\\n\", \"2 1\\n0 1\\n2 1\\n\", \"3 3\\n0 1 1\\n4 3 5\\n\", \"3 3\\n0 1 1\\n4 3 5\\n\", \"5 5\\n0 1 0 0 1\\n9 8 3 8 8\\n\", \"5 5\\n0 1 0 0 1\\n9 8 3 8 8\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"332748119\\n...
{ "index": "code_r1_train_2745" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 0\\n2\", \"3\\n2 3 0\\n3\", \"3\\n2 3 0\\n6\", \"3\\n0 1 -2\\n4\", \"3\\n1 0 -1\\n3\", \"3\\n1 1 -7\\n1\", \"3\\n1 1 -9\\n1\", \"3\\n0 0 -2\\n4\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"7\\n\", \"9\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_2746" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 1\\n2\\n0\\n\", \"1 1\\n2\\n1\\n\", \"4 4\\n1122\\n2\\n\", \"4 4\\n1122\\n2\\n\", \"4 4\\n1049\\n2\\n\", \"4 4\\n1384\\n2\\n\", \"4 4\\n2661\\n2\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"5\\n\", \"8\\n\", \"8\\n\", \"9\\n\", \"7\\n\", \"3\\...
{ "index": "code_r1_train_2747" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\nA\\n6 5 5\\nB\\n10 9 0\\n\", \"2 1 5\\nA\\n6 3 5\\nB\\n10 9 0\\n\", \"2 1 5\\nA\\n6 3 2\\nB\\n10 9 0\\n\", \"2 1 5\\nA\\n10 3 2\\nB\\n10 9 0\\n\", \"2 1 5\\nA\\n10 3 2\\nB\\n10 9 1\\n\", \"2 1 1\\nG\\n2 1 9\\nRdepya\\n2 1 8\\n\", \"2 1 1\\nG\\n2 1 9\\nRde...
{ "index": "code_r1_train_2748" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n14\\n()(((())((()))\\n\", \"1\\n15\\n((((()))))(((((\\n\", \"1\\n16\\n((((()))))((((((\\n\", \"1\\n18\\n()()())(())(())(()\\n\", \"5\\n2\\n()\\n3\\n())\\n4\\n((((\\n5\\n)((()\\n6\\n)((()(\\n\", \"5\\n3\\n)()\\n8\\n)()()(((\\n4\\n(()(\\n5\\n(())(\\n6\\n))((()\...
{ "index": "code_r1_train_2749" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"9\\n1 6 6 24 7 15 19 29 31\\n10\\n3\\n2 8\\n8 3\\n1 2\\n5 5\", \"9\\n1 3 6 6 15 15 19 29 31\\n10\\n2\\n1 8\\n7 3\\n1 2\\n8 5\", \"9\\n1 3 6 13 15 18 19 29 31\\n10\\n2\\n1 8\\n7 3\\n6 7\\n8 5\", \"9\\n1 3 6 13 23 18 19 29 31\\n10\\n2\\n1 8\\n7 5\\n6 7\\n8 5\", \"9...
{ "index": "code_r1_train_2750" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 7 3 7 3\\n\", \"5 0\\n1 2 1 2 1\\n\", \"5 0\\n2 3 2 3 3\\n\", \"5 0\\n1 2 1 2 1\\n\", \"5 0\\n2 3 2 3 3\\n\", \"5 0\\n2 3 4 3 3\\n\", \"5 0\\n1 4 1 2 1\\n\", \"5 0\\n1 2 2 2 1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\", \"2\", \"1\\n\", \"2\...
{ "index": "code_r1_train_2751" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 944277353\\n\", \"3 3\\n1 2 8\\n2 3 3\\n3 1 2\\n\", \"3 3\\n1 2 8\\n2 3 3\\n3 1 4\\n\", \"10 10\\n9 1 0\\n9 4 0\\n5 2 0\\n8 10 0\\n8 3 0\\n10 4 0\\n1 2 0\\n5 6 0\\n7 3 0\\n6 7 0\\n\", \"10 10\\n9 1 0\\n9 4 0\\n3 2 0\\n8 10 0\\n8 3 0\\n10 4 0\\n1 2 0\\n5...
{ "index": "code_r1_train_2752" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\n3 7 1 4 2 4\\n5\\n5 4 3 2 1\\n5\\n4 3 2 2 3\", \"3\\n6\\n3 7 1 4 2 4\\n5\\n5 4 3 2 1\\n5\\n4 3 1 2 3\", \"3\\n6\\n3 1 1 4 2 4\\n5\\n5 4 3 2 1\\n5\\n4 3 1 2 3\", \"3\\n6\\n3 1 1 4 2 4\\n5\\n2 4 3 2 1\\n5\\n4 3 1 2 3\", \"3\\n6\\n1 1 0 4 2 4\\n5\\n4 4 3 2 1...
{ "index": "code_r1_train_2753" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ng\\n\", \"1\\ng\\n\", \"1\\nh\\n\", \"1\\ni\\n\", \"1\\nf\\n\", \"2\\nab\\n\", \"2\\naz\\n\", \"2\\nqa\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\nab\\n\", \"YES\\naz\\n\", \"YES\\nqa\\n\"]}" }
{ "index": "code_r1_train_2754" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"6 1\", \"6 0\", \"9 1\", \"3 0\", \"9 0\", \"4 0\", \"5 0\", \"3 5\"], \"outputs\": [\"7\\n\", \"6\\n\", \"10\\n\", \"3\\n\", \"9\\n\", \"4\\n\", \"5\\n\", \"15\\n\"]}" }
{ "index": "code_r1_train_2755" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n\", \"3\\n\", \"2\\n\", \"8\\n\", \"5\\n\", \"7\\n\", \"9\\n\", \"4\\n\"], \"outputs\": [\"0\\n\", \"2\\n2 3\\n\", \"1\\n2\\n\", \"6\\n2 4 8 3 5 7\\n\", \"4\\n2 4 3 5\\n\", \"5\\n2 4 3 5 7\\n\", \"7\\n2 4 8 3 9 5 7\\n\", \"3\\n2 4 3 \"]}" }
{ "index": "code_r1_train_2756" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"baaaa\", \"baaba\", \"bbba`\", \"`babb\", \"`ca`b\", \"`_adb\", \"ababa\", \"aaabb\"], \"outputs\": [\"9\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"14\\n\", \"15\\n\", \"9\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_2757" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 3\\n1 3 4\\n1 3 9\", \"3 3\\n1 3 4\\n0 3 9\", \"3 3\\n1 3 4\\n1 3 7\", \"3 3\\n1 3 8\\n0 3 9\", \"3 3\\n0 3 4\\n1 3 6\", \"3 3\\n1 3 4\\n0 3 3\", \"3 3\\n1 3 3\\n0 3 3\", \"3 3\\n1 1 5\\n0 2 3\"], \"outputs\": [\"96\\n\", \"108\\n\", \"72\\n\", \"252\\n\", \"80...
{ "index": "code_r1_train_2758" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5 8\", \"2\\n4 8\", \"2\\n4 8\\n\", \"2\\n5 11\", \"2\\n10 6\", \"2\\n17 5\", \"2\\n17 1\", \"2\\n17 2\"], \"outputs\": [\"5\\n\", \"8\", \"8\\n\", \"18\\n\", \"8\\n\", \"72\\n\", \"128\\n\", \"113\\n\"]}" }
{ "index": "code_r1_train_2759" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n0 5\\n-2 4\\n3 4\\n4 -2\", \"4 5\\n1 5\\n-2 4\\n3 1\\n4 -1\", \"3 5\\n0 5\\n-2 4\\n5 1\\n4 -2\", \"1 5\\n0 5\\n-2 4\\n3 1\\n4 -2\", \"4 5\\n0 5\\n-2 4\\n3 1\\n4 -2\", \"4 5\\n0 5\\n-2 4\\n3 1\\n4 -1\", \"3 5\\n0 5\\n-2 4\\n3 1\\n4 -2\", \"4 5\\n0 5\\n-2 4\\...
{ "index": "code_r1_train_2760" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 3\\n\", \"3 1 5 6\\n\", \"8 3 3 2\\n\", \"1 3 2 5\\n\", \"2 3 1 6\\n\", \"9 6 2 5\\n\", \"1 1 1 1\\n\", \"1 2 1 1\\n\"], \"outputs\": [\"2\\n\", \"8\\n\", \"2\\n\", \"8\\n\", \"10\\n\", \"3\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2761" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 340\\n3 110 5\\n0 4 11\\n2 483 0\\n3 249 8\", \"3 0 340\\n3 110 5\\n0 4 11\\n2 942 0\\n3 249 8\", \"3 0 340\\n3 110 5\\n0 4 11\\n2 132 0\\n3 249 8\", \"3 0 445\\n3 110 5\\n0 4 11\\n2 132 0\\n3 249 8\", \"3 0 445\\n3 110 5\\n0 4 21\\n2 132 0\\n3 249 8\", \"3 0...
{ "index": "code_r1_train_2762" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n18\\n2\\n1000001010\\n\", \"5\\n1\\n4\\n9\\n129\\n1000001000\\n\", \"5\\n2\\n2\\n16\\n13\\n1000000000\\n\", \"5\\n2\\n13\\n78\\n7\\n1000001100\\n\", \"5\\n2\\n2\\n18\\n13\\n1000001000\\n\", \"5\\n2\\n7\\n9\\n284\\n1000001000\\n\", \"5\\n1\\n2\\n9\\n12...
{ "index": "code_r1_train_2763" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n0\\n1 0\\n\", \"2\\n0\\n1 0\\n\", \"3\\n0 0\\n0 1 1\\n\", \"3\\n0 0\\n1 1 1\\n\", \"3\\n0 1\\n0 1 1\\n\", \"3\\n0 0\\n0 1 1\\n\", \"5\\n0 1 1 3\\n0 0 0 1 1\\n\", \"5\\n0 1 1 3\\n0 0 0 1 1\\n\"], \"outputs\": [\"1\\n\", \"1\", \"2\\n\", \"1\\n\", \"1\\n\", \"2...
{ "index": "code_r1_train_2764" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100\\n1 13\", \"2 100\\n1 25\", \"2 101\\n1 25\", \"2 101\\n1 42\", \"2 101\\n1 10\", \"2 100\\n0 13\", \"2 001\\n1 25\", \"2 101\\n0 10\"], \"outputs\": [\"370\\n\", \"430\\n\", \"433\\n\", \"518\\n\", \"358\\n\", \"365\\n\", \"133\\n\", \"353\\n\"]}" }
{ "index": "code_r1_train_2765" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3\", \"3\\n0 0 3\", \"3\\n0 0 1\", \"3\\n1 1 3\", \"3\\n1 0 3\", \"3\\n0 0 2\", \"3\\n0 1 3\", \"3\\n0 2 5\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2766" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"Ehab\", \"Mahmoud\", \"Ehab\", \"Ehab\", \"Mahmoud\", \"Mahmoud\", \"Ehab\", \"Mahmoud\"]}" }
{ "index": "code_r1_train_2767" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 1 1 3 3 3 1 2\", \"1 1 3 4 8 9 7 3 3 5 5 5\", \"1 0 2 2 3 1 1 3 3 3 1 2\", \"1 1 3 7 8 9 7 3 3 5 5 5\", \"0 0 2 2 3 1 1 3 3 3 1 2\", \"1 1 2 2 5 1 2 3 3 3 1 2\", \"1 1 3 4 8 9 3 3 4 5 5 5\", \"1 1 2 2 3 1 2 3 2 3 1 2\"], \"outputs\": [\"no\\n\", \"no\\n...
{ "index": "code_r1_train_2768" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n1 2 3 2 6 6\\n6 9 5 21 15\", \"6 5\\n1 2 4 2 6 6\\n6 9 5 21 15\", \"6 5\\n1 2 4 2 6 7\\n6 9 5 21 15\", \"6 5\\n1 4 0 2 7 6\\n6 1 3 21 15\", \"6 5\\n0 2 4 2 6 6\\n6 9 5 21 15\", \"6 5\\n1 2 3 4 7 6\\n6 9 12 21 15\", \"6 5\\n1 2 3 2 7 6\\n6 9 12 21 15\", \"6 ...
{ "index": "code_r1_train_2769" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\", \"2\\n1\\n3\", \"2\\n2\\n3\", \"2\\n2\\n5\", \"2\\n2\\n2\", \"2\\n2\\n1\", \"2\\n4\\n5\", \"2\\n4\\n1\"], \"outputs\": [\"1\\n3\", \"1\\n4\\n\", \"3\\n4\\n\", \"3\\n6\\n\", \"3\\n3\\n\", \"3\\n1\\n\", \"7\\n6\\n\", \"7\\n1\\n\"]}" }
{ "index": "code_r1_train_2770" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 22\\n3 5\\n1 3\\n\", \"1 22\\n0 5\\n1 3\\n\", \"1 22\\n0 5\\n0 3\\n\", \"1 22\\n0 2\\n0 3\\n\", \"1 100\\n6 10\\n14 8\\n\", \"1 110\\n6 10\\n14 8\\n\", \"1 100\\n6 10\\n14 19\\n\", \"2 160\\n6 9\\n11 9\\n6 6\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1 \\n\", \"1...
{ "index": "code_r1_train_2771" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 75\\n\", \"1\\n543 1\\n\", \"1\\n531 2\\n\", \"1\\n531 0\\n\", \"1\\n6 176\\n\", \"1\\n543 0\\n\", \"1\\n2 176\\n\", \"1\\n723 1\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"6\\n\", \"0\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2772" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1 2\\n\", \"3 3 1 1 1\\n\", \"4 5 3 1 5\\n\", \"1 1 1 1 1\\n\", \"8 8 1 1 1\\n\", \"1 2 8 8 5\\n\", \"1 2 8 9 8\\n\", \"2 9 8 8 9\\n\"], \"outputs\": [\"First\\n\", \"Second\\n\", \"Friendship\\n\", \"Friendship\\n\", \"Second\\n\", \"Friendship\\n\", \"Fir...
{ "index": "code_r1_train_2773" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n0\\n\", \"1\\n0\\n0\\n\", \"2\\n0 0\\n1 1\\n\", \"2\\n1 1\\n0 1\\n\", \"2\\n1 1\\n0 1\\n\", \"2\\n0 0\\n1 1\\n\", \"2\\n0 1\\n0 1\\n\", \"2\\n1 0\\n1 1\\n\"], \"outputs\": [\"0 \\n\", \"0 \", \"1 1 \\n\", \"0 1 \\n\", \"0 1 \", \"1 1 \", \"0 0\\n\", \"0 1...
{ "index": "code_r1_train_2774" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"11\\n\", \"85\\n\", \"21\\n\", \"99\\n\", \"21\\n\", \"99\\n\", \"11\\n\", \"85\\n\"], \"outputs\": [\"-1\\n\", \"58\\n\", \"12\\n\", \"-1\\n\", \"12\\n\", \"-1\\n\", \"-1\\n\", \"58\\n\"]}" }
{ "index": "code_r1_train_2775" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 3 2\\n5\\n2 3 4 5 1\\n1\\n1\\n0\", \"4\\n1 4 3 4\\n5\\n2 3 4 5 1\\n1\\n1\\n0\", \"4\\n1 4 3 2\\n5\\n1 3 4 5 1\\n1\\n1\\n0\", \"4\\n1 4 3 4\\n5\\n0 3 4 5 0\\n0\\n1\\n0\", \"4\\n1 3 3 0\\n0\\n3 3 3 1 1\\n1\\n1\\n0\", \"4\\n1 4 3 2\\n0\\n2 3 4 0 1\\n1\\n1\\n...
{ "index": "code_r1_train_2776" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcdbbd\\n6\\n2 3 6\\n1 5 y\\n2 1 1\\n1 4 a\\n1 7 d\\n2 1 7\", \"7\\nabccbbd\\n6\\n2 3 6\\n1 5 y\\n2 1 1\\n1 4 a\\n1 7 d\\n2 0 7\", \"7\\nabdcbbd\\n6\\n2 3 6\\n1 5 z\\n2 1 1\\n1 4 a\\n1 7 d\\n2 0 7\", \"7\\nabcdbbd\\n6\\n2 3 0\\n1 5 z\\n2 1 1\\n1 4 a\\n1 7 d\...
{ "index": "code_r1_train_2777" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 2 2\\n\", \"2 2 2 2\\n\", \"1 0 2 0\\n\", \"3 3 2 1\\n\", \"1 1 0 0\\n\", \"1 0 0 1\\n\", \"1 0 1 0\\n\", \"7 3 0 5\\n\"], \"outputs\": [\"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2778" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"A\\n\", \"B\\n\", \"C\\n\", \"D\\n\", \"@\\n\", \"E\\n\", \"F\\n\", \"G\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2779" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 1\\n\", \"3 7 2\\n\", \"5 4 7\\n\", \"3 1 1\\n\", \"5 4 9\\n\", \"3 1 2\\n\", \"7 4 9\\n\", \"1 1 2\\n\"], \"outputs\": [\"32\\n\", \"350\\n\", \"52000000\\n\", \"30\\n\", \"5200000000\\n\", \"300\\n\", \"7200000000\\n\", \"100\\n\"]}" }
{ "index": "code_r1_train_2780" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n0 0\\n1 0\\n0 1\\n0 -1\\n5\\n31 3\\n30 -6\\n20 15\\n25 18\\n25 38\\n1\\n0 0\\n1 1\", \"3\\n5\\n0 0\\n0 0\\n1 0\\n0 1\\n0 -1\\n5\\n31 5\\n30 -6\\n20 15\\n25 18\\n25 38\\n1\\n0 0\\n1 1\", \"3\\n5\\n0 0\\n-1 0\\n1 0\\n0 1\\n0 -1\\n5\\n4 7\\n30 -41\\n20...
{ "index": "code_r1_train_2781" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4\\n1 1\\n2 3\\n2 4\", \"4 4\\n2 4\\n1 1\\n2 0\\n2 4\", \"4 4\\n3 4\\n1 1\\n2 3\\n2 4\", \"4 4\\n2 4\\n1 1\\n2 0\\n3 4\", \"4 4\\n1 4\\n1 1\\n2 0\\n3 4\", \"4 5\\n0 4\\n0 1\\n4 5\\n3 4\", \"4 7\\n2 4\\n0 1\\n2 3\\n5 7\", \"4 7\\n1 3\\n0 1\\n4 1\\n3 7\"], ...
{ "index": "code_r1_train_2782" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 4 5 7\", \"5\\n0 4 4 5 7\", \"5\\n0 4 4 5 0\", \"5\\n1 4 4 5 7\", \"5\\n0 5 4 5 7\", \"5\\n1 3 4 6 7\", \"5\\n2 5 4 5 7\", \"5\\n1 4 4 7 7\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_2783" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n(\\n\", \"8 1\\n(\\n\", \"9 1\\n(\\n\", \"4 1\\n(\\n\", \"2 2\\n)(\\n\", \"2 2\\n))\\n\", \"2 2\\n)(\\n\", \"2 2\\n))\\n\"], \"outputs\": [\"4\\n\", \"56\\n\", \"0\\n\", \"4\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2784" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n0\\n4\\n1\", \"3 2\\n0\\n6\\n1\", \"3 2\\n1\\n4\\n3\", \"3 2\\n4\\n0\\n6\", \"3 2\\n0\\n3\\n6\", \"3 2\\n0\\n4\\n6\", \"3 2\\n1\\n5\\n6\", \"3 2\\n0\\n3\\n7\"], \"outputs\": [\"-1\\n\", \"-3\\n\", \"1\\n\", \"-2\\n\", \"5\\n\", \"4\\n\", \"3\\n\", \"5\\n\"]...
{ "index": "code_r1_train_2785" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n3\\n1 2 1\\n4\\n2 4 1 3\\n5\\n2 5 1 4 3\\n\", \"4\\n2\\n2 1\\n3\\n1 2 1\\n4\\n2 4 1 3\\n5\\n2 5 1 4 3\\n\", \"4\\n2\\n2 2\\n3\\n1 2 1\\n4\\n2 4 1 3\\n5\\n2 5 1 4 3\\n\", \"4\\n2\\n2 1\\n3\\n1 2 1\\n4\\n2 4 0 3\\n5\\n2 5 1 4 3\\n\", \"4\\n2\\n2 2\\n3...
{ "index": "code_r1_train_2786" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n5 6\\n3 3\\n2 2\\n1 0\\n0 0\", \"3 7\\n5 6\\n3 3\\n2 2\\n1 0\\n0 0\", \"3 7\\n5 6\\n3 0\\n2 2\\n1 0\\n0 0\", \"6 7\\n5 6\\n3 0\\n2 2\\n1 0\\n0 0\", \"3 4\\n5 6\\n2 3\\n2 2\\n1 1\\n0 0\", \"3 4\\n5 6\\n3 3\\n2 4\\n1 0\\n0 0\", \"3 7\\n5 6\\n4 3\\n2 2\\n1 0\\...
{ "index": "code_r1_train_2787" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"2 2 0 1\\n1 2\\n\", \"2 2 1 1\\n1 2\\n\", \"2 6 2 2\\n1 2\\n1 5\\n\", \"5 9 2 2\\n4 6\\n1 5\\n\", \"5 9 2 2\\n4 6\\n1 6\\n\", \"2 6 2 2\\n1 4\\n1 5\\n\", \"8 9 2 2\\n4 6\\n1 6\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"4\\n\", \"8\\n\", \"40...
{ "index": "code_r1_train_2788" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 2 2\\n\", \"5 1 5\\n\", \"1 1 1\\n\", \"1 1 1\\n\", \"2 1 1\\n\", \"2 1 2\\n\", \"2 2 2\\n\", \"3 1 2\\n\"], \"outputs\": [\"5 7\\n\", \"5 31\\n\", \"1 1\\n\", \"1 1\\n\", \"2 2\\n\", \"2 3\\n\", \"3 3\\n\", \"3 5\\n\"]}" }
{ "index": "code_r1_train_2789" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 2\\n\", \"2\\n6 7\\n\", \"2\\n4 4\\n\", \"2\\n8 8\\n\", \"2\\n6 5\\n\", \"2\\n8 8\\n\", \"2\\n6 5\\n\"], \"outputs\": [\"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\", \"1 2\\n\"]}" }
{ "index": "code_r1_train_2790" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 3\\n*.***\\n.****\\n..***\\n*.***\\n.**.*\\n\", \"5 5 1\\n.....\\n.....\\n.*..*\\n*.*..\\n....*\\n\", \"5 5 4\\n*.***\\n.****\\n..***\\n*.***\\n.**.*\\n\", \"5 5 7\\n*.***\\n.****\\n..***\\n*.***\\n.**.*\\n\", \"5 5 3\\n*.***\\n.****\\n..***\\n***.*\\n.**.*\\...
{ "index": "code_r1_train_2791" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 4\\n3 2\\n2 3 4\\n3 4\\n9 14\\n2 7 9 28 33 12 59 92 99\\n6 9 14 19 8 26 5 35 41 68 85 87 99 100\\n\", \"3\\n1 2\\n1\\n1 4\\n3 2\\n2 3 4\\n3 4\\n9 14\\n2 7 9 28 33 12 59 92 99\\n6 9 14 19 8 45 5 35 41 68 85 87 99 100\\n\", \"3\\n1 2\\n1\\n1 4\\n3 2...
{ "index": "code_r1_train_2792" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0\\n\", \"2 2 1 0\\n00\\n\", \"1 1 1 -1\\n0\\n\", \"1 1 1 -2\\n0\\n\", \"1 1 1 -3\\n0\\n\", \"2 2 1 -1\\n00\\n\", \"5 4 1 0\\n00000\\n\", \"5 1 2 1\\n00100\\n\"], \"outputs\": [\"1\\n1 \", \"1\\n1 \", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n...
{ "index": "code_r1_train_2793" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n167038488\\n\", \"1\\n291933570\\n\", \"1\\n329706911\\n\", \"1\\n100414917\\n\", \"1\\n372302247\\n\", \"1\\n184950274\\n\", \"3\\n638631659\\n929648227\\n848163730\\n\", \"3\\n123456789\\n100000001\\n100123456\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n...
{ "index": "code_r1_train_2794" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nb\\n\", \"1\\nb\\nb\\n\", \"1\\nb\\nb\\n\", \"1\\na\\na\\n\", \"1\\nb\\na\\n\", \"1\\na\\nb\\n\", \"2\\nbb\\nbb\\n\", \"2\\nab\\nba\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"2\\n1 1\\n1 2\\n\"]}" }
{ "index": "code_r1_train_2795" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 2\", \"3 1\\n1 1 1\", \"3 1\\n1 1 1\\n\", \"4 2\\n1 1 2 4\", \"4 2\\n1 1 1 4\", \"4 2\\n0 1 3 4\", \"4 2\\n0 1 2 4\", \"4 4\\n2 2 1 4\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"10\\n\", \"9\\n\", \"14\\n\", \"13\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_2796" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\", \"2\", \"1\", \"0\", \"1\\n\", \"60\", \"91\", \"79\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_2797" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100\\n\", \"1\\n1\\n100\\n\", \"1\\n2\\n1 5\\n\", \"1\\n1\\n101\\n\", \"1\\n1\\n111\\n\", \"1\\n2\\n1 8\\n\", \"1\\n1\\n011\\n\", \"1\\n1\\n010\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2798" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"3\\n1 0 1\\n\", \"3\\n0 0 1\\n\", \"3\\n0 0 1\\n\", \"3\\n0 1 0\\n\", \"3\\n1 1 1\\n\", \"3\\n0 1 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\", \"2\\n\", \"-1\\n\", \"-1\", \"-1\\n\", \"2\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_2799" }