data_source stringclasses 1
value | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5 2\", \"5 8\", \"2 2\", \"5 1\", \"6 2\", \"9 2\", \"9 4\", \"9 1\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_2800"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\\n2 1\\n\", \"2\\n3 1\\n\", \"2\\n6 1\\n\", \"3\\n1 2 3\\n\", \"3\\n1 2 1\\n\", \"3\\n1 2 0\\n\", \"3\\n1 2 3\\n\"], \"outputs\": [\"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\"]}"
} | {
"index": "code_r1_train_2801"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 3\\n2\\n4 5\\n5 6\\n2\\n2 3\\n3 5\", \"3\\n1\\n2 3\\n2\\n4 5\\n5 6\\n2\\n2 3\\n1 5\", \"3\\n1\\n2 3\\n2\\n4 5\\n5 6\\n1\\n2 3\\n3 5\", \"3\\n1\\n1 3\\n2\\n6 5\\n5 6\\n1\\n2 6\\n5 5\", \"3\\n1\\n2 3\\n2\\n4 5\\n5 3\\n1\\n2 3\\n3 5\", \"3\\n1\\n2 3\\n2\\n... | {
"index": "code_r1_train_2802"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 99\\n1\\n\", \"1 99\\n1\\n\", \"1 65\\n1\\n\", \"1 99\\n2\\n\", \"3 1\\n1 1 2\\n\", \"3 1\\n1 1 2\\n\", \"3 1\\n2 1 2\\n\", \"3 1\\n1 0 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n+ 2 1\\n+ 3 1\\n\", \"2\\n+ 2 1\\n+ 3 1\\n\", \"2\\n+ 2 ... | {
"index": "code_r1_train_2803"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 3\\n4 5 6\\n5\\n1 2 3 4 2\\n2 3 4 5 4\\n7\\n13 6 5 8 2 9 12\\n19 5 6 9 9 11 15\", \"3\\n3\\n1 2 0\\n4 5 6\\n5\\n1 2 3 4 2\\n2 6 4 5 4\\n7\\n13 6 5 8 2 9 12\\n19 5 6 9 9 11 15\", \"3\\n3\\n0 2 3\\n4 5 6\\n5\\n1 2 3 4 2\\n2 3 2 8 6\\n7\\n13 6 5 8 2 9 12... | {
"index": "code_r1_train_2804"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nteama 10\\nteamb 10\\n2\\n10 10\\nteamb\\n\", \"3\\nteama 10\\nteamb 20\\nteamc 40\\n2\\n10 20\\nteama\\n\", \"5\\nteamc 8\\nteamd 7\\nteame 15\\nteama 3\\nteamb 21\\n3\\n1 2 3\\nteamb\\n\", \"5\\nteamc 4\\nteamd 7\\nteame 15\\nteama 3\\nteamb 21\\n3\\n1 2 3\... | {
"index": "code_r1_train_2805"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA a\\n0 0\\n5 4\\n10\\nB\\nB\\nC\\n0\\n1\\n4\\n5\\na\\nb\\nA\\n3\\n@ a\\n0 5\\n5 4\\n3\\nA\\nB\\nC\\n0\\n1\\n4\\n5\\na\\nb\\n@\\n0\", \"3\\nA a\\n0 0\\n5 4\\n10\\nB\\nB\\nC\\n0\\n1\\n4\\n5\\na\\nc\\nA\\n3\\n@ a\\n0 5\\n5 4\\n3\\nA\\nB\\nC\\n0\\n1\\n1\\n5\\na\... | {
"index": "code_r1_train_2806"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 12 10\\n4 3 10\\n\", \"2\\n9 12 10\\n4 6 10\\n\", \"2\\n47 23 4\\n3 6 16\\n\", \"2\\n6 12 10\\n4 3 10\\n\", \"2\\n25 12 10\\n3 6 15\\n\", \"2\\n47 23 10\\n3 6 20\\n\", \"2\\n18 12 10\\n4 6 10\\n\", \"2\\n18 12 10\\n5 6 10\\n\"], \"outputs\": [\"Finite\\nInf... | {
"index": "code_r1_train_2807"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1 2 2\\n\", \"1 1 1 1\\n\", \"3 1 3 4\\n\", \"1 4 1 5\\n\", \"5 4 1 4\\n\", \"2 3 4 5\\n\", \"2 2 5 4\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_2808"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"2\\n2 6\\n\", \"2\\n7 6\\n\", \"2\\n4 3\\n\", \"2\\n2 3\\n\", \"2\\n2 10\\n\", \"2\\n12 3\\n\", \"3\\n2 1 1\\n\"], \"outputs\": [\"8\\n\", \"10\\n\", \"36\\n\", \"9\\n\", \"4\", \"18\\n\", \"33\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2809"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n4\\n\", \"1\\n8\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"2\\n1 1\\n\", \"2\\n0 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2810"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n-1\\n\", \"2 2\\n0 2\\n0 1\\n\", \"1 5\\n1\\n1 2 3 4 5\\n\", \"3 3\\n0 0 0\\n0 0 0\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"4\\n\", \"3\\n\",... | {
"index": "code_r1_train_2811"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n3 3\\n\", \"10 5 1\\n3 3\\n\", \"10 5 1\\n3 5\\n\", \"10 5 1\\n3 3\\n\", \"5 1 2\\n4 1\\n5 1\\n\", \"5 1 2\\n4 1\\n5 1\\n\", \"5 1 2\\n4 1\\n1 1\\n\", \"5 1 2\\n4 1\\n2 1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"1\\n\", \"1\\n\", \"1... | {
"index": "code_r1_train_2812"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0001 0\\n\", \"1\\n1001 1\\n\", \"1\\n1010 1\\n\", \"1\\n1000 0\\n\", \"1\\n1100 0\\n\", \"1\\n1100 1\\n\", \"1\\n0010 1\\n\", \"1\\n0010 0\\n\"], \"outputs\": [\"1\\n\", \"1003\\n\", \"1010\\n\", \"1000\\n\", \"1100\\n\", \"1101\\n\", \"10\\n\", \"11\\n\"]}"... | {
"index": "code_r1_train_2813"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 3\\n5\\n2 3 1 5 4\", \"2\\n2\\n1 2 3\\n5\\n2 3 1 5 4\", \"2\\n3\\n1 2 3\\n5\\n4 3 1 5 2\", \"2\\n3\\n2 1 3\\n5\\n4 3 1 5 2\", \"2\\n2\\n1 2 3\\n5\\n4 3 1 5 2\", \"2\\n1\\n1 2 3\\n5\\n2 3 1 5 4\", \"2\\n1\\n1 2 3\\n5\\n4 3 1 5 2\", \"2\\n2\\n2 1 3\\n5\... | {
"index": "code_r1_train_2814"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"82\", \"60\", \"85\", \"51\", \"96\", \"65\", \"57\"], \"outputs\": [\"-12\\n\", \"26\\n\", \"15\\n\", \"27\\n\", \"10\\n\", \"33\\n\", \"17\\n\", \"13\\n\"]}"
} | {
"index": "code_r1_train_2815"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n\", \"4 1\\n\", \"1 1\\n\", \"1 2\\n\", \"2 2\\n\", \"7 3\\n\", \"6 3\\n\", \"4 2\\n\"], \"outputs\": [\"-1\\n\", \"4\\n1 2\\n2 3\\n3 4\\n4 1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"21\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n3 6\\n4 5\\n4 6\\n4 7... | {
"index": "code_r1_train_2816"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 1 3\\n0 2 2\\n2 0 1\\n2 3 2\\n3 0 1\\n3 1 5\", \"4 6 0\\n0 1 1\\n0 2 2\\n2 0 1\\n2 3 2\\n3 0 1\\n3 1 5\", \"4 6 0\\n0 1 1\\n0 2 2\\n3 1 1\\n2 3 3\\n3 0 0\\n0 1 7\", \"4 6 0\\n0 1 1\\n0 2 2\\n2 0 1\\n2 3 0\\n3 1 1\\n3 1 5\", \"4 5 0\\n0 1 4\\n0 2 2\\n3 1... | {
"index": "code_r1_train_2817"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n5\\n\", \"1\\n6\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n1\\n\", \"1\\n8\\n\", \"1\\n28\\n\"], \"outputs\": [\"2\\n\", \"5\\n\", \"6\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"8\\n\", \"11\\n\"]}"
} | {
"index": "code_r1_train_2818"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"1\\n12\\n\", \"1\\n17\\n\", \"1\\n14\\n\", \"1\\n10\\n\", \"1\\n12\\n\"], \"outputs\": [\"0\", \"0\\n\", \"0\\n\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2819"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n82\\n\", \"1\\n24\\n\", \"1\\n31\\n\", \"1\\n56\\n\", \"1\\n93\\n\", \"1\\n21\\n\", \"1\\n883\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2820"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\", \"2\\n1\\n3\", \"2\\n2\\n4\", \"2\\n2\\n8\", \"2\\n4\\n4\", \"2\\n2\\n7\", \"2\\n4\\n8\", \"2\\n8\\n8\"], \"outputs\": [\"1\\n3\", \"1\\n3\\n\", \"2\\n3\\n\", \"2\\n5\\n\", \"3\\n3\\n\", \"2\\n4\\n\", \"3\\n5\\n\", \"5\\n5\\n\"]}"
} | {
"index": "code_r1_train_2821"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n2\\n\", \"1\\n9\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n7\\n\", \"1\\n8\\n\"], \"outputs\": [\"not unique\\n\", \"not unique\\n\", \"not unique\\n\", \"not unique\\n\", \"not unique\\n\", \"not unique\\n\", \"not unique\\n\", \"not... | {
"index": "code_r1_train_2822"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0 -1\\n0 0\\n1 1\", \"2 2\\n2 0\\n0 0\\n0 -1\\n1 0\", \"2 2\\n2 0\\n0 -1\\n0 0\\n1 0\", \"2 2\\n2 0\\n0 0\\n0 -1\\n1 1\", \"2 2\\n2 1\\n0 0\\n0 -1\\n1 1\", \"2 2\\n2 0\\n1 -1\\n0 0\\n1 1\", \"2 2\\n2 0\\n1 -1\\n1 0\\n1 1\", \"2 2\\n2 0\\n0 0\\n-1 0\\n... | {
"index": "code_r1_train_2823"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nushi\\ntaou\\nnichia\\nkun\", \"4\\nihsu\\ntaou\\nnichia\\nkun\", \"4\\nihsu\\ntaou\\nmichia\\nkun\", \"4\\nihsu\\ntaou\\nmichia\\nnuk\", \"4\\nihsu\\ntaou\\nmichia\\nmuk\", \"4\\nihsu\\nuoat\\nmichia\\nmuk\", \"4\\nihsu\\nuoat\\nmichia\\nkum\", \"4\\nihsu\\n... | {
"index": "code_r1_train_2824"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7\\n\", \"1\\n6\\n\", \"1\\n7\\n\", \"1\\n9\\n\", \"1\\n3\\n\", \"1\\n14\\n\", \"1\\n27\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"2\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_2825"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\", \"1\\n4\", \"1\\n5\", \"1\\n3\", \"1\\n6\", \"1\\n7\", \"1\\n1\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"0\"]}"
} | {
"index": "code_r1_train_2826"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n2\\n4\\n7\\n5\\n6\", \"5\\n2\\n3\\n7\\n5\\n6\", \"5\\n2\\n7\\n7\\n5\\n6\", \"5\\n2\\n2\\n4\\n5\\n6\", \"5\\n4\\n3\\n7\\n5\\n6\", \"5\\n2\\n3\\n4\\n5\\n6\", \"5\\n2\\n12\\n7\\n5\\n6\", \"5\\n2\\n7\\n7\\n5\\n11\"], \"outputs\": [\"3\\n\", \"4\\n\", \"4\\n\", \"... | {
"index": "code_r1_train_2827"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"7\\n\", \"2\\n\", \"5\\n\", \"8\\n\", \"9\\n\", \"6\\n\", \"1\\n\", \"3\\n\"], \"outputs\": [\"53\", \"3\", \"19\", \"87\", \"142\", \"32\", \"1\", \"6\"]}"
} | {
"index": "code_r1_train_2828"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"a a `\", \"a b a\", \"a b `\", \"b a a\", \"b a b\", \"c a b\", \"c b b\", \"c b a\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2829"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n100000\\n\", \"1\\n100000\\n\", \"2\\n99997\\n3\\n\", \"2\\n99997\\n3\\n\", \"2\\n99997\\n4\\n\", \"4\\n1\\n2\\n9\\n91234\\n\", \"4\\n2\\n2\\n9\\n91234\\n\", \"4\\n1\\n2\\n3\\n91234\\n\"], \"outputs\": [\"553573229\\n\", \"553573229\\n\", \"979296788\\n360\\n... | {
"index": "code_r1_train_2830"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 1\\n0\\n\", \"1 0 1\\n2\\n\", \"1 2 1\\n1\\n\", \"1 0 1\\n1\\n\", \"2 5 1\\n5 8\\n\", \"2 5 1\\n8 8\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"1\\n\", \"9\\n\", \"10\\n\"]}"
} | {
"index": "code_r1_train_2831"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAABB\\nCAAB\\nABCA\\n\", \"3\\nAABB\\nCAAB\\nABCA\\n\", \"3\\nAABB\\nBAAC\\nABCA\\n\", \"3\\nAAAB\\nBAAC\\nABCA\\n\", \"3\\nBAAA\\nAABC\\nABCA\\n\", \"3\\nAABB\\nACAB\\nABCA\\n\", \"3\\nBAAA\\nAABB\\nBACA\\n\", \"3\\nBAAA\\nBAAC\\nABCA\\n\"], \"outputs\": [\"... | {
"index": "code_r1_train_2832"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\", \"3\\n2\\n3\\n3\", \"3\\n2\\n1\\n3\", \"3\\n4\\n5\\n8\", \"3\\n3\\n5\\n4\", \"3\\n3\\n4\\n4\", \"3\\n3\\n5\\n8\", \"3\\n3\\n1\\n4\"], \"outputs\": [\"-1\\n\", \"2\\n\", \"0\\n\", \"3\\n\", \"-1\\n\", \"-1\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2833"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n10 2\\n40 5\\n60 3\\n70 5\\n90 1\", \"5\\n10 2\\n40 8\\n60 3\\n70 5\\n90 1\", \"5\\n10 2\\n40 5\\n60 3\\n70 4\\n90 1\", \"5\\n28 17\\n40 50\\n60 35\\n70 40\\n90 3\", \"5\\n2 20\\n40 50\\n60 13\\n70 40\\n89 10\", \"5\\n2 20\\n40 50\\n60 13\\n70 40\\n71 10\", \... | {
"index": "code_r1_train_2834"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2 1 2 1\\n\", \"0 0 0 0 0 0\\n\", \"4 4 4 4 5 4\\n\", \"2 2 2 2 2 1\\n\", \"1 1 1 1 1 5\\n\", \"8 1 1 3 3 0\\n\", \"1 1 2 2 3 3\\n\", \"1 2 2 5 2 5\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"NO\\n\"]... | {
"index": "code_r1_train_2835"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 3 3 5\\n\", \"3 2 6 7\\n\", \"3 3 1 1\\n\", \"4 4 1 1\\n\", \"2 2 1 1\\n\", \"2 3 1 1\\n\", \"3 2 6 7\\n\", \"4 4 1 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\", \"1\"]}"
} | {
"index": "code_r1_train_2836"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 2 1\\n1 10\\n1\\n\", \"1 1 2 1\\n1 10\\n1\\n\", \"1 1 2 2\\n1 10\\n1\\n\", \"1 1 2 2\\n2 17\\n1\\n\", \"1 1 2 2\\n1 17\\n1\\n\", \"1 1 2 0\\n2 17\\n1\\n\", \"1 1 2 0\\n2 23\\n1\\n\", \"1 1 2 1\\n2 23\\n1\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"1\", \"2\"... | {
"index": "code_r1_train_2837"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3 4 5\", \"5 5\\n2 2 3 4 5\", \"5 3\\n2 2 3 4 5\", \"5 5\\n1 2 2 4 5\", \"5 5\\n3 2 3 4 5\", \"5 5\\n1 4 2 4 0\", \"0 3\\n1 1 4 8 0\", \"5 5\\n3 2 3 4 7\"], \"outputs\": [\"15\\n\", \"16\\n\", \"12\\n\", \"14\\n\", \"17\\n\", \"11\\n\", \"13\\n\", \"19\... | {
"index": "code_r1_train_2838"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n4\\n\", \"1\\n2720\\n\", \"1\\n5280\\n\", \"1\\n5970\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"2720\\n\", \"5280\\n\", \"5970\\n\"]}"
} | {
"index": "code_r1_train_2839"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7082632\\n\", \"1 1 1\\n1027282\\n\", \"1 1 1\\n1469884\\n\", \"1 1 1\\n99996055\\n\", \"1 1 1\\n41731973\\n\", \"1 1 1\\n74257449\\n\", \"1 1 1\\n69799202\\n\", \"4 3 1\\n1 100 1 1\\n\"], \"outputs\": [\"7082632\", \"1027282\\n\", \"1469884\\n\", \"99996... | {
"index": "code_r1_train_2840"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n1\\n\", \"1 1 1\\n1\\n1\\n\", \"1 1 2\\n1\\n1\\n\", \"4 2 2\\n5\\n6\\n7\\n\", \"2 2 1\\n2\\n1\\n1\\n\", \"2 2 1\\n2\\n1\\n1\\n\", \"4 2 2\\n5\\n6\\n7\\n\", \"4 2 3\\n5\\n6\\n7\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"1\\n\", \"1\... | {
"index": "code_r1_train_2841"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"8\\n\", \"8\\n\", \"1\\n\", \"3\\n\"], \"outputs\": [\"3\", \"2\", \"1\", \"2\", \"4\", \"4\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_2842"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nD\\n\", \"0 1\\nD\\n\", \"0 1\\nD\\n\", \"0 0\\nD\\n\", \"2 2\\nRU\\n\", \"1 2\\nRU\\n\", \"0 -1\\nU\\n\", \"-1 0\\nR\\n\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_2843"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"3 2 1 \", \"4 3 2 1 \", \"5 4 3 2 1 \", \"6 5 4 3 2 1 \", \"7 6 5 4 3 2 1 \", \"8 7 6 5 4 3 2 1 \"]}"
} | {
"index": "code_r1_train_2844"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n10 3\\n3 1 1 1 1 10 3 10 9 2\\n4 4\\n1 1 1 1\\n1 1\\n1\\n13 1\\n3 1 1 1 5 9 4 6 4 3 5 8 9\\n13 2\\n3 1 4 1 5 9 2 6 4 3 5 8 9\\n13 3\\n3 2 4 1 5 9 2 6 5 3 5 8 9\\n\", \"6\\n10 3\\n3 1 1 1 1 10 3 10 9 2\\n4 4\\n1 1 1 1\\n1 1\\n1\\n13 1\\n3 2 1 1 5 9 4 6 4 3 5 8... | {
"index": "code_r1_train_2845"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\naa\\nab\\nbb\\n\", \"1\\naa\\nab\\nbb\\n\", \"1\\naa\\nba\\nbb\\n\", \"3\\naaa\\nbbb\\nabc\\n\", \"0\\naaa\\naab\\nccd\\n\", \"2\\naaa\\naab\\naab\\n\", \"2\\naaa\\naaa\\nabc\\n\", \"3\\nabc\\naac\\nbbb\\n\"], \"outputs\": [\"Shiro\\n\", \"Shiro\\n\", \"Shiro... | {
"index": "code_r1_train_2846"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"H\\nQD KD\\n\", \"D\\n9S 8S\\n\", \"H\\nTH 8H\\n\", \"D\\nAC KS\\n\", \"H\\nAH KH\\n\", \"H\\nAD KD\\n\", \"D\\n8S 6C\\n\", \"H\\nAC QC\\n\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_2847"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3\\n1 3 2\", \"3\\n3 1 2\", \"3\\n3 2 1\", \"3\\n2 1 3\", \"3\\n1 2 3\", \"3\\n1 3 2\", \"3\\n1 2 3\"], \"outputs\": [\"1\\n\", \"5\\n\", \"4\\n\", \"5\\n\", \"4\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_2848"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n1 0 1\\n0 0 5\\n0 0 0\", \"1 3\\n1 0 0\\n0 0 5\\n1 0 0\", \"1 3\\n1 -1 0\\n0 0 5\\n1 0 0\", \"1 3\\n1 -1 0\\n0 0 9\\n1 0 0\", \"1 3\\n1 -1 0\\n0 0 5\\n0 0 0\", \"1 3\\n1 -1 0\\n0 0 4\\n1 0 0\", \"1 3\\n1 -1 0\\n1 0 9\\n1 0 0\", \"1 3\\n1 -1 1\\n0 0 5\\n0 0 ... | {
"index": "code_r1_train_2849"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 1\\n2\\n\", \"1 1\\n1\\n\", \"1 0\\n1\\n\", \"1 53\\n1\\n\", \"1 1\\n10\\n\", \"1 53\\n1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"53\\n\", \"0\\n\", \"53\\n\"]}"
} | {
"index": "code_r1_train_2850"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1 2\\n2 3\\n3 4\\n2 3\", \"4 2 2\\n2 2\\n2 3\\n1 4\\n2 3\", \"4 2 2\\n1 2\\n2 3\\n1 4\\n1 3\", \"4 3 1\\n1 3\\n2 3\\n3 4\\n2 1\", \"4 3 0\\n0 2\\n2 3\\n3 4\\n2 3\", \"4 2 2\\n2 2\\n2 3\\n1 4\\n3 3\", \"6 3 0\\n0 2\\n4 3\\n3 4\\n5 3\", \"6 3 0\\n0 0\\n4 3\... | {
"index": "code_r1_train_2851"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n\", \"2 1\\n1 2\\n\", \"2 0\\n1 2\\n\", \"3 2\\n6 2 6\\n\", \"3 2\\n6 2 0\\n\", \"3 2\\n6 2 6\\n\", \"1 1\\n500000\\n\", \"1 1\\n500000\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2852"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1\\n16 27\\n100 50\\n8 7948\\n0 0\", \"2 2\\n3 4\\n13 22\\n100 5\\n4 500000\\n0 0\", \"3 2\\n2 6\\n10 6\\n110 93\\n2 371896\\n0 0\", \"3 2\\n2 3\\n10 6\\n110 93\\n2 371896\\n0 0\", \"3 1\\n3 4\\n7 20\\n101 50\\n2 500000\\n0 0\", \"3 2\\n3 4\\n10 2\\n100 5... | {
"index": "code_r1_train_2853"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2\", \"3\", \"5\", \"7\", \"4\", \"6\"], \"outputs\": [\"+00\\n\", \"+\\n\", \"+-\\n\", \"+0\\n\", \"+--\\n\", \"+-+\\n\", \"++\\n\", \"+-0\\n\"]}"
} | {
"index": "code_r1_train_2854"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2\\n1\\n6\", \"2\\n2\\n2 1\\n1\\n6\", \"2\\n2\\n2 2\\n1\\n8\", \"2\\n2\\n4 2\\n1\\n6\", \"2\\n1\\n2 1\\n1\\n1\", \"2\\n3\\n3 2\\n1\\n8\", \"2\\n3\\n4 2\\n0\\n1\", \"2\\n3\\n4 7\\n0\\n6\"], \"outputs\": [\"4\\n2\", \"-1\\n2\\n\", \"4\\n2\\n\", \"6\\n2\\n... | {
"index": "code_r1_train_2855"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 5\\n\", \"8 5\\n\", \"4 5\\n\", \"3 5\\n\", \"7 6\\n\", \"4 3\\n\", \"2 6\\n\"], \"outputs\": [\"3-type\\n\", \"7-type\\n\", \"7-type\\n\", \"11-type\\n\", \"7-type\\n\", \"3-type\\n\", \"3-type\\n\", \"6-type\\n\"]}"
} | {
"index": "code_r1_train_2856"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3649596966777\\n4281679207521\\n3239171774529\\n606159871584\\n1057360767920\\n71774966057\", \"3649596966777\\n2237884645346\\n155584781051\\n7133209108608\\n7755542764533\\n704120058101\", \"3649596966777\\n2237884645346\\n155584781051\\n7133209108608\\n6142846... | {
"index": "code_r1_train_2857"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n2 2 1 2\\n9 5\\n1 17\\n3 2 2 1\\n6 1 20\\n8 18 3\\n8\\n5 4 1 3\\n5 5 4 5 5\\n8 2 1 9 7\\n1 1 3 5 1\\n7 2 7 1 3\\n6 5 6 2\\n2 3 5 8 2 7\\n1 6 9 4 5 1\\n2 5 5 4 2 2\\n5 4 2 5 3 3\\n7 1 5 1 5 6\\n6\\n3 3 2 2\\n2 9 2\\n9 1 9\\n2 9 2\\n2 2 1 1\\n1 3\\n5 7\\n0\", \... | {
"index": "code_r1_train_2858"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1 1 2\\n\", \"3 1 4\\n\", \"1 1 1\\n\", \"3 1 4\\n\", \"1 1 1\\n\", \"3 1 5\\n\", \"2 1 2\\n\"], \"outputs\": [\"9\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2859"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7\\n1 2 3 3 3 2 1\\n\", \"7\\n1 2 2 3 3 2 1\\n\", \"7\\n1 2 1 3 3 2 1\\n\", \"7\\n1 2 2 3 3 4 1\\n\", \"7\\n1 2 2 3 2 2 1\\n\", \"7\\n1 2 2 5 3 2 1\\n\", \"7\\n1 2 1 3 3 4 1\\n\"], \"outputs\": [\"0\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"2\... | {
"index": "code_r1_train_2860"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n2\\n\", \"1\\n2\\n\", \"1\\n5\\n\", \"1\\n1\\n\", \"1\\n3\\n\", \"1\\n0\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2861"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1\\n0 2\\n1 0\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"0 0\\n1 0\\n2 0\\n3 0\\n4 0\\n5 0\\n6 0\\n7 0\\n\", \"1 1\\n1 2\\n1 3\\n2 1\\n2 2\\n2 3\\n3 1\\n3 2\\n\", \"0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n0 0\\n\", \"0 0\\n1 0\\n0 1\\n1 1\\n0 2\\n1 2\\n0 3\\n1 3\\... | {
"index": "code_r1_train_2862"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"2 2 5\", \"2 2 7\", \"3 2 7\", \"4 1 9\", \"3 1 9\", \"3 2 9\", \"1 2 3\"], \"outputs\": [\"3 2 2\\n\", \"5 2 2\\n\", \"7 2 2\\n\", \"7 3 2\\n\", \"9 4 1\\n\", \"9 3 1\\n\", \"9 3 2\\n\", \"3 1 2\"]}"
} | {
"index": "code_r1_train_2863"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nabcd\\n3\\na\\nd\\nac\\n\", \"4\\nacbd\\n3\\na\\nd\\nac\\n\", \"4\\ndbca\\n3\\na\\nd\\nca\\n\", \"4\\nacbd\\n3\\na\\nc\\nac\\n\", \"4\\nacbd\\n3\\nb\\nd\\nca\\n\", \"4\\ndcba\\n3\\na\\nc\\nac\\n\", \"4\\nacbd\\n3\\nb\\nd\\ncb\\n\", \"4\\ndbca\\n3\\na\\nc\\nac... | {
"index": "code_r1_train_2864"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"1\\n1 1000000000\\n1\\n\", \"1\\n1 1000000\\n228228\\n\", \"1\\n1 228228228\\n228228228\\n\", \"4\\n3 7\\n2 1 2\\n5 9\\n10 20 30 40 50\\n1 1\\n1\\n2 1000\\n1 1\\n\", \"1\\n100 37\\n29 33 45 64 95 33 45 76 86 5 52 16 27 24 80 5 44 19 96 8 77 67... | {
"index": "code_r1_train_2865"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"bbbabb\\nbb\\n1 6 3 4 2 5\\n\", \"bababc\\nbb\\n1 6 3 4 2 5\\n\", \"bbbabc\\nbb\\n1 6 3 4 2 5\\n\", \"cbabbb\\nbb\\n1 6 3 4 2 5\\n\", \"bbabbb\\nbb\\n1 6 3 4 2 5\\n\", \"bbbabb\\nba\\n1 6 3 4 2 5\\n\", \"abbabb\\nba\\n1 6 3 4 2 5\\n\", \"bbabba\\nba\\n1 6 3 4 2 5... | {
"index": "code_r1_train_2866"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1\\n1 0\\n\", \"1\\n2 0\\n\", \"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n-1 0\\n\", \"1\\n1 -1\\n\", \"2\\n0 2\\n2 9\\n\"], \"outputs\": [\"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\"]}"
... | {
"index": "code_r1_train_2867"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n\", \"1\\n1 1 1 0\\n\", \"1\\n1 1 1 -1\\n\", \"3\\n0 1 4 1\\n1 4 1 2\\n0 3 2 3\\n\", \"3\\n0 1 2 1\\n1 6 1 2\\n0 3 3 3\\n\", \"3\\n0 1 2 1\\n1 2 1 2\\n0 3 3 3\\n\", \"3\\n0 1 2 1\\n1 6 1 2\\n0 3 2 3\\n\", \"3\\n1 1 2 1\\n1 6 1 2\\n0 3 3 3\\n\"], \"o... | {
"index": "code_r1_train_2868"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4500\\n1\", \"4500\\n2\", \"2002\\n2\", \"2002\\n3\", \"2002\\n0\", \"2002\\n1\", \"2002\\n4\", \"2002\\n8\"], \"outputs\": [\"-4498\\n\", \"-4496\\n\", \"-1998\\n\", \"-1996\\n\", \"-2002\\n\", \"-2000\\n\", \"-1994\\n\", \"-1986\\n\"]}"
} | {
"index": "code_r1_train_2869"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n2\\n\", \"1 2 1\\n2\\n\", \"1 1 2\\n2\\n\", \"1 2 2\\n2\\n\", \"1 0 1\\n2\\n\", \"1 0 0\\n2\\n\", \"1 1 0\\n2\\n\", \"1 4 1\\n2\\n\"], \"outputs\": [\"0\", \"0\", \"0\", \"0\", \"0\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2870"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 2 1\", \"4\\n1 5 2 2\", \"4\\n0 5 2 2\", \"4\\n0 8 2 2\", \"4\\n0 8 4 2\", \"4\\n0 1 4 2\", \"4\\n0 1 4 1\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_2871"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n2 1 1\\n6 3 4\", \"5 4 2\\n2 1 2\\n6 3 4\", \"5 4 1\\n2 1 2\\n6 3 4\", \"8 4 2\\n0 1 3\\n6 3 4\", \"5 7 1\\n2 2 2\\n6 0 4\", \"6 5 2\\n2 2 1\\n3 0 1\", \"5 4 2\\n2 1 2\\n1 3 4\", \"5 4 2\\n2 2 2\\n1 3 4\"], \"outputs\": [\"9\\n\", \"6\\n\", \"8\\n\", \"16... | {
"index": "code_r1_train_2872"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n3\\n\", \"1\\n2\\n\", \"2\\n3 2\\n\", \"2\\n2 1\\n\", \"2\\n3 1\\n\", \"2\\n1 2\\n\", \"2\\n2 3\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2873"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 4 2 29 5\", \"1\\n5\\n0 7 0 8 14\", \"1\\n5\\n7 9 1 13 0\", \"1\\n5\\n7 4 4 29 5\", \"1\\n5\\n1 7 0 8 14\", \"1\\n5\\n0 9 1 4 14\", \"1\\n5\\n7 9 0 13 0\", \"1\\n5\\n7 4 4 29 7\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"... | {
"index": "code_r1_train_2874"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\", \"1\\n2\\n7\", \"1\\n2\\n1\", \"1\\n1\\n1\", \"1\\n8\\n2\", \"1\\n1\\n0\", \"1\\n0\\n0\", \"1\\n2\\n3\"], \"outputs\": [\"8\\n\", \"9\\n\", \"3\\n\", \"2\\n\", \"10\\n\", \"1\\n\", \"0\\n\", \"5\"]}"
} | {
"index": "code_r1_train_2875"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 2 1\\n0 0 0\", \"2 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 2 0\\n0 0 0\", \"3 2 2\\n4\\n2 4 5 0\\n2 3 6 0\\n1 4 5 0\\n2 3 5 1\\n0 0 0\", \"2 2 2\\n4\\n3 4 5 0\\n2 3 6 0\\n1 4 4 1\\n2 3 2 0\\n0 0 0\", \"2 2 2\\n4\\... | {
"index": "code_r1_train_2876"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1\\n1\\n8\\n\", \"1\\n1\\n9\\n\", \"1\\n2\\n9\\n\", \"1\\n5\\n42\\n\", \"1\\n5\\n-8\\n\", \"1\\n5\\n45\\n\", \"1\\n5\\n70\\n\"], \"outputs\": [\"3\\n\", \"8\\n\", \"9\\n\", \"9\\n\", \"42\\n\", \"0\\n\", \"45\\n\", \"70\\n\"]}"
} | {
"index": "code_r1_train_2877"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 5\\n0 1 1\\n0 2 2\\n0 3 3\\n1 1 2\\n1 2 2\", \"4 5\\n0 1 1\\n0 2 2\\n0 1 5\\n1 1 2\\n1 2 2\", \"4 5\\n0 1 0\\n0 2 2\\n0 1 5\\n1 1 2\\n1 2 2\", \"4 5\\n0 1 1\\n0 2 4\\n0 3 3\\n1 1 2\\n1 2 2\", \"4 5\\n0 1 1\\n0 4 4\\n0 3 3\\n1 1 2\\n1 2 2\", \"4 5\\n0 1 1\\n0 2 ... | {
"index": "code_r1_train_2878"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 1\", \"8 3 7\", \"8 1 1\", \"8 1 7\", \"8 1 5\", \"6 1 0\", \"8 1 0\", \"6 2 3\"], \"outputs\": [\"0\\n\", \"3\\n\", \"4\\n\", \"1\\n\", \"2\\n\", \"6\\n\", \"8\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2879"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"1\\n9\\n\", \"1\\n8\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n6\\n\", \"1\\n4\\n\", \"1\\n1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_2880"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n3\\n1\\n3\", \"3\\n2\\n2\\n1\", \"3\\n3\\n2\\n3\", \"3\\n1\\n2\\n6\", \"3\\n3\\n2\\n1\", \"3\\n1\\n1\\n6\", \"3\\n1\\n2\\n1\", \"3\\n1\\n0\\n6\"], \"outputs\": [\"-1\\n\", \"1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_2881"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2\\n5 1\\n\", \"2\\n5 2\\n\", \"2\\n5 4\\n\", \"2\\n10 10\\n\", \"2\\n10 10\\n\", \"5\\n2 8 4 7 7\\n\", \"5\\n1 1 1 4 3\\n\"], \"outputs\": [\"1\\n\", \"1\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_2882"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"6 5 2 1\", \"9 5 2 1\", \"0 5 2 1\", \"6 3 2 1\", \"12 5 2 1\", \"-1 5 2 1\", \"-1 0 2 0\", \"-1 0 1 0\"], \"outputs\": [\"0\\n\", \"3\\n\", \"-6\\n\", \"2\", \"6\\n\", \"-7\\n\", \"-3\\n\", \"-2\\n\"]}"
} | {
"index": "code_r1_train_2883"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"7 1\\n\", \"10 2\\n\", \"10 2\\n\", \"961 2\\n\", \"1 100\\n\", \"961 2\\n\", \"1 100\\n\"], \"outputs\": [\"6\", \"6\", \"4\", \"4\", \"930\", \"1\", \"930\", \"1\"]}"
} | {
"index": "code_r1_train_2884"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 5\", \"2 6\\n3 4 5\", \"3 6\\n6 1 5\", \"1 6\\n3 4 5\", \"3 6\\n7 1 5\", \"3 6\\n3 4 5\", \"3 6\\n3 4 5\\n\", \"4 9\\n3 6 3 3\"], \"outputs\": [\"3\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\", \"2\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_2885"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n0\\n0\", \"1\\n0\\n14\\n6\\n0\", \"1\\n2\\n21\\n0\\n0\", \"1\\n1\\n16\\n5\\n0\", \"1\\n1\\n16\\n0\\n1\", \"1\\n20\\n7\\n5\\n0\", \"1\\n26\\n0\\n9\\n0\", \"1\\n9\\n1\\n20\\n0\"], \"outputs\": [\"1\\n1\\n1\\n\", \"1\\n\", \"1\\n1\\n62\\n\", \"1\\n1\\n3\... | {
"index": "code_r1_train_2886"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n3 1 2\\n1 1\\n1\\n2 4\\n8 8\", \"3\\n3 4\\n3 1 2\\n1 1\\n1\\n2 4\\n8 1\", \"3\\n3 4\\n3 1 2\\n1 1\\n1\\n2 2\\n8 1\", \"3\\n3 4\\n6 1 2\\n1 1\\n1\\n2 2\\n8 1\", \"3\\n3 4\\n3 1 0\\n1 1\\n1\\n2 4\\n8 8\", \"3\\n3 4\\n3 1 4\\n1 1\\n1\\n2 4\\n8 1\", \"3\\n3... | {
"index": "code_r1_train_2887"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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-27\\n61769\\n\", \"1 1\\n1\\n-164538\\n\", \"1 1\\n1\\n-4000000\\n\", \"1 1\\n1\\n-4000000\\n\", \"1 1\\n1\\n-1911669\\n\", \"1 1\\n1\\n-1398610\\n\", \"1 1\\n1\\n-1396982\\n\", \"1 1\\n-659\\n61769\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n... | {
"index": "code_r1_train_2888"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 8\\n\", \"1\\n2\\n4 3\\n\", \"1\\n2\\n6 5\\n\", \"1\\n2\\n4 3\\n\", \"1\\n2\\n9 8\\n\", \"1\\n2\\n6 5\\n\", \"1\\n2\\n10 8\\n\", \"1\\n2\\n10 8\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}... | {
"index": "code_r1_train_2889"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"2 2 2\", \"1 3 3\", \"3 1 3\", \"6 1 3\", \"7 1 3\", \"7 1 2\", \"7 1 4\"], \"outputs\": [\"0\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2890"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nW\\n\", \"1 1\\nW\\n\", \"1 1\\nB\\n\", \"1 1\\nB\\n\", \"1 1\\nW\\n\", \"1 2\\nBB\\n\", \"1 2\\nWW\\n\", \"1 2\\nWB\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"0\\n\", \"0\", \"1\", \"-1\\n\", \"1\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_2891"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 1 2 1\\n1 2 1 1\\n\", \"1 1 1 1\\n1 1 1 1\\n\", \"2 1 2 1\\n0 2 1 1\\n\", \"2 1 1 1\\n1 1 1 1\\n\", \"2 1 2 1\\n1 3 1 1\\n\", \"2 1 1 1\\n1 1 2 1\\n\", \"4 1 2 4\\n10 1 3 7\\n\", \"4 1 2 4\\n10 1 3 8\\n\"], \"outputs\": [\"1\", \"1\", \"1\\n\", \"2\\n\", \"1\\n... | {
"index": "code_r1_train_2892"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n75137\\n\", \"1\\n46880\\n\", \"1\\n25013\\n\", \"1\\n30498\\n\", \"1\\n44931\\n\", \"1\\n25621\\n\", \"1\\n41771\\n\", \"1\\n60060\\n\"], \"outputs\": [\"209458\\n\", \"130685\\n\", \"69722\\n\", \"85019\\n\", \"125250\\n\", \"71422\\n\", \"116442\\n\", \"16... | {
"index": "code_r1_train_2893"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n2 6\\n9 255\\n\", \"3\\n1 2\\n2 6\\n7 433\\n\", \"3\\n6 7\\n2 6\\n9 205\\n\", \"3\\n1 2\\n2 6\\n7 749\\n\", \"3\\n0 4\\n2 6\\n39 564\\n\", \"3\\n0 8\\n0 6\\n105 46\\n\", \"3\\n1 7\\n0 6\\n35 564\\n\", \"3\\n0 4\\n0 6\\n39 564\\n\"], \"outputs\": [\"43\\... | {
"index": "code_r1_train_2894"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n3 2 6\\n\", \"3\\n6 2 6\\n\", \"3\\n6 2 4\\n\", \"3\\n10 3 7\\n\", \"3\\n3 18 2\\n\", \"3\\n3 18 2\\n\", \"3\\n4 18 2\\n\", \"3\\n2 3 14\\n\"], \"outputs\": [\"3 2 7\\n\", \"6 5 7\\n\", \"6 5 7\\n\", \"10 3 7 \", \"3 19 2 \", \"3 19 2 \", \"4 19 3\\n\", \"2 3... | {
"index": "code_r1_train_2895"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n1 1 0 1\\n1 0 0 0\\n2\\n1 1 0 1\\n1 1 1 0\\n3\\n0 1 2 2 2 0\\n0 2 1 2 2 1\\n0 0 0 1 1 1\\n4\\n3 2 2 0 3 2 2 1\\n1 1 0 3 1 1 3 1\\n0 3 2 3 3 0 2 3\\n1 1 1 1 3 2 1 3\\n0\", \"1\\n0 0\\n2\\n1 1 0 1\\n1 0 0 0\\n2\\n1 1 0 1\\n1 1 1 0\\n3\\n0 1 2 2 2 0\\n... | {
"index": "code_r1_train_2896"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 5 2 6 2 7\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 7 8 2\\n7\\n2 2 5 2 6 2 7\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 3 8 2\\n7\\n2 2 5 2 6 2 7\\n\", \"3\\n7\\n3 1 6 6 3 1 1\\n8\\n1 1 4 4 4 3 8 2\\n7... | {
"index": "code_r1_train_2897"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"2\\n2 1\\n1 2\\n\", \"2\\n1 2\\n1 2\\n\", \"2\\n2 1\\n2 1\\n\", \"2\\n1 2\\n2 2\\n\", \"2\\n1 2\\n1 1\\n\", \"2\\n2 1\\n2 2\\n\", \"2\\n2 1\\n1 1\\n\"], \"outputs\": [\"2 1 \\n\", \"2 1 \\n\", \"2 2 \\n\", \"2 1 \\n\", \"2 1\\n\", \"2 2\\n\"... | {
"index": "code_r1_train_2898"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n\", \"7\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n1\\n0\\n\", \"4\\n4\\n3 2 7 6\\n3\\n6 4 4\\n1\\n7\\n7\\n7 7 2 2 2 3 2\\n\", \"4\\n4\\n6 2 7 6\\n3\\n6 4 4\\n1\\n7\\n7\\n6 7 4 2 2 3 2\\n\", \"4\\... | {
"index": "code_r1_train_2899"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.