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\\n6 1\\n1 4 4 23 3 7\\n1 9 3 1 15 24\\n\", \"1\\n6 1\\n1 4 4 23 3 7\\n1 9 3 1 16 24\\n\", \"1\\n6 1\\n1 4 4 23 15 7\\n5 9 4 1 15 24\\n\", \"1\\n6 1\\n1 4 5 23 15 7\\n8 9 3 1 15 24\\n\", \"1\\n6 1\\n1 4 0 23 15 7\\n5 9 4 1 15 24\\n\", \"1\\n6 1\\n1 4 5 23 15 8\\... | {
"index": "code_r1_train_1900"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.000\\n2.000\\n3.000\", \"3\\n1.000\\n3.000\\n3.000\", \"3\\n1.000\\n2.000\\n3.4274102096399073\", \"3\\n1.3153899733914476\\n3.000\\n3.000\", \"3\\n1.000\\n3.000\\n3.1230319554116766\", \"3\\n1.000\\n2.000\\n3.9759367558439593\", \"3\\n1.000\\n2.54519278816... | {
"index": "code_r1_train_1901"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n5 2 3\\n1 4\\n3 5\\n1 5\", \"1\\n5 2 3\\n1 4\\n3 5\\n0 5\", \"1\\n5 2 3\\n1 3\\n3 5\\n1 5\", \"1\\n5 2 3\\n2 4\\n3 5\\n0 5\", \"1\\n5 2 3\\n2 4\\n2 5\\n0 5\", \"1\\n5 2 3\\n2 4\\n2 8\\n0 5\", \"1\\n4 2 3\\n1 6\\n3 9\\n1 5\", \"1\\n5 2 3\\n5 4\\n2 5\\n0 3\"], ... | {
"index": "code_r1_train_1902"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aaac\\n3\\n1\\n2\\n1\\nvwxyz\\n2\\n3\\n4\\n-\", \"caaa\\n3\\n1\\n2\\n1\\nvwxyz\\n2\\n3\\n4\\n-\", \"caaa\\n3\\n1\\n2\\n2\\nvxxyz\\n2\\n3\\n4\\n-\", \"ca`a\\n3\\n1\\n2\\n2\\nvwxyz\\n2\\n3\\n4\\n-\", \"caaa\\n3\\n1\\n0\\n2\\nvwxyz\\n2\\n3\\n4\\n-\", \"aaac\\n3\\n1\... | {
"index": "code_r1_train_1903"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n6\\nLRRRLL\\n3\\nLRL\\n\", \"2\\n6\\nLLRRRL\\n3\\nLRL\\n\", \"2\\n6\\nLLRRRL\\n3\\nRLL\\n\", \"2\\n6\\nLRRRLL\\n3\\nRLL\\n\", \"2\\n6\\nLLRRRL\\n3\\nLLR\\n\", \"2\\n6\\nLRRRLL\\n3\\nLLR\\n\", \"2\\n6\\nLRLRRL\\n3\\nLRL\\n\", \"2\\n6\\nRRLRLL\\n3\\nRLL\\n\"], ... | {
"index": "code_r1_train_1904"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 6\", \"3\\n3 5 6\", \"3\\n6 6 6\", \"3\\n3 6 6\", \"3\\n6 6 2\", \"3\\n6 9 2\", \"3\\n6 0 2\", \"3\\n6 1 2\"], \"outputs\": [\"2\\n\", \"1\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\", \"0\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1905"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n1\\n\", \"1\\n1 1\\n0\\n\", \"1\\n1 2\\n4\\n\", \"1\\n1 0\\n2\\n\", \"1\\n1 0\\n5\\n\", \"1\\n1 2\\n4\\n\", \"1\\n1 0\\n5\\n\"], \"outputs\": [\"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\"]}"
... | {
"index": "code_r1_train_1906"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\\n\", \"8 2 9\\n\", \"1 1 1\\n\", \"4 6 7\\n\", \"5 5 3\\n\", \"5 6 7\\n\", \"7 5 3\\n\", \"7 9 3\\n\"], \"outputs\": [\"40\\n\", \"236\\n\", \"1\\n\", \"110\\n\", \"15\\n\", \"118\\n\", \"17\\n\", \"25\\n\"]}"
} | {
"index": "code_r1_train_1907"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\", \"2\\n1 4\", \"2\\n1 0\", \"2\\n1 5\", \"2\\n1 9\", \"2\\n0 5\", \"2\\n1 6\", \"2\\n2 4\"], \"outputs\": [\"Second\\n\", \"First\\n\", \"Second\\n\", \"First\\n\", \"First\\n\", \"Second\\n\", \"First\\n\", \"Second\\n\"]}"
} | {
"index": "code_r1_train_1908"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n\", \"3\\n3 0 1\\n\", \"3\\n0 2 3\\n\", \"3\\n1 0 3\\n\", \"3\\n3 0 2\\n\", \"3\\n0 0 3\\n\", \"3\\n1 0 2\\n\", \"3\\n3 2 1\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"0\\n\", \"1\\n\", \"3\\n\", \"0\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1909"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 3\", \"3 2\\n2 1 3\", \"3 2\\n2 3 1\", \"3 3\\n1 2 2\", \"3 3\\n1 2 1\", \"3 3\\n1 3 3\", \"3 3\\n2 3 3\", \"3 3\\n2 3 1\"], \"outputs\": [\"499122178\\n\", \"1\\n\", \"2\\n\", \"499122178\\n\", \"499122178\\n\", \"499122178\\n\", \"499122178\\n\", \"49... | {
"index": "code_r1_train_1910"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"Thereare100yenonthetable.Iam17yearsold.\\n.mp6taemohogdluohsI\", \".dlosr`ey71maI.elbasehtnoney001eraerehT\\n.mp6taelohdgoltohsI\", \".closr`ey71maI-elbasegtnoney001eragrehT\\nIshptkogdhomemt5q`.\", \"Thergarn100yeeontgesable-Iam17ye`rsolc.\\nIshptkogdhomemt5q`.\... | {
"index": "code_r1_train_1911"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 5\\n38 9\\n25 15\", \"2 5\\n38 9\\n39 15\", \"2 5\\n38 9\\n17 15\", \"2 10\\n26 9\\n1 15\", \"2 5\\n20 3\\n25 10\", \"1 5\\n38 9\\n25 15\", \"2 5\\n20 10\\n25 15\", \"2 5\\n20 16\\n25 15\"], \"outputs\": [\"55\\n\", \"56\\n\", \"47\\n\", \"62\\n\", \"29\\n\", \... | {
"index": "code_r1_train_1912"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n4\\n575051\\n\", \"1\\n8\\n11735682\\n\", \"1\\n8\\n11530056\\n\", \"1\\n8\\n20576950\\n\", \"1\\n8\\n18379917\\n\", \"1\\n8\\n19444021\\n\", \"1\\n8\\n33106628\\n\", \"1\\n8\\n41484407\\n\"], \"outputs\": [\"57\\n\", \"11\\n\", \"11\\n\", \"57\\n\", \"13\\n\... | {
"index": "code_r1_train_1913"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\n.\\n\", \"1 1 1\\n.\\n\", \"1 1 1\\n.\\n\", \"1 0 1\\n.\\n\", \"1 0 2\\n.\\n\", \"1 1 2\\n.\\n\", \"1 2 1\\n.\\n\", \"2 2 0\\n..\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1914"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 9\\n6 1 7\\n6 7 1\\n\", \"2 9\\n6 1 7\\n6 7 1\\n\", \"2 9\\n5 1 7\\n6 7 1\\n\", \"2 9\\n5 1 7\\n6 9 1\\n\", \"2 10\\n7 2 1\\n7 1 2\\n\", \"2 10\\n9 1 2\\n9 2 1\\n\", \"2 10\\n9 1 2\\n9 2 1\\n\", \"2 10\\n7 2 1\\n7 1 2\\n\"], \"outputs\": [\"84\\n\", \"84\\n\", ... | {
"index": "code_r1_train_1915"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 4\\n3\\n4 2 5\", \"2\\n2\\n3 4\\n3\\n4 2 9\", \"2\\n2\\n3 4\\n3\\n0 2 5\", \"2\\n2\\n0 4\\n3\\n4 0 9\", \"2\\n2\\n0 4\\n3\\n7 2 9\", \"2\\n2\\n0 4\\n3\\n4 1 9\", \"2\\n2\\n1 4\\n3\\n4 2 9\", \"2\\n2\\n1 4\\n3\\n3 0 4\"], \"outputs\": [\"3\\n4\", \"3\\n4... | {
"index": "code_r1_train_1916"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3\\n5\\n\", \"1 10\\n4\\n\", \"1 10\\n4\\n\", \"2 10\\n6 4\\n\", \"2 10\\n6 4\\n\", \"2 10\\n6 6\\n\", \"2 11\\n6 6\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1917"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"01\\naaaaaa\\n\", \"01\\naabaaa\\n\", \"01\\naabbaa\\n\", \"01\\nbabbaa\\n\", \"01\\ncabbaa\\n\", \"01\\nbacbaa\\n\", \"01\\naacbaa\\n\", \"01\\naacaaa\\n\"], \"outputs\": [\"4\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_1918"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"xlmw mw xli tmgxyvi xlex m xsso mr ilx xvmt.\", \"xlmw mw xli tmgxyvi xlex m ossx mr ilx xvmt.\", \"xlmw mw xli tmgxyvi xlex m ossx mr ilx xwmt.\", \"xlmw mw xli tmgxyvi xlex m orsx mr ilx xwmt.\", \"xlmw mw xli tmgxyvi xlex l orsx mr ilx xwmt.\", \"wmlx mw xli t... | {
"index": "code_r1_train_1919"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2\\n\", \"2 2\\n0\\n0\\n\", \"2 2\\n0\\n0\\n\", \"2 2\\n2\\n2\\n\", \"2 2\\n1\\n0\\n\", \"2 2\\n0\\n2\\n\", \"2 0\\n1\\n0\\n\", \"2 2\\n0\\n3\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\", \"2\", \"-1\\n\", \"2\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_1920"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\ntilak +\\ntilak +\\ntilak -\\ntilak +\\n3\\nratna +\\nshashi -\\nratna -\\n3\\nbhavani -\\nbhavani +\\nbhavani -\", \"3\\n4\\ntilak +\\ntilak +\\ntilak -\\ntilaj +\\n3\\nratna +\\nshashi -\\nratna -\\n3\\nbhavani -\\nbhavani +\\nbhavani -\", \"3\\n4\\ntil... | {
"index": "code_r1_train_1921"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nhoge\\n.fuga\\n..foobar\\n..jagjag\\n...zigzag\\n.piyo\\n8\\njagjag\\n.hogehoge\\n..fugafuga\\n...ponyoponyo\\n....evaeva\\n....pokemon\\n...nowawa\\n.buhihi\\n8\\nhello\\n.goodmorning\\n..howareyou\\n.goodafternoon\\n..letshavealunch\\n.goodevening\\n.goodni... | {
"index": "code_r1_train_1922"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"4\\n1 1 1 4\\n\", \"4\\n1 1 1 3\\n\", \"4\\n1 1 1 3\\n\"], \"outputs\": [\"YES\", \"YES\\n\", \"NO\", \"NO\\n\", \"NO\\n\", \"YES\", \"NO\", \"NO\\n\"]}"
} | {
"index": "code_r1_train_1923"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\", \"2\", \"4\", \"8\", \"1\", \"5\", \"6\", \"9\"], \"outputs\": [\"0\\n0\\n0\\n\", \"0\\n0\\n\", \"0\\n0\\n0\\n0\\n\", \"0\\n0\\n0\\n0\\n0\\n1\\n0\\n0\\n\", \"0\\n\", \"0\\n0\\n0\\n0\\n0\\n\", \"0\\n0\\n0\\n0\\n0\\n1\\n\", \"0\\n0\\n0\\n0\\n0\\n1\\n0\\n0\\n0\... | {
"index": "code_r1_train_1924"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"84 36\\n1\\n18 32\\n\", \"48 4\\n2\\n8 100\\n9 59\\n\", \"48 4\\n2\\n8 100\\n8 59\\n\", \"48 72\\n2\\n8 29\\n29 37\\n\", \"48 72\\n2\\n8 29\\n15 37\\n\", \"48 72\\n2\\n8 58\\n15 37\\n\", \"48 72\\n2\\n8 98\\n15 37\\n\", \"48 72\\n2\\n8 192\\n9 37\\n\"], \"outputs... | {
"index": "code_r1_train_1925"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"3 3\\n1 3 1\\n\", \"3 3\\n1 3 1\\n\", \"5 5\\n1 1 4 2 2\\n\", \"5 5\\n1 1 2 2 2\\n\", \"5 5\\n1 1 4 2 2\\n\", \"6 2\\n1 1 2 2 1 1\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"9\\n\", \"9\\n\", \"1000\\n\", \"875\\n\", \"1000\\n\", \"... | {
"index": "code_r1_train_1926"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"5\\n\", \"1\\n\", \"7\\n\", \"7\\n\", \"6\\n\", \"1\\n\", \"5\\n\"], \"outputs\": [\"4\\n\", \"1\\n\", \"1\\n\", \"3\\n\", \"3\\n\", \"2\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1927"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 8\\n1 16\\n\", \"1 2\\n2 8\\n1 16\\n\", \"3 1\\n2 50\\n1 50\\n1 50\\n160\\n\", \"3 1\\n2 50\\n1 50\\n1 50\\n160\\n\", \"3 1\\n2 50\\n1 50\\n1 82\\n160\\n\", \"3 1\\n2 74\\n1 50\\n1 82\\n160\\n\", \"3 1\\n2 74\\n1 32\\n1 82\\n160\\n\", \"3 1\\n2 50\\n1 53\... | {
"index": "code_r1_train_1928"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nNNN\\nNS\\nWWEN\\nWWEE\\nNWNWS\\n\", \"5\\nNNN\\nNS\\nWWEN\\nEEWW\\nNWNWS\\n\", \"5\\nNNN\\nNS\\nWWEN\\nEWEW\\nNWNWS\\n\", \"5\\nNNN\\nNS\\nWWEN\\nEWEW\\nNSNWW\\n\", \"5\\nNNN\\nNS\\nNEWW\\nWWEE\\nNSNWW\\n\", \"5\\nNNN\\nNS\\nNEWW\\nEEWW\\nSNNWW\\n\", \"5\\nN... | {
"index": "code_r1_train_1929"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n69\\n\", \"1\\n912\\n\", \"2\\n1\\n1\\n\", \"1\\n9123\\n\", \"1\\n9999\\n\", \"1\\n9998\\n\", \"1\\n9997\\n\"], \"outputs\": [\"1\\n\", \"15\\n\", \"27\\n\", \"1\\n1\\n\", \"36\\n\", \"36\\n\", \"36\\n\", \"36\\n\"]}"
} | {
"index": "code_r1_train_1930"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 -3\\n\", \"1\\n1\\n1000000000\\n\", \"1\\n1\\n-1000000000\\n\", \"5\\n1 2 3 5 4\\n1 5 3 2 4\\n\", \"5\\n1 4 3 2 5\\n-3 4 -10 2 7\\n\", \"8\\n8 7 3 2 6 4 1 5\\n4 -1 4 -1 -1 2 2 3\\n\", \"10\\n5 1 6 2 8 3 4 10 9 7\\n1 1 -1 -1 -1 1 -1 1 -1 1\\n\", \"10\... | {
"index": "code_r1_train_1931"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"U?\\n\", \"n?\\n\", \"hh?\\n\", \"J ?\\n\", \"B ?\\n\", \"whU?\\n\", \"c ?\\n\", \"I ?\\n\"], \"outputs\": [\"YES\", \"NO\", \"NO\", \"NO\", \"NO\", \"YES\", \"NO\", \"YES\\n\"]}"
} | {
"index": "code_r1_train_1932"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\n7\", \"3\\n4\\n7\\n3\", \"3\\n2\\n2\\n8\", \"3\\n3\\n3\\n7\", \"3\\n4\\n6\\n8\", \"3\\n3\\n3\\n5\", \"3\\n4\\n3\\n5\", \"3\\n2\\n6\\n7\"], \"outputs\": [\"2\\n10/3\\n8810/693\\n\", \"5\\n8810/693\\n10/3\\n\", \"2\\n2\\n439331/27027\\n\", \"10/3\\n10/3... | {
"index": "code_r1_train_1933"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1 2 3\\n0 4 6 1\\n1 6 9 2\\n2 7 5 3\\n6 4 5 7\\n4 0 3 5\", \"6\\n0 0 0 0\\n0 0 1 0\\n0 0 0 0\\n0 0 0 0\\n0 0 0 1\\n0 1 0 0\", \"6\\n0 0 0 0\\n0 0 0 0\\n0 0 0 0\\n0 0 0 0\\n0 0 0 0\\n1 0 0 0\", \"6\\n0 1 2 3\\n0 4 6 1\\n1 6 9 2\\n3 7 5 3\\n6 4 5 7\\n4 0 3 5\... | {
"index": "code_r1_train_1934"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n1 0 5 2\\nBRBR\\n2\\n1 1\\nBB\\n5\\n3 1 4 2 5\\nRBRRB\\n5\\n7 1 3 1 3\\nRBRRB\\n5\\n5 1 2 1 5\\nRBRRB\\n4\\n2 2 2 2\\nBRBR\\n2\\n1 -2\\nBR\\n4\\n-2 0 4 0\\nRRRR\\n\", \"8\\n4\\n1 2 5 2\\nBRBR\\n2\\n1 1\\nBB\\n5\\n3 1 4 2 5\\nBRRBR\\n5\\n4 1 3 1 3\\nRBRRB\... | {
"index": "code_r1_train_1935"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 3 5\\n3 4 6\\n4 2 7\\n2 1 6\\n2 3 17\", \"4 5\\n1 3 5\\n3 4 6\\n2 2 7\\n2 1 1\\n2 3 17\", \"4 5\\n1 2 5\\n3 4 6\\n2 2 7\\n2 1 1\\n2 3 26\", \"4 5\\n1 2 5\\n3 4 6\\n2 2 7\\n1 1 2\\n2 3 26\", \"4 5\\n1 4 5\\n3 4 6\\n3 2 7\\n1 1 2\\n2 3 26\", \"6 2\\n1 2 6\\... | {
"index": "code_r1_train_1936"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 2 4 4 4 9 2 5\", \"8\\n6 2 7 4 2 7 2 0\", \"8\\n5 2 4 9 4 9 2 5\", \"8\\n5 2 4 4 4 14 2 0\", \"8\\n5 2 4 4 4 14 2 5\", \"8\\n5 2 4 4 4 11 2 0\", \"8\\n5 2 6 4 4 11 2 0\", \"8\\n6 2 6 4 4 11 2 0\"], \"outputs\": [\"1 2 6 7 8\\n\", \"8\\n\", \"1 2 4 6 7 8\", ... | {
"index": "code_r1_train_1937"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n1 3\", \"3\\n0 2\\n2 3\", \"3\\n1 1\\n2 3\", \"3\\n1 1\\n2 2\", \"3\\n1 2\\n2 3\", \"4\\n1 2\\n2 3\\n2 3\", \"4\\n1 2\\n1 3\\n2 4\", \"4\\n1 2\\n2 3\\n2 2\"], \"outputs\": [\"First\\n\", \"First\\n\", \"First\\n\", \"First\\n\", \"First\", \"First\\n\",... | {
"index": "code_r1_train_1938"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"1 1\\n2 1\\n\", \"3 4\\n4 3\\n4 1\\n3 2\", \"3 4\\n4 3\\n3 0\\n3 4\", \"3 4\\n4 3\\n3 1\\n2 4\", \"3 0\\n4 3\\n3 1\\n2 4\", \"3 5\\n4 3\\n4 1\\n2 2\", \"3 4\\n4 3\\n4 1\\n6 2\"], \"outputs\": [\"0\", \"0\\n\", \"5\\n\", \"7\\n\", \"8\\n\", \"0\\n\"... | {
"index": "code_r1_train_1939"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n0 1 1\\n0 2 5\\n1 2 3\\n1 3 4\\n2 3 1\\n3 2 7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 3\\n0 3 4\\n2 3 1\\n3 2 7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 3\\n0 3 4\\n2 3 1\\n0 2 7\", \"4 6\\n0 1 1\\n0 2 5\\n1 2 3\\n0 2 4\\n2 3 1\\n0 2 7\", \"4 6\\n0 1 1\\n0 2 0\\n1 2 2\\n0 3 4... | {
"index": "code_r1_train_1940"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"50\\n0\\n25\\n9\", \"50\\n0\\n164\\n9\", \"50\\n0\\n25\\n14\", \"50\\n0\\n35\\n14\", \"50\\n0\\n35\\n18\", \"50\\n8\\n3308\\n3\", \"50\\n8\\n5734\\n3\", \"50\\n8\\n5734\\n4\"], \"outputs\": [\"3C11\\n3C39\\n3C25\\n3C09\\n\", \"3C11\\n3C39\\n3C08\\n3C09\\n\", \"3C... | {
"index": "code_r1_train_1941"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\nC BA\\n\", \"1 4 3 1 1\\nC bC\\n\", \"1 4 3 1 1\\nC bC\\n\", \"1 2 1 2 1\\nC BA\\n\", \"1 4 2 1 1\\nC bC\\n\", \"1 2 0 2 1\\nC BA\\n\", \"1 2 0 2 1\\nC BB\\n\", \"1 2 1 2 1\\nC BB\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\\n... | {
"index": "code_r1_train_1942"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n2 2\\n4 2\\n6 2\\n3 6\\n5 4\\n2\\n2 4 0 4\\n4 10 2 5\", \"6\\n2 1\\n2 2\\n4 2\\n6 4\\n3 6\\n5 4\\n2\\n2 4 0 4\\n4 10 4 5\", \"6\\n2 1\\n2 2\\n5 1\\n6 4\\n3 6\\n5 4\\n2\\n2 4 0 4\\n4 10 4 5\", \"6\\n0 1\\n2 2\\n5 1\\n6 4\\n3 6\\n5 4\\n2\\n2 4 0 4\\n4 10 ... | {
"index": "code_r1_train_1943"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0 1 1\", \"4 4 1 0 3 3\", \"2 3 0 0 1 1\", \"2 1 0 0 1 1\", \"4 7 0 0 1 2\", \"4 4 0 0 1 1\", \"4 4 0 0 3 3\", \"2 3 0 0 1 2\"], \"outputs\": [\"1\\n\", \"6\\n\", \"4\\n\", \"2\\n\", \"3\\n\", \"2\", \"2\", \"4\"]}"
} | {
"index": "code_r1_train_1944"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\", \"1 2 2\", \"1 5 1\", \"4 6 1\", \"1 9 1\", \"8 6 1\", \"1 9 2\", \"9 6 1\"], \"outputs\": [\"35\\n\", \"1\\n\", \"5\\n\", \"12371\\n\", \"34\\n\", \"276953291\\n\", \"21\\n\", \"437876582\\n\"]}"
} | {
"index": "code_r1_train_1945"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"332\\n++a\\n\", \"4\\n0*a++\\n\", \"332\\na++\\n\", \"1000\\n++a\\n\", \"1000\\na++\\n\", \"584\\n7*++a\\n\", \"584\\n6*++a\\n\", \"584\\n5*++a\\n\"], \"outputs\": [\"333\\n\", \"0\\n\", \"332\\n\", \"1001\\n\", \"1000\\n\", \"4095\\n\", \"3510\\n\", \"2925\\n\"]... | {
"index": "code_r1_train_1946"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"a\\n\", \".\\n\", \";\\n\", \";\\n\", \".\\n\", \"0\\n\", \"b\\n\"], \"outputs\": [\"\\\"1\\\"\\n-\\n\", \"-\\n\\\"a\\\"\\n\", \"-\\n\\\".\\\"\\n\", \"-\\n\\\",\\\"\\n\", \"-\\n\\\",\\\"\\n\", \"-\\n\\\".\\\"\\n\", \"\\\"0\\\"\\n-\\n\", \"-\\n\\\"b\\\"\... | {
"index": "code_r1_train_1947"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1\\na\\na\\n\", \"2 4\\naa\\nbb\\n\", \"2 4\\nab\\nbb\\n\", \"2 4\\nba\\nbb\\n\", \"2 5\\nab\\nbb\\n\", \"2 4\\naa\\nbb\\n\", \"3 3\\naba\\nbba\\n\"], \"outputs\": [\"1\", \"1\\n\", \"6\\n\", \"5\\n\", \"3\\n\", \"5\\n\", \"6\\n\", \"8\\n\"]... | {
"index": "code_r1_train_1948"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nAAA\\n\", \"3\\nABA\\n\", \"3\\nBBB\\n\", \"3\\nBAA\\n\", \"3\\nAAB\\n\", \"3\\nBBA\\n\", \"3\\nBAB\\n\", \"3\\nABB\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"3\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1949"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n62\\n\", \"1\\n57\\n\", \"1\\n68\\n\", \"1\\n12\\n\", \"1\\n10\\n\", \"1\\n22\\n\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_1950"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3\\n6 10 15\\n\", \"2\\n1 1000000\\n\", \"5\\n4 20 1 25 30\\n\", \"7\\n838695 559130 335478 98670 152490 129030 72930\\n\", \"10\\n239529 302993 398153 204081 370085 184103 337965 450634 411842 217101\\n\", \"57\\n241 444 553 126 612 550 441 420 742 879 520 664 5... | {
"index": "code_r1_train_1951"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 4 6\\n10 2 5\", \"1 -1 4\\n10 3 5\", \"1 0 20\\n8 9 10\", \"1 -1 4\\n10 3 6\", \"0 1 25\\n5 0 10\", \"0 1 25\\n5 0 16\", \"0 2 25\\n5 0 10\", \"0 4 10\\n10 2 5\"], \"outputs\": [\"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\n\", \"-1\\... | {
"index": "code_r1_train_1952"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n_\\n\", \"1\\na\\n\", \"1\\n_\\n\", \"1\\na\\n\", \"1\\nb\\n\", \"1\\nc\\n\", \"1\\nd\\n\", \"1\\ne\\n\"], \"outputs\": [\"0 0\\n\", \"1 0\\n\", \"0 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\", \"1 0\\n\"]}"
} | {
"index": "code_r1_train_1953"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.B....B.\\n....W...\\n........\\n..W.....\\n........\\n........\\n\", \"..B.....\\n..W.....\\n......B.\\n........\\n.....W..\\n......B.\\n........\\n........\\n\", \".BB.B.B.\\nB..B..B.\\n.B.BB...\\nBB.....B\\nBBB....B\\nB..BB...\\nBB.B...B\... | {
"index": "code_r1_train_1954"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n1\\n\", \"1\\n1\\n\", \"2\\n2 1\\n\", \"2\\n1 2\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"2\\n1 4\\n\", \"2\\n2 2\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\\n\", \"2\\n\", \"2\\n\", \"1\\n\", \"2\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1955"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nTMTTTT\\n6\\nTTMMTT\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nMTTTTT\\n6\\nTTMMTT\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nMTTTTT\\n6\\nTTMTTM\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTTTMMT\\n6\\nTMTTTT\\n6\\nTT... | {
"index": "code_r1_train_1956"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n8 6 9 0 2 1\", \"6\\n8 6 9 1 2 0\", \"6\\n6 0 9 1 2 1\", \"6\\n1 6 9 1 2 0\", \"6\\n1 6 9 0 2 0\", \"6\\n8 3 9 1 2 1\", \"6\\n6 6 9 0 2 1\", \"6\\n8 6 9 2 2 0\"], \"outputs\": [\"4\\n\", \"6\\n\", \"2\\n\", \"6\\n\", \"4\\n\", \"4\\n\", \"4\\n\", \"6\\n\"]}"
... | {
"index": "code_r1_train_1957"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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.01\", \"4 1.10\", \"2 1.10\", \"3 1.10\", \"1 0.01\", \"1 0.01\\n\", \"0 9.98\\n\", \"74 1.10\"], \"outputs\": [\"0\\n\", \"4\\n\", \"2\\n\", \"3\\n\", \"0\", \"0\\n\", \"0\\n\", \"81\\n\"]}"
} | {
"index": "code_r1_train_1958"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"5\\n4\\n6 2 2 3\\n1\\n4\\n5\\n4 -8 5 6 -7\\n2\\n3 3\\n4\\n2 1 2 3\\n\", \"5\\n4\\n6 2 2 3\\n1\\n4\\n5\\n4 -8 5 6 -7\\n2\\n3 3\\n4\\n2 2 2 3\\n\", \"5\\n4\\n6 2 2 3\\n1\\n4\\n5\\n4 -8 5 6 -7\\n2\\n3 3\\n4\\n4 2 2 3\\n\", \"5\\n4\\n6 2 2 3\\n1\\n4\\n5\\n4 -8 5 6 -7... | {
"index": "code_r1_train_1959"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 3 0\", \"8 0 0\", \"2 0 1\", \"1 1 1\", \"2 0 2\", \"4 0 2\", \"1 0 2\", \"2 1 0\"], \"outputs\": [\"-3\\n-27\\n-219\\n-1755\\n-14043\\n-112347\\n-898779\\n-7190235\\n-57521883\\n-460175067\\n\", \"0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n\", \"2\\n4\\n8\\n16\\n... | {
"index": "code_r1_train_1960"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 0\\n1\\n3\\n3\", \"1 0\\n1\\n2\\n3\", \"3 1\\n1\\n3\\n3\", \"1 5\\n5\\n7\\n3\", \"3 9\\n1\\n2\\n0\", \"2 5\\n6\\n1\\n3\", \"3 9\\n1\\n0\\n0\", \"3 20\\n1\\n3\\n6\"], \"outputs\": [\"1\\n1\\n1\\n\", \"1\\n\", \"2\\n1\\n1\\n\", \"2\\n\", \"10\\n5\\n5\\n\", \"1\\n... | {
"index": "code_r1_train_1961"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 11\\n+ 1 2 a\\n+ 2 3 b\\n+ 3 2 a\\n+ 2 1 b\\n? 3\\n? 2\\n- 2 1\\n- 3 2\\n+ 2 1 c\\n+ 3 2 d\\n? 5\\n\", \"3 11\\n+ 1 2 a\\n+ 2 3 c\\n+ 3 2 a\\n+ 2 1 b\\n? 3\\n? 2\\n- 2 1\\n- 3 2\\n+ 2 1 c\\n+ 3 2 d\\n? 5\\n\", \"3 11\\n+ 1 2 a\\n+ 1 3 c\\n+ 3 2 a\\n+ 2 1 b\\n? ... | {
"index": "code_r1_train_1962"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5 3\\n\", \"6 4 5\\n\", \"7 5 3\\n\", \"6 4 5\\n\", \"26 92701 7\\n\", \"26 92701 7\\n\", \"3 998 99486\\n\", \"3 998 99486\\n\"], \"outputs\": [\"19\\n\", \"10\\n\", \"19\\n\", \"10\\n\", \"27\\n\", \"27\\n\", \"4\\n\", \"4\\n\"]}"
} | {
"index": "code_r1_train_1963"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"aatu\", \"ttaa\", \"utab\", \"utaa\", \"tata\", \"uuaa\", \"atta\", \"aauu\"], \"outputs\": [\"6\\n\", \"5\\n\", \"7\\n\", \"6\\n\", \"5\\n\", \"5\\n\", \"5\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_1964"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 2\\n2 3\\n2 4\\n4 5\\n2 1\\n2 5\\n1 2\\n2 1\\n\", \"5 4\\n1 2\\n2 3\\n2 4\\n4 5\\n2 1\\n2 1\\n1 2\\n2 1\\n\", \"5 4\\n1 2\\n2 3\\n2 4\\n1 5\\n2 1\\n2 5\\n1 2\\n2 5\\n\", \"5 4\\n1 2\\n2 3\\n2 4\\n4 5\\n2 1\\n1 5\\n1 2\\n2 1\\n\", \"5 4\\n1 2\\n2 3\\n2 4\\... | {
"index": "code_r1_train_1965"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 4\\n\", \"1\\n1\\n2 1 1\\n\", \"1\\n1\\n2 1 0\\n\", \"1\\n1\\n2 1 2\\n\", \"1\\n1\\n2 1 3\\n\", \"1\\n1\\n1 2 5\\n\", \"1\\n1\\n1 2 4\\n\", \"1\\n1\\n1 2 3\\n\"], \"outputs\": [\"4 4\\n\", \"1 1\\n\", \"0 0\\n\", \"2 2\\n\", \"3 3\\n\", \"5 5\\n\", \"... | {
"index": "code_r1_train_1966"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n74\\n\", \"2\\n33\\n\", \"2\\n24\\n\", \"2\\n46\\n\", \"2\\n15\\n\", \"2\\n16\\n\", \"2\\n22\\n\", \"2\\n71\\n\"], \"outputs\": [\"74\\n\", \"33\\n\", \"24\\n\", \"46\\n\", \"15\\n\", \"16\\n\", \"22\\n\", \"71\\n\"]}"
} | {
"index": "code_r1_train_1967"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 void xyi9mzfgil (T )\\n1\\n string 1h9ro7z1lo \\n1\\n xyi9mzfgil (1h9ro7z1lo )\\n\", \"1\\n void xyi9mzfgil (T )\\n1\\n string 1h9ro7z1lo \\n1\\n xyi9mzegil (1h9ro7z1lo )\\n\", \"1\\n void xyi9mzfgil (T )\\n1\\n string 1h9ro7z1lo \... | {
"index": "code_r1_train_1968"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\": [\"Impossible\\n\", \"Impossible\\n\", \"|+|=||\\n\", \"|+|=||\\n\", \"|+|=||\\n\", \"|+|=||\\n\", \"|+|=||\\n\", \"|+|=||\\n\"]}"
} | {
"index": "code_r1_train_1969"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n6\\n\", \"3\\n1\\n4\\n6\\n\", \"1\\n15320\\n\", \"1\\n14179\\n\", \"3\\n3\\n4\\n6\\n\", \"1\\n164568\\n\", \"1\\n844906\\n\", \"1\\n8027497\\n\"], \"outputs\": [\"2\\n3\\n6\\n\", \"0\\n3\\n6\\n\", \"30290\\n\", \"28022\\n\", \"2\\n3\\n6\\n\", \"327988... | {
"index": "code_r1_train_1970"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 2 2\\n3 8 2\\n1 6 2\\n4 16 5\", \"4\\n2 2 2\\n2 8 2\\n2 15 4\\n4 6 4\", \"4\\n2 2 2\\n3 6 2\\n1 6 2\\n4 16 1\", \"4\\n5 0 1\\n4 7 1\\n1 15 0\\n3 3 3\", \"4\\n5 0 1\\n7 7 1\\n1 15 0\\n3 3 3\", \"4\\n2 0 1\\n3 0 2\\n1 15 2\\n2 20 5\", \"4\\n2 0 1\\n2 12 1\\n1... | {
"index": "code_r1_train_1971"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"9 3\\n\", \"1 2\\n\", \"2 3\\n\", \"4 4\\n\", \"4 4\\n\", \"1 2\\n\", \"4 4\\n\"], \"outputs\": [\"3\\n\", \"13\\n\", \"1\\n\", \"2\\n\", \"5\\n\", \"5\\n\", \"1\\n\", \"5\\n\"]}"
} | {
"index": "code_r1_train_1972"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n3 1 1 1\\n100\\n5 10 100 1\\n01010\\n5 2 1 1\\n11101\\n5 1 10 1\\n11111\\n12 2 1 9\\n101110110101\\n2 100 1 0\\n00\\n\", \"6\\n3 1 1 0\\n110\\n5 5 100 1\\n01000\\n5 3 1 1\\n11111\\n5 1 10 2\\n11111\\n12 2 1 10\\n101110110101\\n2 100 0 10\\n00\\n\", \"6\\n3 1 ... | {
"index": "code_r1_train_1973"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 4\\n\", \"2 1\\n\", \"1 1\\n\", \"1 2\\n\", \"2 2\\n\", \"1 999999997\\n\", \"1 589284012\\n\", \"999999999 1\\n\"], \"outputs\": [\"9\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"2\\n\", \"999999996\\n\", \"589284011\\n\", \"999999998\\n\"]}"
} | {
"index": "code_r1_train_1974"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"3 2\\n1 2 3\\n2 3\\n1 2\\n\", \"3 2\\n1 2 3\\n2 3\\n1 2\\n\", \"3 2\\n1 4 3\\n2 3\\n1 2\\n\", \"3 2\\n1 2 5\\n2 3\\n1 2\\n\", \"3 2\\n1 7 3\\n2 3\\n1 2\\n\", \"3 3\\n5 3 2\\n1 2\\n2 3\\n1 3\\n\", \"3 3\\n5 3 3\\n1 2\\n2 3\\n1 3\\n\", \"3 3\\n5 3 2\\n1 2\\n2 3\\n1... | {
"index": "code_r1_train_1975"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"...\\nX.X\\n...\\n\", \"X..\\nX..\\nX..\\n\", \"...\\nXXX\\nXXX\\n\", \"...\\nX.X\\nX..\\n\", \"..X\\nX..\\n..X\\n\", \"...\\n...\\n..X\\n\", \"X..\\n...\\n...\\n\", \"...\\nX..\\n...\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"NO\\n\", \"... | {
"index": "code_r1_train_1976"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1 1 7\\n0 6 5\\n2\\n0 1 1\\n0 1 1\\n2\\n0 2 3\\n0 1 3\", \"3\\n2\\n0 4 7\\n0 6 5\\n2\\n0 1 2\\n6 2 10\\n2\\n1 2 3\\n0 2 3\", \"3\\n2\\n0 4 7\\n0 6 5\\n2\\n0 1 2\\n6 2 10\\n2\\n1 2 5\\n0 2 3\", \"3\\n2\\n0 4 7\\n0 6 5\\n2\\n0 1 2\\n6 4 10\\n2\\n1 2 5\\n0 2... | {
"index": "code_r1_train_1977"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 6 10000\\n\", \"1\\n1 100 940\\n\", \"1\\n3 6 10000\\n\", \"1\\n1 100 940\\n\", \"1\\n1 6 10000\\n\", \"1\\n1 110 940\\n\", \"1\\n1 73 10000\\n\", \"1\\n5 76 10000\\n\"], \"outputs\": [\"2\\n3 6 10002\\n\", \"6\\n1 94 940\\n\", \"2\\n3 6 10002\\n\", \"6\\n1... | {
"index": "code_r1_train_1978"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1\\n\", \"2 1 1\\n2 1\\n\", \"2 1 2\\n2 1\\n\", \"2 1 3\\n2 1\\n\", \"4 4 2\\n2 3\\n1 2\\n1 3\\n1 4\\n\", \"4 4 2\\n2 3\\n1 2\\n1 3\\n1 4\\n\", \"5 7 2\\n1 5\\n3 2\\n2 5\\n3 4\\n1 2\\n5 3\\n1 3\\n\", \"9 7 2\\n1 5\\n3 2\\n2 5\\n3 4\\n1 2\\n5 3\\n1 3\\n\... | {
"index": "code_r1_train_1979"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nSSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM\\n2\\nSSSSSSSSSSSSSSLLLLLLLLLLLLLLLLLLLLMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMSL\\n5\\nMMMMMMSLSLLMMMSMMSLMMMLMMMMLSLLLLMLSMMLMMLLMS... | {
"index": "code_r1_train_1980"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 5\", \"0 3 5\", \"1 2 7\", \"7 2 2\", \"3 4 5\", \"3 4 5\\n\", \"1 10 1\", \"1 6 13\"], \"outputs\": [\"4\\n\", \"0\\n\", \"1\\n\", \"7\\n\", \"6\", \"6\\n\", \"5\\n\", \"3\\n\"]}"
} | {
"index": "code_r1_train_1981"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"2\\n4\\n1 4 2 3\\n1\\n5\", \"2\\n4\\n1 2 2 3\\n1\\n5\", \"2\\n4\\n1 4 2 2\\n1\\n5\", \"2\\n4\\n2 1 2 2\\n1\\n5\", \"2\\n4\\n2 1 3 2\\n1\\n5\", \"2\\n4\\n6 5 3 2\\n1\\n2\", \"2\\n4\\n1 4 2 2\\n1\\n3\", \"2\\n4\\n2 4 2 2\\n1\\n5\"], \"outputs\": [\"6\\n1\", \"10\\n... | {
"index": "code_r1_train_1982"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\nA\\na\\nA\\nb\\n\", \"3\\na\\nA\\na\\nA\\na\\n\", \"3\\nb\\nA\\na\\nA\\nb\\n\", \"3\\nb\\nA\\na\\nB\\nb\\n\", \"3\\nab\\nBa\\naB\\nABBA\\nl\\n\", \"3\\nab\\nBa\\naB\\nABBA\\na\\n\", \"3\\nab\\nBa\\naB\\nABBB\\nl\\n\", \"3\\nab\\naB\\naB\\nABBA\\na\\n\"], ... | {
"index": "code_r1_train_1983"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0\\n2 3\\n\", \"1 1\\n0 0\\n0 0\\n\", \"1 1\\n0 0\\n0 0\\n\", \"1 1\\n0 0\\n2 3\\n\", \"1 2\\n0 0\\n0 0\\n0 0\\n\", \"2 1\\n0 0\\n0 0\\n0 0\\n\", \"2 1\\n0 0\\n0 0\\n0 0\\n\", \"1 2\\n1 0\\n0 0\\n0 0\\n\"], \"outputs\": [\"3\\n\", \"1\\n\", \"1\\n\", \"3\... | {
"index": "code_r1_train_1984"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"--+-\", \"++-+\", \"++++\", \"-+-+\", \"---+\", \"+---\", \"-+++\", \"+++-\"], \"outputs\": [\"-2\\n\", \"2\\n\", \"4\\n\", \"0\\n\", \"-2\\n\", \"-2\\n\", \"2\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1985"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n1\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n2 2\\n\", \"2\\n2 1\\n\", \"3\\n1 1 1\\n\", \"3\\n1 2 2\\n\"], \"outputs\": [\"2\\n\\n\", \"1\\n\\n\", \"1 1\\n\\n\", \"2 1\\n\", \"2 2\\n\\n\", \"2 1\\n\", \"1 1 1\\n\\n\", \"2 1 2\\n\"]}"
} | {
"index": "code_r1_train_1986"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n5 4 3 3 9\\nR 1\\nC 4\\nR 5\\nA 3\\nR 2\", \"5 5\\n5 4 3 3 9\\nR 1\\nC 4\\nR 5\\nA 6\\nR 2\", \"5 5\\n5 4 3 3 9\\nR 1\\nC 4\\nR 5\\nA 3\\nR 0\", \"5 5\\n5 4 3 3 9\\nR 1\\nC 1\\nR 5\\nA 6\\nR 2\", \"5 5\\n5 3 3 3 9\\nR 1\\nC 1\\nR 5\\nA 6\\nR 2\", \"5 5\\n5 ... | {
"index": "code_r1_train_1987"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 0 0\\n\", \"1\\n1 1 1\\n\", \"1\\n0 0 0\\n\", \"1\\n1 1 0\\n\", \"1\\n0 1 0\\n\", \"1\\n1 0 1\\n\", \"2\\n1 0 0\\n1 1 1\\n\", \"2\\n1 0 1\\n1 1 1\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"0\\n\", \"1\\n\", \"1\\n\", \"2\\n\"]}"
} | {
"index": "code_r1_train_1988"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1\\n8\\n1\\n1 1\\n\", \"1\\n8\\n1\\n1 1\\n\", \"1\\n6\\n1\\n1 1\\n\", \"1\\n2\\n1\\n1 1\\n\", \"1\\n1\\n1\\n1 1\\n\", \"1\\n0\\n1\\n1 1\\n\", \"2\\n9 9\\n2\\n1 1\\n1 2\\n\", \"2\\n9 9\\n2\\n1 1\\n1 2\\n\"], \"outputs\": [\"0\\n\", \"0\\n\", \"0\\n\", \"0\\n\", \"... | {
"index": "code_r1_train_1989"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 2 1\\n\", \"1 1 1 2\\n\", \"4 6 2 1\\n\", \"4 6 2 2\\n\", \"6 4 2 2\\n\", \"5 3 1 1\\n\", \"6 5 4 3\\n\", \"1 8 1 4\\n\"], \"outputs\": [\"6\\n\", \"31\\n\", \"3\\n\", \"122\\n\", \"435\\n\", \"8\\n\", \"282051\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1990"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\", \"8\", \"1\", \"0\", \"9\", \"4\", \"7\", \"6\"], \"outputs\": [\"10\\n\", \"8\\n\", \"2\\n\", \"0\\n\", \"18\\n\", \"4\\n\", \"14\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_1991"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"21000\\nSWISS TO LAUNCH NEW SERIES OF MONEY MARKET PAPER\\nZURICH, April 9 - The Swiss Federal Government will launch\\na new series of three month money market certificates totalling\\naround 150 mln Swiss francs, the National Bank said.\\nSubscriptions close Ap... | {
"index": "code_r1_train_1992"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n2 1 5\\n\", \"2\\n2 1 89\\n\", \"2\\n2 1 17\\n\", \"2\\n2 1 140\\n\", \"3\\n1 2 0\\n2 3 0\\n\", \"3\\n1 2 3\\n2 3 5\\n\", \"3\\n1 2 3\\n2 3 3\\n\"], \"outputs\": [\"0\", \"5\", \"89\", \"17\\n\", \"140\\n\", \"0\", \"8\\n\", \"6\\n\"]}"
} | {
"index": "code_r1_train_1993"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n4\\n\", \"1\\n1\\n\", \"1\\n4\\n\", \"1\\n2\\n\", \"1\\n3\\n\", \"1\\n5\\n\", \"1\\n6\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"1\", \"1\", \"1\\n\", \"1\\n\", \"1\\n\", \"1\\n\"]}"
} | {
"index": "code_r1_train_1994"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 7\\n4\\nJIOJOIJ\\nIOJOIJO\\nJOIJOOI\\nOOJJIJO\\n5 5 4 7\\n2 2 3 6\\n2 2 2 2\\n1 1 4 7\", \"4 7\\n4\\nJIOJOIJ\\nOJIOJOI\\nJOIJOOI\\nOOJJIJO\\n5 5 4 7\\n2 2 3 6\\n2 2 2 2\\n1 1 4 7\", \"4 7\\n4\\nJIOJOIJ\\nOJIOJOI\\nJOIJOOI\\nOOJJIJO\\n5 7 4 7\\n2 2 3 6\\n2 2 2 2... | {
"index": "code_r1_train_1995"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n88372488\\n74842436 22\\n\", \"1 1\\n88372488\\n529378808 22\\n\", \"1 1\\n93269973\\n529378808 22\\n\", \"1 1\\n93269973\\n529378808 14\\n\", \"1 1\\n93269973\\n858288489 14\\n\", \"1 1\\n93269973\\n360212747 22\\n\", \"1 1\\n88372488\\n319157478 348\\n\",... | {
"index": "code_r1_train_1996"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests.\nRead the inputs from stdin solve the problem and write the answer to stdout (do not direc... | code | {
"method": "rule",
"ground_truth": "{\"inputs\": [\"1 2\\n1 0\\n\", \"1 2\\n5 0\\n\", \"1 9\\n9 0\\n\", \"1 1\\n1 0\\n\", \"1 9\\n9 1\\n\", \"1 2\\n2 1\\n\", \"1 1\\n1 0\\n\", \"1 2\\n5 0\\n\"], \"outputs\": [\"0\\n\", \"-1\\n\", \"0\\n\", \"0\\n\", \"-1\\n\", \"-1\\n\", \"0\\n\", \"-1\\n\"]}"
} | {
"index": "code_r1_train_1997"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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 1 1\\n1 0 1\\n1 1 0\\n\", \"0 3 6\\n5 0 5\\n4 7 0\\n\", \"0 4 4\\n4 0 4\\n4 4 0\\n\", \"0 7 6\\n9 0 1\\n4 3 0\\n\", \"0 9 2\\n3 0 7\\n8 1 0\\n\", \"0 4 4\\n4 0 4\\n4 4 0\\n\", \"0 9 2\\n3 0 7\\n8 1 0\\n\", \"0 7 6\\n9 0 1\\n4 3 0\\n\"], \"outputs\": [\"1 1 1\\n... | {
"index": "code_r1_train_1998"
} |
code_r1 | [
{
"role": "system",
"content": "You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all 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\\n998244352 1 0\\n\", \"1\\n998244352 1 0\\n\", \"1\\n876645717 1 0\\n\", \"1\\n732049749 1 0\\n\", \"1\\n322715565 1 0\\n\", \"1\\n1880607940 1 0\\n\", \"1\\n1390626131 1 0\\n\", \"1\\n301823859 4126 0\\n\"], \"outputs\": [\"0\\n\", \"0\", \"876645718\\n\", \"... | {
"index": "code_r1_train_1999"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.