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\": [\"2\\n1 2\\n2 2\", \"2\\n2 1\\n2 2\", \"2\\n1 2\\n2 4\", \"2\\n1 1\\n2 2\", \"3\\n1 4\\n3 6\\n7 8\", \"3\\n1 4\\n4 6\\n8 8\", \"3\\n1 4\\n4 6\\n7 8\", \"3\\n1 4\\n4 6\\n11 8\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"2\\n\", \"2\\n\", \"1\", \"2\\n\"]...
{ "index": "code_r1_train_3000" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n10\\n2\\n0 0\\n3\\n-1 2 0\\n4\\n2 4 1 7\\n2\\n2 4\\n5\\n3 3 -4 -2 1\\n2\\n-1 1\\n1\\n0\\n\", \"8\\n1\\n10\\n2\\n0 0\\n3\\n0 2 0\\n4\\n2 2 1 0\\n2\\n2 6\\n5\\n3 2 -4 -2 0\\n2\\n-1 0\\n1\\n-2\\n\", \"8\\n1\\n10\\n2\\n0 0\\n3\\n0 2 0\\n4\\n2 10 1 7\\n2\\n2 4...
{ "index": "code_r1_train_3001" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n1 1 1\\n\", \"3\\n1 2 3\\n1 1 1\\n\", \"3\\n1 3 3\\n1 1 1\\n\", \"3\\n1 3 3\\n1 0 1\\n\", \"3\\n1 0 3\\n1 0 1\\n\", \"3\\n1 -1 3\\n1 0 1\\n\", \"3\\n1 -1 3\\n1 0 2\\n\", \"3\\n0 -1 3\\n1 0 2\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\...
{ "index": "code_r1_train_3002" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"ah\", \"ih\", \"hb\", \"hh\", \"bh\", \"gi\", \"gb\", \"hg\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_3003" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2\\n1 2\\n\", \"3\\n1 1 3\\n\", \"4\\n1 2 2 3\\n\", \"4\\n1 2 2 4\\n\", \"4\\n1 2 2 1\\n\", \"4\\n1 1 2 3\\n\"], \"outputs\": [\"2\\n\", \"6\\n\", \"4\\n\", \"8\\n\", \"14\\n\", \"10\\n\", \"18\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_3004" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"AS\\n2H 4C TH JH AD\\n\", \"2H\\n3D 4C AC KD AS\\n\", \"4D\\nAS AC AD AH 5H\\n\", \"3D\\n8S 4S 2C AS 6H\\n\", \"7H\\nTC 4C KC AD 9S\\n\", \"KH\\n3C QD 9S KS 8D\\n\", \"4H\\nJH QC 5H 9H KD\\n\", \"9H\\nKC 6D KD 4C 2S\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"Y...
{ "index": "code_r1_train_3005" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n1 3\\n2 3\", \"3 0\\n2 2\\n1 3\\n3 3\", \"6 1\\n2 1\\n1 1\\n1 3\", \"3 2\\n2 2\\n1 3\\n2 3\", \"3 2\\n2 1\\n1 3\\n2 3\", \"3 2\\n2 2\\n1 3\\n3 3\", \"3 2\\n1 2\\n1 3\\n2 1\", \"3 2\\n2 2\\n1 3\\n1 3\"], \"outputs\": [\"2\\n\", \"0\\n\", \"1\\n\", \"2\...
{ "index": "code_r1_train_3006" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"6 5\\n\", \"1 1\\n\", \"1 2\\n\", \"1 1\\n\", \"1 2\\n\", \"2 2\\n\", \"3 2\\n\"], \"outputs\": [\"1\\n\", \"13\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\", \"2\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_3007" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2 2 3\", \"3\\n2 4 3\", \"3\\n2 4 5\", \"3\\n2 4 8\", \"3\\n2 6 8\", \"3\\n4 6 8\", \"3\\n4 2 8\", \"3\\n6 2 8\"], \"outputs\": [\"2 2 3\\n2 2 3\\n2 2 3\\n\", \"2 4 3\\n2 4 3\\n2 3 4\\n\", \"2 4 5\\n2 4 5\\n2 4 5\\n\", \"2 4 8\\n2 4 8\\n2 4 8\\n\", \"2 6 8\\n...
{ "index": "code_r1_train_3008" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"1\\n2 3\\n\", \"1\\n2 1\\n\", \"1\\n8 6\\n\", \"1\\n2 3\\n\", \"1\\n2 1\\n\", \"1\\n8 6\\n\", \"1\\n2 5\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_3009" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"10\\n3\\n111\\n19\\n8\", \"10\\n52\\n011\\n3\\n1\", \"10\\n3\\n010\\n24\\n9\", \"10\\n3\\n010\\n19\\n9\", \"10\\n3\\n011\\n19\\n9\", \"10\\n3\\n011\\n19\\n8\", \"10\\n9\\n100\\n30\\n95\", \"10\\n9\\n110\\n30\\n95\"], \"outputs\": [\"54\\n\", \"42\\n\", \"40\\n\",...
{ "index": "code_r1_train_3010" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 10 14 15 27 35\\n0\\n1 7 7\\n1\", \"3\\n6 10 14 15 27 35\\n0\\n1 0 7\\n1\", \"3\\n6 10 14 15 27 35\\n0\\n0 0 7\\n1\", \"3\\n6 10 14 15 27 35\\n0\\n2 7 7\\n1\", \"3\\n6 10 14 15 27 35\\n0\\n30 3 8\\n0\", \"3\\n6 10 14 15 27 35\\n0\\n1 7 35\\n1\", \"3\\n6 10 ...
{ "index": "code_r1_train_3011" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n1 4\\n0 2 2 0\\n-5 2 7 0\", \"4\\n1 2\\n1 3\\n3 4\\n0 3 3 0\\n-3 4 5 0\", \"4\\n1 2\\n2 3\\n1 4\\n0 3 0 1\\n0 0 5 -1\", \"4\\n1 2\\n1 4\\n3 4\\n0 3 3 0\\n-3 4 5 0\", \"4\\n1 2\\n2 3\\n1 4\\n0 3 3 0\\n-3 4 5 0\", \"4\\n1 2\\n1 3\\n1 4\\n0 4 2 0\\n-...
{ "index": "code_r1_train_3012" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100 1\\n\", \"2\\n000 1\\n\", \"2\\n000 2\\n\", \"2\\n010 2\\n\", \"2\\n011 2\\n\", \"2\\n100 1\\n\", \"4\\n1 3 3 7\\n\", \"4\\n1 3 1 7\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3013" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"5 7 1 3 2 2\\n\", \"5 5 2 3 1 1\\n\", \"1 1 1 1 1 1\\n\", \"5 7 1 3 1 2\\n\", \"5 4 2 3 2 2\\n\", \"5 4 2 3 1 1\\n\", \"5 5 1 3 1 2\\n\", \"5 5 4 3 1 2\\n\"], \"outputs\": [\"2\\n\", \"Poor Inna and pony!\\n\", \"0\\n\", \"2\\n\", \"Poor Inna and pony!\\n\", \"1\...
{ "index": "code_r1_train_3014" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n0 0\", \"2\\n0 0\\n\", \"5\\n0 1 1 0 3\", \"5\\n0 1 1 1 4\", \"5\\n0 1 0 0 4\", \"5\\n0 1 4 0 4\", \"5\\n0 1 1 0 4\"], \"outputs\": [\"12\\n\", \"8\", \"8\\n\", \"128\\n\", \"120\\n\", \"88\\n\", \"96\\n\", \"96\"]}" }
{ "index": "code_r1_train_3015" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 7 8 8\\n7\\n4 2 5 2 6 2 7\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 7 8 8\\n7\\n4 2 5 2 6 2 5\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 7 8 8\\n7\\n4 2 5 3 6 2 5\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 7 4 4 7 8 8\\n7...
{ "index": "code_r1_train_3016" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 5\\n6\\n2\\n9\\n7\\n0\", \"3 5\\n6\\n2\\n8\\n7\\n0\", \"3 5\\n5\\n2\\n9\\n7\\n0\", \"3 5\\n6\\n1\\n9\\n6\\n5\", \"3 5\\n6\\n2\\n8\\n5\\n0\", \"6 5\\n5\\n2\\n9\\n7\\n0\", \"3 5\\n6\\n1\\n9\\n6\\n3\", \"5 5\\n6\\n2\\n8\\n7\\n0\"], \"outputs\": [\"2\\n0\\n1\\n3\\n...
{ "index": "code_r1_train_3017" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n1 1 1\\n\", \"1 0 1\\n1 1 1\\n1 1 1\\n\", \"1 0 2\\n1 1 1\\n1 1 1\\n\", \"1 100 1\\n1 1 1\\n1 1 1\\n\", \"79 1 1\\n1 1 10\\n1 1 100\\n\", \"79 1 1\\n2 1 10\\n1 1 100\\n\", \"79 1 0\\n2 1 10\\n1 1 100\\n\", \"1 10 29\\n1 1 43\\n1 1 100\\n\"], \"out...
{ "index": "code_r1_train_3018" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2\\n1 0\\n\", \"2\\n1 0\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3019" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\", \"0\", \"6\", \"2\", \"4\", \"8\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_3020" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n9\\n\", \"2\\n1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3021" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n1 2\\n3 2\\n1 1 2 2 3 6\\n3 3\\n3 4 4 1 1 1 1 1 0\\n2 2\\n1 4 2 1\\n4 2\\n50 60 50 9 1 50 50 50\\n4 2\\n6 6 6 6 2 2 9 6\\n2 9\\n1 4 3 1 3 3 1 1 3 1 3 1 1 3 3 1 1 3\\n\", \"7\\n1 2\\n1 2\\n3 2\\n1 2 2 2 3 6\\n3 3\\n1 4 4 1 1 1 1 1 3\\n2 2\\n1 1 2 1\\n4 2...
{ "index": "code_r1_train_3022" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2 1\\n\", \"2 1\\n\", \"0 1\\n\", \"2 1\\n\", \"0 1\\n\", \"8 1\\n\", \"8 1\\n\"]}" }
{ "index": "code_r1_train_3023" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"2\\n10\\n\", \"2\\n10\\n\", \"3\\n111\\n\", \"3\\n100\\n\", \"3\\n100\\n\", \"3\\n110\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"10\\n\", \"10\\n\", \"3\\n\", \"100\\n\", \"100\\n\", \"20\\n\"]}" }
{ "index": "code_r1_train_3024" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n4\\n\", \"1 1 3\\n2 3 4\\n2\\n\", \"1 0 0\\n1 0 0\\n1\\n\", \"0 0 0\\n0 0 0\\n1\\n\", \"1 1 1\\n0 0 0\\n1\\n\", \"0 0 0\\n1 1 1\\n1\\n\", \"5 5 5\\n0 0 0\\n2\\n\", \"1 2 3\\n2 4 6\\n3\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\...
{ "index": "code_r1_train_3025" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n0\\n1\\n\", \"1 1\\n0\\n2\\n\", \"1 1\\n0\\n3\\n\", \"1 1\\n1\\n2\\n\", \"1 1\\n1\\n4\\n\", \"1 1\\n1\\n3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}" ...
{ "index": "code_r1_train_3026" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 0\\n\", \"2\\n1 2 1 2\\n\", \"2\\n2 1 1 2\\n\", \"2\\n2 1 1 2\\n\", \"2\\n1 2 1 2\\n\", \"2\\n1 1 2 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3027" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nj\\n\", \"1\\nj\\n\", \"1\\ni\\n\", \"1\\nh\\n\", \"1\\ng\\n\", \"1\\nf\\n\", \"10\\nb\\n\", \"10\\nb\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3028" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n0 0 R\\n2\\n2 0 U\\n2 2 D\\n1 2 U\\n1\\n2 0 U\\n2 0 R\\n1\\n3 0 L\", \"3\\n0 0 R\\n2\\n2 0 U\\n2 2 D\\n1 2 U\\n1\\n1 0 U\\n1 0 R\\n1\\n3 0 L\", \"3\\n0 0 R\\n2\\n1 -2 U\\n2 2 D\\n1 1 U\\n1\\n1 0 U\\n0 0 R\\n1\\n3 0 L\", \"3\\n0 0 R\\n2\\n2 -2 U\\n2 2 D\\n1 1 ...
{ "index": "code_r1_train_3029" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3 0\", \"1 0\", \"2 0\", \"4 0\", \"48 0\", \"4 -2\", \"6 -2\", \"7 -4\"], \"outputs\": [\"3\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"48\\n\", \"6\\n\", \"8\\n\", \"11\\n\"]}" }
{ "index": "code_r1_train_3030" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n\", \"1\\n8\\n\", \"1\\n9\\n\", \"1\\n6\\n\", \"1\\n8\\n\", \"1\\n9\\n\", \"1\\n3\\n\", \"1\\n5\\n\"], \"outputs\": [\"6\\n\", \"8\\n\", \"9\\n\", \"6\", \"8\", \"9\", \"3\\n\", \"5\\n\"]}" }
{ "index": "code_r1_train_3031" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n4\\n3\", \"4\\n0\\n0\\n4\\n3\", \"4\\n0\\n1\\n4\\n3\", \"4\\n0\\n0\\n8\\n3\", \"4\\n0\\n0\\n8\\n1\", \"4\\n1\\n0\\n8\\n1\", \"4\\n1\\n0\\n0\\n1\", \"4\\n1\\n0\\n3\\n3\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n...
{ "index": "code_r1_train_3032" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"5\", \"7\", \"9\", \"8\", \"0\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\"]}" }
{ "index": "code_r1_train_3033" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"9\\n\", \"7\\n\", \"5\\n\", \"2\\n\", \"0\\n\", \"73\\n\"], \"outputs\": [\"47\\n\", \"47\\n\", \"47\\n\", \"47\\n\", \"47\", \"47\", \"47\", \"74\\n\"]}" }
{ "index": "code_r1_train_3034" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2 2 1 1\\n\", \"9 2 2 3\\n\", \"9 2 2 3\\n\", \"2 2 1 1\\n\", \"20 4 5 2\\n\", \"30 9 4 1\\n\", \"31 3 2 8\\n\", \"31 3 2 8\\n\"], \"outputs\": [\"1\\n\", \"4\\n\", \"4\\n\", \"1\\n\", \"8\\n\", \"4\\n\", \"10\\n\", \"10\\n\"]}" }
{ "index": "code_r1_train_3035" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 8\\n\", \"4\\n2 3 3 3\\n\", \"4\\n1 2 2 2\\n\", \"4\\n2 1 1 1\\n\", \"4\\n1 1 1 4\\n\", \"4\\n1 3 3 3\\n\", \"4\\n1 2 2 3\\n\"], \"outputs\": [\"Bob\\n\", \"Bob\\n\", \"Alice\\n\", \"Alice\\n\", \"Bob\\n\", \"Bob\\n\", \"Alice\\n\", \"Alice\...
{ "index": "code_r1_train_3036" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\napple 1 1 1 1 1 1 1 10 1\\nananab 1 2 2 2 2 2 1 17 1\\ncatror 0 2 2 2 0 2 1 10 2\\ndurian 1 3 0 3 3 3 1 0 1\\neggplant 1 3 3 3 2 3 1 100 1\\n4\\nenoki 1 3 3 3 3 3 1 10 1\\ntomato 1 1 3 3 1 3 1 2 1\\npotato 1 3 3 3 3 0 1 10 1\\nonion 3 3 0 3 3 2 0 10 1\\n3\\na...
{ "index": "code_r1_train_3037" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n6\\n0 2 3 7 14 64\\n\", \"1\\n8\\n0 0 0 1 1 1 2 2\\n\", \"2\\n4\\n1 1 1 1\\n4\\n1 3 5 7\\n\", \"1\\n4\\n-1000000 1000000 1 2\\n\", \"1\\n4\\n-1000000 1000000 2 3\\n\", \"1\\n4\\n1000000 -1000000 1 2\\n\", \"1\\n4\\n2 3 -1000000 1000000\\n\", \"1\\n4\\n-100000...
{ "index": "code_r1_train_3038" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 691\\n\", \"1\\n2\\n1 691\\n\", \"1\\n3\\n1 1 67\\n\", \"1\\n3\\n1 1 67\\n\", \"1\\n3\\n1 1 65\\n\", \"1\\n3\\n0 1 65\\n\", \"1\\n3\\n0 1 91\\n\", \"1\\n3\\n0 0 91\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n...
{ "index": "code_r1_train_3039" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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)\\n\", \"1\\n(\\n\", \"1\\n(\\n\", \"1\\n)\\n\", \"2\\n)(\\n\", \"2\\n()\\n\", \"2\\n((\\n\", \"2\\n((\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_3040" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n30\\n30\\n\", \"1\\n30\\n30\\n\", \"1\\n29\\n30\\n\", \"1\\n29\\n33\\n\", \"1\\n29\\n25\\n\", \"50\\n60\\n70\\n\", \"90\\n80\\n89\\n\", \"30\\n31\\n30\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"50\\n\", \"10\\n\", \"30\\n\"]}" }
{ "index": "code_r1_train_3041" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 0 2\\n1 0 1 4\\n2 2 4\\n1 0 1 3\\n2 4 2\\n\", \"1 5 2\\n2 0 2\\n1 0 1 4\\n2 2 4\\n1 0 1 3\\n2 4 2\\n\", \"1 5 4\\n2 0 2\\n1 0 1 4\\n7 2 4\\n1 0 1 3\\n2 4 1\\n\", \"1 5 1\\n2 0 2\\n1 0 1 4\\n2 2 4\\n1 0 1 3\\n2 4 1\\n\", \"5 3 2\\n2 0 2\\n1 0 3 4\\n2 2 4...
{ "index": "code_r1_train_3042" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6 5 4 3 2\\n5\\n3 4 3 1 1\", \"2\\n5\\n6 5 4 3 2\\n5\\n3 4 6 1 1\", \"2\\n5\\n6 5 4 3 2\\n5\\n3 7 9 1 1\", \"2\\n5\\n6 5 4 3 3\\n5\\n3 7 9 1 1\", \"2\\n5\\n6 5 4 3 2\\n5\\n3 8 3 1 1\", \"2\\n5\\n6 5 4 5 2\\n5\\n3 7 6 1 1\", \"2\\n5\\n6 5 4 4 2\\n5\\n3 8 3...
{ "index": "code_r1_train_3043" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n11 0 0 9\\n\", \"1\\n7 0 0 22\\n\", \"1\\n11 0 11 9\\n\", \"1\\n11 0 0 18\\n\", \"1\\n11 0 0 22\\n\", \"1\\n5 0 -1 22\\n\", \"1\\n7 0 -1 22\\n\", \"1\\n11 11 11 9\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0...
{ "index": "code_r1_train_3044" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 3 4\\n2 8 5 5\\n2 1 4 1\\n101 21 0 111\\n\", \"4\\n1 1 3 4\\n1 8 5 5\\n2 1 4 1\\n101 4 54 011\\n\", \"4\\n1 1 3 4\\n2 8 5 5\\n4 1 4 1\\n101 21 0 011\\n\", \"4\\n1 1 3 4\\n2 7 5 5\\n2 1 4 1\\n111 29 4 101\\n\", \"4\\n0 1 3 4\\n2 5 1 5\\n3 1 4 1\\n101 8 20 ...
{ "index": "code_r1_train_3045" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"aa\\naaa\\n\", \"abc\\nba\\n\", \"ab\\nabcd\\n\", \"abc\\nbac\\n\", \"ab\\nadcb\\n\", \"abc\\nbad\\n\", \"abab\\nac\\n\", \"ab\\nbdcb\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}" }
{ "index": "code_r1_train_3046" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"4\\n1 2 3 6\", \"4\\n1 2 6 6\", \"4\\n1 4 3 6\", \"4\\n0 4 3 6\", \"4\\n0 4 3 7\", \"4\\n0 4 4 7\", \"4\\n0 4 0 7\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3047" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n2\\n\", \"8 9\\n2 2\\n3\\n\", \"5 5\\n8 8\\n7\\n\", \"5 7\\n9 1\\n8\\n\", \"4 1\\n5 3\\n8\\n\", \"2 1\\n3 4\\n2\\n\", \"5 1\\n6 3\\n5\\n\", \"2 1\\n3 4\\n2\\n\"], \"outputs\": [\"0\\n\", \"8\\n\", \"40\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"11\\n\", \"...
{ "index": "code_r1_train_3048" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 7 6 5\\n5\\n1 2 3 4 5\\n2\\n0 -4\\n\", \"3\\n4\\n1 7 7 5\\n5\\n1 2 3 4 5\\n2\\n0 -4\\n\", \"3\\n4\\n1 7 6 5\\n5\\n1 4 3 4 5\\n2\\n0 -4\\n\", \"3\\n4\\n1 7 6 5\\n5\\n1 6 3 4 5\\n2\\n0 -4\\n\", \"3\\n4\\n1 7 7 5\\n5\\n1 0 3 4 5\\n2\\n0 -1\\n\", \"3\\n4\\n...
{ "index": "code_r1_train_3049" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3\\n2 0 4\\n4 5 6\\n\", \"3 3\\n1 2 3\\n3 0 4\\n4 5 6\\n\", \"3 3\\n1 2 3\\n2 3 4\\n3 4 2\\n\", \"3 3\\n1 1 1\\n1 1 1\\n1 1 1\\n\", \"3 3\\n1 2 3\\n2 3 4\\n3 4 4\\n\", \"3 3\\n1 2 3\\n2 3 4\\n3 5 5\\n\", \"3 3\\n1 2 3\\n2 3 5\\n3 4 5\\n\", \"3 3\\n1 2 3...
{ "index": "code_r1_train_3050" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n010 0\", \"2\\n001 0\", \"2\\n101 0\", \"2\\n111 0\", \"2\\n110 0\", \"2\\n110 1\", \"2\\n100 1\", \"2\\n010 1\"], \"outputs\": [\"10 0\\n\", \"1 0\\n\", \"101 0\\n\", \"111 0\\n\", \"110 0\\n\", \"110 1\\n\", \"100 1\\n\", \"10 1\\n\"]}" }
{ "index": "code_r1_train_3051" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n28 0\\n2 40\\n8 7\", \"3\\n28 0\\n3 40\\n8 7\", \"3\\n2 0\\n3 40\\n8 11\", \"3\\n4 0\\n0 0\\n53 12\", \"3\\n4 0\\n0 0\\n86 12\", \"3\\n0 17\\n5 4\\n2 53\", \"3\\n0 17\\n5 4\\n3 53\", \"3\\n0 34\\n5 4\\n3 53\"], \"outputs\": [\"10\\n\", \"11\\n\", \"-6\\n\", \...
{ "index": "code_r1_train_3052" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1 2 3\\n\", \"4 2\\n1 1 2 3\\n\", \"4 2\\n1 0 2 3\\n\", \"4 2\\n0 1 2 3\\n\", \"1 1\\n1000000000\\n\", \"1 1\\n1000000000\\n\", \"1 1\\n1010000000\\n\", \"6 3\\n3 2 0 6 10 12\\n\"], \"outputs\": [\"0\\n0 1 2 3 \\n\", \"1\\n1 1 2 4 \\n\", \"0\\n1 0 2 3 \\n...
{ "index": "code_r1_train_3053" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"3 2\\n1 3 5\\n\", \"3 1\\n1 1 1\\n\", \"3 1\\n1 1 1\\n\", \"3 2\\n1 3 5\\n\", \"3 100\\n1 2 3\\n\"], \"outputs\": [\"2\", \"2\", \"3\\n\", \"5\", \"1\", \"1\", \"5\", \"52\"]}" }
{ "index": "code_r1_train_3054" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"?&?&?|?|?&?\", \"?|?&?|?&?&?\", \"?&?&?|?&?|?\", \"?&?|?|?&?&?\", \"?|?|?&?&?&?\", \"?&?&?&?|?|?\", \"?|?&?&?|?&?\", \"?&?|?&?&?|?\"], \"outputs\": [\"3 2\\n\", \"3 1\\n\", \"3 3\\n\", \"3 2\\n\", \"3 1\\n\", \"3 2\\n\", \"3 1\\n\", \"3 2\\n\"]}" }
{ "index": "code_r1_train_3055" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 0\\n1\\n\", \"1 0\\n4\\n\", \"1 0\\n4\\n\", \"1 0\\n1\\n\", \"1 0\\n7\\n\", \"1 0\\n8\\n\", \"1 0\\n10\\n\", \"1 0\\n18\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3056" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"4\\n\", \"2\\n\", \"3\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\", \"YES\", \"YES\"]}" }
{ "index": "code_r1_train_3057" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"4\", \"3\", \"5\", \"2\", \"7\", \"6\"], \"outputs\": [\"9\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\"]}" }
{ "index": "code_r1_train_3058" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n\", \"3\\n4 3 1\\n\", \"3\\n4 2 1\\n\", \"3\\n3 2 1\\n\", \"3\\n2 3 1\\n\", \"3\\n2 7 11\\n\", \"4\\n7 8 3 1\\n\", \"4\\n1 5 0 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"0\", \"0\", \"2\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3059" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"baa\", \"bba\", \"bab\", \"bbb\", \"abb\", \"abc\", \"cba\", \"bca\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_3060" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"9\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n\", \"9\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n0 1\\n1 1\\n1 1\\n1 1\\n\", \"9\\n1 1\\n1 1\\n1 1\\n1 1\\n0 1\\n0 1\\n1 1\\n1 1\\n1 1\\n\", \"9\\n1 1...
{ "index": "code_r1_train_3061" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"w\\n\", \"`\\n\", \"x\\n\", \"b\\n\", \"y\\n\", \"c\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3062" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n9124\\n\", \"1\\n9124\\n\", \"1\\n3621\\n\", \"1\\n4320\\n\", \"1\\n2836\\n\", \"1\\n6961\\n\", \"1\\n3722\\n\", \"1\\n6297\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"7\\n\", \"3\\n\", \"5\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3063" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6 2\", \"5 2\", \"3 4\", \"4 4\", \"9 2\", \"7 6\", \"7 2\"], \"outputs\": [\"1\\n\", \"5\\n\", \"4\\n\", \"3\\n\", \"7\\n\", \"8\\n\", \"76\\n\", \"6\\n\"]}" }
{ "index": "code_r1_train_3064" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"8 1\\n\", \"1 1\\n\", \"2 1\\n\", \"2 2\\n\", \"3 1\\n\", \"3 2\\n\", \"3 3\\n\"], \"outputs\": [\"4\\n\", \"5\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3065" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2\\n7 2\\n3\\n2 2 4\", \"2\\n2\\n7 2\\n3\\n3 2 4\", \"2\\n2\\n7 2\\n3\\n6 2 4\", \"2\\n2\\n6 2\\n3\\n2 2 4\", \"2\\n2\\n6 2\\n3\\n2 3 4\", \"2\\n2\\n7 2\\n2\\n6 2 4\", \"2\\n2\\n7 1\\n2\\n6 2 4\", \"2\\n2\\n7 4\\n3\\n6 2 4\"], \"outputs\": [\"2\\n-1\", \"2\\n...
{ "index": "code_r1_train_3066" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1\\n0\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n2\\n\", \"1\\n2\\n0 1\\n\", \"1\\n2\\n0 1\\n\", \"1\\n3\\n0 0 3\\n\", \"1\\n3\\n0 0 4\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3067" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 120 5\\n2 3 300 3\\n3 3 299 3\\n2 3 7 2\\n2 0 12000 7\\n54 795 22620 7\\n2 4 300 1\\n2 1 8 5\\n2 4 54 2\\n0 0 0 0\", \"2 6 120 5\\n2 3 300 3\\n3 3 299 3\\n2 3 7 2\\n2 0 12000 7\\n54 781 35092 7\\n2 4 300 1\\n2 1 8 5\\n2 4 54 2\\n0 0 0 0\", \"2 6 120 8\\n2 3 3...
{ "index": "code_r1_train_3068" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"5000 3 0\\n\", \"6984 3 0\\n\", \"6984 4 0\\n\", \"2 1 1\\naa\\n\", \"100000 52 0\\n\", \"100000 34 0\\n\", \"3 4 2\\nab\\nba\\n\"], \"outputs\": [\"27\\n\", \"22443616\\n\", \"170353494\", \"63989708\", \"0\\n\", \"378241178\\n\", \"486606280\", \"...
{ "index": "code_r1_train_3069" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n33\\n\", \"2 1\\n99\\n\", \"2 1\\n31\\n\", \"2 1\\n33\\n\", \"2 1\\n12\\n\", \"2 1\\n31\\n\", \"2 1\\n12\\n\", \"2 1\\n33\\n\"], \"outputs\": [\"2\\n33\\n\", \"2\\n99\\n\", \"2\\n33\\n\", \"2\\n33\\n\", \"2\\n22\\n\", \"2\\n33\\n\", \"2\\n22\\n\", \"2\\n33\...
{ "index": "code_r1_train_3070" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n2\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"4\\n1 1 1 1\\n\", \"4\\n1 2 1 2\\n\", \"4\\n1 1 2 1\\n\", \"4\\n2 2 1 2\\n\"], \"outputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n1 1\\n\", \"3\\n1 4\\n2 2\\n4 1\\n\", \"0\\n\", \"2\\n1 3\\n...
{ "index": "code_r1_train_3071" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n2\\n1 3\\n2 4\\n3\\n1 7 9\\n2 4 8\\n3 6 5\", \"2\\n2\\n1 3\\n2 4\\n3\\n2 7 9\\n1 4 8\\n3 6 5\", \"2\\n2\\n1 3\\n2 4\\n3\\n1 7 9\\n3 4 8\\n2 6 5\", \"2\\n2\\n1 3\\n2 4\\n3\\n1 7 9\\n2 4 8\\n6 3 5\", \"2\\n2\\n1 3\\n2 4\\n3\\n1 7 5\\n2 4 8\\n6 3 9\", \"2\\n2\\n...
{ "index": "code_r1_train_3072" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-1\\n\", \"1\\n-1\\n\", \"2\\n-1 0\\n0 -1\\n\", \"2\\n-1 1\\n2 -1\\n\", \"2\\n-1 2\\n1 -1\\n\", \"2\\n-1 3\\n3 -1\\n\", \"2\\n-1 1\\n2 -1\\n\", \"2\\n-1 0\\n0 -1\\n\"], \"outputs\": [\"1\\n1 \", \"1\\n1\\n\", \"2\\n1 2 \", \"1\\n2 \", \"1\\n1 \", \"0\\n\", \"...
{ "index": "code_r1_train_3073" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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+b+c\\n(a+b)+c\\na- (b-c)+2\\n.\\nba4\\n(a - b) (0-b+a) - 1a ^ 2 - a ^ 2\\n3 b 2 a\\n.\\n8 a\\n2 2 6 3 3 a\\n2 a^1 27\\n.\\n.\", \"a+b+c\\n(a+b)+c\\na- (b-c)+2\\n.\\nba4\\n(a - b) (0-b+a) - 1a ^ 2 - a ^ 2\\n3 b 1 a\\n.\\n8 a\\n2 2 6 3 3 a\\n2 a^1 27\\n.\\n.\", \...
{ "index": "code_r1_train_3074" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 7 3\\n4 5\\n\", \"2 2 5 7 3\\n4 6\\n\", \"2 2 5 7 4\\n4 6\\n\", \"3 1 5 7 4\\n4 1 3\\n\", \"3 1 5 7 4\\n4 1 4\\n\", \"4 1 3 4 3\\n0 2 5 1\\n\", \"4 2 4 4 1\\n4 5 1 2\\n\", \"4 1 3 4 3\\n3 2 5 1\\n\"], \"outputs\": [\"23\\n\", \"23\\n\", \"26\\n\", \"35\\n\"...
{ "index": "code_r1_train_3075" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 2 1\\n10\\n11 12\\n13\\n\", \"1 2 3\\n15\\n10 19\\n20 11 13\\n\", \"2 1 3\\n10 20\\n15\\n13 14 16\\n\", \"2 2 2\\n10 11\\n12 13\\n14 15\\n\", \"1 2 3\\n1\\n100 200\\n300 400 500\\n\", \"2 3 4\\n16 40\\n20 12 19\\n13 21 11 10\\n\", \"4 4 5\\n15 16 19 6\\n8 11 9 ...
{ "index": "code_r1_train_3076" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n2 2 2\\n4 2 2\\n1 5 2\", \"3\\n2 7 2\\n4 2 2\\n1 9 0\", \"3\\n2 7 2\\n4 2 2\\n1 9 4\", \"3\\n2 1 2\\n5 2 2\\n1 5 2\", \"3\\n2 4 2\\n8 2 2\\n1 9 3\", \"3\\n1 9 2\\n4 2 2\\n1 9 0\", \"3\\n2 2 2\\n3 1 2\\n1 8 0\", \"3\\n2 1 2\\n5 2 2\\n1 5 1\"], \"outputs\": [\"...
{ "index": "code_r1_train_3077" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"16\\n\", \".1\\n\", \"1.\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"1.6E1\\n\", \"1E-1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3078" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n0 0\\n\", \"4\\n1 0 0 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"4\\n\"]}" }
{ "index": "code_r1_train_3079" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n2\\n\", \"2\\n3\\n\", \"2\\n4\\n\", \"2\\n5\\n\", \"3\\n8\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"0\\n\", \"1\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3080" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nBlizid\\n0 0\\n60 1\\n53 60\\n0 60\\n0 50\\n50 50\\n50 10\\n0 10\\n-1\\ndizilB\\n0 10\\n1 11\\n10 50\\n1 50\\n-1\\nWindom\\n16 10\\n50 3\\n40 20\\n20 20\\n20 40\\n10 50\\n-1\\nAccent\\n50 10\\n50 50\\n35 50\\n35 25\\n-1\\nPilot\\n41 25\\n35 44\\n0 69\\n-1\\ni...
{ "index": "code_r1_train_3081" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n0 0\\n\", \"1 7\\n0 0\\n\", \"1 1\\n0 0\\n\", \"1 2\\n0 0\\n\", \"2 3\\n1 2\\n3 4\\n\", \"2 1\\n1 2\\n3 4\\n\", \"2 3\\n1 2\\n3 7\\n\", \"2 2\\n1 2\\n3 4\\n\"], \"outputs\": [\"6\\n\", \"6\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\"]}" ...
{ "index": "code_r1_train_3082" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"3\\n0 1 2\\n\", \"3\\n2 1 0\\n\", \"3\\n1 2 0\\n\", \"3\\n2 1 0\\n\", \"3\\n1 2 0\\n\", \"3\\n0 1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"3\\n\"]}" }
{ "index": "code_r1_train_3083" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n4 5 6\\n7 5 9\\n3\\n1 2 3\\n1 8 9\\n4 5 6\\n0\", \"3\\n0 2 3\\n4 5 7\\n7 1 9\\n3\\n0 2 3\\n7 8 6\\n1 5 6\\n0\", \"3\\n1 1 3\\n0 2 6\\n7 9 9\\n3\\n1 4 3\\n7 8 9\\n4 8 6\\n0\", \"3\\n2 2 3\\n4 4 6\\n7 4 9\\n3\\n1 4 3\\n7 8 9\\n4 8 6\\n0\", \"3\\n1 2 3\\...
{ "index": "code_r1_train_3084" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\n\", \"1 1\\nA\\n\", \"1 4\\nD\\n\", \"1 4\\nD\\n\", \"1 1\\nA\\n\", \"1 5\\nA\\n\", \"1 7\\nA\\n\", \"1 4\\nC\\n\"], \"outputs\": [\"0\", \"1\", \"0\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}" }
{ "index": "code_r1_train_3085" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nCODECHEF\\nDRINKEATCODE\", \"2\\nFEHCEDOC\\nDRINKEATCODE\", \"2\\nFEHCEEOC\\nDRINKEATCODE\", \"2\\nCOEECHFE\\nDRJNKEATBODE\", \"2\\nEFJEFCOB\\nDRJNKEAUBODE\", \"2\\nEJDEFCOB\\nDQJNKEATBODE\", \"2\\nEJDEFCOB\\nCQJNKEATBODE\", \"2\\nEODDFCJB\\nEDOBTADKNJQC\"], ...
{ "index": "code_r1_train_3086" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n4\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n7\\n\"], \"outputs\": [\"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}" }
{ "index": "code_r1_train_3087" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\", \"3\", \"7\", \"5\", \"8\", \"4\", \"3\"], \"outputs\": [\"aaaa\\naaab\\naaba\\naabb\\naabc\\nabaa\\nabab\\nabac\\nabba\\nabbb\\nabbc\\nabca\\nabcb\\nabcc\\nabcd\\n\", \"aaaaaa\\naaaaab\\naaaaba\\naaaabb\\naaaabc\\naaabaa\\naaabab\\naaabac\\naaabba\\n...
{ "index": "code_r1_train_3088" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n< 100 No\\n> 100 No\\n3\\n< 2 Yes\\n> 4 Yes\\n= 3 No\\n6\\n< 2 Yes\\n> 1 Yes\\n= 1 Yes\\n= 1 Yes\\n> 1 Yes\\n= 1 Yes\", \"3\\n2\\n< 100 No\\n> 100 No\\n3\\n< 2 Yes\\n> 4 Yes\\n= 3 No\\n6\\n< 2 Yes\\n> 1 Yes\\n= 1 Yes\\n= 1 Yes\\n= 1 Yes\\n= 1 Yes\", \"3\\...
{ "index": "code_r1_train_3089" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-z\\n1-z\\n\", \"1 1\\n1-z\\n1-z\\n\", \"1 1\\n3-z\\n1-z\\n\", \"1 1\\n2-z\\n1-z\\n\", \"1 1\\n6543-o\\n34-o\\n\", \"1 1\\n6543-o\\n34-o\\n\", \"1 1\\n6543-n\\n34-o\\n\", \"1 1\\n5352-k\\n5234-j\\n\"], \"outputs\": [\"1\", \"1\\n\", \"3\\n\", \"2\\n\", \"6...
{ "index": "code_r1_train_3090" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n13 78\\n\", \"4 1\\n1 2 3 4\\n\", \"4 1\\n1 2 1 2\\n\", \"4 4\\n1 2 6 7\\n\", \"4 1\\n1 2 3 4\\n\", \"4 4\\n1 2 6 7\\n\", \"4 1\\n1 2 1 2\\n\", \"2 100\\n13 78\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\...
{ "index": "code_r1_train_3091" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n0\\n\\n3\\n0\\n0\\n1 1 2\\n\\n3\\n0\\n0\\n2 1 2\\n\\n5\\n0\\n0\\n0\\n2 2 2\\n1 3 4\", \"4\\n\\n1\\n0\\n\\n3\\n0\\n0\\n1 1 2\\n\\n3\\n0\\n0\\n2 1 2\\n\\n5\\n0\\n0\\n0\\n2 2 2\\n1 3 3\", \"4\\n\\n1\\n0\\n\\n3\\n0\\n0\\n1 1 2\\n\\n3\\n0\\n0\\n2 2 2\\n\\n1...
{ "index": "code_r1_train_3092" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n27\\nLLLLRRLRLRRRRLRLLLLLLLLLLLL\\n\", \"1\\n27\\nLLLLRRLRRLRLLLLLLRRRRLLLLLL\\n\", \"1\\n27\\nLLLLRRLRRLRLLLLLLRRRRLLLLLL\\n\", \"1\\n27\\nLLLLRRLRLRRRRLRLLLLLLLLLLLL\\n\", \"1\\n27\\nLLLLLLRRRRLLLLLLRLRRLRRLLLL\\n\", \"1\\n27\\nLLLLRRLRLLRLLLRLLRRRRLLLLLL\\...
{ "index": "code_r1_train_3093" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2100 3230 248 21\", \"4\\n2100 3230 248 26\", \"4\\n2100 3992 248 26\", \"4\\n2100 4691 248 409\", \"4\\n2100 3230 248 409\", \"4\\n2100 2500 248 2612\", \"4\\n2100 2500 248 2218\", \"4\\n2100 4691 248 2218\"], \"outputs\": [\"2 3\\n\", \"2 3\\n\", \"2 3\\n\"...
{ "index": "code_r1_train_3094" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"4 3\\n\", \"2 2\\n\", \"5 3\\n\", \"2 4\\n\", \"2 5\\n\", \"1 9\\n\", \"1 2\\n\", \"9 4\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}" }
{ "index": "code_r1_train_3095" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"2\\n4 1\\n0 3\\n4 2\\n0 3\\n1 2\", \"2\\n4 1\\n0 3\\n4 1\\n0 3\\n1 2\", \"2\\n4 1\\n1 2\\n4 2\\n0 3\\n2 1\", \"2\\n4 1\\n0 3\\n4 2\\n0 3\\n2 2\", \"2\\n4 1\\n0 3\\n4 2\\n0 3\\n2 0\", \"2\\n4 1\\n0 3\\n4 1\\n0 3\\n1 0\", \"2\\n4 1\\n0 3\\n4 1\\n0 3\\n1 1\", \"2\\n...
{ "index": "code_r1_train_3096" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n9\\n\", \"1\\n10\\n\", \"2\\n2 3\\n\", \"2\\n2 3\\n\", \"2\\n2 2\\n\", \"2\\n0 2\\n\"], \"outputs\": [\"1\\n1 \", \"1\\n1 \", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\n2 \", \"1\\n2 \", \"1\\n2\\n\", \"1\\n2\\n\"]}" }
{ "index": "code_r1_train_3097" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1 1\\n0\\n0\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n0\\n1\\n\", \"1 1\\n5\\n5\\n\", \"1 1\\n0\\n0\\n\", \"1 1\\n5\\n5\\n\", \"1 1\\n0\\n1\\n\", \"1 1\\n1\\n1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}" }
{ "index": "code_r1_train_3098" }
code_r1
[ { "role": "system", "content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc...
code
{ "method": "rule", "ground_truth": "{\"inputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n0\\n\", \"1\\n3\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"]}" }
{ "index": "code_r1_train_3099" }