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\\n4 2\", \"2\\n2 2\", \"5\\n2 1 2 1 2\", \"9\\n3 3 5 4 1 2 4 2 1\", \"9\\n2 3 7 4 1 2 4 2 1\", \"9\\n2 3 4 4 1 2 4 2 1\", \"9\\n2 3 2 4 1 2 4 2 1\", \"9\\n2 3 2 4 1 2 4 2 2\"], \"outputs\": [\"24\", \"6\", \"256\", \"11520\", \"51200\", \"6400\", \"23040\", \"2... | {
"index": "code_r1_train_2200"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nFA\\n\", \"2\\nFF\\n\", \"2\\nIF\\n\", \"2\\nFA\\n\", \"2\\nFF\\n\", \"2\\nFA\\n\", \"2\\nIF\\n\", \"2\\nAF\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\", \"1\", \"1\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2201"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n2 3\\n\", \"2 5\\n2 3\\n\", \"2 5\\n4 3\\n\", \"2 1\\n4 3\\n\", \"3 5\\n1 2 3\\n\", \"3 7\\n1 2 3\\n\", \"3 1\\n6 1 7\\n\", \"3 1\\n6 6 7\\n\"], \"outputs\": [\"2\\n1\\n0\\n0\\n0\\n\", \"2\\n1\\n0\\n0\\n0\\n\", \"3\\n1\\n0\\n0\\n0\\n\", \"3\\n\", \"1\\n1\\n... | {
"index": "code_r1_train_2202"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n0\\n\", \"2 1\\n1 2\\n\", \"2 1\\n2 1\\n\", \"2 2\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2203"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"9 8\\n\", \"2 2\\n\", \"2 1\\n\", \"8 8\\n\", \"1 1\\n\", \"3 3\\n\", \"8 1\\n\"], \"outputs\": [\"16875\\n\", \"2097152\\n\", \"2\\n\", \"1\\n\", \"2097152\\n\", \"1\\n\", \"9\\n\", \"823543\\n\"]}"
} | {
"index": "code_r1_train_2204"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\", \"3\", \"6\", \"7\", \"5\", \"8\", \"1\"], \"outputs\": [\"ABC\\n\", \"ABC\\n\", \"ABC\\n\", \"ABC\\n\", \"ABC\\n\", \"ABC\\n\", \"ABC\\n\", \"ABC\\n\"]}"
} | {
"index": "code_r1_train_2205"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 4\\n8 6 6 8\", \"5\\n1 2\\n1 3\\n1 2\\n1 5\\n9 21 16 4 22\", \"5\\n1 2\\n1 2\\n1 2\\n1 5\\n2 13 16 7 28\", \"5\\n1 2\\n1 2\\n1 2\\n1 4\\n2 13 16 7 28\", \"5\\n1 2\\n1 3\\n1 3\\n1 5\\n9 21 16 5 22\", \"5\\n1 2\\n1 3\\n1 2\\n1 4\\n8 21 29 19 6\", ... | {
"index": "code_r1_train_2206"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n::\\n::\\n::\\n\", \"3\\n::\\n::\\n::\\n\", \"10\\n1::7\\n0:0::1\\n::1ed\\n::30:44\\n::eaf:ff:000b\\n56fe::\\ndf0:3df::\\nd03:ab:0::\\n85::0485:0\\n::\\n\", \"10\\n1::7\\n0:0::1\\n::1ed\\n::30:44\\n::eaf:ff:000b\\n56fe::\\ndf0:3df::\\nd03:ab:0::\\n85::0485:0\... | {
"index": "code_r1_train_2207"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"4\\n1 4 2 1\", \"4\\n1 8 2 1\", \"4\\n1 2 2 2\", \"4\\n1 2 2 1\", \"4\\n1 2 2 1\\n\", \"4\\n1 12 2 1\", \"4\\n1 12 0 2\"], \"outputs\": [\"7\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"2\", \"2\\n\", \"12\\n\", \"14\\n\"]}"
} | {
"index": "code_r1_train_2208"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 69696875 69696876 69696877 69696878\\n\", \"1\\n1 1 2 69696880 69696881 69696881 69696882\\n\", \"1\\n1 2 3 69696887 69696888 69696889 69696890\\n\", \"1\\n1 1 2 69696883 69696884 69696884 69696885\\n\", \"1\\n1 1 2 69696884 69696885 69696885 69696886\\... | {
"index": "code_r1_train_2209"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n10 5\\n2\\n7 2\\n6 1\\n\", \"2\\n0 5\\n10 5\\n2\\n7 2\\n0 1\\n\", \"2\\n0 5\\n10 5\\n2\\n9 2\\n0 1\\n\", \"2\\n0 5\\n10 7\\n2\\n9 2\\n0 1\\n\", \"3\\n1 1\\n3 1\\n-4 2\\n1\\n-4 -3\\n\", \"3\\n3 2\\n7 1\\n11 1\\n4\\n2 1\\n6 0\\n6 4\\n11 2\\n\", \"3\\n3 2\... | {
"index": "code_r1_train_2210"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 3\\n\", \"3\\n1 1 2\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"4\\n\", \"8\\n\", \"8\\n\", \"12\\n\"]}"
} | {
"index": "code_r1_train_2211"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"s\\n\", \"aox\", \"bsu\", \"xoa\", \"bsv\", \"xo`\", \"csv\"], \"outputs\": [\"as\\n\", \"ses\\n\", \"aoxs\\n\", \"bsus\\n\", \"xoas\\n\", \"bsvs\\n\", \"xo`s\\n\", \"csvs\\n\"]}"
} | {
"index": "code_r1_train_2212"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 1\\n1\\n1\\n\", \"3 1 1\\n2\\n1\\n\", \"3 1 1\\n2\\n1\\n\", \"2 1 1\\n1\\n1\\n\", \"3 1 1\\n2\\n0\\n\", \"3 1 0\\n2\\n0\\n\", \"2 1 2\\n1\\n1 2\\n\", \"3 1 2\\n2\\n1 1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"2\... | {
"index": "code_r1_train_2213"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n7\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2214"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"3 2 2\\n\", \"1 1 1\\n\", \"3 1 1\\n\", \"3 1 1\\n\", \"1 1 1\\n\", \"6 1 1\\n\", \"2 1 2\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\", \"0\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2215"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3 1 2\\n4 2\\n1 1 1 1\\n2 1\\n1 2\\n\", \"3\\n4 3\\n1 3 1 2\\n4 2\\n1 2 1 1\\n2 1\\n1 2\\n\", \"3\\n4 3\\n1 3 1 2\\n4 2\\n1 1 1 1\\n2 1\\n2 2\\n\", \"3\\n4 3\\n1 3 2 2\\n4 2\\n1 1 1 1\\n2 1\\n2 2\\n\", \"3\\n4 3\\n1 3 2 2\\n4 2\\n1 1 2 1\\n2 1\\n2 2\\... | {
"index": "code_r1_train_2216"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"5 3\\n\", \"1 1\\n\", \"10003 8\\n\", \"200000 1\\n\", \"200000 2\\n\", \"200000 3\\n\", \"1 200000\\n\"], \"outputs\": [\"9\\n\", \"1\\n\", \"1\\n\", \"3906250000\\n\", \"8000000000000000\\n\", \"2000000000000000\\n\", \"296287407496296\\n\", \"0\\n\... | {
"index": "code_r1_train_2217"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3 2\\n\", \"1\\n5 2 3 2\\n\", \"1\\n7 2 3 2\\n\", \"1\\n7 0 3 2\\n\", \"1\\n7 1 3 2\\n\", \"1\\n3 1 1 2\\n\", \"1\\n5 2 1 2\\n\", \"1\\n6 1 3 2\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2218"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 1\\n6 5\", \"8 6 1\\n6 8\", \"1 1 1\\n1 1\", \"8 10 1\\n6 6\", \"24 4 1\\n6 2\", \"8 10 1\\n6 8\", \"10 3 1\\n6 2\", \"8 10 1\\n6 5\"], \"outputs\": [\"9\\n\", \"12\\n\", \"0\", \"10\\n\", \"20\\n\", \"12\\n\", \"6\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_2219"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"W\\n\", \"Q\\n\", \"A\\n\", \"W\\n\", \"Q\\n\", \"A\\n\", \"V\\n\", \"R\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2220"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0\\n1\\n\", \"1\\n0\\n1\\n\", \"2\\n0 5\\n4 0\\n1 2\\n\", \"2\\n0 5\\n7 0\\n1 2\\n\", \"2\\n0 4\\n7 0\\n1 2\\n\", \"2\\n0 9\\n7 0\\n1 2\\n\", \"2\\n0 1\\n7 0\\n1 2\\n\", \"2\\n0 5\\n4 0\\n1 2\\n\"], \"outputs\": [\"0 \", \"0 \\n\", \"9 0 \", \"12 0\", \"11 0\... | {
"index": "code_r1_train_2221"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"3\\n1 1 1\\n\", \"2\\n-1 -1\\n\", \"3\\n2 1 1\\n\", \"3\\n2 2 1\\n\", \"3\\n0 -1 0\\n\", \"3\\n0 0 -1\\n\", \"3\\n-1 0 -1\\n\"], \"outputs\": [\"0 0\\n\", \"3 0\\n\", \"-2 0\\n\", \"2 1\\n1\\n\", \"4 1\\n3\\n\", \"0 1\\n2 \", \"0 1\\n3\\n\", \"-2 ... | {
"index": "code_r1_train_2222"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n1 1\\n\", \"2\\n2 4 1\\n1 1\\n\", \"2\\n2 8 1\\n1 2\\n\", \"2\\n2 8 1\\n1 1\\n\", \"2\\n2 3 1\\n1 1\\n\", \"2\\n2 4 1\\n1 2\\n\", \"2\\n2 4 1\\n1 4\\n\", \"2\\n2 5 1\\n1 1\\n\"], \"outputs\": [\"124780545\\n\", \"124780545\\n\", \"499122177\\n\", \"12... | {
"index": "code_r1_train_2223"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n3\\n4\\n6\\n9\\n\", \"6\\n1\\n2\\n3\\n4\\n1\\n9\\n\", \"6\\n1\\n2\\n3\\n7\\n1\\n1\\n\", \"6\\n1\\n3\\n3\\n4\\n1\\n9\\n\", \"6\\n1\\n3\\n3\\n3\\n6\\n7\\n\", \"6\\n1\\n4\\n3\\n7\\n1\\n1\\n\", \"6\\n1\\n3\\n3\\n4\\n1\\n3\\n\", \"6\\n1\\n4\\n3\\n7\\n1\\n2... | {
"index": "code_r1_train_2224"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 4 2 1\\n\", \"1 6 6 2 1 1\\n\", \"4 1 7 4 1 2\\n\", \"1 2 1 1 1 1\\n\", \"1 5 1 5 4 2\\n\", \"2 3 2 3 1 1\\n\", \"2 4 2 2 1 1\\n\", \"2 4 2 2 1 1\\n\"], \"outputs\": [\"YES\", \"NO\", \"YES\", \"NO\", \"NO\", \"NO\", \"NO\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2225"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n\", \"3\\n1 2\\n2 3\\n\", \"4\\n1 2\\n3 2\\n4 2\\n\", \"4\\n1 2\\n3 2\\n4 1\\n\", \"4\\n1 3\\n3 2\\n4 2\\n\", \"4\\n1 3\\n3 2\\n4 1\\n\", \"4\\n1 2\\n3 2\\n4 2\\n\", \"19\\n2 19\\n7 15\\n8 10\\n16 1\\n12 5\\n11 5\\n6 18\\n12 14\\n14 15\\n2 6\\n9 1... | {
"index": "code_r1_train_2226"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1\\n\", \"9 1\\n\", \"1 1\\n\", \"9 1\\n\", \"7 8\\n\", \"1 1\\n\", \"7 8\\n\"], \"outputs\": [\"7\\n\", \"1\\n\", \"9\\n\", \"1\\n\", \"9\\n\", \"7\\n\", \"1\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_2227"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nP\\n\", \"1 1\\nR\\n\", \"1 1\\nS\\n\", \"3 2\\nRPS\\n\", \"1 100\\nS\\n\", \"11 1\\nRPSSPRSPPRS\\n\", \"15 87\\nRPPRPRRRPPSPRPP\\n\", \"19 2\\nSSSPRPRPSSRPPSRRSRR\\n\"], \"outputs\": [\"P\\n\", \"R\\n\", \"S\\n\", \"P\\n\", \"S\\n\", \"P\\n\", \"S\\n\", \"... | {
"index": "code_r1_train_2228"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n85 48 135 51 2 96 71 47 88 34 45 46 46 55 31 22 14 84 41 80 14 4 50 83 7 82\\n19771 12979 18912 10432 10544 12928 13403 280 10527 9740 8100 92 2856 14730 1396 15905 6534 4650 11469 3847 8433 2994 3471 16396 18355 11424\\n6674 17707 25267 4710 12232 2886 11908... | {
"index": "code_r1_train_2229"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 1\\n\", \"2 1\\n\", \"1 1\\n\", \"7 6\\n\", \"4 1\\n\", \"5 4\\n\", \"12 4\\n\"], \"outputs\": [\"1 \", \"2 \", \"2\\n\", \"1\\n\", \"1 1 1 1 1 2 \\n\", \"4 \\n\", \"1 1 1 2 \\n\", \"3 3 3 3 \"]}"
} | {
"index": "code_r1_train_2230"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nBAA\\n\", \"2\\nABA\\n\", \"2\\nAAB\\n\", \"2\\nAAA\\n\", \"2\\nBBB\\n\", \"2\\nBBB\\n\", \"2\\nAAB\\n\", \"2\\nBBB\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2231"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n0 2 3\", \"3 3 0 6\\n0 2 3\", \"3 4 0 3\\n1 2 3\", \"3 6 0 3\\n0 2 3\", \"0 3 0 6\\n0 2 3\", \"3 3 0 3\\n1 2 3\", \"3 3 -1 6\\n0 2 3\", \"3 3 -1 7\\n0 2 3\"], \"outputs\": [\"2\", \"0\", \"2\", \"2\", \"0\", \"2\", \"0\", \"0\"]}"
} | {
"index": "code_r1_train_2232"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"a\\nb\\n\", \"a\\na\\n\", \"a\\nb\\n\", \"c\\nc\\n\", \"a\\nc\\n\", \"b\\nc\\n\", \"c\\nb\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\", \"0\", \"1\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2233"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 5\", \"3\\n4 6 5\", \"3\\n4 8 5\", \"3\\n4 8 9\", \"3\\n4 8 4\", \"3\\n5 8 5\", \"3\\n0 6 5\", \"3\\n8 8 9\"], \"outputs\": [\"8\\n\", \"7\\n\", \"17\\n\", \"21\\n\", \"16\\n\", \"18\\n\", \"11\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_2234"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1\\n1\\n1 1\\n\", \"2 1\\n1 1\\n1 2\\n\", \"2 1\\n1 1\\n1 1\\n\", \"2 1\\n1 1\\n1 1\\n\", \"2 1\\n1 1\\n1 2\\n\", \"2 1\\n1 2\\n1 1\\n\", \"2 1\\n0 0\\n1 2\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\"... | {
"index": "code_r1_train_2235"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\\n1\\n4\", \"1 4\\n1\\n4\", \"1 3\\n1\\n3\", \"1 4\\n1\\n1\", \"1 3\\n1\\n5\", \"1 4\\n1\\n2\", \"1 3\\n1\\n9\", \"1 1\\n1\\n4\"], \"outputs\": [\"30\\n\", \"354\\n\", \"36\\n\", \"1\\n\", \"225\\n\", \"17\\n\", \"2025\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_2236"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"9\", \"8\", \"7\", \"2\", \"4\", \"5\"], \"outputs\": [\"4\\n\", \"516\\n\", \"275040\\n\", \"30096\\n\", \"3696\\n\", \"1\", \"16\", \"84\"]}"
} | {
"index": "code_r1_train_2237"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nbanana\\nta\\ntomb\\nbus\\nsound\\ndoes\\nsome\", \"7\\nananab\\nta\\nsomb\\nbus\\nsound\\ndoes\\nsemo\", \"7\\nbanaoa\\nta\\ntomb\\nbus\\nsound\\ndoes\\nsome\", \"7\\nbanaoa\\nta\\nuomb\\nbus\\nsound\\ndoes\\nsome\", \"7\\nbanaoa\\nua\\ntomb\\nbus\\nsound\\n... | {
"index": "code_r1_train_2238"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\\n-3 0\\n\", \"2\\n2 1\\n-4 0\\n\", \"2\\n0 1\\n-4 0\\n\", \"2\\n0 2\\n-4 0\\n\", \"2\\n2 1\\n-5 0\\n\", \"2\\n2 1\\n-4 1\\n\", \"2\\n0 2\\n-7 0\\n\", \"2\\n0 1\\n-4 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"2\\n... | {
"index": "code_r1_train_2239"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 3\\n4\\n29 0 4 2\", \"2\\n2\\n8 9\\n4\\n5 18 2 5\", \"2\\n2\\n8 9\\n4\\n5 36 2 5\", \"2\\n2\\n9 2\\n4\\n29 0 4 2\", \"2\\n2\\n8 9\\n4\\n4 18 2 5\", \"2\\n2\\n8 9\\n4\\n5 18 2 13\", \"2\\n2\\n3 5\\n4\\n8 10 7 13\", \"2\\n2\\n3 5\\n4\\n9 10 7 13\"], \"out... | {
"index": "code_r1_train_2240"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n2 1\", \"4\\n2 3 4 0\", \"4\\n4 3 4 1\", \"4\\n2 3 2 1\", \"4\\n3 5 2 1\", \"4\\n2 3 5 0\", \"4\\n2 3 4 1\", \"13\\n1 3 3 0 9 4 9 2 4 6 12 8 8\"], \"outputs\": [\"-1\", \"1 3 2 4\\n\", \"1 2 4 3\\n\", \"1 3 4 2\\n\", \"1 2 3 4\\n\", \"1 3 2 4\\n\", \"1 3 2 4\... | {
"index": "code_r1_train_2241"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nL 1\\nR 2\\nR 3\\n? 2\\nL 4\\n? 1\\n\", \"6\\nL 1\\nR 2\\nR 3\\n? 2\\nL 4\\n? 1\\n\", \"6\\nL 1\\nR 2\\nR 5\\n? 2\\nL 4\\n? 1\\n\", \"6\\nL 1\\nR 2\\nR 5\\n? 2\\nL 3\\n? 3\\n\", \"6\\nL 1\\nR 2\\nR 8\\n? 1\\nL 3\\n? 1\\n\", \"6\\nL 1\\nR 2\\nR 5\\n? 2\\nL 3\\... | {
"index": "code_r1_train_2242"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n20 10\\n0 0 0\\n\", \"1\\n1 1\\n19434 134\\n1 1 100\\n\", \"1\\n1 1\\n2000 2000\\n200000 0 0\\n\", \"1\\n1 1\\n20000 20000\\n200000 0 0\\n\", \"1\\n1 1\\n10000100000 1\\n200000 1 1\\n\", \"1\\n1 1\\n10000100000 1\\n199999 1 1\\n\", \"1\\n1 1\\n100001000... | {
"index": "code_r1_train_2243"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"7 0\", \"3 0\", \"4 1\", \"1 1\", \"8 1\", \"13 1\", \"13 0\"], \"outputs\": [\"7\\n\", \"6\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"7\", \"9\\n\", \"8\\n\"]}"
} | {
"index": "code_r1_train_2244"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4 5\", \"1\\n3 5\", \"1\\n3 2\", \"1\\n6 6\", \"1\\n0 0\", \"1\\n1 5\", \"1\\n1 8\", \"1\\n1 1\"], \"outputs\": [\"2\", \"3\\n\", \"2\\n\", \"6\\n\", \"0\\n\", \"5\\n\", \"8\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2245"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\", \"6\", \"4\", \"7\", \"2\", \"8\", \"5\", \"9\"], \"outputs\": [\"1\\n\", \"720\\n\", \"24\\n\", \"5040\\n\", \"2\\n\", \"40320\\n\", \"120\\n\", \"362880\\n\"]}"
} | {
"index": "code_r1_train_2246"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"0 0\\n\", \"0 1\\n\", \"123 456\\n\", \"7 549755813887\\n\", \"0 1000000000000\\n\", \"16469429916 70896110856\\n\", \"4917728545 146793804400\\n\"], \"outputs\": [\"5\\n\", \"0\\n\", \"1\\n\", \"435\\n\", \"7\\n\", \"1000000000000\\n\", \"70896110856... | {
"index": "code_r1_train_2247"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"lllll\\n2\", \"llmll\\n2\", \"llmll\\n4\", \"llmll\\n6\", \"llmll\\n1\", \"mlmll\\n2\", \"mlmll\\n4\", \"llmlm\\n4\"], \"outputs\": [\"lll\\n\", \"lml\\n\", \"ll\\n\", \"l\\n\", \"llmll\\n\", \"mml\\n\", \"ml\\n\", \"lm\\n\"]}"
} | {
"index": "code_r1_train_2248"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n3\\n1\\n2 1\\n1 2 3\\n4\\n1\\n1 2\\n4 1 2\\n2 3 1 1\\n\", \"2\\n3\\n1\\n2 1\\n1 2 3\\n4 \\n1 \\n1 2 \\n4 1 2\\n2 0 1 1\", \"2\\n3\\n1\\n2 1\\n2 2 3\\n4 \\n1 \\n1 2 \\n4 1 2\\n2 3 1 1\", \"2\\n3\\n1\\n3 1\\n2 2 3\\n4 \\n1 \\n1 2 \\n4 1 2\\n2 3 1 1\", \"2\\n3\\... | {
"index": "code_r1_train_2249"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nq\\n\", \"1\\np\\n\", \"1\\nr\\n\", \"1\\ns\\n\", \"1\\nt\\n\", \"1\\nu\\n\", \"1\\no\\n\"], \"outputs\": [\"a\", \"q\", \"p\\n\", \"r\\n\", \"s\\n\", \"t\\n\", \"u\\n\", \"o\\n\"]}"
} | {
"index": "code_r1_train_2250"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"1\\n5\\n\", \"1\\n2\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n5\\n\", \"1\\n9\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2251"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8\\n\", \"1 1 0\\n\", \"4 4 6\\n\", \"5 1 0\\n\", \"1 1 0\\n\", \"5 1 0\\n\", \"4 4 6\\n\", \"4 4 7\\n\"], \"outputs\": [\"3\\n10 2008 13726 \", \"9\\n1 2 3 4 5 6 7 8 9 \", \"13\\n10 1030 40006 114250 202506 262150 521290 937030 1562506 2458630 3694090 474369... | {
"index": "code_r1_train_2252"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"7 2 3\", \"7 1 3\", \"3 3 2\", \"3 2 2\", \"9 7 2\", \"6 2 3\", \"5 2 3\", \"9 7 3\"], \"outputs\": [\"116\\n\", \"128\\n\", \"4\\n\", \"6\\n\", \"242\\n\", \"55\\n\", \"25\\n\", \"129\\n\"]}"
} | {
"index": "code_r1_train_2253"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 5 7\\n3\\n2 4 6\\n2\\n5 5\", \"3\\n3\\n3 5 7\\n3\\n2 4 3\\n2\\n5 5\", \"3\\n3\\n3 3 7\\n3\\n2 4 3\\n2\\n5 5\", \"3\\n3\\n3 5 7\\n3\\n2 4 3\\n2\\n5 2\", \"3\\n3\\n3 5 7\\n3\\n2 4 6\\n2\\n8 5\", \"3\\n3\\n4 3 7\\n3\\n2 4 3\\n2\\n5 5\", \"3\\n3\\n3 7 7\\n3... | {
"index": "code_r1_train_2254"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n0.0 0.0 2.0 0.0 2.0 2.0\", \"1\\n0.0 0.0 2.0 0.5127281311709682 2.0 2.0\", \"1\\n0.0 0.0 2.4487612247110815 0.5127281311709682 2.0 2.0\", \"1\\n0.0 0.0 2.4487612247110815 0.5127281311709682 2.0 2.033916337250816\", \"1\\n0.0 0.8678187768154128 2.4487612247110... | {
"index": "code_r1_train_2255"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n41 9\\n41 115\\n43 110\\n21 4\\n88 1\", \"5\\n41 64\\n41 115\\n43 110\\n21 4\\n88 1\", \"5\\n140 82\\n89 16\\n64 010\\n62 58\\n2 90\", \"5\\n140 82\\n89 15\\n90 110\\n289 50\\n2 90\", \"5\\n140 82\\n89 15\\n90 110\\n289 63\\n2 90\", \"5\\n140 82\\n89 15\\n90 ... | {
"index": "code_r1_train_2256"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2\\n\", \"1 3\\n3\\n\", \"1 4\\n4\\n\", \"1 5\\n5\\n\", \"1 7\\n1\\n\", \"1 5\\n1\\n\", \"1 9\\n9\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\", \"11\", \"7\", \"0\"]}"
} | {
"index": "code_r1_train_2257"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n\", \"100 1\\n8 31 93 267\\n\", \"1 1\\n1 1 1000 1000\\n\", \"100 1\\n8 31 93 250\\n\", \"100 1\\n8 44 93 250\\n\", \"100 1\\n8 44 93 182\\n\", \"100 1\\n8 45 93 267\\n\", \"100 1\\n7 25 343 50\\n\"], \"outputs\": [\"1\\n\", \"6408\\n\", \"1000\\n... | {
"index": "code_r1_train_2258"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\", \"8\", \"5\", \"4\", \"9\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_2259"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"12\\n\", \"101\\n\", \"999999999\\n\", \"693828976\\n\", \"873041724\\n\", \"689670774\\n\", \"972655544\\n\", \"506479109\\n\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\"]}"
} | {
"index": "code_r1_train_2260"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\\n\", \"5\\n\", \"6\\n\", \"1\\n\", \"4\\n\", \"7\\n\", \"7\\n\"], \"outputs\": [\"748683265\\n\", \"748683265\\n\", \"842268673\\n\", \"873463809\\n\", \"499122177\\n\", \"811073537\\n\", \"896860161\\n\", \"896860161\\n\"]}"
} | {
"index": "code_r1_train_2261"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n5 0\\n\", \"2\\n4 0\\n5 0\\n\", \"2\\n5 2\\n4 0\\n\", \"2\\n0 2\\n4 0\\n\", \"2\\n-1 2\\n4 0\\n\", \"3\\n1 9\\n2 1\\n4 1\\n\", \"3\\n2 1\\n0 4\\n4 1\\n\", \"3\\n1 1\\n0 3\\n3 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"11\... | {
"index": "code_r1_train_2262"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nC\\n\", \"1\\nT\\n\", \"1\\nT\\n\", \"1\\nA\\n\", \"1\\nG\\n\", \"1\\nC\\n\", \"2\\nAG\\n\", \"2\\nAG\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2263"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 1\\n1 4\\n\", \"5 1\\n1 4\\n\", \"2 2\\n2 1\\n1 2\\n\", \"2 4\\n2 1\\n1 2\\n1 2\\n1 2\\n\", \"4 4\\n2 1\\n1 2\\n1 2\\n1 2\\n\", \"4 4\\n2 1\\n1 2\\n1 2\\n2 2\\n\", \"5 5\\n2 3\\n2 4\\n2 4\\n2 3\\n1 4\\n\", \"5 5\\n2 3\\n1 4\\n2 4\\n2 3\\n1 4\\n\"], \"outputs\":... | {
"index": "code_r1_train_2264"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 3\\n2 2\\n3 4\\n2 1\\n2 2\\n3 5\", \"2\\n1 3\\n2 2\\n3 4\\n2 2\\n2 2\\n3 5\", \"2\\n1 3\\n2 2\\n1 4\\n2 3\\n2 2\\n3 5\", \"2\\n1 3\\n2 3\\n1 4\\n2 3\\n2 2\\n3 5\", \"2\\n1 3\\n2 4\\n1 4\\n2 3\\n2 2\\n3 5\", \"2\\n1 3\\n2 2\\n3 4\\n0 1\\n2 2\\n3 5\", \"2\\n2... | {
"index": "code_r1_train_2265"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n16 771 1\\n2 146\\n\", \"1\\n152 771 0\\n3 282\\n\", \"1\\n65 1380 0\\n3 282\\n\", \"1\\n13 1380 0\\n3 282\\n\", \"1\\n152 771 1\\n2 146\\n\", \"1\\n152 771 0\\n13 15\\n\", \"1\\n239 771 0\\n3 282\\n\", \"1\\n65 2224 0\\n3 282\\n\"], \"outputs\": [\"1\\n\", \... | {
"index": "code_r1_train_2266"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0\\n\", \"0 0\\n\", \"0 1\\n\", \"5 5\\n\", \"14 34\\n\", \"50 34\\n\", \"524 8790\\n\", \"5849 7211\\n\"], \"outputs\": [\"2\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"50\\n\", \"14\\n\", \"8998\\n\", \"10146\\n\"]}"
} | {
"index": "code_r1_train_2267"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n\", \"3\\n\", \"5\\n\", \"11200\\n\", \"39435\\n\", \"812742\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"11052\\n\", \"39156\\n\", \"811469\\n\"]}"
} | {
"index": "code_r1_train_2268"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 1 2\\n\", \"5 1\\n0 1 3\\n\", \"2 1\\n0 1 2\\n\", \"4 1\\n0 1 2\\n\", \"4 1\\n0 1 1\\n\", \"124 1\\n1 1 2\\n\", \"124 1\\n0 1 2\\n\", \"152 1\\n0 1 2\\n\"], \"outputs\": [\"YES\\n2 2 \\n\", \"YES\\n5 4 3 2 1 \\n\", \"YES\\n2 1 \\n\", \"YES\\n4 3 2 1 \", \... | {
"index": "code_r1_train_2269"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n2\", \"2\\n8\\n4\", \"2\\n4\\n4\", \"2\\n8\\n6\", \"2\\n4\\n1\", \"2\\n4\\n0\", \"2\\n10\\n4\", \"2\\n10\\n6\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2270"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2 1 1\\n\", \"1\\n4 5 2 2 4 2\\n\", \"1\\n2 5 1 5 2 2\\n\", \"1\\n5 6 3 4 4 2\\n\", \"1\\n3 5 2 4 3 5\\n\", \"1\\n2 6 2 6 2 3\\n\", \"1\\n2 2 1 2 2 1\\n\", \"1\\n7 3 6 2 5 2\\n\"], \"outputs\": [\"5\\n\", \"0\\n\", \"6\\n\", \"4\\n\", \"2\\n\", \"0\\n\"... | {
"index": "code_r1_train_2271"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 4\\n3\\n1 1\\n3 4\\n5 6\", \"6 4\\n3\\n1 1\\n1 4\\n5 6\", \"5 4\\n3\\n1 1\\n3 4\\n5 2\", \"5 4\\n3\\n1 1\\n3 4\\n7 6\", \"6 4\\n3\\n1 0\\n1 4\\n5 6\", \"6 4\\n3\\n0 1\\n1 4\\n5 0\", \"5 4\\n3\\n1 1\\n3 3\\n5 2\", \"5 4\\n3\\n0 1\\n3 4\\n7 6\"], \"outputs\": [\"... | {
"index": "code_r1_train_2272"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 1 3\", \"3\\n0 2 2\", \"3\\n4 2 2\", \"3\\n1 0 3\", \"3\\n0 2 4\", \"3\\n4 0 2\", \"3\\n0 2 8\", \"3\\n0 0 2\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_2273"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n00001\\n4\", \"5\\n00000\\n3\", \"5\\n00001\\n1\", \"5\\n10001\\n1\", \"5\\n10001\\n2\", \"5\\n10001\\n4\", \"5\\n10000\\n1\", \"5\\n00010\\n1\"], \"outputs\": [\"11111\\n\", \"11100\\n\", \"10001\\n\", \"11001\\n\", \"11101\\n\", \"11110\\n\", \"11000\\n\", ... | {
"index": "code_r1_train_2274"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n000\\n000\\n\", \"3\\n000\\n000\\n\", \"3\\n000\\n001\\n\", \"3\\n100\\n000\\n\", \"3\\n010\\n000\\n\", \"3\\n010\\n001\\n\", \"3\\n010\\n100\\n\", \"3\\n010\\n101\\n\"], \"outputs\": [\"0\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"1\\n\", \"1\\n\", \"-1... | {
"index": "code_r1_train_2275"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8\\n9\\n\", \"1\\n8\\n2\\n\", \"2\\n7 1\\n1 7\\n\", \"2\\n5 7\\n3 7\\n\", \"2\\n5 7\\n5 7\\n\", \"1\\n4295\\n4295\\n\", \"1\\n4295\\n1472\\n\", \"2\\n57 2\\n2 179\\n\"], \"outputs\": [\"IMPOSSIBLE\\n\", \"IMPOSSIBLE\\n\", \"SMALL\\n1\\nR\\n\", \"IMPOSSIBLE\\n... | {
"index": "code_r1_train_2276"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\", \"3\\n3 2 1\", \"3\\n0 2 0\", \"3\\n0 1 0\", \"3\\n1 2 1\", \"3\\n2 2 1\", \"3\\n3 4 1\", \"3\\n3 7 1\"], \"outputs\": [\"No\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_2277"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\\n\", \"6\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"2\\n\", \"9\\n\"], \"outputs\": [\"1\\n\", \"280\\n\", \"60\\n\", \"6\\n\", \"12\\n\", \"60\\n\", \"2\\n\", \"504\\n\"]}"
} | {
"index": "code_r1_train_2278"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nABB\\n\", \"1\\nAAB\\n\", \"1\\nBAB\\n\", \"1\\nBAC\\n\", \"1\\nACB\\n\", \"1\\nCAB\\n\", \"1\\nC@B\\n\", \"1\\nB@C\\n\"], \"outputs\": [\"ABB\\n\", \"AAB\\n\", \"BAB\\n\", \"BAC\\n\", \"ACB\\n\", \"CAB\\n\", \"C@B\\n\", \"B@C\\n\"]}"
} | {
"index": "code_r1_train_2279"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"y\\n\", \"e\\n\", \"e\\n\", \"y\\n\", \"d\\n\", \"x\\n\", \"c\\n\"], \"outputs\": [\"51\\n\", \"51\\n\", \"51\\n\", \"51\\n\", \"51\\n\", \"51\\n\", \"51\\n\", \"51\\n\"]}"
} | {
"index": "code_r1_train_2280"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9 7\\n1 7 8\\n2 1\\n2 2 1\\n0\", \"1\\n7 4 2\\n1 9 8\\n2 1\\n9 2 1\\n0\", \"1\\n7 3 4\\n1 7 8\\n2 1\\n3 3 1\\n0\", \"1\\n7 9 7\\n1 7 2\\n2 1\\n2 2 1\\n0\", \"1\\n7 4 2\\n1 9 8\\n2 1\\n1 2 1\\n0\", \"1\\n7 1 7\\n7 7 8\\n8 1\\n3 1 2\\n0\", \"1\\n7 9 7\\n2 7 2... | {
"index": "code_r1_train_2281"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA00\\n\", \"1\\na00\\n\", \"1\\n825\\n\", \"1\\n000\\n\", \"1\\n0a0\\n\", \"1\\n0aa\\n\", \"1\\n00A\\n\", \"1\\n001\\n\"], \"outputs\": [\"Aa0\\n\", \"aA0\\n\", \"aA5\\n\", \"aA0\\n\", \"Aa0\\n\", \"0Aa\\n\", \"a0A\\n\", \"aA1\\n\"]}"
} | {
"index": "code_r1_train_2282"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n1\\n\", \"1\\n2\\n2\\n\", \"1\\n1\\n1\\n\", \"1\\n2\\n2\\n\", \"1\\n1\\n2\\n\", \"1\\n4\\n2\\n\", \"1\\n6\\n2\\n\", \"1\\n5\\n2\\n\"], \"outputs\": [\"1\\n\", \"-1\\n\", \"1\\n\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2283"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n2 6\\n4 5\\n5 6\", \"6 3\\n2 6\\n4 6\\n5 6\", \"6 3\\n4 3\\n3 5\\n5 6\", \"7 3\\n2 3\\n4 5\\n5 6\", \"7 3\\n2 3\\n1 5\\n5 6\", \"6 3\\n2 6\\n4 5\\n4 6\", \"7 1\\n2 3\\n4 5\\n5 6\", \"6 3\\n2 6\\n4 6\\n5 2\"], \"outputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"2\... | {
"index": "code_r1_train_2284"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nz\\n\", \"2\\naz\\n\", \"2\\naa\\n\", \"2\\nba\\n\", \"2\\nbb\\n\", \"2\\nbc\\n\", \"2\\nca\\n\", \"2\\nab\\n\"], \"outputs\": [\"z\", \"az\", \"aa\", \"ab\\n\", \"bb\\n\", \"bc\\n\", \"ac\\n\", \"ab\\n\"]}"
} | {
"index": "code_r1_train_2285"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n\", \"2\\n1 1\\n\", \"2\\n2 1\\n\", \"2\\n2 0\\n\", \"2\\n0 0\\n\", \"2\\n669 34\\n\", \"2\\n669 52\\n\", \"4\\n8 5 2 3\\n\"], \"outputs\": [\"4\\n\", \"4\\n\", \"9\\n\", \"4\\n\", \"0\\n\", \"494209\\n\", \"519841\\n\", \"164\\n\"]}"
} | {
"index": "code_r1_train_2286"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"4\\n\", \"5\\n\", \"6\\n\", \"8\\n\", \"9\\n\", \"9\\n\", \"5\\n\"], \"outputs\": [\"1 2\\n\", \"1 3\\n\", \"2 3\\n\", \"1 5\\n\", \"3 5\\n\", \"4 5\\n\", \"4 5\\n\", \"2 3\\n\"]}"
} | {
"index": "code_r1_train_2287"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n00\\n\", \"1\\n2 1\\n00\\n\", \"2\\n8 5\\n11011010\\n7 9\\n1111100\\n\", \"2\\n8 5\\n11011010\\n7 9\\n1111100\\n\", \"2\\n8 5\\n11011010\\n7 9\\n1011100\\n\", \"2\\n8 5\\n01011010\\n7 9\\n1011100\\n\", \"2\\n8 1\\n01011010\\n7 9\\n1011100\\n\", \"2\\n8 ... | {
"index": "code_r1_train_2288"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1\\na\\na\\n\", \"1\\na\\n`\\n\", \"1\\n`\\n`\\n\", \"1\\n_\\n`\\n\", \"1\\n_\\na\\n\", \"1\\n_\\n_\\n\", \"1\\n`\\n_\\n\"], \"outputs\": [\"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\", \"no\\n\"]}"
} | {
"index": "code_r1_train_2289"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1\\n\", \"2 0\\n0 0\\n\", \"2 1\\n0 1\\n\", \"2 1\\n0 2\\n\", \"2 1\\n0 1\\n\", \"2 0\\n1 1\\n\", \"2 1\\n0 2\\n\", \"2 0\\n0 0\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2290"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 4\\n\", \"4 4\\n\", \"1 1\\n\", \"3 3\\n\", \"4 1\\n\", \"3 4\\n\", \"4 4\\n\", \"1 1\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"0\\n\", \"1\", \"0\", \"4\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2291"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"Z\\n\", \"CG\\n\", \"ABC\\n\", \"ATCPDER\", \"ATCPCER\", \"ATCPBER\", \"REBPCTA\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2292"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3\", \"2\", \"0\", \"9\", \"8\", \"4\", \"4\\n\"], \"outputs\": [\"108\\n\", \"27\\n\", \"12\\n\", \"0\\n\", \"243\\n\", \"192\\n\", \"48\", \"48\\n\"]}"
} | {
"index": "code_r1_train_2293"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"7\\n\", \"9\\n\", \"4\\n\", \"2\\n\", \"5\\n\", \"6\\n\", \"3\\n\"], \"outputs\": [\"3 3\\n\", \"3 3\\n\", \"4 4\\n\", \"4 2\\n\", \"2 2\\n\", \"3 3\\n\", \"3 3\\n\", \"2 2\\n\"]}"
} | {
"index": "code_r1_train_2294"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"00\\n\", \"11\\n\", \"??\\n\", \"10?\\n\", \"1?0\\n\", \"?10\\n\", \"?01\\n\", \"1?1\\n\"], \"outputs\": [\"00\\n\", \"11\\n\", \"00\\n01\\n10\\n11\\n\", \"00\\n01\\n\", \"00\\n10\\n\", \"00\\n10\\n\", \"00\\n01\\n\", \"01\\n11\\n\"]}"
} | {
"index": "code_r1_train_2295"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 50\\nS\\n1\\nS\\n\", \"1 1 65\\nS\\n1\\nS\\n\", \"2 2 1\\nab\\ndc\\n1\\ne\\n\", \"2 2 1\\nba\\ndc\\n1\\ne\\n\", \"2 2 1\\nba\\ncc\\n1\\ne\\n\", \"2 2 1\\nab\\ncd\\n1\\ne\\n\", \"2 2 1\\nab\\ncd\\n1\\nA\\n\", \"2 1 2\\nS\\nc\\n4\\nCSSA\\n\"], \"outputs\": [\"-... | {
"index": "code_r1_train_2296"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"0 0\\n\", \"0 0\\n\", \"2 3\\naaaaa\\nacacaca\\naabaa\\nccacacc\\ncaaac\\n\", \"2 3\\naaaaa\\nacacaca\\naabaa\\nccbcacc\\ncaaac\\n\", \"1 3\\naaaaa\\nacacaca\\naabaa\\nccbcacc\\ncaaac\\n\", \"1 3\\nabaaa\\nacacaca\\naabaa\\nccbcacc\\ncaaac\\n\", \"2 3\\naaaaa\\na... | {
"index": "code_r1_train_2297"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n\", \"2 1\\n1 2\\n\", \"1 1\\n1 1\\n\", \"2 1\\n1 2\\n\", \"2 1\\n1 1\\n\", \"1 1\\n2 1\\n\", \"6 2\\n1 6\\n1 4\\n\", \"6 2\\n1 6\\n1 4\\n\"], \"outputs\": [\"0\\n\", \"01\\n\", \"0\", \"01\", \"01\\n\", \"0\\n\", \"010101\\n\", \"010101\"]}"
} | {
"index": "code_r1_train_2298"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 2\\n\", \"4 7\\n\", \"7 8\\n\", \"1 1\\n\", \"2 3\\n\", \"1 10\\n\", \"5 45\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"9\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_2299"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.