data_source stringclasses 1
value | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | extra_info dict |
|---|---|---|---|---|
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n9\\n\", \"1\\n1\\n1\\n\", \"1\\n1\\n8\\n\", \"1\\n1\\n4\\n\", \"1\\n1\\n6\\n\", \"1\\n2\\n77\\n\", \"1\\n2\\n77\\n\", \"1\\n2\\n83\\n\"], \"outputs\": [\"1\\n9\\n\", \"1\\n1\\n\", \"1\\n8\\n\", \"1\\n4\\n\", \"1\\n6\\n\", \"2\\n77\\n\", \"2\\n77\\n\", \"1... | {
"index": "code_r1_train_800"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"1 1\\n1\\n\", \"1 1\\n-1\\n\", \"1 1\\n555\\n\", \"1 1\\n-24\\n\", \"4 2\\n7 1 0 -7\\n\", \"4 2\\n7 0 0 -7\\n\", \"2 2\\n-742 -187\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"24\\n\", \"7\\n\", \"7\\n\", \"929\\n\"]}"
} | {
"index": "code_r1_train_801"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n2 SET b 0\\n6 IF c 12\\n28 HALT\", \"3\\n2 SET b 0\\n6 IF d 12\\n23 HALT\", \"3\\n9 SET d 2\\n4 IF d 13\\n34 HALT\", \"3\\n2 SET b 1\\n6 IF d 12\\n23 HALT\", \"3\\n9 SET e 2\\n4 IF d 13\\n34 HALT\", \"3\\n6 SET b 1\\n120 IF c 9\\n20 HALT\", \"3\\n2 SET c 0\\n... | {
"index": "code_r1_train_802"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n473 0 2\\n\", \"1\\n520 0 2\\n\", \"1\\n520 1 2\\n\", \"1\\n133 0 2\\n\", \"1\\n213 0 2\\n\", \"1\\n213 0 0\\n\", \"1\\n213 1 0\\n\", \"1\\n410 4 0\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_803"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nG W Y Q Y W\", \"6\\nG X X O X X\", \"6\\nF W Y P Y W\", \"6\\nF W Y O Y W\", \"6\\nG W Y O Y W\", \"6\\nE W Y O Y W\", \"6\\nF W Y Q Y W\", \"6\\nE W Y P Y W\"], \"outputs\": [\"Four\\n\", \"Three\\n\", \"Four\\n\", \"Four\\n\", \"Four\\n\", \"Four\\n\", \"F... | {
"index": "code_r1_train_804"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n3 8 2\\n4 4 0\", \"1\\n3 6\\n3 6 3\\n3 4 1\", \"1\\n3 5\\n3 6 3\\n3 4 1\", \"1\\n3 5\\n3 6 3\\n2 4 1\", \"1\\n3 6\\n5 6 3\\n3 5 1\", \"1\\n1 0\\n3 8 2\\n4 4 0\", \"1\\n1 0\\n5 8 2\\n4 4 0\", \"1\\n3 0\\n6 8 2\\n4 4 0\"], \"outputs\": [\"0\\n\", \"6\\n\"... | {
"index": "code_r1_train_805"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0111000\\n\", \"1\\n0000000\\n\", \"1\\n1111111\\n\", \"1\\n0111000\\n\", \"1\\n1111111\\n\", \"1\\n0000000\\n\", \"1\\n0111100\\n\", \"1\\n1110111\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_806"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n1 1\\n\", \"1\\n2 7\\n\", \"1\\n0 1\\n\", \"1\\n5 10\\n\", \"1\\n2 10\\n\", \"1\\n5 10\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"14\\n\", \"0\\n\", \"50\\n\", \"20\\n\", \"50\\n\"]}"
} | {
"index": "code_r1_train_807"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"6\\n\", \"7\\n\"], \"outputs\": [\"2 4\\n\", \"1 5\\n\", \"1 1\\n\", \"1 2\\n\", \"1 3\\n\", \"2 2\\n\", \"2 3\\n\", \"1 7\\n\"]}"
} | {
"index": "code_r1_train_808"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nU\\n\", \"1\\nD\\n\", \"1\\nU\\n\", \"1\\nD\\n\", \"2\\nLR\\n\", \"2\\nLR\\n\", \"2\\nRL\\n\", \"4\\nLDUR\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_809"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"w32njmda\", \"admjn23w\", \"acmjn23w\", \"3cmjn2aw\", \"3dmjn2aw\", \"wa2njmd3\", \"xa2njmd3\", \"xa3njmd3\"], \"outputs\": [\"admjn23w\\n\", \"w32njmda\\n\", \"w32njmca\\n\", \"wa2njmc3\\n\", \"wa2njmd3\\n\", \"3dmjn2aw\\n\", \"3dmjn2ax\\n\", \"3dmjn3ax\\n\"]}"
... | {
"index": "code_r1_train_810"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\\n\", \"2 2\\n1 2\\n2 1\\n\", \"3 3\\n2 3\\n2 1\\n3 2\\n\", \"3 3\\n2 3\\n2 1\\n3 2\\n\", \"3 4\\n1 2\\n2 3\\n3 2\\n3 1\\n\", \"3 4\\n1 2\\n2 1\\n1 3\\n3 1\\n\", \"4 4\\n1 2\\n2 1\\n3 4\\n4 3\\n\", \"3 4\\n3 2\\n1 2\\n2 3\\n1 3\\n\"], \"outputs\":... | {
"index": "code_r1_train_811"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"((()))\\n\", \"()()()\\n\", \"))))))\\n\", \"((((((\\n\", \"(())()\\n\", \")))(((\\n\", \")())))\\n\", \")())((\\n\"], \"outputs\": [\"0\\n((()))\", \"0\\n()()()\", \"-1\", \"-1\", \"0\\n(())()\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_812"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n1\\n1\\n\", \"1 1\\n2\\n1\\n\", \"2 1\\n1 2\\n1\\n\", \"2 1\\n1 2\\n2\\n\", \"2 1\\n1 2\\n2\\n\", \"2 1\\n1 2\\n1\\n\", \"2 1\\n1 0\\n1\\n\"], \"outputs\": [\"1\\n\", \" 1\", ... | {
"index": "code_r1_train_813"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n0 0 0\\n\", \"3\\n0 0 0\\n\", \"3\\n1 0 0\\n\", \"3\\n0 0 1\\n\", \"3\\n1 0 1\\n\", \"3\\n0 1 1\\n\", \"3\\n0 1 2\\n\", \"3\\n0 1 0\\n\"], \"outputs\": [\"0 0 0 \", \"0 0 0\\n\", \"1 1 1 \", \"0 0 1 \", \"1 1 2 \", \"0 1 2 \", \"0 1 3 \", \"0 1 1 \"]}"
} | {
"index": "code_r1_train_814"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 2\", \"1 1 0 2\", \"1 1 2 2\", \"1 1 2 2\\n\", \"3 3 3 3\\n\", \"252 5 944 30\", \"268 5 944 30\", \"268 3 944 30\"], \"outputs\": [\"48\\n\", \"0\\n\", \"14\", \"14\\n\", \"20\\n\", \"111503270\\n\", \"684252700\\n\", \"914919249\\n\"]}"
} | {
"index": "code_r1_train_815"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"9\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"8\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_816"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAA\\n1 1\\n1 2\\n2 2\", \"2 3\\nAA\\n1 2\\n1 2\\n2 2\", \"2 3\\nBA\\n1 1\\n1 2\\n2 2\", \"2 3\\nBA\\n2 1\\n1 2\\n2 2\", \"2 3\\nBA\\n1 1\\n1 2\\n2 1\", \"2 3\\nBA\\n2 2\\n1 2\\n2 2\", \"2 3\\nAB\\n1 1\\n1 2\\n2 2\", \"4 3\\nABAB\\n1 1\\n2 3\\n3 1\"], \"outp... | {
"index": "code_r1_train_817"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 79\\n79\\n\", \"1 114\\n114\\n\", \"3 50\\n24 25 50\\n\", \"3 50\\n36 25 50\\n\", \"3 50\\n25 25 50\\n\", \"5 6\\n0 8 7 27 6\\n\", \"5 6\\n2 71 7 27 6\\n\", \"5 6\\n0 71 7 27 6\\n\"], \"outputs\": [\"2\\n0 79 \", \"2\\n0 114 \", \"2\\n0 50\\n\", \"2\\n0 50\\n\"... | {
"index": "code_r1_train_818"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"A221033\\n\", \"A223635\\n\", \"A232726\\n\", \"A102210\\n\", \"A231010\\n\", \"A222222\\n\", \"A555555\\n\", \"A102222\\n\"], \"outputs\": [\"21\\n\", \"22\\n\", \"23\\n\", \"25\\n\", \"26\\n\", \"13\\n\", \"31\\n\", \"19\\n\"]}"
} | {
"index": "code_r1_train_819"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1 1\\n5\\n\", \"1 1\\n10\\n\", \"1 1\\n12\\n\", \"2 1\\n1 2\\n\", \"2 2\\n1 2\\n\", \"2 2\\n1 2\\n\", \"2 1\\n1 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"3\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_820"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\\n\", \"1\\n5\\n\", \"1\\n16\\n\", \"1\\n24\\n\", \"1\\n27\\n\", \"1\\n25\\n\", \"1\\n37\\n\"], \"outputs\": [\"NO\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_821"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 1\\n2\\n2 3\\n1 2\\n\", \"3\\n5 4 0\\n2\\n2 3\\n1 2\\n\", \"3\\n2 4 0\\n2\\n2 3\\n1 2\\n\", \"3\\n5 7 1\\n2\\n2 3\\n1 2\\n\", \"3\\n2 4 1\\n2\\n2 3\\n1 3\\n\", \"3\\n6 4 1\\n2\\n2 3\\n1 3\\n\", \"3\\n8 8 1\\n2\\n2 3\\n1 2\\n\", \"3\\n5 3 1\\n2\\n2 3\\n1 2... | {
"index": "code_r1_train_822"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA1\\n\", \"1\\nB1\\n\", \"1\\nC1\\n\", \"1\\nB2\\n\", \"2\\nR33C55\\nBC23\\n\", \"2\\nR33C55\\nBC24\\n\", \"2\\nR23C55\\nCC23\\n\", \"2\\nR33C55\\nBC13\\n\"], \"outputs\": [\"R1C1\\n\", \"R1C2\\n\", \"R1C3\\n\", \"R2C2\\n\", \"BC33\\nR23C55\\n\", \"BC33\\nR24... | {
"index": "code_r1_train_823"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"3 2 2\\n\", \"4 1 2\\n\", \"2 8 9\\n\", \"3 1 4\\n\", \"3 2 1\\n\", \"5 4 3\\n\", \"1 1 2\\n\"], \"outputs\": [\"4\\n\", \"7\\n\", \"6\\n\", \"6\\n\", \"6\\n\", \"6\\n\", \"12\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_824"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4\\n\", \"6 4\\n\", \"4 5\\n\", \"3 1\\n\", \"5 8\\n\", \"4 4\\n\", \"6 8\\n\", \"4 8\\n\"], \"outputs\": [\"16384\", \"4096\", \"301\", \"1\", \"12048\", \"148\", \"119644\", \"1144\"]}"
} | {
"index": "code_r1_train_825"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n3 2 4 1\", \"4 0\\n3 2 4 1\", \"4 0\\n3 2 1 1\", \"4 0\\n3 0 4 1\", \"4 0\\n3 1 4 1\", \"4 5\\n3 2 4 1\", \"4 5\\n3 2 4 1\\n\", \"4 16\\n3 2 4 1\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"4\", \"4\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_826"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\"], \"outputs\": [\"0 2\\n\", \"0 1\\n\", \"0 2\\n\", \"0 2\\n\", \"0 2\\n\", \"1 2\\n\", \"2 2\\n\", \"2 3\\n\"]}"
} | {
"index": "code_r1_train_827"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\\n3 1\\n0 0\", \"2 8\\n4 3\\n0 0\", \"3 4\\n1 3\\n0 0\", \"3 4\\n2 3\\n0 0\", \"3 0\\n2 3\\n0 0\", \"3 1\\n2 9\\n0 0\", \"3 6\\n3 1\\n0 0\", \"3 12\\n3 1\\n0 0\"], \"outputs\": [\"0\\n0\\n\", \"4\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"0\\n2\\n\", \"0\\n5\\n\... | {
"index": "code_r1_train_828"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1 4\\n3\\n\", \"1 4\\n3\\n\", \"1 3\\n5\\n\", \"1 8\\n3\\n\", \"1 3\\n6\\n\", \"1 2\\n3\\n\", \"1 6\\n6\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_829"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n0 1\\n1 -2\\n\", \"2\\n0 1\\n1 -3\\n\", \"2\\n0 1\\n1 -6\\n\", \"2\\n0 1\\n1 -1\\n\", \"3\\n0 1\\n1 2\\n2 -2\\n\", \"3\\n0 1\\n1 1\\n2 -2\\n\", \"3\\n-1 1\\n1 2\\n2 -2\\n\", \"5\\n2 -10\\n3 10\\n0 5\\n5 -5\\n10 1\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"N... | {
"index": "code_r1_train_830"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"Z\\n1\\nz\\n\", \"0\\n1\\no\\n\", \"0\\n1\\nO\\n\", \"o\\n1\\n0\\n\", \"o\\n1\\nO\\n\", \"o\\n1\\no\\n\", \"O\\n1\\no\\n\", \"O\\n1\\n0\\n\"], \"outputs\": [\"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_831"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1 1\\n1 1\\n\", \"1 1\\n1 1\\n1 1\\n\", \"1 1\\n2 1\\n1 1\\n\", \"2 4\\n1 6 3 5\\n1 4\\n3 4\\n1 2\\n1 2\\n\", \"2 4\\n1 6 3 2\\n1 4\\n3 4\\n1 2\\n1 2\\n\", \"2 4\\n1 6 4 2\\n1 4\\n3 4\\n1 2\\n1 4\\n\", \"2 4\\n1 6 2 2\\n1 4\\n3 4\\n1 2\\n1 2\\n\", \"2 4\\n1... | {
"index": "code_r1_train_832"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n121\\n\", \"3\\n111\\n\", \"3\\n002\\n\", \"3\\n000\\n\", \"3\\n001\\n\", \"3\\n022\\n\", \"3\\n211\\n\", \"3\\n020\\n\"], \"outputs\": [\"021\\n\", \"012\\n\", \"012\\n\", \"012\\n\", \"021\\n\", \"012\\n\", \"201\\n\", \"021\\n\"]}"
} | {
"index": "code_r1_train_833"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"10\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n1 9\\n1 10\\n\", \"8\\n1 4\\n10 5\\n3 3\\n4 11\\n8 9\\n22 40\\n8 36\\n314159265 358979323\\n\", \"100\\n41 60\\n89 29\\n11 59\\n41 43\\n7 32\\n41 47\\n19 59\\n3 67\\n74 91\\n99 10\\n29 44\\n35 36\\n61 44\\n84 1... | {
"index": "code_r1_train_834"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n0\\n\", \"1 1 1\\n2\\n\", \"1 1 0\\n0\\n\", \"1 1 1\\n2\\n\", \"1 0 0\\n0\\n\", \"1 1 0\\n2\\n\", \"1 1 -1\\n1\\n\", \"1 1 -1\\n2\\n\"], \"outputs\": [\"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_835"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 8 6\", \"2 2 2\", \"2 2 1\", \"2 0 6\", \"1 8 6\", \"2 0 2\", \"1 8 1\", \"2 4 2\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_836"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n1\\n2\\n3\\n\", \"4 1000 2 1\\n663\\n663\\n2\\n1\\n\", \"5 100 20 80\\n79\\n50\\n9\\n9\\n80\", \"5 100 20 80\\n79\\n50\\n9\\n9\\n157\", \"5 100 12 80\\n80\\n40\\n42\\n21\\n62\", \"5 100 12 22\\n80\\n40\\n42\\n21\\n62\", \"5 100 171 80\\n68\\n40\\n9\\n21... | {
"index": "code_r1_train_837"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n\", \"1 1\\n1\\n\", \"1 2\\n1\\n\", \"1 2\\n1\\n\", \"1 1\\n1\\n\", \"1 0\\n1\\n\", \"1 2\\n2\\n\", \"1 0\\n2\\n\"], \"outputs\": [\"Nicky\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Kevin\\n\", \"Kevin\\n\"]}"
} | {
"index": "code_r1_train_838"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"6\\n\", \"2\\n\", \"1\\n\", \"8\\n\", \"6\\n\", \"5\\n\"], \"outputs\": [\"4140\\n{1,2,3,4,5,6,7,8}\\n{1,2,3,4,5,6,7},{8}\\n{1,2,3,4,5,6},{7},{8}\\n{1,2,3,4,5,6},{7,8}\\n{1,2,3,4,5,6,8},{7}\\n{1,2,3,4,5,8},{6},{7}\\n{1,2,3,4,5},{6,8},{7}\\n{1,... | {
"index": "code_r1_train_839"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"2 1\\n\", \"2 3\\n\", \"1 2\\n\", \"1 3\\n\", \"3 2\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_840"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2 1\\n2 2\\n2 1\\n2 2\\n1 1 1\\n\", \"1 1 1\\n1 100\\n1 100\\n2 2 1\\n\", \"1 2 1\\n2 2\\n2 1\\n2 3\\n1 1 1\\n\", \"1 1 1\\n1 100\\n1 100\\n2 4 1\\n\", \"1 2 1\\n2 2\\n1 1\\n2 3\\n1 1 1\\n\", \"1 2 1\\n2 2\\n2 1\\n1 3\\n1 1 1\\n\", \"1 1 1\\n1 100\\n1 100\\n2 0... | {
"index": "code_r1_train_841"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 5\\n0\\n58\\n7\\n64\\n30\\n1\\n67\\n2\", \"3 5\\n10\\n38\\n7\\n0\\n40\\n6\\n4\\n28\", \"3 5\\n16\\n38\\n7\\n0\\n40\\n6\\n1\\n28\", \"2 5\\n0\\n58\\n5\\n64\\n60\\n1\\n46\\n2\", \"1 5\\n1\\n61\\n7\\n64\\n25\\n1\\n33\\n2\", \"1 5\\n3\\n38\\n7\\n32\\n30\\n1\\n40\\n... | {
"index": "code_r1_train_842"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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<<>\", \"4\\n<><\", \"5\\n<<><\", \"5\\n><<<\", \"5\\n<<<<\", \"20\\n>><<>>><>><>>><>>>>\", \"20\\n>><<>>><>>>>>><>>><\", \"20\\n>>>><>>>>><<>>><<>>\"], \"outputs\": [\"3\\n\", \"5\", \"9\\n\", \"4\\n\", \"1\", \"217136290\\n\", \"415929071\\n\", \"784400335\... | {
"index": "code_r1_train_843"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\", \"1\\n4\", \"1\\n6\", \"1\\n7\", \"1\\n9\", \"1\\n3\", \"1\\n8\"], \"outputs\": [\"1\\n\", \"0\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"8\\n\", \"2\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_844"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"4 2\\n6 3 8 1\\n\", \"4 2\\n6 3 8 1\\n\", \"4 2\\n6 3 12 1\\n\", \"5 21\\n4 9 5 3 2\\n\", \"5 15\\n10 9 5 2 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_845"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 3\\n1 3\\n1 2\\n1 2 3\\n\", \"3 1\\n3 1\\n3 2\\n1 2 3\\n\", \"3 3\\n1 3\\n1 2\\n1 3 3\\n\", \"3 1\\n1 3\\n1 2\\n1 4 3\\n\", \"3 1\\n1 3\\n1 2\\n0 4 3\\n\", \"1 7\\n1 3\\n1 2\\n1 2 0\\n\", \"3 2\\n2 3\\n1 3\\n2 5 3\\n\", \"3 2\\n2 1\\n1 3\\n2 5 3\\n\"], \"output... | {
"index": "code_r1_train_846"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"50 0\", \"58 0\", \"26 0\", \"50 6\", \"84 6\", \"6 -1\", \"84 0\"], \"outputs\": [\"0\\n\", \"50\\n\", \"58\\n\", \"26\\n\", \"44\\n\", \"78\\n\", \"7\\n\", \"84\\n\"]}"
} | {
"index": "code_r1_train_847"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0 0\\n0 0 0\\n\", \"1 1 0\\n0 0 1\\n\", \"1 1 1\\n0 1 1\\n\", \"0 0 1\\n1 0 0\\n\", \"1 1 1\\n0 0 0\\n\", \"1 0 0\\n0 1 0\\n\", \"1 0 0\\n0 1 1\\n\", \"0 0 1\\n1 0 1\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"NO... | {
"index": "code_r1_train_848"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"2 4 1\", \"2 3 1\", \"2 8 1\", \"2 5 1\", \"5 4 2\", \"2 2 1\", \"9 20 7\"], \"outputs\": [\"0\\n\", \"3\\n\", \"2\\n\", \"7\\n\", \"4\\n\", \"0\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_849"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 0 1\", \"1 2 0 0 0 0\", \"5 6 0 0 4 4\", \"8 6 0 0 4 4\", \"2 2 1 0 0 1\", \"2 4 0 0 1 1\", \"5 5 0 0 4 4\", \"1 1 0 0 0 0\"], \"outputs\": [\"1 2\\n\", \"0 1\\n\", \"3 3\\n\", \"6 30\\n\", \"2 8\\n\", \"2 4\\n\", \"2 2\", \"0 1\"]}"
} | {
"index": "code_r1_train_850"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 4 1 3\\n5\\n6 9 1 9 6\\n2\\n8 37\\n\", \"3\\n4\\n0 2 1 0\\n5\\n6 9 0 2 6\\n2\\n8 37\\n\", \"3\\n4\\n0 4 1 3\\n5\\n6 9 0 1 6\\n2\\n8 37\\n\", \"3\\n4\\n0 2 1 3\\n5\\n6 9 0 1 6\\n2\\n8 37\\n\", \"3\\n4\\n0 2 1 3\\n5\\n6 9 0 2 6\\n2\\n8 37\\n\", \"3\\n4\\n... | {
"index": "code_r1_train_851"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"z\\n\", \"y\\n\", \"x\\n\", \"{\\n\", \"|\\n\", \"}\\n\", \"~\\n\", \"z\\n\"], \"outputs\": [\"z\\n\", \"y\\n\", \"x\\n\", \"{\\n\", \"|\\n\", \"}\\n\", \"~\\n\", \"z\\n\"]}"
} | {
"index": "code_r1_train_852"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1 2\\nb\\n\", \"1 1\\na\\n\", \"1 2\\nb\\n\", \"1 2\\na\\n\", \"1 2\\nb\\n\", \"1 1\\na\\n\", \"1 4\\na\\n\"], \"outputs\": [\"b\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"b\\n\", \"NO\\n\", \"NO\\n\", \"b\\n\"]}"
} | {
"index": "code_r1_train_853"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 1\", \"3\\n2 0 1\", \"3\\n3 0 1\", \"3\\n2 0 0\", \"3\\n2 1 1\", \"3\\n3 3 2\", \"3\\n3 0 0\", \"3\\n2 3 1\"], \"outputs\": [\"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"0\\n\", \"0\"]}"
} | {
"index": "code_r1_train_854"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 2\\n1 3\\n2 3 2\\n1 3 6\\n1 2 2\", \"5 3 2\\n1 3\\n2 3 2\\n1 3 6\\n1 1 2\", \"3 3 2\\n1 3\\n2 3 0\\n0 3 6\\n1 2 2\", \"6 3 2\\n1 3\\n2 3 2\\n1 3 9\\n0 1 2\", \"6 3 2\\n1 4\\n4 3 2\\n1 3 9\\n0 1 2\", \"5 3 2\\n2 2\\n2 3 0\\n1 5 8\\n1 2 2\", \"6 3 2\\n1 3\\n2 3... | {
"index": "code_r1_train_855"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"9\\n2\\n4\\n1\\n\", \"9\\n2\\n2\\n1\\n\", \"4\\n2\\n4\\n2\\n\", \"5\\n3\\n6\\n4\\n\", \"9\\n2\\n2\\n1\\n\", \"2\\n2\\n2\\n1\\n\", \"9\\n2\\n4\\n1\\n\"], \"outputs\": [\"1\\n\", \"4\\n\", \"8\\n\", \"2\\n\", \"1\\n\", \"8\\n\", \" ... | {
"index": "code_r1_train_856"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nB 1\\nW 1\\n\", \"1\\nB 1\\nW 1\\n\", \"1\\nW 1\\nB 1\\n\", \"2\\nW 2\\nB 1\\nW 1\\nB 2\\n\", \"3\\nB 1\\nW 1\\nB 3\\nW 2\\nW 3\\nB 2\", \"3\\nB 1\\nW 1\\nB 2\\nW 2\\nW 3\\nB 3\", \"3\\nB 1\\nW 1\\nB 3\\nW 3\\nW 2\\nB 2\", \"3\\nB 1\\nW 2\\nB 2\\nW 1\\nW 3\\n... | {
"index": "code_r1_train_857"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\na\\n\", \"1 2\\na\\na\\n\", \"1 2\\na\\nb\\n\", \"2 4\\naa\\nab\\n\", \"2 4\\naa\\nbb\\n\", \"3 3\\naba\\nabb\\n\", \"3 3\\naba\\nbba\\n\", \"4 5\\nabbb\\nbbaa\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"2\\n\", \"3\\n\", \"6\\n\", \"4\\n\", \"8\\n\", \"... | {
"index": "code_r1_train_858"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"1 1\\n1\\n\", \"1 1\\n1000000000\\n\", \"1 1\\n1000000000\\n\", \"3 3\\n1 2 3\\n2 3 1\\n3 1 2\\n\", \"3 3\\n0 2 3\\n2 3 1\\n3 1 2\\n\", \"3 3\\n0 2 3\\n2 3 1\\n5 1 2\\n\", \"3 3\\n0 2 3\\n2 3 1\\n5 1 1\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"10... | {
"index": "code_r1_train_859"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\", \"4 1 9\", \"4 0 9\", \"3 3 0\", \"1 0 9\", \"0 0 9\", \"2 5 0\", \"2 7 0\"], \"outputs\": [\"Yes\\n\", \"No\\n\", \"Yes\\n\", \"No\\n\", \"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_860"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n4 4\\n1 2\", \"3\\n3 1\\n4 50\\n1 2\", \"3\\n3 1\\n4 75\\n1 2\", \"3\\n3 2\\n2 98\\n1 9\", \"3\\n3 1\\n4 75\\n1 0\", \"3\\n3 1\\n4 64\\n1 2\", \"3\\n3 1\\n4 37\\n1 2\", \"3\\n3 1\\n4 89\\n1 2\"], \"outputs\": [\"255\\n504\\n2\\n\", \"255\\n458\\n2\\n\",... | {
"index": "code_r1_train_861"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n\", \"7 8 2\\n\", \"6 9 1\\n\", \"6 9 1\\n\", \"7 8 2\\n\", \"7 8 1\\n\", \"3 8 2\\n\", \"1 4 3\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"2\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_862"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 5\", \"1 5\", \"2 5\", \"6 8\", \"1 8\", \"0 8\", \"0 9\", \"0 7\"], \"outputs\": [\"12\\n\", \"2\\n\", \"6\\n\", \"42\\n\", \"2\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_863"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"5 3\\n\", \"2 1\\n\", \"8 5\\n\", \"5 2\\n\", \"3 5\\n\", \"1 2\\n\", \"3 3\\n\"], \"outputs\": [\"2B\", \"1A1B1A\", \"1A\", \"1A1B1A1B\", \"2A1B\", \"1B1A1B\\n\", \"1B\\n\", \"Impossible\\n\"]}"
} | {
"index": "code_r1_train_864"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"1\\n1\\n5\\n\", \"1\\n2\\n5\\n\", \"2\\n1 1\\n2 1\\n\", \"2\\n1 1\\n2 1\\n\", \"3\\n1 1 2\\n2 2 3\\n\", \"3\\n1 2 2\\n2 2 3\\n\", \"3\\n1 2 1\\n2 2 3\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"4\\n\", \"4\\n\", \... | {
"index": "code_r1_train_865"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n\", \"2\\n0 2\\n\", \"2\\n2 2\\n\", \"2\\n2 0\\n\", \"2\\n0 0\\n\", \"2\\n1 2\\n\", \"3\\n2 2 8\\n\"], \"outputs\": [\"2\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"2\\n\", \"0\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_866"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nf\\n\", \"1 3\\nf\\n\", \"1 3\\ne\\n\", \"1 6\\ne\\n\", \"2 3\\nba\\n\", \"2 3\\ngi\\n\", \"2 3\\ngi\\n\", \"2 3\\nhi\\n\"], \"outputs\": [\"fff\\n\", \"fff\\n\", \"eee\\n\", \"eeeeee\\n\", \"baa\\n\", \"gig\\n\", \"gig\\n\", \"hih\\n\"]}"
} | {
"index": "code_r1_train_867"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"4 1\\n-1 1 1 0\\n2 -2 -1 2\\n2 4\\n\", \"4 1\\n0 1 1 -1\\n2 -2 -1 2\\n2 4\\n\", \"4 1\\n0 1 0 -1\\n2 -2 -1 2\\n2 4\\n\", \"4 1\\n0 1 0 -1\\n1 -2 -1 2\\n2 4\\n\", \"4 1\\n-1 1 1 -1\\n2 -2 -3 2\\n2 4\\n\", \"4 1\\n-1 1 1 -1\\n2 -2 -3 2\\n2 4\\n\", \"4 1\\n-1 1 1 -1... | {
"index": "code_r1_train_868"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n5 4 3 2 0\\n\", \"5\\n1 4 3 4 5\\n5 4 3 2 0\\n\", \"5\\n1 2 3 4 5\\n9 4 3 2 0\\n\", \"5\\n1 2 3 4 5\\n6 4 3 2 0\\n\", \"5\\n1 2 3 4 5\\n7 4 3 2 0\\n\", \"5\\n0 2 5 4 5\\n8 4 3 2 0\\n\", \"5\\n1 2 5 4 5\\n5 4 3 2 0\\n\", \"5\\n0 2 5 4 5\\n5 4 3 2 0... | {
"index": "code_r1_train_869"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"10\\n3\\n5\", \"10\\n3\\n9\", \"10\\n3\\n2\", \"10\\n6\\n2\", \"10\\n1\\n5\", \"10\\n1\\n2\", \"10\\n2\\n2\", \"10\\n3\\n4\"], \"outputs\": [\"4\\n2\\n3\\n\", \"4\\n2\\n4\\n\", \"4\\n2\\n1\\n\", \"4\\n3\\n1\\n\", \"4\\n0\\n3\\n\", \"4\\n0\\n1\\n\", \"4\\n1\\n1\\n... | {
"index": "code_r1_train_870"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"ddd\\n\", \"gvg\\n\", \"llvee\", \"elvle\", \"elvld\", \"elvdl\", \"eludl\", \"ldule\"], \"outputs\": [\"Yes\\n\", \"Yes\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\", \"No\\n\"]}"
} | {
"index": "code_r1_train_871"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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: 3 - 3\\n17: 1 + 3 * (2 + 3 / 1 * 2) + 7\\n11: 1 / 8 - 5 . 8 * 2\\n29: 8 / (2 - 6 * 7)\\n1153: 5 * 3 / 7 + ( 89 + 4 . 24 ) * 11\\n0:\", \"5: 3 - 3\\n17: 1 + 3 * (2 + 3 / 1 * 2) + 7\\n11: 1 / 8 - 5 . 8 * 2\\n29: 8 / (2 - 6 * 7(\\n1153: 5 * 3 / 7 + ( 89 + 4 . 24 ... | {
"index": "code_r1_train_872"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9876\\n\", \"1\\n1234\\n\", \"1\\n2771\\n\", \"1\\n2705\\n\", \"2\\n2004\\n1000\\n\", \"2\\n9988\\n8899\\n\", \"2\\n2037\\n2025\\n\", \"2\\n2099\\n1000\\n\"], \"outputs\": [\"1876\\n\", \"1034\\n\", \"1771\\n\", \"1705\\n\", \"1004\\n1004\\n\", \"No solution\... | {
"index": "code_r1_train_873"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"1\\n1 2\\n\", \"1\\n2 2\\n\", \"1\\n2 1\\n\", \"2\\n7 2\\n3 6\", \"2\\n7 2\\n3 3\", \"2\\n5 2\\n3 3\", \"2\\n5 2\\n3 3\\n\"], \"outputs\": [\"Takahashi\\n\", \"Aoki\\n\", \"Takahashi\\n\", \"Takahashi\\n\", \"Aoki\\n\", \"Takahashi\\n\", \"Aoki\",... | {
"index": "code_r1_train_874"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0\\n\", \"2 1\\n5\\n\", \"2 1\\n0\\n\", \"2 1\\n5\\n\", \"2 1\\n8\\n\", \"10 5\\n0 0 1 0 2 0 0 1 0\\n\", \"10 3\\n1 1 1 1 2 1 1 1 1\\n\", \"10 4\\n0 0 6 2 7 1 6 4 0\\n\"], \"outputs\": [\"0\\n\", \"5\\n\", \"0\\n\", \"5\\n\", \"8\\n\", \"3\\n\", \"3\\n\", \... | {
"index": "code_r1_train_875"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"8 5\\n\", \"4 3\\n\", \"5 4\\n\", \"4 3\\n\", \"5 4\\n\", \"8 5\\n\", \"6 3\\n\"], \"outputs\": [\"4\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"3\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_876"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n11\\n11 2 3 4 5 6 7 8 9 10 1\\n\", \"1\\n11\\n11 2 1 4 5 6 7 8 9 10 1\\n\", \"1\\n11\\n11 2 1 4 5 6 7 9 9 10 1\\n\", \"1\\n11\\n11 2 3 4 5 6 7 4 9 10 1\\n\", \"1\\n11\\n11 2 3 4 5 6 7 13 9 10 1\\n\", \"1\\n11\\n11 2 3 4 5 6 7 13 5 10 1\\n\", \"1\\n11\\n11 2 3... | {
"index": "code_r1_train_877"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n2 2\\n1 1\\n3 5\\n1 2 3\\n3 7\\n3 2 2\\n\", \"3\\n2 2\\n2 1\\n3 5\\n1 2 3\\n3 7\\n3 2 2\\n\", \"3\\n2 2\\n1 1\\n3 5\\n1 2 3\\n3 7\\n4 2 2\\n\", \"3\\n2 2\\n2 1\\n3 5\\n1 3 3\\n3 7\\n3 2 2\\n\", \"3\\n2 4\\n1 1\\n3 5\\n1 2 3\\n3 7\\n4 2 2\\n\", \"3\\n2 2\\n2 1... | {
"index": "code_r1_train_878"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"2\", \"3\", \"6\", \"4\", \"5\", \"9\"], \"outputs\": [\"4\\n\", \"8\\n\", \"1\\n\", \"1\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"9\\n\"]}"
} | {
"index": "code_r1_train_879"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n0\\n\", \"1\\n0\\n\", \"1\\n1\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n4\\n\", \"1\\n6\\n\"], \"outputs\": [\"1\\n\", \"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_880"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1 1\\n1\\n\", \"1 1 1\\n1\\n\", \"1 1 2\\n1\\n\", \"3 3 2\\nzyx\\n\", \"3 2 3\\nejt\\n\", \"3 2 2\\nzyx\\n\", \"3 2 3\\nzyx\\n\", \"3 2 2\\naaa\\n\"], \"outputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"1\\n1\\n\", \"1\\nzyx\\n\", \"1\\nejt\\n\", \"-1\\n\", \"1\\nzyx\\... | {
"index": "code_r1_train_881"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 0\", \"0 0\", \"8 5\", \"7 5\", \"7 2\", \"2 2\", \"2 4\", \"2 0\"], \"outputs\": [\"100\\n\", \"0\\n\", \"313600\\n\", \"310400\\n\", \"17200\\n\", \"15200\\n\", \"118400\\n\", \"200\\n\"]}"
} | {
"index": "code_r1_train_882"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"bbw\\nwbw\\n+b+\\nbwb\\nwbx\\nwbw\\n0\", \"bbw\\nbww\\n+b+\\nbwb\\nwbx\\nwbw\\n0\", \"bbw\\nwwb\\n+a+\\nbwb\\nxbw\\nwvb\\n0\", \"bbw\\nwbw\\n+b+\\nbbw\\nwcw\\nbww\\n0\", \"bbw\\nwcw\\n+c+\\nwbb\\nwcw\\nwwb\\n0\", \"cwb\\nwwb\\n++b\\nbwb\\nwbw\\nxyb\\n0\", \"bbw\\... | {
"index": "code_r1_train_883"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9\", \"1\\n0\", \"1\\n11\", \"1\\n10\", \"2\\n8 8\", \"2\\n2 0\", \"2\\n6 8\", \"2\\n9 7\"], \"outputs\": [\"9\\n\", \"0\", \"11\\n\", \"10\\n\", \"8\\n\", \"0\\n\", \"6\\n\", \"7\\n\"]}"
} | {
"index": "code_r1_train_884"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n0 1 0 1 0 0 0 0 0 1 0 0 0\\n1 0 0 0 0 0 1 0 0 1 0 0 2\\n0 1 1 0 0 1 1 0 0 0 0 5 5\\n3 1 1 1 0 1 0 0 1 0 3 0 2\\n1 0 2 4 7 2 20 50 100\\n7H 6H 2H 5H 3H\\n9S 9C 9H 8H 8D\\nKS KH QH JD TS\\n10\\n1 1 1 1 1 1 1 1 1 1 1 1 1\\n1 1 1 1 1 1 1 1 1 1 1 1 1\\n1 1 1 1 1 1... | {
"index": "code_r1_train_885"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\\n\", \"1 1\\n2\\n1\\n\", \"1 1\\n1\\n2\\n\", \"1 1\\n3\\n1\\n\", \"1 1\\n1\\n3\\n\", \"1 1\\n2\\n1\\n\", \"1 1\\n1\\n2\\n\", \"1 1\\n3\\n1\\n\"], \"outputs\": [\"YES\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\... | {
"index": "code_r1_train_886"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\na\\n\", \"1 2\\nb\\n\", \"1 1\\na\\n\", \"1 3\\na\\n\", \"1 4\\nb\\n\", \"1 4\\na\\n\", \"2 2\\nab\\n\", \"2 4\\ncd\\n\"], \"outputs\": [\"b\\n\", \"NO\\n\", \"NO\\n\", \"b\\n\", \"c\\n\", \"b\\n\", \"ba\\n\", \"da\\n\"]}"
} | {
"index": "code_r1_train_887"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n\", \"4\\n\", \"7\\n\", \"9\\n\", \"3\\n\", \"6\\n\", \"8\\n\", \"2\\n\"], \"outputs\": [\"240\\n\", \"56\\n\", \"10416\\n\", \"768960\\n\", \"12\\n\", \"1872\\n\", \"109536\\n\", \"\\n4\\n\"]}"
} | {
"index": "code_r1_train_888"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\nX\\n\", \"1\\n.\\n\", \"1\\n.\\n\", \"1\\nX\\n\", \"1\\n/\\n\", \"1\\nY\\n\", \"1\\n0\\n\", \"1\\nZ\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\", \"0\", \"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\"]}"
} | {
"index": "code_r1_train_889"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n7 3 2\\n1 4\\n5 5\\n6 10\\n1 4\\n6 10\\n8 3 1\\n3 5\\n10 1\\n6 9\\n1 17\", \"2\\n7 3 2\\n1 4\\n5 5\\n6 10\\n1 4\\n6 10\\n8 3 0\\n3 5\\n10 1\\n6 9\\n1 17\", \"2\\n6 3 2\\n1 4\\n5 5\\n6 10\\n1 4\\n6 10\\n8 3 0\\n3 5\\n10 1\\n6 9\\n1 17\", \"2\\n10 3 2\\n1 4\\n5... | {
"index": "code_r1_train_890"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2 3 4\\n1 3\\n3 3\\n2 4\", \"4 2\\n2 4 3 5\\n1 3\\n3 3\\n2 4\", \"4 0\\n2 4 3 5\\n1 3\\n3 3\\n4 4\", \"4 3\\n1 6 3 3\\n1 3\\n2 2\\n3 4\", \"4 3\\n1 2 3 5\\n1 3\\n3 3\\n2 4\", \"4 3\\n1 4 3 5\\n1 3\\n3 3\\n2 4\", \"4 3\\n2 4 3 5\\n1 3\\n3 3\\n2 4\", \"4 2\... | {
"index": "code_r1_train_891"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n00010010\\n00000100\\n10001001\\n00100010\\n01000000\\n00001000\\n10100010\\n01010010\\n2\\n5\\n\\n00010010\\n00000100\\n10001001\\n00100010\\n01000000\\n00001000\\n10100000\\n01010010\\n2\\n5\", \"2\\n\\n00010010\\n00000100\\n00001001\\n00100010\\n0100000... | {
"index": "code_r1_train_892"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6\", \"2 5 4\", \"5 3 3\", \"4 5 4\", \"2 3 3\", \"2 0 0\", \"5 5 4\", \"2 3 5\"], \"outputs\": [\"NO\\n\", \"YES\\n\", \"NO\\n\", \"YES\\n\", \"YES\\n\", \"NO\\n\", \"NO\\n\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_893"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5 5\", \"5 1\", \"4 1\", \"2 0\", \"8 0\", \"8 1\", \"0 1\"], \"outputs\": [\"1\\n\", \"0\\n\", \"4\\n\", \"3\\n\", \"2\\n\", \"8\\n\", \"7\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_894"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5\\n\", \"2 2\\n1 2\\n\", \"2 1\\n1 2\\n\", \"1 1000\\n42\\n\", \"1 1100\\n42\\n\", \"2 1000\\n1 2\\n\", \"2 1000\\n1 1\\n\", \"2 1000\\n2 1\\n\"], \"outputs\": [\"1\", \"3\", \"2\", \"1000\", \"1100\\n\", \"1001\", \"2000\\n\", \"1000\\n\"]}"
} | {
"index": "code_r1_train_895"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 100 1\\n0\\n\", \"1 1 100\\n2\\n\", \"1 100 1\\n2\\n\", \"2 9 6\\n2 2\\n\", \"1 1 100\\n1\\n\", \"1 100 1\\n1\\n\", \"1 1 100\\n0\\n\", \"2 1 1\\n2 2\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\", \"12\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_896"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"1\\n100010 1\\n\", \"1\\n100110 1\\n\", \"1\\n100000 2\\n\", \"1\\n100010 2\\n\", \"1\\n101010 1\\n\", \"1\\n100010 4\\n\", \"1\\n101000 1\\n\"], \"outputs\": [\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | {
"index": "code_r1_train_897"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n\", \"88 395 518\\n\", \"693 299 737\\n\", \"198 235 277\\n\", \"682152024 451794315 2028038\\n\", \"192279221 156648747 154396385\\n\", \"264704198 120999147 136987925\\n\", \"1000000000 987654321 123456789\\n\"], \"outputs\": [\"18\\n\", \"572699487\\n\... | {
"index": "code_r1_train_898"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n9 1\\n\", \"1\\n9 2\\n\", \"1\\n17 1\\n\", \"1\\n29 1\\n\", \"1\\n29 2\\n\", \"1\\n29 3\\n\", \"1\\n48 3\\n\", \"1\\n48 6\\n\"], \"outputs\": [\"Finite\\n\", \"Finite\\n\", \"Finite\\n\", \"Finite\\n\", \"Finite\\n\", \"Finite\\n\", \"Infinite\\n\", \"Infinit... | {
"index": "code_r1_train_899"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.