data_source stringclasses 3
values | prompt listlengths 2 2 | ability stringclasses 1
value | reward_model dict | sub_source stringclasses 12
values | extra_info dict |
|---|---|---|---|---|---|
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Santa has $n$ candies and he wants to gift them to $... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 2\\n19 4\\n12 7\\n6 2\\n100000 50010\\n\", \"1\\n1233212 4\\n\", \"1\\n1233212 4\\n\", \"1\\n1233212 2\\n\", \"5\\n5 2\\n19 4\\n12 7\\n6 2\\n100001 50010\\n\", \"1\\n311687 2\\n\", \"5\\n5 2\\n19 4\\n12 7\\n6 2\\n100000 90586\\n\", \"5\\n5 2\\n1 4\\n12 7\\n6 2\\n100000 90586\\... | EASY | {
"id": "taco-train-8788",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This is the hard version of the problem. The only di... | code | {
"ground_truth": "{\"inputs\": [\"5\\n10\\n1110011000\\n8\\n11001111\\n2\\n00\\n2\\n11\\n6\\n100110\\n\"], \"outputs\": [\"3 2\\n0 3\\n0 1\\n0 1\\n3 1\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-22891",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The gardener Kazimir Kazimirovich has an array of $n... | code | {
"ground_truth": "{\"inputs\": [\"5\\n3\\n2 1 5\\n2 2 4\\n2 2 3\\n2\\n2 1 2\\n1 2\\n4\\n3 1 2 4\\n2 2 4\\n4 1 2 5 6\\n2 2 5\\n5\\n3 3 1 2\\n3 2 5 3\\n5 7 2 3 1 4\\n5 1 2 6 3 5\\n3 2 6 3\\n2\\n1 1\\n1 2\\n\"], \"outputs\": [\"No\\nYes\\nYes\\nYes\\nNo\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7132",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Consider a big party where N guests came to it and a ... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\nEntry= {1, 2,10, 5, 5}\\nExit = {4, 5, 12, 9, 12}\", \"N = 7\\nEntry= {13, 28, 29, 14, 40, 17, 3}\\nExit = {107, 95, 111, 105, 70, 127, 74}\"], \"outputs\": [\"3 5\", \"7 40\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-6686",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Arkady has got an infinite plane painted in color 0.... | code | {
"ground_truth": "{\"inputs\": [\"5\\n-1 -1 1 1\\n-4 0 0 4\\n0 0 4 4\\n-4 -4 0 0\\n0 -4 4 0\\n\", \"4\\n0 0 4 4\\n-4 -4 0 0\\n0 -4 4 0\\n-2 -4 2 4\\n\", \"5\\n-1 0 2 4\\n1 4 4 5\\n2 3 5 4\\n-5 3 1 5\\n0 -4 2 3\\n\", \"10\\n-39 29 10 85\\n-44 69 83 71\\n-35 33 31 74\\n-68 66 47 86\\n77 -49 96 89\\n-24 25 7 93\\n-24 -... | rating_>1900 | {
"id": "983_D. Arkady and Rectangles",
"rating": 3300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two strings s and t. In a single move,... | code | {
"ground_truth": "{\"inputs\": [\"b\\nab\\n\", \"codeforces\\nyes\\n\", \"test\\nyes\\n\", \"test\\nwest\\n\", \"ama\\nsama\\n\", \"z\\na\\n\", \"abacabadabacaba\\nabacabadacaba\\n\", \"ahmedaly\\naly\\n\", \"bbdab\\ndab\\n\", \"aaabc\\nbc\\n\", \"aa\\na\\n\", \"a\\nab\\n\", \"dddc\\ncdcde\\n\", \"codeforces\\nces\\... | rating_<=1200 | {
"id": "1005_B. Delete from the Left",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Almir had a small sequence $A_1, A_2, \\ldots, A_N$.... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"3 3\", \"2 1 3\", \"4 100\", \"99 2 1000 24\", \"\"]], \"outputs\": [[\"12\", \"30000\"]]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-19338",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Limak is a little polar bear. According to some old ... | code | {
"ground_truth": "{\"inputs\": [\"8\\n-10 0\\n-6 6\\n0 10\\n6 6\\n10 0\\n6 -6\\n0 -10\\n-6 -6\\n\", \"5\\n2 4\\n2 7\\n5 7\\n5 4\\n3 -2\\n\", \"4\\n-1000000000 -5000000\\n0 1234567\\n1 1\\n-5 -100000000\\n\", \"4\\n-1000000000 1000000000\\n1000000000 1000000000\\n1000000000 -1000000000\\n-1000000000 -1000000000\\n\",... | rating_>1900 | {
"id": "611_G. New Year and Cake",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "HELP! Jason can't find his textbook! It is two days b... | code | {
"ground_truth": "{\"fn_name\": \"sorter\", \"inputs\": [[[\"Algebra\", \"History\", \"Geometry\", \"English\"]], [[\"Algebra\", \"history\", \"Geometry\", \"english\"]], [[\"Alg#bra\", \"$istory\", \"Geom^try\", \"**english\"]]], \"outputs\": [[[\"Algebra\", \"English\", \"Geometry\", \"History\"]], [[\"Algebra\", ... | EASY | {
"id": "taco-train-785",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N hidden integer arrays of length N each. ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 0\\n5\\n3 1 5 0 2\\n3\\n1 2 1\"], \"outputs\": [\"1 2\\n0 2\\n4 13\\n3 13\\n2 13\\n1 13\\n1 15\\n3 8\\n1 2\\n0 4\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-6932",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Bear Limak has a sequence of N non-negative integers... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"2 3\", \"1 2\", \"3 5\", \"2 4 3\", \"3 100\", \"1 3 5\", \"4 3\", \"1 2 3 4\"]], \"outputs\": [[\"2 1\", \"4 2\", \"9 1\", \"2 2\"]]}",
"style": "rule"
} | HARD | {
"id": "taco-train-17717",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are planning to build housing on a street. There... | code | {
"ground_truth": "{\"inputs\": [\"3 3 3\\n1 1 1 1000\\n2 2 3 1000\\n3 3 2 1000\\n\", \"4 10 2\\n2 3 8 76\\n3 4 7 39\\n\", \"20 50 20\\n1 11 24 44\\n14 14 33 24\\n5 14 20 23\\n1 11 19 33\\n4 9 37 7\\n4 18 7 10\\n4 12 20 58\\n6 18 48 36\\n1 17 49 13\\n15 17 49 3\\n9 20 3 47\\n16 20 34 4\\n1 11 19 26\\n4 17 15 23\\n5 9... | rating_>1900 | {
"id": "1146_G. Zoning Restrictions",
"rating": 2700,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a full binary expression tree consisting of bas... | code | {
"ground_truth": "{\"inputs\": [\"+\\r\\n / \\\\\\r\\n * -\\r\\n / \\\\ / \\\\\\r\\n 5 4 100 20\", \"-\\r\\n / \\\\\\r\\n 4 7\"], \"outputs\": [\"100\", \"-3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17197",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "La Confiserie d'ABC sells cakes at 4 dollars each an... | code | {
"ground_truth": "{\"inputs\": [\"40\", \"3\", \"11\", \"17\", \"22\", \"1\", \"19\", \"2\", \"9\", \"18\", \"4\", \"6\", \"15\", \"7\", \"30\", \"25\", \"48\", \"41\", \"81\", \"-1\", \"55\", \"-2\", \"57\", \"-3\", \"95\", \"-5\", \"94\", \"-6\", \"8\", \"-11\", \"5\", \"-14\", \"12\", \"-28\", \"-4\", \"-18\", \"... | none | {
"id": "p03285 AtCoder Beginner Contest 105 - Cakes and Donuts",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef has a binary string S of length N. \n\nIn one o... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\n101011\\n2\\n01\\n7\\n1110000\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-211",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem statement\n\nAOR Ika got a cabbage with $ N ... | code | {
"ground_truth": "{\"inputs\": [\"5 3 6 9\\n9 7 5 3 1\", \"5 3 6 9\\n9 1 5 3 1\", \"21 10 0 4\\n5 2 13 -1 0\", \"21 7 1 4\\n0 2 23 -1 2\", \"9 3 1 9\\n22 2 6 2 0\", \"21 14 1 4\\n2 2 0 -1 2\", \"5 3 6 9\\n9 1 6 3 1\", \"8 3 6 9\\n9 1 6 3 1\", \"8 3 6 9\\n15 1 6 3 1\", \"8 3 6 9\\n15 0 6 3 1\", \"8 3 6 9\\n22 0 6 3 1... | none | {
"id": "p01891 Cabbage",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After defeating a Blacklist Rival, you get a chance ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n0.2 0.2 0.6 0.2\\n0.4 0.2 0.4 0.8\\n0.4998 0.4998 0.0004 0.1666\\n0.3125 0.6561 0.0314 0.2048\\n\", \"10\\n0.5000 0.4999 0.0001 0.1\\n0.9998 0.0001 0.0001 0.1\\n0.9000 0.0999 0.0001 0.1\\n0.4999 0.5000 0.0001 0.1\\n0.0001 0.9998 0.0001 0.1\\n0.0999 0.9000 0.0001 0.1\\n0.7499 0.2... | HARD | {
"id": "taco-train-11935",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "E: Markup language has declined\n\nIt's been centuri... | code | {
"ground_truth": "{\"inputs\": [\"1\\nindex.dml\\n<dml><title>Markup language has Declined</title><br>Programmers world</dml>\\n1\\n15 3 0 index\", \"1\\nindex.dml\\n<dml><title>Markup aangulge has Declined</title><br>Programmers world</dml>\\n1\\n15 3 0 index\", \"1\\nindex.dml\\n<dml><title>Markup aangulge sah Dec... | none | {
"id": "p01535 Markup language has Declined",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In AtCoder city, there are five antennas standing in... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n4\\n8\\n9\\n15\\n\", \"15\\n18\\n26\\n35\\n36\\n18\\n\", \"0\\n7\\n9\\n52\\n123\\n123\\n\", \"4\\n6\\n13\\n47\\n85\\n61\\n\", \"5\\n12\\n29\\n46\\n75\\n69\\n\", \"25\\n26\\n27\\n28\\n29\\n91\\n\", \"2\\n22\\n25\\n32\\n35\\n9\\n\", \"2\\n22\\n25\\n32\\n35\\n10\\n\", \"6\\n13\... | EASY | {
"id": "taco-train-22725",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef loves lucky numbers. Everybody knows that lucky... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n10\\n100\", \"3\\n3\\n10\\n000\", \"3\\n2\\n10\\n000\", \"3\\n2\\n10\\n001\", \"3\\n1\\n10\\n001\", \"3\\n2\\n10\\n011\", \"3\\n2\\n6\\n011\", \"3\\n1\\n10\\n011\", \"3\\n1\\n10\\n010\", \"3\\n0\\n10\\n010\", \"3\\n0\\n6\\n010\", \"3\\n0\\n3\\n010\", \"3\\n-1\\n3\\n010\", \"... | none | {
"id": "lucky1",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "To celebrate today's launch of my Hero's new book: Al... | code | {
"ground_truth": "{\"fn_name\": \"part\", \"inputs\": [[[\"Grouse\", \"Partridge\", \"Pheasant\"]], [[\"Pheasant\", \"Goose\", \"Starling\", \"Robin\"]], [[\"Grouse\", \"Partridge\", \"Partridge\", \"Partridge\", \"Pheasant\"]], [[]], [[\"Grouse\", \"Partridge\", \"Pheasant\", \"Goose\", \"Starling\", \"Robin\", \"T... | EASY | {
"id": "taco-train-12623",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Berland State University invites people from all ove... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n0 1 0 0 0 0 0\\n100000000\\n1 0 0 0 1 0 1\\n1\\n1 0 0 0 0 0 0\\n\", \"1\\n13131313\\n1 0 1 0 1 1 1\\n\", \"3\\n2\\n0 1 0 0 0 0 0\\n100000000\\n1 0 1 0 1 0 1\\n1\\n1 0 0 0 0 0 0\\n\", \"1\\n13131313\\n1 0 1 0 0 1 1\\n\", \"3\\n4\\n0 1 0 0 0 0 0\\n100000000\\n1 0 0 0 1 0 1\\n1... | rating_1401-1600 | {
"id": "1089_G. Guest Student",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One rainy gloomy evening when all modules hid in the... | code | {
"ground_truth": "{\"inputs\": [\"12\", \"20\", \"10\", \"11\", \"15\", \"18\", \"25\", \"22\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"13\", \"14\", \"16\", \"17\", \"19\", \"21\", \"23\", \"24\"], \"outputs\": [\"4\", \"15\", \"0\", \"4\", \"4\", \"4\", \"0\", \"0\", \"0\", \"0\", \"0\", \... | rating_<=1200 | {
"id": "104A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Baby is getting his frst tooth. This means more sleep... | code | {
"ground_truth": "{\"fn_name\": \"first_tooth\", \"inputs\": [[[1, 2, 3, 4]], [[1, 2, 6, 4]], [[1, 2, 5, 7, 1, 0, 9]], [[9, 2, 8, 1]], [[1, 1, 1, 1]], [[20, 9, 16, 19]], [[15]]], \"outputs\": [[3], [2], [6], [2], [-1], [0], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22098",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Decimal numbers are a common notation system current... | code | {
"ground_truth": "{\"inputs\": [\"7\\n4\\n0\\n12\\n10\\n10000\\n-1\", \"7\\n4\\n0\\n12\\n10\\n10010\\n-1\", \"7\\n4\\n0\\n12\\n4\\n10000\\n-1\", \"7\\n4\\n0\\n13\\n10\\n10010\\n-1\", \"7\\n4\\n0\\n12\\n6\\n10000\\n-1\", \"7\\n4\\n0\\n24\\n10\\n10010\\n-1\", \"7\\n4\\n1\\n12\\n6\\n10000\\n-1\", \"7\\n4\\n1\\n24\\n10\... | none | {
"id": "p00175 Quaternary Notation",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Shichi-Go-San (literally \"Seven-Five-Three\") is a ... | code | {
"ground_truth": "{\"inputs\": [\"6\", \"5\", \"11\", \"7\", \"16\", \"3\", \"19\", \"4\", \"12\", \"0\", \"9\", \"1\", \"13\", \"-1\", \"8\", \"-2\", \"2\", \"-3\", \"-5\", \"-6\", \"-9\", \"-12\", \"-11\", \"-4\", \"14\", \"-7\", \"-20\", \"22\", \"10\", \"15\", \"-8\", \"26\", \"-10\", \"41\", \"-16\", \"21\", \"... | none | {
"id": "p03210 AtCoder Beginner Contest 114 - 753",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "We have 2N pots. The market price of the i-th pot (1... | code | {
"ground_truth": "{\"inputs\": [\"1\\n150000\\n108\", \"2\\n50000\\n50000\\n100000\\n100000\", \"1\\n43783\\n108\", \"2\\n50000\\n66868\\n100000\\n100000\", \"2\\n50000\\n66868\\n110000\\n100000\", \"1\\n36572\\n91\", \"2\\n50000\\n66868\\n110000\\n110000\", \"2\\n50000\\n63435\\n110000\\n110000\", \"1\\n9258\\n99\"... | none | {
"id": "p03514 Code Festival Team Relay (Parallel) - Indifferent",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Grandma Capa has decided to knit a scarf and asked G... | code | {
"ground_truth": "{\"inputs\": [\"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\nabba\\n8\\nrprarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\nabba\\n8\\nrpqarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyy\\n4\\nabba\\n8\\nrpqarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\na... | EASY | {
"id": "taco-train-5825",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Neko loves divisors. During the latest number theory... | code | {
"ground_truth": "{\"inputs\": [\"6 10\\n\", \"5 10\\n\", \"21 31\\n\", \"823409948 63146277\\n\", \"509022792 57335\\n\", \"173726711 47100867\\n\", \"55138 453739731\\n\", \"986866706 981520552\\n\", \"24 9\\n\", \"2 3\\n\", \"21 1\\n\", \"904189980 653467036\\n\", \"21184942 66889\\n\", \"999999973 800000007\\n\"... | rating_1601-1900 | {
"id": "1152_C. Neko does Maths",
"rating": 1800,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Amugae has a hotel consisting of $10$ rooms. The roo... | code | {
"ground_truth": "{\"inputs\": [\"8\\nLLRL1RL1\\n\", \"9\\nL0L0LLRR9\\n\", \"1\\nL\\n\", \"100\\nR9L0L0R9R9L0R9R9L0R9R9R9L0R9R9R9L0L0R9L0R9L0L0L0R9R9L0R9L0R9R9L0R9R9L0R9L0L0R9R9R9L0L0L0L0R9L0L0L0L0\\n\", \"100\\nRRLRRLRRLR2L0R6R2L1L3R4L0L6L2L2R5R6R1R3L6R6R8L6L4L3L6R9L6L9L8L7R7L8R1R1R7R7L2L8L2L1R8R2R8L76RR9R4R3R\\n\"... | EASY | {
"id": "taco-train-10084",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "### Description\nAs hex values can include letters `A... | code | {
"ground_truth": "{\"fn_name\": \"hex_word_sum\", \"inputs\": [[\"DEFACE\"], [\"SAFE\"], [\"CODE\"], [\"BUGS\"], [\"\"], [\"DO YOU SEE THAT BEE DRINKING DECAF COFFEE\"], [\"ASSESS ANY BAD CODE AND TRY AGAIN\"]], \"outputs\": [[14613198], [23294], [49374], [0], [0], [13565769], [10889952]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3730",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a permutation $p=[p_1, p_2, \\ldots, p... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\n4 5 1 3 2 6\\n5\\n5 3 1 2 4\\n4\\n1 4 3 2\\n\", \"3\\n6\\n4 5 1 3 2 6\\n5\\n5 3 2 1 4\\n4\\n1 4 3 2\\n\", \"3\\n6\\n4 5 1 3 2 6\\n5\\n5 3 1 2 4\\n4\\n1 4 3 2\\n\"], \"outputs\": [\"101011\\n11111\\n1001\\n\", \"101011\\n11111\\n1001\\n\", \"101011\\n11111\\n1001\\n\"]}",
"... | EASY | {
"id": "taco-train-3061",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "-----\nHALLOWEEN EVE\n-----\n\nIn some other world, ... | code | {
"ground_truth": "{\"inputs\": [[\"5 3\", \"10\", \"15\", \"11\", \"14\", \"12\"]], \"outputs\": [[\"2\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-11819",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A sequence of non-negative integers a_1, a_2, ..., a... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"4 2\\n\", \"1 2\\n\", \"4 11\\n\", \"5 100\\n\", \"5444 31525\\n\", \"60282 92611\\n\", \"62600 39199\\n\", \"14095 86011\\n\", \"78606 36436\\n\", \"25063 54317\\n\", \"86232 41348\\n\", \"94882 95834\\n\", \"83781 52238\\n\", \"21857 94145\\n\", \"7413 87155\\n\", \"76... | EASY | {
"id": "taco-train-13153",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Rasta calls a number like a Tavas if and only if 1 ≤... | code | {
"ground_truth": "{\"inputs\": [\"20 7\\n\\nSAMPLE\", \"28 7\\n\\nSAMPLE\", \"56 7\\n\\nSAMQLE\", \"81 7\\n\\nSAMQLE\", \"12 7\\n\\nFLQMAR\", \"12 6\\n\\nFLQMAR\", \"8 7\\n\\nFMQALR\", \"41 7\\n\\nFLQMAR\", \"107 7\\n\\nLFQMAS\", \"46 2\\n\\nFLQMAR\", \"180 5\\n\\nATLNPC\", \"136 5\\n\\nATLNPC\", \"81 5\\n\\nELQMAS\... | none | {
"id": "rasta-and-tavas",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef is very organised in whatever he does and likes... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"7\", \"20 6 5 3 3 1 1\"]], \"outputs\": [[\"1: 2\", \"3: 2\", \"5: 1\", \"6: 1\", \"20: 1\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-7618",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let's imagine that you're playing the following simp... | code | {
"ground_truth": "{\"inputs\": [\"10 3 2\\n1 2 1 1 3 2 1 1 2 2\", \"10 2 2\\n1 2 1 2 1 1 2 1 1 2\", \"3 1 2\\n1 1 1\", \"10 2 2\\n1 1 1 2 1 2 1 2 1 1\", \"1 1 0\\n1\", \"20 3 5\\n2 2 3 1 2 2 3 3 3 2 1 2 3 1 1 3 3 3 2 3\", \"20 2 5\\n2 2 1 2 1 2 1 2 1 1 2 1 2 2 1 2 2 1 2 1\", \"20 6 3\\n4 1 2 6 3 3 2 5 2 5 2 1 1 4 1 ... | rating_1601-1900 | {
"id": "180E",
"rating": 1800,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Example\n\nInput\n\n2 5 4\n5 7\n4 8\n\n\nOutput\n\n8... | code | {
"ground_truth": "{\"inputs\": [\"2 5 4\\n5 7\\n4 8\", \"2 5 4\\n5 7\\n4 6\", \"2 2 4\\n5 8\\n4 6\", \"3 0 4\\n0 3\\n4 6\", \"3 -1 4\\n0 6\\n4 6\", \"3 -1 4\\n0 6\\n4 8\", \"3 -1 4\\n0 6\\n1 11\", \"3 5 4\\n5 7\\n4 8\", \"2 2 4\\n5 7\\n4 5\", \"3 3 4\\n5 8\\n4 0\", \"3 2 4\\n5 15\\n4 6\", \"3 2 4\\n0 8\\n4 8\", \"3 ... | none | {
"id": "p00932 Sweet War",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The administration of the Tomsk Region firmly believ... | code | {
"ground_truth": "{\"inputs\": [\"4 999998\\n1 1 2\\n2 2 1\\n3 3 1\\n2 -2 1\\n\", \"4 999998\\n1 1 1\\n2 2 1\\n3 3 1\\n2 -2 1\\n\", \"2 1\\n1 1 999997\\n2 2 1\\n\", \"10 764008\\n959 32 23049\\n-513 797 38979\\n-603 -838 24916\\n598 -430 25414\\n-280 -624 18714\\n330 891 21296\\n-347 -68 27466\\n650 -842 30125\\n-31... | rating_<=1200 | {
"id": "424_B. Megacity",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two integers representing the numerator and den... | code | {
"ground_truth": "{\"fn_name\": \"fractionToDecimal\", \"inputs\": [[1, 2]], \"outputs\": [\"0.5\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-25064",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "It was decided in IT City to distinguish successes o... | code | {
"ground_truth": "{\"inputs\": [\"7 10\\n\", \"603530531 585244\\n\", \"999999929 2\\n\", \"999999929 1000000000\\n\", \"7 1000\\n\", \"5 1\\n\", \"7369339 31415926\\n\", \"2341 5001\\n\", \"11 1000000000\\n\", \"999999937 1\\n\", \"704014154 2\\n\", \"1272778938 1000000000\\n\", \"0 1000\\n\", \"9 1\\n\", \"7369339... | rating_>1900 | {
"id": "630_P. Area of a Star",
"rating": 2100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Complete the function that takes two numbers as input... | code | {
"ground_truth": "{\"fn_name\": \"find_digit\", \"inputs\": [[5673, 4], [129, 2], [-2825, 3], [0, 20], [65, 0], [24, -8], [-456, 5], [-1234, 2], [-5540, 1], [678998, 0], [-67854, -57], [0, -3]], \"outputs\": [[5], [2], [8], [0], [-1], [-1], [0], [3], [0], [-1], [-1], [-1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16071",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Halting Problem\n\nA unique law is enforced in the R... | code | {
"ground_truth": "{\"inputs\": [\"2 0\\n5 1 2 1 1\\n10 1 3 2 2\", \"2 0\\n5 1 2 1 1\\n10 1 3 2 0\", \"1 0\\n0 0 2 1 2\\n10 1 3 2 0\", \"2 0\\n5 1 2 1 2\\n10 1 3 2 1\", \"0 3\\n0 -2 1 1 2\\n5 0 5 6 0\", \"2 -1\\n0 0 3 1 1\\n13 1 3 2 0\", \"2 0\\n0 1 2 1 1\\n10 1 3 2 0\", \"2 0\\n0 0 2 1 1\\n10 1 3 2 0\", \"2 0\\n0 0 ... | none | {
"id": "p00984 Halting Problem",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A: Information Search\n\nproblem\n\nThe posting list... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2 4 9\\n1 3 4 7\", \"4 4\\n1 2 5 9\\n1 3 4 7\", \"4 4\\n1 2 5 9\\n2 3 4 7\", \"4 4\\n1 2 4 9\\n1 3 4 14\", \"4 4\\n1 2 4 9\\n0 3 4 7\", \"4 4\\n1 2 5 9\\n0 3 4 7\", \"4 4\\n1 3 5 9\\n0 3 4 7\", \"4 4\\n1 2 5 9\\n1 2 4 7\", \"4 4\\n1 2 5 9\\n2 3 4 13\", \"4 4\\n1 3 5 9\\n0 3 ... | none | {
"id": "p02030 Information Search",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Reyaan has given you the following problem to solve:... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4 4\\n3 1 0 2\\n4 5\\n1 2 3 4\\n2 2\\n1 1\\n1 3\\n2\\n\"], \"outputs\": [\"0\\n500\\n1\\n9\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-21995",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Find the intersection of two sets $A = \\\\{a_0, a_1... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 5 8\\n5\\n2 3 5 9 11\", \"4\\n1 2 5 8\\n5\\n4 3 5 9 11\", \"4\\n1 2 5 8\\n9\\n2 3 5 9 11\", \"4\\n1 2 9 8\\n5\\n4 3 5 9 11\", \"4\\n1 2 5 8\\n9\\n1 3 5 9 11\", \"4\\n1 2 9 8\\n7\\n2 3 5 9 11\", \"4\\n1 2 2 8\\n9\\n1 3 5 9 11\", \"4\\n1 3 9 8\\n7\\n2 3 5 9 11\", \"4\\n0 2 5 8... | none | {
"id": "p02464 Set Intersection",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are some animals in a garden. Each of them is ... | code | {
"ground_truth": "{\"inputs\": [\"1 2\", \"3 8\", \"2 100\", \"2 2\", \"6 12\", \"6 8\", \"1 100\", \"3 2\", \"1 110\", \"3 1\", \"6 3\", \"1 111\", \"5 1\", \"3 3\", \"1 101\", \"5 2\", \"4 3\", \"2 111\", \"5 3\", \"6 4\", \"2 101\", \"8 3\", \"6 6\", \"4 101\", \"8 2\", \"6 2\", \"5 101\", \"8 0\", \"4 2\", \"5 1... | none | {
"id": "p02640 AtCoder Beginner Contest 170 - Crane and Turtle",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two positive integers $n$ and $k$. Pri... | code | {
"ground_truth": "{\"inputs\": [\"6\\n3 7\\n4 12\\n2 1000000000\\n7 97\\n1000000000 1000000000\\n2 1\\n\", \"7\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n\", \"1\\n841 4832526\\n\", \"7\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n2 1\\n\", \"1\\n841 4832526\\n\", \"1\\n870 4832526\\n\", \"6\\n2 7\\n4 12\\n2 1000000000\\n... | EASY | {
"id": "taco-train-23608",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given several queries. In the i-th query you... | code | {
"ground_truth": "{\"inputs\": [\"1\\n12\\n\", \"2\\n6\\n8\\n\", \"3\\n1\\n2\\n3\\n\", \"6\\n1\\n2\\n3\\n5\\n7\\n11\\n\", \"3\\n4\\n6\\n9\\n\", \"20\\n8\\n13\\n20\\n12\\n9\\n16\\n4\\n19\\n7\\n15\\n10\\n6\\n14\\n11\\n3\\n2\\n5\\n17\\n18\\n1\\n\", \"100\\n611\\n513\\n544\\n463\\n38\\n778\\n347\\n317\\n848\\n664\\n382\... | EASY | {
"id": "taco-train-12577",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string consisting of some numbers, not separa... | code | {
"ground_truth": "{\"fn_name\": \"missingNumber\", \"inputs\": [\"2\\r\\n\\r\\n9899100102\\r\\n\\r\\n1112141519\"], \"outputs\": [\"101\\n-1\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4031",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Piegirl got bored with binary, decimal and other int... | code | {
"ground_truth": "{\"inputs\": [\"1000\\n111\\n\", \"00100\\n11\\n\", \"110\\n101\\n\", \"0\\n0\\n\", \"1\\n10\\n\", \"11\\n10\\n\", \"00111\\n10100\\n\", \"00\\n1\\n\", \"01\\n010\\n\", \"111\\n00\\n\", \"1100\\n11\\n\", \"0110\\n001\\n\", \"1111\\n0110\\n\", \"01010\\n0011\\n\", \"0\\n1\\n\", \"1\\n0\\n\", \"1\\n1... | MEDIUM_HARD | {
"id": "taco-train-22641",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Introduction and Warm-up (Highly recommended)\n\n# ... | code | {
"ground_truth": "{\"fn_name\": \"nth_smallest\", \"inputs\": [[[3, 1, 2], 2], [[15, 20, 7, 10, 4, 3], 3], [[-5, -1, -6, -18], 4], [[-102, -16, -1, -2, -367, -9], 5], [[2, 169, 13, -5, 0, -1], 4]], \"outputs\": [[2], [7], [-1], [-2], [2]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-25427",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Vietnamese],\n[Bengali],... | code | {
"ground_truth": "{\"inputs\": [\"3\\n5 1\\n1 0 0 0 0\\n5\\n5 1\\n1 0 0 0 2\\n4\\n5 2\\n2 0 0 0 1\\n3 1\", \"3\\n5 1\\n1 0 0 0 0\\n5\\n5 1\\n1 0 0 0 2\\n4\\n5 2\\n2 0 0 0 1\\n3 1\", \"1\\n6 3\\n1 0 2 0 0 1\\n4 5 1\", \"2\\n6 4\\n2 0 1 0 2 0\\n6 3 1 5\\n5 4\\n0 0 2 1 2\\n5 3 2 4\\n\", \"3\\n3 3\\n1 0 2\\n2 3 1\\n4 4\... | MEDIUM_HARD | {
"id": "taco-test-156",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This is an easier version of the problem H without m... | code | {
"ground_truth": "{\"inputs\": [\"4 5 0\\nBBRR\\nRBBR\\nBBBBB\\nRRRRR\\n\", \"4 4 0\\nBRBR\\nBRBR\\nRRBB\\nRBBB\\n\", \"1 2 0\\nB\\nR\\nBB\\nRR\\n\", \"1 1 0\\nB\\nR\\nB\\nR\\n\", \"1 100 0\\nR\\nR\\nBRBBBRBRBRBBRBBRRBBBBBBBRBRBRBBBBBRBBRBRBBBBRBRRRRRRBRRBRRBRBBRRBBRRRBBBRRRRBRBRBBBRRRBBBRRRBRBBBBRR\\nBBRBBBRBBRBRBR... | rating_>1900 | {
"id": "1368_H1. Breadboard Capacity (easy version)",
"rating": 3300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Emuskald is an innovative musician and always tries ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\nL T 1 1\\nT R 3 1\\nR B 3 3\\nB L 1 3\\nL R 2 2\\nT B 2 2\\n\", \"3 4\\nL T 1 3\\nL B 2 2\\nL B 3 3\\nT R 1 2\\nT B 2 1\\nT R 4 1\\nB R 4 3\\n\", \"4 8\\nL T 1 1\\nL B 2 1\\nR T 1 2\\nR B 2 2\\nL T 3 3\\nB R 3 3\\nR T 4 4\\nT B 5 4\\nT B 6 5\\nT B 7 6\\nT B 8 7\\nB L 8 4\\n\",... | rating_>1900 | {
"id": "269_E. String Theory",
"rating": 3100,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ivan recently bought a detective book. The book is s... | code | {
"ground_truth": "{\"inputs\": [\"9\\n1 3 3 6 7 6 8 8 9\\n\", \"1\\n1\\n\", \"10\\n1 3 4 5 5 6 7 8 9 10\\n\", \"10\\n4 9 4 10 6 8 9 8 9 10\\n\", \"15\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\\n\", \"17\\n9 4 3 6 7 6 8 8 9 10 11 12 13 14 15 16 17\\n\", \"13\\n1 2 3 4 5 6 7 8 9 10 11 12 13\\n\", \"12\\n1 2 3 4 5 6 7 8 9 ... | EASY | {
"id": "taco-train-23237",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N cells arranged in a row, numbered 1, 2, ... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n1 1\\n3 4\\n\", \"5 2\\n3 3\\n5 5\\n\", \"5 1\\n1 2\\n\", \"60 3\\n5 8\\n1 3\\n10 15\\n\", \"4 1\\n2 2\\n\", \"6 2\\n4 4\\n5 5\\n\", \"5 2\\n2 2\\n5 5\\n\", \"6 5\\n1 1\\n2 2\\n6 6\\n5 5\\n4 4\\n\", \"7 3\\n5 5\\n6 6\\n2 2\\n\", \"7 5\\n2 2\\n7 7\\n5 5\\n3 3\\n6 6\\n\", \"3 1\... | MEDIUM | {
"id": "taco-train-23365",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Ken loves ken-ken-pa (Japanese version of hopscotch)... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2\\n2 3\\n3 4\\n4 1\\n1 3\", \"6 8\\n1 2\\n2 3\\n3 4\\n4 5\\n5 1\\n1 4\\n1 5\\n4 6\\n1 6\", \"3 3\\n1 2\\n2 3\\n3 1\\n1 2\", \"2 0\\n1 2\", \"4 4\\n1 3\\n2 3\\n3 4\\n4 1\\n1 3\", \"6 8\\n1 4\\n2 3\\n3 4\\n4 5\\n5 1\\n1 4\\n1 5\\n4 6\\n1 6\", \"3 3\\n1 2\\n2 3\\n2 1\\n1 2\", ... | none | {
"id": "p02991 AtCoder Beginner Contest 132 - Hopscotch Addict",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a non-negative integer n, count all numbers wit... | code | {
"ground_truth": "{\"fn_name\": \"countNumbersWithUniqueDigits\", \"inputs\": [[2]], \"outputs\": [91]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-17563",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a chessboard of size n by n. The square in ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3\\n000\\n111\\n4\\n1111\\n1111\\n3\\n010\\n010\\n5\\n11001\\n00000\\n\", \"1\\n20\\n01001100111111000100\\n00101100011010001110\\n\", \"4\\n3\\n000\\n111\\n4\\n0111\\n1111\\n3\\n010\\n010\\n5\\n11001\\n00000\\n\", \"4\\n3\\n000\\n111\\n4\\n0011\\n1111\\n3\\n010\\n010\\n5\\n1100... | rating_<=1200 | {
"id": "1549_B. Gregor and the Pawn Game",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Rhymes are complicated. The extent to which one word... | code | {
"ground_truth": "{\"inputs\": [\"4\\nspaghetti\\nalready\\nconfetti\\nserengeti\\n\", \"8\\nits\\nnot\\nimpossible\\ncuz\\ni\\nknow\\nits\\npossible\\n\"], \"outputs\": [\"4\\n\", \"0\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4062",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The chef is trying to decode some pattern problems, ... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"1\", \"2\", \"3\", \"4\"]], \"outputs\": [[\"1\", \"12\", \"3\", \"123\", \"45\", \"6\", \"1234\", \"567\", \"89\", \"10\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-3863",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Suppose you are given a sequence S of k pairs of int... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 1\\n3 3\\n5 5\\n4 2\\n2 4\\n\", \"4\\n2 4\\n2 3\\n2 2\\n1 1\\n\", \"10\\n1 2\\n1 10\\n4 5\\n4 8\\n1 4\\n5 9\\n3 7\\n2 3\\n5 6\\n2 1\\n\", \"10\\n965 8\\n89 5\\n711 10\\n689 3\\n69 7\\n273 6\\n674 1\\n733 4\\n186 9\\n114 2\\n\", \"10\\n28 9\\n19 3\\n47 5\\n52 10\\n75 8\\n99 1\\... | rating_>1900 | {
"id": "1051_G. Distinctification",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The programming competition season has already start... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 1 2\", \"3\\n1 0 1\", \"3\\n1 3 1\", \"3\\n2 0 2\", \"1\\n179\", \"10\\n0 0 5 9 9 3 0 0 0 10\", \"3\\n3 2 3\", \"1\\n0\", \"2\\n0 0\", \"10\\n0 0 0 0 0 0 0 0 0 0\", \"1\\n1\", \"1\\n2\", \"1\\n3\", \"1\\n10000\", \"2\\n10000 10000\", \"3\\n2 2 2\", \"10\\n3 3 3 2 2 2 2 2 2 3... | rating_<=1200 | {
"id": "731B",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "I need to save some money to buy a gift. I think I ca... | code | {
"ground_truth": "{\"fn_name\": \"finance\", \"inputs\": [[5], [6], [8], [15], [100], [365], [730], [999], [2000], [4000], [5000]], \"outputs\": [[105], [168], [360], [2040], [515100], [24513765], [195308580], [499999500], [4006002000], [32024004000], [62537505000]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2469",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Problem statement\n\nCards with ranks of $ 2 $ and $... | code | {
"ground_truth": "{\"inputs\": [\"1\", \"-1\", \"2\", \"4\", \"8\", \"32\", \"16\", \"64\", \"128\", \"256\", \"-2\", \"-4\", \"-5\", \"-8\", \"-7\", \"-10\", \"-11\", \"-15\", \"-26\", \"-49\", \"-36\", \"-58\", \"-75\", \"-62\", \"-14\", \"-13\", \"-9\", \"-12\", \"-3\", \"-6\", \"6\", \"3\", \"-16\", \"-24\", \"-... | none | {
"id": "p01869 28",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A professor invented Cookie Breeding Machine for his... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 1\\n4 108\\n1 10\", \"3\\n3 2\\n4 108\\n1 10\", \"3\\n3 0\\n4 108\\n1 10\", \"3\\n3 1\\n4 98\\n1 10\", \"3\\n1 1\\n4 108\\n1 10\", \"3\\n3 1\\n4 108\\n1 2\", \"3\\n3 1\\n2 98\\n1 10\", \"3\\n3 1\\n4 50\\n1 2\", \"3\\n3 2\\n2 98\\n1 10\", \"3\\n3 1\\n4 75\\n1 2\", \"3\\n3 2\\n2... | none | {
"id": "p03977 Kyoto University Programming Contest 2016 - Cookie Breeding Machine",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Natasha is going to fly to Mars. She needs to build ... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\nxyabd\", \"7 4\\nproblem\", \"2 2\\nab\", \"12 1\\nabaabbaaabbb\", \"50 13\\nqwertyuiopasdfghjklzxcvbnmaaaaaaaaaaaaaaaaaaaaaaaa\", \"50 14\\nqwertyuiopasdfghjklzxcvbnmaaaaaaaaaaaaaaaaaaaaaaaa\", \"1 1\\na\", \"50 1\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\", \"50 2... | rating_<=1200 | {
"id": "1011A",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Xenia the programmer has a tree consisting of *n* no... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n1 2\\n2 3\\n2 4\\n4 5\\n2 1\\n2 5\\n1 2\\n2 5\"], \"outputs\": [\"0\\n3\\n2\"]}",
"style": "rule"
} | rating_>1900 | {
"id": "342E",
"rating": 2400,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Old Farmer Ranjan works on the farm of landlord Mitt... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 3\\n1 2 3\\n3 3 1\\n4 1 6\\n3 3\\n3 7 4\\n1 9 6\\n1 7 7\"], \"outputs\": [\"20\\n34\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-10099",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are N bags, each containing two white balls. T... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 1\\n1000000000 1000000000\", \"3\\n1 2\\n3 4\\n5 6\", \"3\\n1010 10\\n1000 1\\n20 1020\", \"2\\n1 1\\n1000000000 1000000100\", \"3\\n1 2\\n3 4\\n3 6\", \"3\\n1010 10\\n1000 1\\n20 294\", \"2\\n1 1\\n1000000000 1000100100\", \"3\\n1010 10\\n1000 1\\n26 294\", \"3\\n1 2\\n3 4\\n... | none | {
"id": "p03735 AtCoder Regular Contest 073 - Ball Coloring",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After a wonderful evening in the restaurant the time... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1 1 1 1\\n3 2 5 4 5\\n1 1 5 5 10000\\n1 4 2 5 2\\n\", \"10\\n1 1 100000 100000 73712\\n1 1 100000 100000 193808\\n1 1 100000 100000 69429\\n1 1 100000 100000 162666\\n1 1 100000 100000 94759\\n1 1 100000 100000 21899\\n1 1 100000 100000 76524\\n1 1 100000 100000 182233\\n1 1 1... | rating_>1900 | {
"id": "810_E. Find a car",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Task\n You are given a car odometer which displays ... | code | {
"ground_truth": "{\"fn_name\": \"faulty_odometer\", \"inputs\": [[13], [15], [55], [2005], [1500], [999999], [165826622]], \"outputs\": [[12], [13], [40], [1462], [1053], [531440], [69517865]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-18442",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a sequence $a$ consisting of $n$ integ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4 1\\n2 3 5 4\\n5 6\\n1 1 3 4 4\\n1 10\\n2\\n2 10\\n11 9\\n2 10\\n12 11\\n5 18\\n81 324 218 413 324\\n\", \"3\\n5 15\\n5 15 8 10 10\\n6 5\\n2 3 15 4 15 7\\n8 7\\n12 14 9 7 15 14 8 3\\n\", \"3\\n5 15\\n5 15 8 10 10\\n6 5\\n2 3 15 4 15 7\\n8 7\\n12 14 9 7 15 14 8 3\\n\", \"3\\n5 1... | MEDIUM_HARD | {
"id": "taco-train-25286",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Alice's school is planning to take some students fro... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"10 10 5 3\", \"10 4 6 4\", \"3 2 2 1\"], [\"3\", \"10 10 5 3\", \"10 4 6 4\", \"3 2 2 1\"], [\"1\", \"5 3 3 1\"], [\"4\", \"7 4 5 2\", \"9 5 6 2\", \"5 2 2 1\", \"10 5 5 2\"], [\"3\", \"6 4 4 2\", \"8 5 5 3\", \"4 3 3 1\"], [\"2\", \"10 5 6 2\", \"5 3 4 1\"], [\"5\", \"6 4 4... | MEDIUM_HARD | {
"id": "taco-test-141",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "ABC Gene\n\nThere is a gene sequence represented by ... | code | {
"ground_truth": "{\"inputs\": [\"ABC\", \"BAC\", \"ACB\", \"CAB\", \"CBA\", \"ACA\", \"BCA\", \"BAB\", \"ABA\", \"BAA\", \"AAB\", \"BBA\", \"AAA\", \"ABB\", \"BBB\", \"CBB\", \"CCB\", \"BCC\", \"CBC\", \"ACC\", \"CAC\", \"BBC\", \"CCA\", \"CCC\", \"CAA\", \"BCB\", \"AAC\", \"ACB\", \"BBC\", \"BAC\", \"BAB\", \"CAB\... | none | {
"id": "p01811 ABC Gene",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Write a function that replaces 'two', 'too' and 'to' ... | code | {
"ground_truth": "{\"fn_name\": \"textin\", \"inputs\": [[\"I love to text\"], [\"see you tomorrow\"], [\"look at that octopus\"], [\"BECAUSE I WANT TO\"]], \"outputs\": [[\"I love 2 text\"], [\"see you 2morrow\"], [\"look at that oc2pus\"], [\"BECAUSE I WANT 2\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24100",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Quite recently a creative student Lesha had a lectur... | code | {
"ground_truth": "{\"inputs\": [\"3 3 2\\n\", \"3 3 3\\n\", \"4 3 2\\n\", \"4 5 2\\n\", \"28 6 3\\n\", \"5 100 1\\n\", \"50 6 3\\n\", \"10 13 6\\n\", \"20 16 14\\n\", \"1 10 1\\n\", \"8 11 4\\n\", \"16 5 4\\n\", \"5 26 17\\n\", \"35 47 42\\n\", \"11 6 2\\n\", \"54 60 16\\n\", \"47 5 1\\n\", \"70 6 1\\n\", \"40 77 77... | MEDIUM_HARD | {
"id": "taco-train-17893",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Mandarin chinese\n, Russian and Vietnamese as well.\... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"5\", \"2 30 2 4 3\"]], \"outputs\": [[\"6\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-5053",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "It's Christmas time! PolandBall and his friends will... | code | {
"ground_truth": "{\"inputs\": [\"5 2\\n3 4 1 5 2\", \"10 1\\n2 3 4 5 6 7 8 9 10 1\", \"5 4\\n3 1 4 5 2\", \"3 0\\n2 3 1\", \"4 3\\n2 3 4 1\", \"2 0\\n2 1\", \"2 1\\n2 1\", \"2 2\\n2 1\", \"3 0\\n2 3 1\", \"3 1\\n2 3 1\", \"3 2\\n2 3 1\", \"3 3\\n2 3 1\", \"5 1\\n2 3 4 5 1\", \"6 3\\n2 3 1 5 6 4\", \"9 5\\n3 4 5 2 7... | rating_>1900 | {
"id": "755F",
"rating": 2600,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Girl Lena likes it when everything is in order, and ... | code | {
"ground_truth": "{\"inputs\": [\"0 0\\n2\\n1 1\\n-1 1\\n\", \"1 1\\n3\\n4 3\\n3 4\\n0 0\\n\", \"-21 -47\\n24\\n-37 1\\n-65 8\\n-74 74\\n58 -7\\n81 -31\\n-77 90\\n-51 10\\n-42 -37\\n-14 -17\\n-26 -71\\n62 45\\n56 43\\n-75 -73\\n-33 68\\n39 10\\n-65 -93\\n61 -93\\n30 69\\n-28 -53\\n5 24\\n93 38\\n-45 -14\\n3 -86\\n63... | rating_>1900 | {
"id": "8_C. Looking for Order",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef stumbled upon B black nodes and W white nodes a... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n0 2\\n1 2\\n\"], \"outputs\": [\"WB\\n2 1\\n-1\\nWBW\\n1 2\\n2 3\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-9997",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Write a program which prints $n$-th fibonacci number... | code | {
"ground_truth": "{\"inputs\": [\"3\", \"1\", \"2\", \"4\", \"8\", \"6\", \"15\", \"7\", \"24\", \"14\", \"5\", \"13\", \"11\", \"22\", \"9\", \"29\", \"12\", \"10\", \"41\", \"16\", \"30\", \"21\", \"28\", \"17\", \"34\", \"18\", \"38\", \"31\", \"44\", \"36\", \"32\", \"33\", \"23\", \"19\", \"27\", \"20\", \"37\"... | none | {
"id": "p02233 Fibonacci Number",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You've just entered a programming contest and have a ... | code | {
"ground_truth": "{\"fn_name\": \"code\", \"inputs\": [[9, 8], [123, 456], [3, 2], [1, 1], [12, 8], [200, 100], [100, 200]], \"outputs\": [[1], [1419], [13], [16], [88], [1698], [1698]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2428",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in mandarin chinese, russia... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n0 1\\n1 2\\n0 3\\n1 5 8 7\\n1\\n2\\n3\", \"4 3\\n0 1\\n1 2\\n0 3\\n1 5 8 7\\n1\\n2\\n3\", \"5 3\\n0 1\\n1 2\\n0 3\\n3 4\\n2 5 8 7 1\\n1\\n2\\n3\", \"7 2\\n0 1\\n1 2\\n0 3\\n3 4\\n4 5\\n5 6\\n1 2 3 4 5 6 7\\n2\\n3\", \"3 4\\n0 1\\n1 2\\n2 3 4\\n1\\n2\\n3\\n4\", \"5 2\\n0 1\\n1 ... | VERY_HARD | {
"id": "taco-test-903",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "One Sunday Petr went to a bookshop and bought a new ... | code | {
"ground_truth": "{\"inputs\": [\"100\\n15 20 20 15 10 30 45\", \"2\\n1 0 0 0 0 0 0\", \"100\\n100 200 100 200 300 400 500\", \"3\\n1 1 1 1 1 1 1\", \"1\\n1 1 1 1 1 1 1\", \"20\\n5 3 7 2 1 6 4\", \"10\\n5 1 1 1 1 1 5\", \"50\\n10 1 10 1 10 1 10\", \"77\\n11 11 11 11 11 11 10\", \"1\\n1000 1000 1000 1000 1000 1000 10... | rating_<=1200 | {
"id": "139A",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Once upon a time a child got a test consisting of mu... | code | {
"ground_truth": "{\"inputs\": [\"A.VFleaKing_is_the_author_of_this_problem\\nB.Picks_is_the_author_of_this_problem\\nC.Picking_is_the_author_of_this_problem\\nD.Ftiasch_is_cute\", \"A.ab\\nB.abcde\\nC.ab\\nD.abc\", \"A.c\\nB.cc\\nC.c\\nD.c\", \"A.He_nan_de_yang_guang_zhao_yao_zhe_wo_men_mei_guo_ren_lian_shang_dou_x... | rating_1201-1400 | {
"id": "437A",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Mandarin], [Bengali], an... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n100 100 100\\n3\\n2 1 3\\n4\\n30 1 30 30\\n\", \"2\\n4\\n1 1 1 1\\n4\\n4 4 4 4\\n\", \"3\\n3\\n2 2 2\\n4\\n1 1 2 2\\n5\\n1 1 2 2 2\\n\", \"5\\n1\\n100\\n2\\n0 0\\n3\\n100 100 0\\n4\\n25 25 25 25\\n5\\n0 0 0 0 100\\n\", \"4\\n2\\n100 0\\n2\\n100 100\\n2\\n0 0\\n2\\n50 50\\n\"... | MEDIUM | {
"id": "taco-test-78",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given two singly linked lists of size N and M, write ... | code | {
"ground_truth": "{\"inputs\": [\"LinkList1 = 3->6->9->common\\nLinkList2 = 10->common\\ncommon = 15->30->NULL\", \"Linked List 1 = 4->1->common\\nLinked List 2 = 5->6->1->common\\ncommon = 8->4->5->NULL\"], \"outputs\": [\"15\", \"8\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-8421",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vladimir would like to prepare a present for his wif... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 3\\n5 0\\n1 4\\n2 2\\n\\n5 3\\n5 2\\n4 2\\n3 1\\n\", \"1\\n7 7\\n875211518 78149272\\n372527826 28528254\\n777595365 608227558\\n861586350 722262664\\n996903444 323312570\\n299704754 233926739\\n778198166 197484491\\n\", \"1\\n7 7\\n10122721 121764855\\n397678435 423586551\\n2... | rating_>1900 | {
"id": "1379_C. Choosing flowers",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have n students under your control and you have ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n7\\n4 2 4 1 4 3 4\\n5\\n2 1 5 4 3\\n1\\n1\\n4\\n1 1 1 3\\n\", \"5\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"1\\n9\\n1 2 2 3 3 9 9 9 9\\n\", \"4\\n7\\n4 2 4 1 4 3 4\\n5\\n2 1 5 1 3\\n1\\n1\\n4\\n1 1 1 3\\n\", \"4\\n7\\n4 2 4 1 4 3 4\\n5\\n2 1 2 1 3\\n1\\n1\\n4\\n1 1 1 1\\n\... | rating_<=1200 | {
"id": "1335_C. Two Teams Composing",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Alice plays the following game, loosely based on the ... | code | {
"ground_truth": "{\"fn_name\": \"new21Game\", \"inputs\": [[10, 1, 10]], \"outputs\": [1.0]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-9693",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Cars! Where do they come from? Where do they go? Nob... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 3\\n6 2 3\\n10 2 3\\n16 3 4\\n\", \"6\\n4 1 5\\n9 8 7\\n13 3 5\\n21 5 7\\n30 9 1\\n2019 20 0\\n\"], \"outputs\": [\"0.4\\n0\\n0.2\\n0.171428571429\\n0.228571428571\\n\", \"0.166666666667\\n0.466666666667\\n0.150000000000\\n0.108333333333\\n0.091666666667\\n0.016666666667\\n0... | HARD | {
"id": "taco-train-3838",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Taro is an elementary school student and has graffit... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\n1 2 3 4\\noooo\\noooo\\noooo\\noooo\", \"3\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\no..\\n.o.\\n..o\", \"3\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\no.o\\n...\\n.o.\", \"4\\n1 2 3 4\\n1 2 3 4\... | none | {
"id": "p01543 marukaite",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Doremy's new city is under construction! The city ca... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n2 2 3 1\\n6\\n5 2 3 1 5 2\\n12\\n7 2 4 9 1 4 6 3 7 4 2 3\\n4\\n1000000 1000000 1000000 1000000\\n\"], \"outputs\": [\"3\\n9\\n35\\n2\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-18909",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have obtained the Izua Japanese dictionary, whic... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n1 2\\n2 3\\n4\\n2\\n2 3\\n2 4\\n0\", \"3\\n2\\n1 2\\n2 1\\n4\\n2\\n2 3\\n2 4\\n0\", \"3\\n2\\n1 2\\n2 1\\n4\\n2\\n2 2\\n2 4\\n0\", \"3\\n2\\n1 2\\n3 1\\n4\\n2\\n2 2\\n2 4\\n0\", \"3\\n2\\n1 2\\n3 1\\n4\\n2\\n2 2\\n1 4\\n0\", \"3\\n2\\n1 2\\n2 1\\n4\\n2\\n2 2\\n4 4\\n0\", \"3... | none | {
"id": "p00266 Izua Dictionary",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array A[] of size n. The task is to find the... | code | {
"ground_truth": "{\"fn_name\": \"largest\", \"inputs\": [\"n = 5\\r\\nA[] = {1, 8, 7, 56, 90}\", \"n = 7\\r\\nA[] = {1, 2, 0, 3, 2, 4, 5}\"], \"outputs\": [\"90\", \"5\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4591",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The only difference with E1 is the question of the p... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\\n8 2\\n5 3\\n4 7\\n2 5\\n1 6\\n3 6\\n7 2\\n1 7\\n6 8\\n\\n8 4\\n6 5 7 3\\n4 7\\n2 5\\n1 6\\n3 6\\n7 2\\n1 7\\n6 8\\n\\n3 1\\n2\\n1 2\\n2 3\\n\\n3 2\\n2 3\\n3 1\\n1 2\\n\", \"1\\n\\n5 2\\n3 4\\n1 2\\n1 3\\n2 4\\n4 5\\n\", \"2\\n\\n7 3\\n3 4 5\\n1 2\\n1 3\\n1 4\\n2 5\\n3 6\\n4 7... | HARD | {
"id": "taco-test-60",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Amr lives in Lala Land. Lala Land is a very beautifu... | code | {
"ground_truth": "{\"inputs\": [\"2\\n-1 5\\n1 5\\n\", \"3\\n1 9\\n3 5\\n7 10\\n\", \"3\\n-2 2\\n1 4\\n-1 3\\n\", \"3\\n-94146 4473\\n28707 99079\\n-4153 8857\\n\", \"2\\n-100000 100000\\n100000 99999\\n\", \"1\\n1 1\\n\", \"18\\n-18697 44186\\n56333 51938\\n-75688 49735\\n77762 14039\\n-43996 81060\\n69700 49107\\n... | rating_<=1200 | {
"id": "558_A. Lala Land and Apple Trees",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "We call an array almost increasing if we can erase n... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 4 3 2 1\", \"5\\n1 2 8 9 5\", \"15\\n1013 8003 4947 359 17360 21594 25180 25764 22357 22357 16649 12544 23382 10579 25937\", \"8\\n1 1 1 1 1 1 1 1\", \"7\\n100 105 108 108 107 108 109\", \"7\\n1 5 6 2 3 4 5\", \"5\\n3 4 1 2 5\", \"8\\n53 8 4 6 4 3 8 5\", \"6\\n13 7 4 3 1 4\", ... | rating_>1900 | {
"id": "946G",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.