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\": [\"3\\n)()\", \"3\\n)))\", \"3\\n))(\", \"3\\n(()\", \"3\\n())\", \"3\\n())\\n\", \"6\\n)())))\", \"6\\n())())\"], \"outputs\": [\"()()\\n\", \"((()))\\n\", \"(())()\\n\", \"(())\\n\", \"(())\", \"(())\\n\", \"(((()())))\\n\", \"((())())\\n\"]}" }
{ "index": "code_r1_train_4700" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n6\\n4\\n3 6 6 6\\n2 7 4 1\\n4\\n6 7 2 4\\n2 5 3 5\\n\", \"4\\n33\\n2 1 3 6 5 9 5 7 6 7 2 9 9 9 8 1 3 6 10 7 9 3 8 5 4 7 6 6 1 3 3 4 4\\n9 9 6 9 10 8 2 6 4 7 10 6 10 1 8 8 1 4 10 7 5 2 5 6 1 5 8 8 3 10 1 10 3\\n21\\n5 9 8 5 8 10 10 7 3 8 7 3 5 7 7 10 3...
{ "index": "code_r1_train_4701" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 2 17 3\\n4\\n9 55 74 42\\n3\\n4 6 4\\n5\\n1 1 3 4 2\\n6\\n9 7 27 9 9 101\\n\", \"5\\n4\\n26 24 10 5\\n4\\n9 58 41 42\\n3\\n4 6 4\\n5\\n1 2 2 4 5\\n6\\n9 9 27 9 9 63\\n\", \"5\\n4\\n16 40 9 5\\n4\\n64 58 41 42\\n3\\n4 6 4\\n5\\n1 2 3 4 5\\n6\\n9 9 27 9 9...
{ "index": "code_r1_train_4702" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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????CIELIS???E?\\n????CIELISOUR???F\\nT?KEITE?SY\\n????????\\n???C???\", \"5\\n????CIELIS???E?\\n????CIELISOUR???F\\nT?KEITE?SY\\n????????\\n@??C???\", \"5\\n????CIELIS???E?\\n????CIELISOUR???F\\nYS?ETIEK?T\\n????????\\n@??C???\", \"5\\n????CIELIS???E?\\n????...
{ "index": "code_r1_train_4703" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"2\\n0 1\\n\", \"2\\n1 0\\n\", \"2\\n0 0\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"0\", \"0\", \"0\\n\", \"0\\n\", \"0\", \"1\", \"0\", \"0\"]}" }
{ "index": "code_r1_train_4704" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n2 2\\n\", \"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n2 2\\n\"], \"outputs\": [\"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4705" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n0\", \"9\\n8\\n0\", \"9\\n2\\n0\", \"9\\n5\\n0\", \"9\\n3\\n0\", \"9\\n6\\n0\", \"9\\n9\\n0\", \"9\\n0\\n0\"], \"outputs\": [\"2\\n0\\n\", \"2\\n0\\n\", \"2\\n0\\n\", \"2\\n1\\n\", \"2\\n1\\n\", \"2\\n1\\n\", \"2\\n2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4706" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 5 5\\n\", \"5 2 4 5 9 9 6\\n\", \"4 5 1 2 4 6 2\\n\", \"1 3 2 2 5 2 8\\n\", \"4 2 1 2 5 2 3\\n\", \"4 2 1 2 5 2 3\\n\", \"4 5 1 2 4 6 2\\n\", \"5 2 4 5 9 9 6\\n\"], \"outputs\": [\"15\\n\", \"42\\n\", \"30\\n\", \"15\\n\", \"17\\n\", \"17\", \"30\", \"4...
{ "index": "code_r1_train_4707" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 2\\n1\\n\", \"2 1 1\\n1\\n2\\n\", \"2 1 2\\n1\\n2\\n\", \"2 1 2\\n1\\n4\\n\", \"2 1 1\\n1\\n1\\n\", \"2 1 1\\n1\\n2\\n\"], \"outputs\": [\"Both\\n\", \"Both\\n\", \"Vova\\n\", \"Both\\nBoth\\n\", \"Vova\\nBoth\\n\", \"Vova\...
{ "index": "code_r1_train_4708" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"47\\nS 1\\nS 11\\nS 12\\nS 13\\nH 2\\nH 3\\nS 6\\nS 7\\nS 8\\nS 9\\nH 6\\nH 8\\nH 9\\nH 7\\nH 11\\nH 4\\nH 5\\nS 2\\nS 3\\nS 4\\nS 5\\nH 12\\nH 13\\nC 1\\nC 2\\nD 1\\nD 2\\nD 3\\nD 4\\nD 5\\nD 6\\nD 7\\nC 3\\nC 4\\nC 5\\nC 6\\nC 7\\nC 8\\nC 9\\nC 10\\nC 11\\nC 13...
{ "index": "code_r1_train_4709" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 1 4\\n3\\n4\\n\", \"1 1 7\\n5\\n6\\n\", \"1 1 7\\n5\\n7\\n\", \"1 1 5\\n5\\n6\\n\", \"1 1 4\\n4\\n5\\n\", \"1 1 5\\n1\\n4\\n\", \"1 1 4\\n8\\n7\\n\"], \"outputs\": [\"1\\n\", \"5\\n\", \"8\\n\", \"9\\n\", \"6\\n\", \"5\\n\", \"20\\n\", \"4...
{ "index": "code_r1_train_4710" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nX\", \"3\\n---\", \"5\\n-X--X\", \"5\\n-X-X-\", \"5\\nX-X--\", \"5\\n-XX--\", \"5\\n---XX\", \"5\\n--XX-\"], \"outputs\": [\"500000004 0 500000003\", \"0 0 0\", \"0 0 1\\n\", \"500000004 0 500000002\\n\", \"0 0 666666672\\n\", \"0 0 0\\n\", \"0 0 0\\n\", \"0 ...
{ "index": "code_r1_train_4711" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"1 2\\n7\\n\", \"1 1\\n7\\n\", \"1 2\\n1\\n\", \"1 1\\n14\\n\", \"1 1\\n14\\n\", \"5 2\\n1 2 2 1 3\\n\", \"5 2\\n1 2 2 1 3\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4712" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 3 1\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n4 8\", \"3 3 1\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n4 9\", \"3 3 3\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n4 8\", \"3 3 2\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n4 1\", \"3 3 1\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n8 9\", \"3 3 2\\n1 4 3\\n2 5 7\\n8 9 6\\n1\\n4 ...
{ "index": "code_r1_train_4713" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n4\\n\", \"1 100\\n99\\n\", \"1 100\\n51\\n\", \"1 001\\n51\\n\"], \"outputs\": [\"2 \\n\", \"1 \\n\", \"2\\n\", \"1\\n\", \"4\\n\", \"0 \\n\", \"0\\n\", \"51\\n\"]}" }
{ "index": "code_r1_train_4714" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"L\\n\", \"R\\n\", \"RR\\n\", \"DL\\n\", \"LD\\n\", \"UL\\n\", \"DDR\\n\", \"ULD\\n\"], \"outputs\": [\"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"OK\\n\", \"BUG\\n\"]}" }
{ "index": "code_r1_train_4715" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nSG\\n\", \"1 2\\nGS\\n\", \"1 2\\nSG\\n\", \"1 2\\nGS\\n\", \"1 3\\nS*G\\n\", \"1 3\\nG*S\\n\", \"1 3\\nS*G\\n\", \"1 4\\nSG**\\n\"], \"outputs\": [\"-1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4716" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1 1\\n0\\n\", \"5 2\\n0\\n\", \"2 1\\n0\\n\", \"3 1\\n0\\n\", \"2 2\\n0\\n\", \"15 5\\n0\\n\", \"20 1\\n0\\n\"], \"outputs\": [\"5\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_4717" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"agaa\\n\", \"bgaa\\n\", \"aagb\\n\", \"agab\\n\", \"agbb\\n\", \"bgbb\\n\", \"bbbg\\n\", \"gbbb\\n\"], \"outputs\": [\"3\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4718" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n2 1 1 3 2 3\\n\", \"3\\n2 1 1 3 2 3\\n\", \"5\\n5 1 3 2 4 3 1 2 4 5\\n\", \"5\\n5 1 3 2 4 3 1 2 4 5\\n\", \"5\\n5 2 3 1 4 3 1 2 4 5\\n\", \"5\\n5 2 3 1 4 3 2 2 4 5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"...
{ "index": "code_r1_train_4719" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 1\\n1\\n7 3 3\\n1 5 7\\n10 5 3\\n4 5 6\\n13 7 7\\n1 3 5 7 9 11 12\\n\", \"4\\n3 3 1\\n1\\n7 3 3\\n1 5 7\\n10 5 3\\n4 5 6\\n13 7 7\\n2 3 5 7 9 11 12\\n\", \"4\\n3 5 1\\n1\\n8 3 3\\n1 5 7\\n10 5 3\\n4 5 6\\n13 7 7\\n2 3 5 7 9 11 12\\n\", \"4\\n3 5 1\\n1\\n7...
{ "index": "code_r1_train_4720" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n4\\n1 2 4 100\\n4\\n100 000 100 1\\n5\\n5 1 1 1 8\\n6\\n1 2 3 4 5 6\\n\", \"4\\n4\\n1 2 5 100\\n4\\n100 100 100 1\\n5\\n5 2 1 1 8\\n6\\n1 2 3 6 5 6\\n\", \"4\\n4\\n1 0 6 100\\n4\\n000 101 100 2\\n5\\n5 1 1 1 8\\n6\\n1 1 2 3 0 7\\n\", \"4\\n4\\n2 2 2 100\\n4\\...
{ "index": "code_r1_train_4721" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\")(\\n\", \"()\\n\", \"()\\n\", \"((\\n\", \"))\\n\", \")(\\n\", \"(()((\\n\", \"())((\\n\"], \"outputs\": [\"0\\n\", \"1\\n2\\n1 2 \\n\", \"1\\n2\\n1 2 \", \"0\\n\", \"0\\n\", \"0\", \"1\\n2\\n1 3 \\n\", \"1\\n2\\n1 3\\n\"]}" }
{ "index": "code_r1_train_4722" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 7 1\", \"1 7 6 8\", \"5 4 5 2\", \"0 8 3 1\", \"1 1 6 8\", \"2 4 5 2\", \"0 1 6 8\", \"2 3 5 2\"], \"outputs\": [\"Balanced\\n\", \"Right\\n\", \"Left\\n\", \"Left\\n\", \"Right\\n\", \"Right\\n\", \"Right\\n\", \"Right\\n\"]}" }
{ "index": "code_r1_train_4723" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0 1\\n1 2 1\\n0 2 1\", \"1 1\\n0 0 0\\n1 2 1\\n0 2 1\", \"3 3\\n0 0 1\\n2 2 1\\n0 2 1\", \"3 3\\n0 1 1\\n1 2 1\\n0 0 1\", \"3 3\\n0 0 0\\n1 2 1\\n0 2 1\", \"3 3\\n0 0 1\\n2 2 1\\n0 2 2\", \"3 3\\n0 2 1\\n1 2 1\\n0 0 1\", \"3 3\\n0 0 0\\n1 0 1\\n0 2 1\"], ...
{ "index": "code_r1_train_4724" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n2 1\\n3 8\\n4 1\\n2 1\\n2 4\", \"6\\n1 2\\n2 4\\n6 8\\n4 8\\n1 1\\n2 4\", \"6\\n1 1\\n2 4\\n3 2\\n4 4\\n4 1\\n1 4\", \"6\\n2 2\\n2 4\\n6 8\\n4 8\\n1 1\\n2 4\", \"6\\n1 1\\n2 1\\n4 8\\n5 1\\n2 1\\n2 4\", \"6\\n1 1\\n2 4\\n3 8\\n4 16\\n4 1\\n1 4\", \"6\\n...
{ "index": "code_r1_train_4725" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n01\\n\", \"2\\n10\\n\", \"2\\n11\\n\", \"2\\n00\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4726" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 0 4\", \"4\\n1 2 0 5\", \"4\\n1 1 0 5\", \"4\\n0 1 0 5\", \"4\\n0 1 0 3\", \"4\\n1 2 3 4\", \"4\\n1 2 3 4\\n\", \"4\\n-1 1 0 3\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4727" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n1 1\\n\", \"3 3\\n2 2\\n1\\n2 0\\n\", \"1 1\\n1 1\\n1\\n1 0\\n\", \"3 3\\n2 2\\n0\\n2 0\\n\", \"3 3\\n2 2\\n0\\n2 1\\n\", \"3 0\\n2 2\\n0\\n2 1\\n\", \"3 0\\n2 2\\n0\\n2 2\\n\", \"3 0\\n0 2\\n0\\n2 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n...
{ "index": "code_r1_train_4728" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2019/03/30\", \"2019/11/00\", \"2019/04/20\", \"2019/12/01\", \"2019/14/20\", \"2119/12/01\", \"2019/24/10\", \"1019/04/30\"], \"outputs\": [\"Heisei\\n\", \"TBD \\n\", \"Heisei\\n\", \"TBD \\n\", \"TBD \\n\", \"TBD \\n\", \"TBD \\n\", \"Heisei\\n\"]}" }
{ "index": "code_r1_train_4729" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n748143\\n\", \"3\\n6\\n0\\n8755775\\n\", \"3\\n0\\n2\\n507180918\\n\", \"3\\n1\\n2\\n507180918\\n\", \"3\\n1\\n2\\n759698327\\n\", \"3\\n1\\n1\\n326714685\\n\", \"3\\n2\\n0\\n255775825\\n\", \"3\\n2\\n0\\n320732063\\n\"], \"outputs\": [\"2\\n2\\n8192\...
{ "index": "code_r1_train_4730" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n3 1 2\\n1 2 3\\n\", \"3\\n3 2 1\\n1 2 3\\n\", \"5\\n1 5 2 3 4\\n1 2 3 4 5\\n\", \"5\\n1 2 3 4 5\\n1 5 2 3 4\\n\", \"7\\n6 1 7 3 4 5 2\\n6 1 7 3 4 5 2\\n\", \"10\\n5 8 1 10 3 6 2 9 7 4\\n4 2 6 3 1 9 10 5 8 7\\n\", \"10\\n1 6 10 3 4 9 2 5 8 7\...
{ "index": "code_r1_train_4731" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 1\\n11\\n\", \"11 10 1\\n11\\n\", \"11 10 1\\n11\\n\", \"5 5 5\\n1 1 1 1 1\\n\", \"5 5 5\\n1 1 1 1 1\\n\", \"5 5 5\\n1 1 2 1 1\\n\", \"5 2 5\\n1 1 2 1 1\\n\", \"5 2 5\\n2 1 2 1 1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \...
{ "index": "code_r1_train_4732" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 1\\n7 1 2\\n1 28 1\\n\", \"3\\n4 5 1\\n7 1 2\\n2 28 2\\n\", \"3\\n4 5 1\\n7 1 2\\n2 25 2\\n\", \"3\\n6 5 1\\n7 1 2\\n2 25 2\\n\", \"3\\n6 5 1\\n9 1 2\\n2 25 2\\n\", \"3\\n6 5 1\\n1 1 2\\n2 25 2\\n\", \"3\\n4 3 1\\n7 1 2\\n1 28 2\\n\", \"3\\n4 3 1\\n7 1 2\...
{ "index": "code_r1_train_4733" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0111\\n1000\\n1000\\n1000\", \"4\\n1111\\n1000\\n1000\\n1000\", \"4\\n0111\\n1100\\n0000\\n1001\", \"4\\n1111\\n1010\\n1000\\n1010\", \"4\\n0011\\n0000\\n0000\\n1001\", \"4\\n1111\\n1100\\n0000\\n1001\", \"4\\n0110\\n1000\\n0000\\n1001\", \"4\\n0011\\n1000\\n...
{ "index": "code_r1_train_4734" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n110 16 20\\n98 86 19\\n80 8 39\\n65 79 65\\n2\\n99 81 9\\n66 72 90\\n0\", \"4\\n010 163 20\\n98 86 5\\n80 34 33\\n65 79 65\\n2\\n49 81 20\\n97 1 4\\n0\", \"4\\n110 11 20\\n98 86 19\\n80 10 39\\n65 0 65\\n2\\n99 81 9\\n66 102 90\\n0\", \"4\\n100 64 20\\n51 86 ...
{ "index": "code_r1_train_4735" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n6\\n2\\n2\\n0\", \"3\\n5\\n9\\n6\\n3\\n2\\n0\", \"3\\n5\\n9\\n5\\n3\\n2\\n0\", \"3\\n5\\n9\\n1\\n3\\n2\\n0\", \"3\\n5\\n9\\n1\\n4\\n2\\n0\", \"3\\n5\\n9\\n2\\n4\\n2\\n0\", \"3\\n5\\n9\\n4\\n2\\n19\\n0\", \"3\\n5\\n5\\n3\\n8\\n19\\n0\"], \"outputs\": [...
{ "index": "code_r1_train_4736" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1000000\\n22\\n\", \"1\\n1000000\\n22\\n\", \"1\\n1000000\\n221\\n\", \"1\\n1000000\\n221\\n\", \"1\\n1000000\\n1221\\n\", \"1\\n1000000\\n2121\\n\", \"1\\n1000000\\n2211\\n\", \"1\\n1000000\\n1212\\n\"], \"outputs\": [\"1000002\\n\", \"1000002\\n\", \"100182...
{ "index": "code_r1_train_4737" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"yzyz\\nyz\", \"xzyz\\nyz\", \"zyzy\\nyz\", \"xyzz\\nyz\", \"aaabaa\\naa\", \"aabbaa\\naa\", \"aabaab\\naa\", \"aababb\\naa\"], \"outputs\": [\"0\\n2\\n\", \"2\\n\", \"1\\n\", \"1\", \"0\\n1\\n4\\n\", \"0\\n4\\n\", \"0\\n3\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4738" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"0\", \"3\", \"6\", \"4\", \"7\", \"8\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}" }
{ "index": "code_r1_train_4739" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n05:43\\n\", \"1\\n04:43\\n\", \"1\\n05:43\\n\", \"2\\n00:00\\n23:59\\n\", \"2\\n01:00\\n01:01\\n\", \"2\\n06:25\\n22:43\\n\", \"2\\n05:53\\n04:15\\n\", \"2\\n11:24\\n13:53\\n\"], \"outputs\": [\"23:59\\n\", \"23:59\\n\", \"23:59\\n\", \"23:58\\n\", \"23:58\\n...
{ "index": "code_r1_train_4740" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1 2\\n\", \"1\\n1 1\\n\", \"1\\n1 4\\n\", \"1\\n2 1\\n\", \"2\\n1 1\\n1 1\\n\", \"2\\n1 2\\n2 3\\n\", \"2\\n1 2\\n2 1\\n\", \"2\\n1 1\\n0 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4741" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n49845 2\\n\", \"1\\n96290 2\\n\", \"1\\n51548 1\\n\", \"1\\n25702 1\\n\", \"1\\n25113 1\\n\", \"1\\n49777 3\\n\", \"1\\n38068 2\\n\", \"1\\n49845 1\\n\"], \"outputs\": [\"49845\\n\", \"96290\\n\", \"51548\\n\", \"25702\\n\", \"25113\\n\", \"49777\\n\", \"3806...
{ "index": "code_r1_train_4742" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"19 9\", \"31 9\", \"40 9\", \"66 9\", \"3 19\", \"3 38\", \"28 5\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4743" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1\\n3\\n\", \"1 1 1\\n1\\n1\\n\", \"1 1 1\\n1\\n1\\n\", \"2 1 1\\n1\\n1\\n\", \"2 1 2\\n1\\n1\\n\", \"3 1 2\\n1\\n1\\n\", \"5 1 3\\n1\\n2\\n\", \"5 1 2\\n1\\n1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \...
{ "index": "code_r1_train_4744" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 1\\n2 1 4\\n5 3 2\", \"3 1\\n3 1 3\\n5 3 2\", \"3 1\\n3 1 4\\n5 3 2\", \"3 1\\n3 1 4\\n5 3 2\\n\", \"7 2\\n42 28 8 0 9 214 1000000010\\n1001001011 2 5\\n0000001001 0 4\\n1011010001 0 1\", \"7 1\\n39 18 39 0 9 214 1000000010\\n1001001010 0 5\\n0000000001 0 2\\n1...
{ "index": "code_r1_train_4745" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2 5 6\\n6 5 4 3 2 1\", \"1 2 3 2 5 6\\n6 1 4 3 2 1\", \"1 2 3 2 5 6\\n6 0 4 3 2 1\", \"1 2 3 2 5 6\\n6 0 4 3 4 1\", \"1 2 3 2 7 6\\n6 0 4 3 4 1\", \"1 2 3 2 7 3\\n6 0 4 3 4 1\", \"1 2 2 2 7 6\\n6 0 4 3 4 1\", \"1 2 2 2 7 9\\n6 0 4 3 4 1\"], \"outputs\": [\"...
{ "index": "code_r1_train_4746" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n1 3 4 2\\n\", \"4\\n1 2 4 3\\n\", \"4\\n1 2 3 4\\n\", \"4\\n2 1 4 3\\n\", \"4\\n1 3 2 4\\n\", \"4\\n2 3 1 4\\n\"], \"outputs\": [\"1 1\\n\", \"1 1 \", \"1 2 3 2 1\\n\", \"1 2 3 3 1\\n\", \"1 2 3 4 1\\n\", \"1 2 3 3 1\\n\", \"1 2 3 ...
{ "index": "code_r1_train_4747" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"..\\n1\\n1 2\\n\", \"##\\n1\\n1 2\\n\", \".#\\n1\\n1 2\\n\", \"#.\\n1\\n1 2\\n\", \"#.\\n1\\n1 2\\n\", \"##\\n1\\n1 2\\n\", \"..\\n1\\n1 2\\n\", \".#\\n1\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\"]}" ...
{ "index": "code_r1_train_4748" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n5 2\\n3 5\\n5 1\\n1\", \"2\\n5 2\\n3 5\\n7 1\\n1\", \"2\\n5 2\\n3 3\\n7 1\\n1\", \"2\\n6 2\\n1 3\\n7 1\\n2\", \"2\\n6 0\\n1 3\\n7 0\\n1\", \"2\\n5 2\\n3 3\\n7 0\\n1\", \"2\\n5 2\\n1 3\\n7 0\\n1\", \"2\\n6 2\\n1 3\\n7 0\\n1\"], \"outputs\": [\"Mom\\nChef\", \"...
{ "index": "code_r1_train_4749" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n29\\nH L1 5\\nC1 D 6\\nC1 H 1\\nL1 D 10\\nC1 L1 20\\n2 1 4 6\\n110 70\\nH L1 5\\nC1 L1 12\\nC1 D 1\\nC2 L1 7\\nC2 D 10\\nL1 D 8\\n0 0 0 0\", \"1 1 2 5\\n29\\nH L1 5\\nC1 D 6\\nC1 H 1\\nL1 D 10\\nC1 L1 20\\n2 1 4 6\\n110 70\\nH L1 5\\nC1 L1 12\\nC1 D 1\\...
{ "index": "code_r1_train_4750" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3\", \"5\\n1 2 2 3\", \"5\\n1 2 2 2\", \"5\\n1 1 2 5\", \"5\\n1 2 4 3\", \"5\\n1 2 4 2\", \"5\\n2 1 2 5\", \"5\\n1 2 4 5\"], \"outputs\": [\"2\\n1\\n1\\n0\\n0\\n\", \"1\\n2\\n1\\n0\\n0\\n\", \"1\\n3\\n0\\n0\\n0\\n\", \"2\\n1\\n0\\n0\\n1\\n\", \"1\\n1\\n...
{ "index": "code_r1_train_4751" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 6\\n1 4\\n7 2 3 6\\n5 1\\n7 2 3 6\\n4 4\\n\", \"3\\n7 2 3 6\\n1 4\\n7 2 3 6\\n5 1\\n7 2 3 6\\n2 4\\n\", \"3\\n7 2 3 6\\n1 4\\n7 2 3 4\\n5 1\\n7 2 3 6\\n2 4\\n\", \"3\\n7 2 3 6\\n1 4\\n7 2 3 9\\n5 1\\n7 2 3 6\\n2 4\\n\", \"3\\n7 2 3 6\\n1 4\\n7 2 1 2\\n5...
{ "index": "code_r1_train_4752" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nF S T\", \"3\\nF R T\", \"3\\nG S T\", \"3\\nG R T\", \"3\\nH R T\", \"3\\nF U T\", \"3\\nE S T\", \"3\\nE T T\"], \"outputs\": [\"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\", \"T\\n\"]}" }
{ "index": "code_r1_train_4753" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n\", \"2 2\\n\", \"1 6\\n\", \"2 3\\n\", \"1 0\\n\", \"9 5\\n\", \"8 3\\n\", \"2 6\\n\"], \"outputs\": [\"NO\", \"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4754" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"14\\n2\\n\", \"14\\n3\\n\", \"555\\n2\\n\", \"555\\n4\\n\", \"555\\n6\\n\", \"555\\n9\\n\", \"14\\n66\\n\", \"14\\n95\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"63\\n\", \"4095\\n\", \"262143\\n\", \"134217727\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4755" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 3\\n2 2 3\", \"3 3\\n2 2 2\", \"6 3\\n2 2 2\", \"6 3\\n0 2 2\", \"6 3\\n0 3 2\", \"3 3\\n1 2 4\", \"3 3\\n2 2 0\", \"3 3\\n2 2 1\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4756" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 \\n10 2 001\\n0 8 5\\n180 1 0\", \"3 \\n10 2 001\\n0 8 2\\n180 1 0\", \"3 \\n41 2 001\\n0 8 15\\n180 1 0\", \"3 \\n10 2 001\\n0 8 15\\n180 1 0\", \"3 \\n10 2 000\\n0 8 15\\n180 1 0\", \"3 \\n10 2 000\\n0 7 15\\n180 1 0\", \"3 \\n3 2 101\\n0 45 15\\n180 0 0\", \...
{ "index": "code_r1_train_4757" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcd\\n\", \"4 11\\nddcd\\n\", \"4 11\\nzzaz\\n\", \"5 10\\ndcdcd\\n\", \"5 10\\ncbcbc\\n\", \"5 10\\nbbabb\\n\", \"8 16\\ndbcadabc\\n\", \"8 20\\nccaccaca\\n\"], \"outputs\": [\"aaaaa\\n\", \"ddcddcddcdd\\n\", \"zzazzazzazz\\n\", \"dcdcdcdcdc\\n\", \"cbcbc...
{ "index": "code_r1_train_4758" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2\\n\", \"1\\n5 4 2\\n\", \"1\\n5 4 4\\n\", \"1\\n5 1 4\\n\", \"1\\n3 1 4\\n\", \"1\\n7 4 4\\n\", \"1\\n6 5 2\\n\", \"1\\n1926 54 3018\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"2\\n\", \"5\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"1873\\n\"]}" }
{ "index": "code_r1_train_4759" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n4\\n\", \"1 1\\n2\\n\", \"1 1\\n0\\n\", \"1 1\\n20\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4760" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nz\\n+ 3 z\\n\", \"1 1\\nt\\n+ 2 p\\n\", \"1 1\\nt\\n+ 2 p\\n\", \"1 1\\nz\\n+ 3 z\\n\", \"1 1\\nt\\n+ 3 p\\n\", \"1 1\\ns\\n+ 3 p\\n\", \"1 1\\ns\\n+ 3 o\\n\", \"1 1\\ns\\n+ 2 o\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \...
{ "index": "code_r1_train_4761" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"2\\n2 1\\n\", \"2\\n1 4\\n\", \"2\\n2 4\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4762" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nDurett 7\\nGayles 3\\nFacenda 6\\nyrethguaD 0\\n1\\n+ Mccourtney 2\", \"4\\nDurett 7\\nGayles 3\\nFacenda 6\\nDaughtery 0\\n1\\n+ yentruoccM 3\", \"4\\nDurett 7\\nGaylds 3\\nFbccnda 2\\nyrethguaD 0\\n1\\n+ yeotruoccM 2\", \"4\\nDurett 7\\nGaylds 3\\nFbccnda 2...
{ "index": "code_r1_train_4763" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1 2\", \"1 3\", \"1 5\", \"1 4\", \"1 8\", \"1 6\", \"1 9\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"5\\n\", \"4\\n\", \"8\\n\", \"6\\n\", \"9\\n\"]}" }
{ "index": "code_r1_train_4764" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 5\\n52\\n13\\n486\\n7\\n1488\\n894750131415894825036585194360843535399018392\", \"1 5\\n52\\n26\\n2866\\n7\\n9112\\n36086970008929625185698756226496234693333611129\", \"1 3\\n7\\n953\\n744\\n7\\n10930\\n141638385126219138109036667514165414693490507346\", \"2 4\...
{ "index": "code_r1_train_4765" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 4\\n2\\n2 3\\n2 2\\n\", \"4\\n1 2 3 4\\n2\\n2 3\\n2 1\\n\", \"4\\n1 2 3 8\\n2\\n2 3\\n2 1\\n\", \"4\\n2 4 3 8\\n2\\n2 3\\n2 1\\n\", \"4\\n1 2 3 4\\n2\\n2 3\\n2 4\\n\", \"4\\n1 2 3 0\\n2\\n2 3\\n2 1\\n\", \"4\\n0 2 5 4\\n2\\n2 3\\n2 1\\n\", \"4\\n1 2 4 0...
{ "index": "code_r1_train_4766" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\na\\n\", \"1\\ntcyctkktcctrcyvbyiuhihhhgyvyvyvyvjvytchjckt\\n\", \"1\\ntkcjhctyvjvyvyvyvyghhhihuiybvycrtcctkktcyct\\n\", \"1\\ntkcjhctyvjcyvyvyvyghhhiiuiybvycrctctkktvycs\\n\", \"1\\nskcjictyvjcyvyvyvyghhhiiuiybvycrctctkktvycs\\n\", \"1\\ntkcjhctyvjvyvyvyvyghh...
{ "index": "code_r1_train_4767" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"r\\nr\\n\", \"r\\nb\\n\", \"r\\nb\\n\", \"r\\nr\\n\", \"r\\nc\\n\", \"r\\nq\\n\", \"s\\nc\\n\", \"s\\nq\\n\"], \"outputs\": [\"1\\n1 1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n1 1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" }
{ "index": "code_r1_train_4768" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 6\\nCLICK 1\\nCLICK 2\\nCLICK 3\\nCLICK 2\\nCLOSEALL\\nCLICK 1\", \"5 6\\nCLICK 1\\nCLICK 2\\nCLICK 3\\nCLICK 2\\nCLOSEALL\\nCLICK 1\", \"5 6\\nCLICK 1\\nCLICK 1\\nCLICK 3\\nCLICK 2\\nCLOSEALL\\nCLICK 1\", \"5 6\\nCLICK 1\\nCLICK 2\\nCLICK 2\\nCLICK 2\\nCLOSEAL...
{ "index": "code_r1_train_4769" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nF 1 2\\n\", \"1\\nF 1 2\\n\", \"1\\nF 1 1\\n\", \"1\\nF 1 3\\n\", \"1\\nF 1 4\\n\", \"1\\nF 2 4\\n\", \"1\\nF 4 4\\n\", \"1\\nF 68 307\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4770" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100\\n\", \"1 1\\n1 110\\n\", \"1 2\\n1 100\\n\", \"1 259\\n55 226621946\\n\", \"1 654\\n408 226621946\\n\", \"1 3000\\n61 226621946\\n\", \"1 3000\\n55 226621946\\n\", \"1 522\\n408 226621946\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"226621946...
{ "index": "code_r1_train_4771" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 2 3\\n2 2 3\\n\", \"3 4 1 1 3\\n2 3 2\\n\", \"5 5 1 2 3\\n2 2 2\\n\", \"5 5 1 2 3\\n2 2 3\\n\", \"3 4 1 1 3\\n2 3 2\\n\", \"1 1 1 1 1\\n100000\\n\", \"1 1 1 1 1\\n100000\\n\", \"3 3 2 4 4\\n2 5 4 10\\n\"], \"outputs\": [\"-1\\n\", \"3\\n\", \"-1\\n\", \"-1\...
{ "index": "code_r1_train_4772" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1731005\\n\", \"1\\n2340786\\n\", \"1\\n4533183\\n\", \"1\\n3050700\\n\", \"1\\n1474114\\n\", \"1\\n1456697\\n\", \"1\\n19938466\\n\", \"1\\n26757320\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4773" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"559\", \"676\", \"665\", \"179\", \"129\", \"371\", \"344\", \"158\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_4774" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 15000\\n305\\n24\\n129\\n500\\n3 349\\n9\\n20\\n30\\n3 5016\\n5\\n9\\n12\\n0 0\", \"4 15000\\n305\\n24\\n129\\n949\\n3 568\\n9\\n20\\n30\\n3 5016\\n5\\n9\\n12\\n0 0\", \"4 1512\\n305\\n17\\n129\\n129\\n3 709\\n6\\n20\\n52\\n3 200909\\n8\\n6\\n9\\n0 0\", \"4 151...
{ "index": "code_r1_train_4775" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10\\n0001111111\\n4\\n0101\\n8\\n11001101\\n10\\n1110000000\\n1\\n1\\n\", \"5\\n10\\n0001111111\\n4\\n0101\\n8\\n11001101\\n10\\n1010000000\\n1\\n1\\n\", \"5\\n10\\n0011111111\\n4\\n0101\\n8\\n11001101\\n10\\n1010000000\\n1\\n1\\n\", \"5\\n10\\n0001111110\\n4...
{ "index": "code_r1_train_4776" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n0 1\\n\", \"2\\n1 0\\n1 0\\n\", \"2\\n1 0\\n0 1\\n\", \"3\\n0 1 2\\n0 1 2\\n\", \"3\\n0 1 2\\n1 0 2\\n\", \"3\\n0 2 1\\n2 0 1\\n\", \"3\\n0 2 1\\n1 2 0\\n\", \"3\\n2 0 1\\n1 0 2\\n\"], \"outputs\": [\"YES\", \"YES\", \"YES\", \"YES\", \"YES\", \"YES\", ...
{ "index": "code_r1_train_4777" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nE\\nE\\n\", \"2\\nW\\nS\\n\", \"2\\nS\\nN\\n\", \"2\\nW\\nS\\n\", \"2\\nS\\nN\\n\", \"2\\nE\\nE\\n\", \"3\\nNN\\nSS\\n\", \"3\\nES\\nNW\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4778" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n0 0\\n\", \"2\\n0 1\\n\", \"2\\n1 0\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_4779" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 1\\n1 9 1\", \"3\\n1 4 1\\n1 0 1\", \"3\\n1 4 1\\n0 0 1\", \"3\\n2 4 1\\n0 0 1\", \"3\\n6 0 1\\n1 3 1\", \"3\\n2 4 1\\n1 0 1\", \"3\\n6 6 1\\n0 9 1\", \"3\\n3 4 1\\n0 0 1\"], \"outputs\": [\"13\\n10\\n0\\n\", \"6\\n1\\n0\\n\", \"5\\n0\\n0\\n\", \"6\\n0\\n...
{ "index": "code_r1_train_4780" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n1\\n2 0\\n1\\n1 1\", \"2\\n1\\n2 0\\n0\\n1 0\", \"2\\n1\\n2 0\\n0\\n2 0\", \"2\\n1\\n2 0\\n0\\n0 0\", \"2\\n1\\n2 0\\n0\\n0 1\", \"2\\n1\\n2 1\\n1\\n1 1\", \"2\\n1\\n2 1\\n1\\n1 0\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\...
{ "index": "code_r1_train_4781" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n7\\n78\", \"2\\n1\\n11\\n4\\n68\", \"2\\n0\\n2\\n3\\n312\", \"2\\n0\\n2\\n20\\n48\", \"2\\n2\\n11\\n4\\n68\", \"2\\n1\\n2\\n3\\n312\", \"2\\n0\\n2\\n20\\n56\", \"2\\n0\\n2\\n21\\n78\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", ...
{ "index": "code_r1_train_4782" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 3\\nRGGRGRG\", \"1\\n7 2\\nRGGRGRG\", \"1\\n7 2\\nGRGRGGR\", \"1\\n7 0\\nRGGRGRG\", \"1\\n7 3\\nGRGRGGR\", \"1\\n7 2\\nGHGRRGR\", \"1\\n7 1\\nGRGQGGS\", \"1\\n7 0\\nQGGQGSH\"], \"outputs\": [\"4\", \"5\\n\", \"3\\n\", \"6\\n\", \"4\\n\", \"2\\n\", \"1\\n\",...
{ "index": "code_r1_train_4783" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n101\\n010\\n1111\\n1010\", \"2\\n101\\n011\\n1111\\n1010\", \"2\\n001\\n111\\n1111\\n1010\", \"2\\n111\\n110\\n1111\\n1010\", \"2\\n110\\n110\\n1111\\n1010\", \"2\\n110\\n110\\n1011\\n1010\", \"2\\n010\\n110\\n0011\\n1010\", \"2\\n000\\n110\\n0011\\n1010\"], ...
{ "index": "code_r1_train_4784" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3 2\\n4\\n4 1 2 1\\n6\\n1 2 2 2 2 1\", \"3\\n3\\n1 3 2\\n4\\n4 1 3 1\\n6\\n1 2 2 2 2 1\", \"3\\n3\\n1 3 2\\n4\\n4 1 3 1\\n6\\n1 2 2 0 2 1\", \"3\\n3\\n1 3 2\\n4\\n4 1 3 1\\n6\\n1 1 2 0 2 1\", \"3\\n3\\n1 3 2\\n4\\n4 2 3 1\\n6\\n1 2 2 2 2 1\", \"3\\n3\\n...
{ "index": "code_r1_train_4785" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10 4\\n15 1\\n19 3\\n20 1\\n\", \"4\\n10 4\\n15 1\\n19 3\\n20 1\\n\", \"1\\n1000000000 1000000000\\n\", \"1\\n1000000000 1000000000\\n\", \"1\\n1010000000 1000000000\\n\", \"1\\n1010000000 1000010000\\n\", \"1\\n1110000000 1000010000\\n\", \"1\\n1110000000 10...
{ "index": "code_r1_train_4786" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4\\n\", \"3\\n\", \"8\\n\", \"7\\n\", \"2\\n\", \"1\\n\", \"5\\n\", \"6\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_4787" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.a\\nB.b\\nC.c\\nD.d\\n\", \"A.a\\nB.b\\nC.c\\nD.d\\n\", \"a.A\\nB.b\\nC.c\\nD.d\\n\", \"A.c\\nB.cc\\nC.c\\nD.c\\n\", \"A.c\\nB.cc\\nC.c\\nD.c\\n\", \"A.aa\\nB.bb\\nC.cc\\nD.ddd\\n\", \"A.aa\\nB.bb\\nC.cc\\nD.ddd\\n\", \"A.ab\\nB.abcde\\nC.ab\\nD.abc\\n\"], \"ou...
{ "index": "code_r1_train_4788" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n62 7\\n2 4\\n\", \"1\\n62 7\\n3 4\\n\", \"1\\n62 3\\n3 4\\n\", \"1\\n62 3\\n6 4\\n\", \"1\\n62 2\\n6 4\\n\", \"1\\n62 2\\n4 4\\n\", \"1\\n62 2\\n7 4\\n\", \"1\\n35 2\\n7 4\\n\"], \"outputs\": [\"138\\n\", \"193\\n\", \"189\\n\", \"366\\n\", \"368\\n\", \"248\...
{ "index": "code_r1_train_4789" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 99999\\nL\\n\", \"6 2\\nLRLRRL\", \"6 0\\nLRRLRL\", \"6 1\\nRRLLRL\", \"6 0\\nRRLLRL\", \"6 0\\nLRLRLR\", \"6 4\\nLRLRRL\", \"6 1\\nLRRLRL\"], \"outputs\": [\"0\\n\", \"5\\n\", \"1\\n\", \"4\\n\", \"2\\n\", \"0\\n\", \"5\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_4790" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2\\n1 1\\n\", \"1 1\\n1 1\\n\", \"2 4\\n6 6\\n\", \"3 3\\n1 1\\n\", \"4 4\\n1 1\\n\", \"2 2\\n1 2\\n\", \"0 1\\n1 1\\n\", \"2 4\\n6 8\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_4791" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"computer\\nNurtures computer scientists and highly-skilled computer engineers\\nwho will create and exploit \\\"knowledge\\\" for the enw era.\\nProvides an outstanding computer environment.\\nEND_OF_TEXT\", \"comquter\\nNurtures computer scientists and highly-sk...
{ "index": "code_r1_train_4792" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 74\\n57\", \"0 668\\n57\", \"0 668\\n84\", \"1 668\\n57\", \"0 599\\n84\", \"-1 864\\n7\", \"0 823\\n57\", \"-1 74\\n57\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_4793" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 0\\n0\\n0\\n\", \"3 0\\n0\\n0\\n0\\n\", \"2 1\\n1 2 1\\n0\\n0\\n\", \"2 1\\n1 2 3\\n1 0\\n0\\n\", \"2 1\\n1 2 3\\n0\\n1 3\\n\", \"2 1\\n1 2 3\\n1 1\\n0\\n\", \"2 0\\n1 2 3\\n0\\n1 3\\n\", \"2 0\\n1 2 3\\n0\\n2 3\\n\"], \"outputs\": [\" ...
{ "index": "code_r1_train_4794" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"2 1\\n1\\n\", \"5 4\\n4 3 1 2\\n\", \"5 4\\n2 3 4 1\\n\", \"5 4\\n2 3 4 1\\n\", \"5 4\\n3 3 4 1\\n\", \"35 3\\n6 1 11\\n\"], \"outputs\": [\"1 \\n\", \"1\\n\", \"1 1 \", \"1 1 3 4 4 \\n\", \"1 2 2 2 2 \\n\", \"1 2 2 2 2\\n\", \"1 1...
{ "index": "code_r1_train_4795" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n5\\n0\\n5\\n2\\n1\\n4\\n1\", \"1\\n1\\n0\\n5\\n0\\n6\\n2\\n1\\n4\\n1\", \"1\\n2\\n4\\n4\\n5\\n6\\n7\\n8\\n9\\n10\", \"1\\n2\\n8\\n4\\n5\\n6\\n7\\n8\\n9\\n10\", \"1\\n2\\n8\\n4\\n3\\n6\\n7\\n8\\n9\\n10\", \"1\\n2\\n8\\n3\\n3\\n6\\n7\\n8\\n9\\n10\", \"1...
{ "index": "code_r1_train_4796" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1 2\\n\", \"5\\n1 1 2 1 2\\n\", \"8\\n2 4 1 3 4 2 1 2\\n\", \"8\\n2 4 1 3 4 3 1 2\\n\", \"8\\n2 7 1 3 4 3 1 2\\n\", \"8\\n2 8 2 3 4 3 1 2\\n\", \"8\\n2 8 1 3 4 6 1 2\\n\", \"8\\n2 4 1 3 4 6 2 2\\n\"], \"outputs\": [\"6\\n\", \"6\\n\", \"7\\n\", \"6\\n\"...
{ "index": "code_r1_train_4797" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n3\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_4798" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n1\\n\", \"5\\n1\\n3\\n\", \"3\\n1\\n5\\n\", \"6\\n7\\n1\\n\", \"1\\n8\\n3\\n\", \"9\\n7\\n2\\n\"], \"outputs\": [\"9\\n\", \"3\\n\", \"4\\n\", \"20\\n\", \"20\\n\", \"48\\n\", \"27\\n\", \"126\\n\"]}" }
{ "index": "code_r1_train_4799" }