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": "Welcome, ladies and gentlemen, to Aperture Science. ... | code | {
"ground_truth": "{\"inputs\": [\"3\\nYYY\\nNYY\\nYNY\\n\", \"2\\nYN\\nYN\\n\"], \"outputs\": [\"2\\n1 2 3\\n3 1 2\\n\", \"0\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-7610",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "There are three horizontal wheels of letters stacked... | code | {
"ground_truth": "{\"inputs\": [\"ABC\\nABC\\nABC\\n\", \"ABBBAAAA\\nBBBCCCBB\\nCCCCAAAC\\n\", \"AABB\\nBBCC\\nACAC\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"-1\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-12256",
"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": "Raju loves playing with maths.He is very fond of fac... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 \\n2\\n3\\n4\\n\\nSAMPLE\", \"10\\n15\\n16\\n17\\n18\\n19\\n20\\n21\\n22\\n23\\n24\", \"10\\n15\\n16\\n17\\n18\\n19\\n5\\n21\\n22\\n23\\n24\", \"4\\n1 \\n1\\n3\\n4\\n\\nSAMPLE\", \"10\\n15\\n16\\n17\\n32\\n19\\n5\\n21\\n22\\n23\\n24\", \"4\\n2 \\n1\\n3\\n4\\n\\nSAMPLE\", \"4\\... | none | {
"id": "fun-with-factorial",
"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": "The $String$ Family gave birth to a new $Tripartite$... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"2\", \"2 3\", \"1\"]], \"outputs\": [[\"7\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-17027",
"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": "group()\n\nA group() expression returns one or more ... | code | {
"ground_truth": "{\"inputs\": [\"..12345678910111213141516171820212223\\n\"], \"outputs\": [\"1\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9474",
"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": "Daylight Saving Time (DST) is the practice of advanc... | code | {
"ground_truth": "{\"inputs\": [\"1\\nF 60 13 20\\n\", \"7\\nB 45 9 0\\nF 20 23 50\\nB 30 0 5\\nB 60 2 0\\nF 0 12 0\\nF 15 17 45\\nB 0 0 0\\n\"], \"outputs\": [\"14 20\\n\", \"8 15\\n0 10\\n23 35\\n1 0\\n12 0\\n18 0\\n0 0\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-4715",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
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": "Petya studies in a school and he adores Maths. His c... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n3\", \"2\\n10\\n3\", \"1\\n1\\n1\", \"1\\n2\\n1\", \"10\\n10\\n10\", \"5\\n1\\n3\", \"3\\n1\\n5\", \"6\\n7\\n1\", \"1\\n8\\n3\", \"9\\n7\\n2\", \"1\\n1\\n10\", \"9\\n1\\n1\", \"10\\n5\\n6\", \"8\\n9\\n7\", \"4\\n2\\n10\", \"2\\n8\\n3\", \"3\\n5\\n7\", \"1\\n10\\n1\", \"2\\n2... | rating_<=1200 | {
"id": "479A",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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 long time ago in a galaxy, far, far away, there we... | code | {
"ground_truth": "{\"inputs\": [\"3\\n-20 -20 -24\\n100 100 100 30\\n10 8 3 5\\n-70 -70 -84 5\\n4\\n0 47 84\\n-23 41 42 8\\n45 -10 14 19\\n-5 28 47 12\\n-27 68 34 14\\n0\", \"3\\n-20 -20 -24\\n100 100 100 30\\n10 8 3 5\\n-70 -70 -84 5\\n4\\n0 47 74\\n-23 41 42 8\\n45 -10 14 19\\n-5 28 47 12\\n-27 68 34 14\\n0\", \"3... | none | {
"id": "p00868 Spherical Mirrors",
"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 that a mango weighs X kilograms and a ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 5 11\\n4 10 20\\n1 1 1\\n6 40 90\\n\"], \"outputs\": [\"3\\n2\\n0\\n8\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15473",
"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 string $s$ consisting of $n$ lowerca... | code | {
"ground_truth": "{\"inputs\": [\"7\\nabacaba\\n\", \"6\\naabcfg\\n\", \"12\\nparapapapaaa\\n\", \"4\\npara\\n\", \"5\\nbadec\\n\", \"7\\nbcbcbdc\\n\", \"7\\nstoopid\\n\", \"2\\nba\\n\", \"7\\nbaaaccb\\n\", \"6\\nbabcdc\\n\", \"3\\nacb\\n\", \"3\\nbac\\n\", \"2\\naa\\n\", \"7\\nyxyzyyx\\n\", \"3\\naba\\n\", \"3\\naa... | EASY | {
"id": "taco-train-20818",
"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 N positive integers a_1, a_2, ..., a_N... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 4 6\\n\", \"5\\n7 46 11 20 11\\n\", \"7\\n994 518 941 851 647 2 581\\n\", \"2\\n3 10\\n\", \"5\\n5 7 8 10 8\\n\", \"2\\n8 5\\n\", \"982\\n43285 7144 60474 3631 15359 6872 32419 91954 79669 11943 6836 29043 89260 44856 59077 3080 14579 36888 15084 97449 80314 95027 57539 14410 ... | EASY | {
"id": "taco-train-22576",
"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": "You have received your birthday gifts — n triples of... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 2 1\\n0 1 2\\n1 2 3\\n\", \"4 3\\n1 2 3\\n1 3 7\\n0 2 5\\n1 0 6\\n3 3 2\\n\", \"1 1\\n1 2 3\\n1 0 1\\n\", \"10 4\\n5608 27153 18367\\n1 15 6\\n14 2 14\\n3 9 1\\n11 10 11\\n11 2 8\\n9 12 14\\n12 4 4\\n12 13 9\\n12 3 13\\n5 10 1\\n\", \"10 4\\n17755 20587 18286\\n2 7 13\\n11 0... | rating_>1900 | {
"id": "1119_H. Triple",
"rating": 3200,
"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 binary tree and a node, print all cousins of ... | code | {
"ground_truth": "{\"inputs\": [\"1\\r\\n / \\\\\\r\\n 2 3\\r\\n / \\\\ / \\\\\\r\\n 4 5 6 7\\r\\n\\r\\nGiven node:5\", \"9\\r\\n /\\r\\n 5\\r\\nGiven node:5\"], \"outputs\": [\"6 7\", \"-1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22347",
"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": "We have an N \\times N square grid.\n\nWe will paint... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4\", \"19\\n100\", \"10\\n0\", \"3\\n2\", \"19\\n110\", \"10\\n-1\", \"3\\n3\", \"10\\n1\", \"3\\n0\", \"10\\n2\", \"3\\n1\", \"10\\n-2\", \"3\\n6\", \"10\\n3\", \"3\\n5\", \"10\\n-4\", \"3\\n-1\", \"10\\n-8\", \"3\\n7\", \"10\\n-13\", \"3\\n-2\", \"10\\n-5\", \"3\\n-3\", \"10\\... | none | {
"id": "p03597 AtCoder Beginner Contest 074 - Bichrome Cells",
"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": "Memory match is a single-player game which employs a... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4\\n6\\n8\\n10\\n52\\n0\", \"2\\n4\\n6\\n8\\n10\\n38\\n0\", \"2\\n4\\n6\\n8\\n4\\n38\\n0\", \"2\\n4\\n0\\n8\\n4\\n38\\n0\", \"2\\n4\\n12\\n8\\n4\\n38\\n0\", \"2\\n4\\n12\\n8\\n2\\n38\\n0\", \"2\\n4\\n12\\n10\\n2\\n38\\n0\", \"2\\n6\\n0\\n1\\n1\\n44\\n-2\", \"2\\n4\\n6\\n16\\n10\... | none | {
"id": "p01258 Memory Match",
"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": "Andrew was very excited to participate in Olympiad o... | code | {
"ground_truth": "{\"inputs\": [\"100\\n60\\n70\\n\", \"410\\n55\\n70\\n\", \"600\\n60\\n70\\n\", \"50\\n60\\n70\\n\", \"420\\n70\\n65\\n\", \"1750\\n45\\n50\\n\", \"100000000\\n31\\n33\\n\", \"99\\n100\\n100\\n\", \"99999998\\n60\\n75\\n\", \"90\\n80\\n89\\n\", \"999\\n66\\n74\\n\", \"420\\n65\\n70\\n\", \"1000\\n6... | MEDIUM | {
"id": "taco-train-3692",
"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": "You’re playing hopscotch! You start at the origin an... | code | {
"ground_truth": "{\"inputs\": [\"2 1 1\\n\", \"7 2 3\\n\"], \"outputs\": [\"2\\n\", \"9\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-15673",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "In the city of Ultima Thule job applicants are often... | code | {
"ground_truth": "{\"inputs\": [\"###.\\n...#\\n###.\\n...#\", \".##.\\n#..#\\n.##.\\n#..#\", \".#.#\\n#.#.\\n.#.#\\n#.#.\", \"##..\\n..##\\n##..\\n..##\", \"#.#.\\n#.#.\\n.#.#\\n.#.#\", \".#.#\\n#.#.\\n#.#.\\n#.#.\", \".#.#\\n#.#.\\n#.#.\\n.#.#\", \"#.#.\\n#.#.\\n#.#.\\n#.#.\", \".#.#\\n.#.#\\n.#.#\\n.#.#\", \"#..#... | rating_<=1200 | {
"id": "287A",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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": "Although Inzane successfully found his beloved bone,... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"5\\n1 2 7 6 7\\n1 5\\n5 3\\n3 4\\n2 4\\n\", \"7\\n38 -29 87 93 39 28 -55\\n1 2\\n2 5\\n3 2\\n2 4\\n1 7\\n7 6\\n\", \"2\\n999999999 1000000000\\n2 1\\n\", \"5\\n-1 -1000000000 -1 -2 -1\\n5 2\\n1 2\\n3 2\\n4 1\\n\", \"3\\n-1000000000 -9999... | rating_1601-1900 | {
"id": "796_C. Bank Hacking",
"rating": 1900,
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Apparently \"Put A Pillow On Your Fridge Day is celeb... | code | {
"ground_truth": "{\"fn_name\": \"pillow\", \"inputs\": [[[\"EvH/KNikBiyxfeyK/miCMj\", \"I/HwjnHlFLlahMOKNadps\"]], [[\"\\\\DjQ\\\\[zv]SpG]Z/[Qm\\\\eLL\", \"amwZArsaGRmibriXBgTRZp\"]], [[\"n\", \"B\"]], [[\"yF[CeAAiNihWEmKxJc/NRMVn\", \"rMeIa\\\\KAfbjuLiTnAQxNw[XB\"]], [[\"inECnBMAA/u\", \"ABAaIUOUx/M\"]]], \"output... | EASY | {
"id": "taco-train-24776",
"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": "Young Mislav loves spending time in nature and, most... | code | {
"ground_truth": "{\"inputs\": [\"5 5\\n3 1 2 1 1\\n\", \"7 5\\n1 5 4 3 2 1 1\\n\", \"5 10\\n3 2 5 4 3\\n\"], \"outputs\": [\"4\\n\", \"3\\n\", \"3\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14406",
"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": "Note: This POTD is a part of Geek Summer Carnival. So... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\\r\\nBundles = \\r\\n1 5\\r\\n2 3\\r\\n1 8\\r\\n3 5\", \"N = 5\\r\\nBundles = \\r\\n7 9 \\r\\n2 8 \\r\\n1 3 \\r\\n10 11 \\r\\n10 16\"], \"outputs\": [\"2\", \"3\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4530",
"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": "There are n pearls in a row. Let's enumerate them wi... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 1\\n\", \"5\\n1 2 3 4 5\\n\", \"7\\n1 2 1 3 1 2 1\\n\", \"9\\n1 2 1 2 1 2 1 2 1\\n\", \"11\\n1 1 2 1 2 1 2 1 2 1 1\\n\", \"1\\n576560149\\n\", \"10\\n460626451 460626451 460626451 460626451 460626451 460626451 460626451 460626451 460626451 460626451\\n\", \"10\\n93367717... | MEDIUM | {
"id": "taco-train-1957",
"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": "Rupsa recently started to intern under Chef. He gave... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n2 2\\n1\\n6\", \"2\\n2\\n2 1\\n1\\n6\", \"2\\n2\\n2 2\\n1\\n8\", \"2\\n2\\n4 2\\n1\\n6\", \"2\\n1\\n2 1\\n1\\n1\", \"2\\n3\\n3 2\\n1\\n8\", \"2\\n3\\n4 2\\n0\\n1\", \"2\\n3\\n4 7\\n0\\n6\", \"2\\n3\\n5 2\\n0\\n2\", \"2\\n4\\n4 9\\n0\\n6\", \"2\\n6\\n4 11\\n0\\n6\", \"2\\n0\\... | none | {
"id": "chefrp",
"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": "Theofanis decided to visit his uncle's farm. There a... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 1 1\\n1 1 2\\n100 50 200\\n56220 47258 14497\\n\", \"1\\n1000000000000000000 500000000000000000 2\\n\", \"1\\n1000000000000000000 483271866988016482 2\\n\", \"4\\n1 1 1\\n1 0 2\\n100 50 200\\n56220 47258 14497\\n\", \"1\\n1000000000000000000 639232692548497767 2\\n\", \"4\\n1 ... | VERY_HARD | {
"id": "taco-train-19736",
"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": "Johnny's younger sister Megan had a birthday recentl... | code | {
"ground_truth": "{\"inputs\": [\"5\\n13 11\\n11 1\\n3 5\\n17 1\\n7 29\\n\", \"1\\n1 1\\n\", \"5\\n13 11\\n11 1\\n3 5\\n17 1\\n9 27\\n\", \"16\\n30 23\\n20 0\\n4 1\\n25 18\\n13 12\\n28 10\\n22 7\\n26 27\\n8 29\\n21 6\\n11 31\\n17 3\\n24 19\\n15 14\\n5 2\\n16 9\\n\", \"12\\n9 11\\n7 5\\n8 11\\n0 0\\n3 4\\n6 5\\n2 10\... | rating_>1900 | {
"id": "1362_F. Johnny and Megan's Necklace",
"rating": 2500,
"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": "**Introduction**\n Little Petya very much likes seque... | code | {
"ground_truth": "{\"fn_name\": \"sort_number\", \"inputs\": [[[1, 2, 3, 4, 5]], [[4, 2, 1, 3, 5]], [[2, 3, 4, 5, 6]], [[2, 2, 2]], [[42]], [[5, 6, 1, 2, 3, 1, 3, 45, 7, 1000000000]], [[1, 1, 1]], [[1]], [[134]]], \"outputs\": [[[1, 1, 2, 3, 4]], [[1, 1, 2, 3, 4]], [[1, 2, 3, 4, 5]], [[1, 2, 2]], [[1]], [[1, 1, 1, 2... | EASY | {
"id": "taco-train-17799",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
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": "In mathematics, a subsequence is a sequence that can... | code | {
"ground_truth": "{\"inputs\": [\"AJKEQSLOBSROFGZ\\nOVGURWZLWVLUXTH\\nOZ\", \"AA\\nA\\nA\", \"PWBJTZPQHA\\nZJMKLWSROQ\\nUQ\", \"QNHRPFYMAAPJDUHBAEXNEEZSTMYHVGQPYKNMVKMBVSVLIYGUVMJHEFLJEPIWFHSLISTGOKRXNMSCXYKMAXBPKCOCNTIRPCUEPHXM\\nRRFCZUGFDRKKMQTOETNELXMEWGOCDHFKIXOPVHHEWTCDNXVFKFKTKNWKEIKTCMHMHDNCLLVQSGKHBCDDYVVVQI... | rating_>1900 | {
"id": "346B",
"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 has an array of N integers. Chef can rearrange ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n1 1 1 1 1\\n3\\n3 3 4\\n\"], \"outputs\": [\"No\\nYes\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-23072",
"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": "Cupid wants to strike maximum houses in Geek Land on ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n / \\\\\\n 2 9\\n / / \\\\\\n 4 5 7\\n / \\\\ / \\\\\\n 8 19 20 11\\n / / \\\\\\n 30 40 50\\ntarget = 9, K = 1\", \"1\\n ... | MEDIUM | {
"id": "taco-train-21969",
"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": "Vova plays a computer game known as Mages and Monste... | code | {
"ground_truth": "{\"inputs\": [\"3 100\\n1 4 9\\n2 19 49\\n2 19 49\\n\", \"10 442006988299\\n2 10 47\\n1 9 83\\n1 15 24\\n2 19 47\\n2 75 99\\n2 85 23\\n2 8 33\\n2 9 82\\n1 86 49\\n2 71 49\\n\", \"2 424978864039\\n2 7 3\\n2 10 8\\n\", \"2 1000000000000\\n1 235726 255577\\n1 959304 206090\\n\", \"3 10\\n1 1 1\\n2 1 1... | VERY_HARD | {
"id": "taco-train-24496",
"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": "You are given $N$ distinct points on the 2-D plane. ... | code | {
"ground_truth": "{\"inputs\": [\"9\\n91 -18\\n13 93\\n73 -34\\n15 2\\n-46 0\\n69 -42\\n-23 -13\\n-87 41\\n38 68\", \"3\\n0 0\\n5 0\\n0 5\", \"3\\n0 0\\n3 0\\n5 0\"], \"outputs\": [\"1049.191683488\", \"53.630341225\", \"31.415926535\"]}",
"style": "rule"
} | none | {
"id": "p02011 Enlarge Circles",
"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": "Read problems statements in [Hindi], [Mandarin Chine... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 3\\n1 2\\n0 1\\n1 0\"], \"outputs\": [\"6\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9409",
"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": "Три брата договорились о встрече. Пронумеруем братье... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\n\", \"2 1\\n\", \"2 3\\n\", \"1 2\\n\", \"1 3\\n\", \"3 2\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"1\\n\", \"3\\n\", \"2\\n\", \"1\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-1091",
"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": "Now after having the event list, all the participant... | code | {
"ground_truth": "{\"inputs\": [\"100\\n921 884 423 93 887 553 723 325 991 129 1 951 554 715 515 903 717 353 945 651 181 997 912 981 778 240 532 569 312 258 843 418 895 130 326 572 215 44 25 108 802 880 985 76 363 322 784 922 675 965 986 948 397 838 218 529 342 394 404 120 467 301 426 598 811 279 84 75 147 857 787 1... | none | {
"id": "dummy3",
"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": "The numbers $1, \\, 2, \\, \\dots, \\, n \\cdot k$ a... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n2 4 3 1 1 4 2 3 2 1 3 4\\n\", \"1 2\\n1 1\\n\", \"3 3\\n3 1 2 3 2 1 2 1 3\\n\", \"2 3\\n2 1 1 1 2 2\\n\", \"48 3\\n8 43 27 32 34 30 31 15 2 10 42 39 6 48 4 24 24 40 20 29 5 36 11 25 23 44 46 41 45 7 3 1 21 35 14 12 28 37 13 26 47 9 35 16 18 22 9 19 8 43 27 32 34 30 5 15 2 10 4... | HARD | {
"id": "taco-train-20304",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "Read problems statements in [Russian].\n\nWe define ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4 3 1000000007\\n1 2 4\\n9 2 1000000009\\n1 3\\n10 3 1000000007\\n2 4 8\\n864197532 5 1876248763\\n1 4019 727439 19640853 864197532\\n\"], \"outputs\": [\"83333334\\n888888897\\n0\\n1828476640\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-10572",
"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": "Dante is engaged in a fight with \"The Savior\". Bef... | code | {
"ground_truth": "{\"inputs\": [\"6 11 6\\n\", \"3 2 7\\n\", \"4 6 15\\n\", \"15 12 26\\n\", \"79 36 2854\\n\", \"11 34 383\\n\", \"16 78 712\\n\", \"76 69 4122\\n\", \"48 65 917\\n\", \"57 52 2634\\n\", \"12 17 15\\n\", \"62 1 501\\n\", \"70 24 1784\\n\", \"21 71 657\\n\", \"63 17 858\\n\", \"1 1 10000\\n\", \"2 17... | rating_<=1200 | {
"id": "633_A. Ebony and Ivory",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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": "Little Shino loves to play with coins. In the city s... | code | {
"ground_truth": "{\"inputs\": [\"3\\nabcaa\\n\\nSAMPLE\", \"18\\norfqxzjztvcgvzlcedwnezbwxmpobmrvxaskwvvwquudrnwhmmzheqxiwhfuxavlwftgyxxhpygspvwdnvmgnwnpkdrnznzvrkmjjmwisyrdkodoafwsjfuvmeewpdwpiymwbhoxebjibxphiefgtsawcdivtltrshjqnkkmdtjgscnozmojnhigippjemzzzbcvoyplxenffmfdzdiojuodgbulvivhtbhayeeebiactyaovqbivudydgx... | none | {
"id": "little-shino-and-coins-3",
"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": "JOI Park\n\nIn preparation for the Olympic Games in ... | code | {
"ground_truth": "{\"inputs\": [\"5 5 2\\n2 3 1\\n3 1 2\\n2 4 3\\n1 2 4\\n2 5 5\", \"5 5 2\\n2 3 1\\n3 1 2\\n1 4 3\\n1 2 4\\n2 5 5\", \"5 5 2\\n2 3 1\\n3 1 4\\n1 4 3\\n1 2 4\\n2 5 5\", \"5 0 2\\n2 3 1\\n3 1 4\\n1 2 2\\n1 2 4\\n2 5 5\", \"5 5 2\\n2 3 1\\n3 1 4\\n1 4 3\\n1 2 4\\n1 5 5\", \"5 5 2\\n2 3 1\\n3 1 2\\n2 4 ... | none | {
"id": "p00539 JOI Park",
"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": "You are given an array a consisting of n integers.\n... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2\\n2 3\\n4\\n2 2 8 8\\n3\\n3 3 3\\n4\\n5 5 5 5\\n4\\n1 1 1 1\\n\", \"1\\n1\\n114\\n\", \"1\\n1\\n190\\n\", \"5\\n2\\n2 3\\n4\\n2 2 8 8\\n3\\n3 3 3\\n4\\n5 5 5 5\\n4\\n1 1 1 2\\n\", \"5\\n2\\n0 3\\n4\\n2 0 8 1\\n3\\n3 3 3\\n4\\n5 5 5 5\\n4\\n1 1 1 2\\n\", \"5\\n2\\n2 3\\n4\\n2 0... | rating_<=1200 | {
"id": "1296_A. Array with Odd Sum",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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": "Several years ago Tolya had n computer games and at ... | code | {
"ground_truth": "{\"inputs\": [\"3 1\\nabc\\n4\\nb\\na\\nc\\nd\\n\", \"4 2\\naabbccdd\\n4\\ndd\\nab\\nbc\\ncd\\n\", \"2 2\\nkdcj\\n4\\nkn\\nnr\\ndc\\njk\\n\", \"10 7\\nabadabaabafabaacabadabacabaddabacabcabaeababaeabaabacababaeabacbacabaf\\n20\\naeabaca\\nagabaca\\nabacaba\\nabadaba\\nbacabae\\nabaeaba\\nabafaba\\n... | rating_>1900 | {
"id": "727_E. Games on a CD",
"rating": 2300,
"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": "There are N cities and M roads. The i-th road (1≤i≤M... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1 2\\n2 3\\n1 4\", \"8 8\\n1 2\\n3 4\\n1 5\\n2 8\\n3 7\\n5 2\\n4 1\\n6 8\", \"2 5\\n1 2\\n2 1\\n1 2\\n2 1\\n1 2\", \"3 5\\n1 2\\n2 1\\n1 2\\n2 1\\n1 2\", \"3 5\\n1 2\\n2 1\\n1 2\\n1 1\\n1 2\", \"8 7\\n1 2\\n3 4\\n1 5\\n2 8\\n3 7\\n5 2\\n4 1\\n6 8\", \"8 7\\n1 3\\n3 4\\n1 5\\n2... | none | {
"id": "p03720 AtCoder Beginner Contest 061 - Counting Roads",
"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": "I see a pink boar and I want it painted black. Black... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1\\n1\\n-1\\n1\\n-1\\n2 5\\n4 3\\n2 4\\n4 1\", \"2\\n-1\\n1\\n2 1\", \"12\\n-1\\n-1\\n1\\n-1\\n1\\n1\\n-1\\n1\\n1\\n-1\\n1\\n-1\\n1 3\\n1 2\\n2 5\\n2 4\\n3 7\\n3 6\\n4 9\\n4 8\\n5 11\\n5 10\\n12 11\"], \"outputs\": [\"1 4 2 5 2 4 3 4 1 4 1\", \"1 2 1 2 1 2 1 2\", \"1 2 4 8 4 8 4... | rating_1601-1900 | {
"id": "717E",
"rating": 1900,
"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": "Jzzhu has invented a kind of sequences, they meet th... | code | {
"ground_truth": "{\"inputs\": [\"0 -1\\n2\\n\", \"2 3\\n3\\n\", \"1 2\\n6\\n\", \"-976992569 -958313041\\n1686580818\\n\", \"-1000000000 1000000000\\n6\\n\", \"2 3\\n6\\n\", \"0 -1\\n6\\n\", \"-474244697 -745885656\\n1517883612\\n\", \"875035447 -826471373\\n561914518\\n\", \"83712471 -876177148\\n1213284777\\n\", ... | rating_1201-1400 | {
"id": "450_B. Jzzhu and Sequences",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
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 fence in front of Polycarpus's home. The ... | code | {
"ground_truth": "{\"inputs\": [\"7 3\\n1 2 6 1 1 7 1\\n\", \"2 1\\n10 20\\n\", \"3 1\\n1 2 3\\n\", \"10 2\\n3 1 4 1 4 6 2 1 4 6\\n\", \"2 2\\n20 10\\n\", \"4 1\\n1 5 2 2\\n\", \"6 3\\n1 2 1 3 1 1\\n\", \"8 3\\n1 1 1 1 2 60 90 1\\n\", \"6 3\\n56 56 56 2 1 2\\n\", \"3 3\\n1 2 3\\n\", \"5 2\\n100 100 100 1 1\\n\", \"1... | rating_<=1200 | {
"id": "363_B. Fence",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
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": "Aaryan went to school like any usual day, The teache... | code | {
"ground_truth": "{\"inputs\": [\"4\\n8 9 9 8\\n\\nSAMPLE\", \"4\\n8 10 9 8\\n\\nSAMPLE\", \"4\\n8 1 9 8\\n\\nSAMPLE\", \"4\\n8 1 18 0\\n\\nSAMPLE\", \"4\\n6 1 18 2\\n\\nELPMAS\", \"4\\n6 1 8 2\\n\\nELPMAS\", \"4\\n4 9 9 1\\n\\nSAMPLE\", \"4\\n0 1 3 0\\n\\nSAMPLE\", \"4\\n0 1 4 0\\n\\nSAMPLE\", \"4\\n0 1 6 0\\n\\nSA... | none | {
"id": "aaryan-subsequences-and-great-xor",
"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 two given numbers a and b where 1<=a<=b, find t... | code | {
"ground_truth": "{\"inputs\": [\"a = 9, b = 25\", \"a = 1, b = 7\"], \"outputs\": [\"3\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-893",
"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": "Shivani is interning at HackerEarth. One day she has... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4\\n2 2 3 7\\n\\nSAMPLE\", \"1\\n4\\n2 2 3 7\", \"1\\n4\\n2 2 3 11\", \"1\\n4\\n4 2 3 7\\n\\nSAMPLE\", \"1\\n4\\n2 2 3 4\", \"1\\n4\\n2 0 3 4\", \"1\\n6\\n4 3 3 0\\n\\nSAMELP\", \"1\\n1\\n1 1 3 1\", \"1\\n2\\n0 2 23 4\", \"1\\n4\\n0 1 21 4\", \"1\\n4\\n0 2 27 8\", \"1\\n8\\n0 2 ... | none | {
"id": "equal-candies-distribution-1",
"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": "Zaikia has $N$ sticks of distinct positive lengths $... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"4 2 10 3 5\"]], \"outputs\": [[\"YES\", \"5 4 3\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24925",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "=====Problem Statement=====\nGiven a list of rational... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2\\n3 4\\n10 6\"], \"outputs\": [\"5 8\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22499",
"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": "Valera had an undirected connected graph without sel... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n0 1 1\\n\", \"3 1\\n0 0 0\\n\", \"4 2\\n2 0 1 3\\n\", \"3 1\\n0 1 2\\n\", \"5 3\\n0 2 1 2 1\\n\", \"4 3\\n1 1 1 2\\n\", \"2 1\\n1 0\\n\", \"2 1\\n1 1\\n\", \"3 2\\n0 1 1\\n\", \"9 4\\n2 1 1 3 1 2 2 1 0\\n\", \"4 2\\n0 1 0 1\\n\", \"7 3\\n2 2 0 1 3 2 1\\n\", \"2 1\\n0 0\\n\", \... | rating_1601-1900 | {
"id": "404_C. Restore Graph",
"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": "You are playing a new famous fighting game: Kortal M... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n10 10\\nqq\\n\", \"8 1\\n10 15 2 1 4 8 15 16\\nqqwweerr\\n\", \"7 3\\n1 5 16 18 7 2 10\\nbaaaaca\\n\", \"5 5\\n2 4 1 3 1000\\naaaaa\\n\", \"6 3\\n14 18 9 19 2 15\\ncccccc\\n\", \"5 4\\n2 4 1 3 1000\\naaaaa\\n\", \"1 1\\n1\\na\\n\", \"38 1\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ... | rating_1201-1400 | {
"id": "1107_C. Brutality",
"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": "A key feature of the Siruseri railway network is tha... | code | {
"ground_truth": "{\"inputs\": [[\"6\", \"10\", \"20\", \"25\", \"40\", \"30\", \"30\", \"4 5\", \"1 3\", \"3 4\", \"2 3\", \"6 4\"]], \"outputs\": [[\"70\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-1631",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a sorted array of positive integers. Your task ... | code | {
"ground_truth": "{\"inputs\": [\"n = 6\\r\\narr[] = {1,2,3,4,5,6}\", \"n = 11\\r\\narr[]={10,20,30,40,50,60,70,80,90,100,110}\"], \"outputs\": [\"6 1 5 2 4 3\", \"110 10 100 20 90 30 80 40 70 50 60\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-8147",
"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": "The Head Chef is receiving a lot of orders for cooki... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n5\", \"2\\n2\\n3\", \"2\\n2\\n10\", \"2\\n1\\n3\", \"2\\n1\\n10\", \"2\\n1\\n15\", \"2\\n2\\n15\", \"2\\n1\\n13\", \"2\\n2\\n13\", \"2\\n2\\n26\", \"2\\n2\\n44\", \"2\\n2\\n77\", \"2\\n2\\n79\", \"2\\n2\\n14\", \"2\\n4\\n14\", \"2\\n3\\n14\", \"2\\n3\\n7\", \"2\\n3\\n11\", \... | none | {
"id": "chearmy",
"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 a number N. You can perform the follow... | code | {
"ground_truth": "{\"inputs\": [\"20\\n48282555556913268065647423480440698474562579250181 1204\\n42095149559704012963556108582908559151949010278604 355\\n48573645141334591952648603574329919337934895677394 718\\n67835255860706009513201454752591646482112225197873 1744\\n410812824749335076563758860705673207956467304450... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-2119",
"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": "You are given an array $a_1, a_2, \\dots, a_n$ where... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n8\\n6\\n4 3 6 6 2 9\\n4\\n4 5 6 7\\n5\\n7 5 2 2 4\\n\", \"1\\n5\\n2 6 2 4 5\\n\", \"1\\n5\\n2 6 2 4 5\\n\", \"1\\n5\\n2 6 2 4 1\\n\", \"4\\n1\\n8\\n6\\n4 6 6 6 2 9\\n4\\n4 5 6 7\\n5\\n7 5 2 2 4\\n\", \"4\\n1\\n9\\n6\\n4 5 6 6 2 9\\n4\\n4 5 6 7\\n5\\n11 5 2 2 4\\n\", \"4\\n1\... | EASY | {
"id": "taco-train-18672",
"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": "In CycleLand Jack and Jenny are two friends.They wan... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\", \"3\\n1\\n3\\n3\", \"3\\n0\\n3\\n3\", \"3\\n0\\n3\\n6\", \"3\\n0\\n2\\n6\", \"3\\n0\\n2\\n7\", \"3\\n-1\\n2\\n7\", \"3\\n-1\\n1\\n4\", \"3\\n5\\n0\\n2\", \"3\\n-2\\n2\\n7\", \"3\\n-2\\n2\\n4\", \"3\\n0\\n2\\n4\", \"3\\n0\\n1\\n4\", \"3\\n-1\\n1\\n7\", \"3\\n-1\\n1\\... | none | {
"id": "crace",
"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 $n$ chips on a number line. The $i$-th... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n\", \"5\\n2 2 2 3 3\\n\", \"3\\n2 3 3\\n\", \"3\\n1 2 2\\n\", \"30\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30\\n\", \"1\\n11\\n\", \"5\\n3 3 1 2 2\\n\", \"1\\n1\\n\", \"5\\n1 2 2 2 2\\n\", \"10\\n10 3 3 1 6 2 1 10 6 6\\n\", \"10\\n... | EASY | {
"id": "taco-train-21767",
"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 an array $a$ of length $2n$. Consider ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1 4\\n\", \"2\\n2 1 2 1\\n\", \"3\\n2 2 2 2 2 2\\n\", \"5\\n13 8 35 94 9284 34 54 69 123 846\\n\", \"1\\n2 5\\n\", \"7\\n2 5 6 25 22 21 7 9 7 22 25 25 22 24\\n\", \"5\\n2 7 14 11 14 15 3 11 7 16\\n\", \"4\\n4 9 5 13 5 6 5 13\\n\", \"10\\n1 1 1 1 1 1 1 1 1 1 1000000000 1000000000... | HARD | {
"id": "taco-train-8248",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "Sakuzyo - Imprinting\n\nA.R.C. Markland-N is a tall ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 2 3\\n1 2 3\\n4 3 3\\n4 1 2\\n10 2 6\\n1 2 3 4 5 7\\n2 1 1\\n2\\n100 76 8\\n76 75 36 67 41 74 10 77\\n\", \"2\\n5 1 4\\n3 2 1 4\\n5 5 4\\n4 5 2 3\\n\", \"1\\n10 3 3\\n8 10 4\\n\", \"1\\n10 1 1\\n1\\n\", \"1\\n10 10 2\\n9 10\\n\", \"1\\n10 10 3\\n8 9 10\\n\", \"1\\n57 57 14\\n5... | EASY | {
"id": "taco-train-15607",
"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": "The Little Elephant loves numbers. \n\nHe has a posi... | code | {
"ground_truth": "{\"inputs\": [\"10\\n\", \"1\\n\", \"48\\n\", \"654885000\\n\", \"536870912\\n\", \"2\\n\", \"100\\n\", \"1000000\\n\", \"999999937\\n\", \"20\\n\", \"1000000000\\n\", \"999999998\\n\", \"999999666\\n\", \"47\\n\", \"101871000\\n\", \"49\\n\", \"211768200\\n\", \"24\\n\", \"222222222\\n\", \"901800... | rating_1201-1400 | {
"id": "221_B. Little Elephant and Numbers",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Explanation\n\nIt's your first day in the robot fac... | code | {
"ground_truth": "{\"fn_name\": \"calculate_scrap\", \"inputs\": [[[10], 90], [[20, 10], 55], [[0], 90], [[0, 0, 0], 90], [[10, 0], 90], [[0, 10], 90], [[10, 0, 0, 10], 81], [[0, 10, 0, 10], 81], [[0, 10, 10, 0], 81], [[10, 20, 30, 40, 50, 60, 70, 80, 90], 25], [[90, 80, 70, 60, 50, 40, 30, 20, 10], 20], [[10, 0, 30... | EASY | {
"id": "taco-train-17641",
"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": "Sonya was unable to think of a story for this proble... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 4 3 2 1\\n\", \"7\\n2 1 5 11 5 9 11\\n\", \"5\\n850 840 521 42 169\\n\", \"2\\n1000 1\\n\", \"5\\n100 80 60 70 90\\n\", \"75\\n392 593 98 533 515 448 220 310 386 79 539 294 208 828 75 534 875 493 94 205 656 105 546 493 60 188 222 108 788 504 809 621 934 455 307 212 630 298 938... | rating_>1900 | {
"id": "714_E. Sonya and Problem Wihtout a Legend",
"rating": 2300,
"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 a sequence a consisting of n integers.... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 4 5\\n\", \"7\\n2 13 22 32 72 91 96\\n\", \"1\\n1000000\\n\", \"5\\n5 11 12 109 110\\n\", \"12\\n4 4 10 13 28 30 41 43 58 61 70 88\\n\", \"2\\n1000000 999999\\n\", \"3\\n1 2 4\\n\", \"1\\n1\\n\", \"5\\n5 11 12 61 110\\n\", \"12\\n4 4 10 13 28 30 41 43 58 99 70 88\\n\", \"1\\n2... | rating_>1900 | {
"id": "485_D. Maximum Value",
"rating": 2100,
"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": "Sereja is interested in intervals of numbers, so he ... | code | {
"ground_truth": "{\"inputs\": [\"1 1 1\", \"3 5 1\", \"2 3 3\", \"11 79 54\", \"18 46 26\", \"8 96 61\", \"154 5 3\", \"34 22 8\", \"29 27 7\", \"12 68 35\", \"23 12 10\", \"6 42 23\", \"143 645 43\", \"14 724 55\", \"166 36 1\", \"273 41 17\", \"54 806 191\", \"6159 7 7\", \"115 624 37\", \"8 967 200\", \"112 440 ... | rating_>1900 | {
"id": "367E",
"rating": 2700,
"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 been given 3 integers l, r and k. Find how ... | code | {
"ground_truth": "{\"inputs\": [\"1 10 1\\n\\nSAMPLE\", \"1 10 2\\n\\nSAMPLE\", \"2 10 1\\n\\nSAMPLE\", \"2 16 2\\n\\nSMAPLE\", \"2 26 2\\n\\nSMAPLE\", \"2 38 2\\n\\nSMAPKE\", \"1 10 1\\n\\nSBMPLE\", \"2 19 1\\n\\nSAMPLE\", \"2 10 3\\n\\nSAMPLE\", \"4 16 2\\n\\nSMAPLE\", \"3 26 2\\n\\nSMAPLE\", \"4 19 1\\n\\nSAMPLE\... | none | {
"id": "count-divisors",
"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 are going to be given a word. Your job will be to... | code | {
"ground_truth": "{\"fn_name\": \"validate_word\", \"inputs\": [[\"abcabc\"], [\"Abcabc\"], [\"AbcabcC\"], [\"AbcCBa\"], [\"pippi\"], [\"?!?!?!\"], [\"abc123\"], [\"abcabcd\"], [\"abc!abc!\"], [\"abc:abc\"]], \"outputs\": [[true], [true], [false], [true], [false], [true], [true], [false], [true], [false]]}",
"styl... | EASY | {
"id": "taco-train-20168",
"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": "You are given two integers A and B. Find the largest... | code | {
"ground_truth": "{\"inputs\": [\"0 0\", \"3 1\", \"4 -2\", \"0 -1\", \"6 1\", \"0 -2\", \"6 0\", \"9 1\", \"3 0\", \"9 0\", \"4 0\", \"-2 2\", \"5 0\", \"17 -1\", \"20 -1\", \"37 -1\", \"38 -1\", \"-4 -2\", \"38 -2\", \"-2 1\", \"-4 2\", \"-4 1\", \"-6 -2\", \"3 5\", \"5 5\", \"-7 2\", \"-13 2\", \"-7 -2\", \"-8 2\... | none | {
"id": "p03337 AtCoder Beginner Contest 098 - Add Sub Mul",
"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": "Friends Alex and Bob live in Bertown. In this town t... | code | {
"ground_truth": "{\"inputs\": [\"7 5\\n1 2\\n2 7\\n7 6\\n2 3\\n3 4\\n\", \"2 1\\n1 2\\n\", \"7 6\\n1 2\\n2 7\\n7 6\\n2 3\\n3 4\\n1 5\\n\", \"10 16\\n9 8\\n1 2\\n9 5\\n5 4\\n9 2\\n3 2\\n1 6\\n5 10\\n7 2\\n8 2\\n3 7\\n4 9\\n5 7\\n10 3\\n10 9\\n7 8\\n\", \"5 7\\n5 2\\n1 3\\n4 2\\n3 4\\n5 3\\n2 3\\n4 1\\n\", \"6 10\\n3... | rating_>1900 | {
"id": "29_E. Quarrel",
"rating": 2400,
"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": "Devu being a small kid, likes to play a lot, but he ... | code | {
"ground_truth": "{\"inputs\": [\"5 5 3\\n2 6 10 5 9\", \"5 5 3\\n7 14 2 9 5\", \"5 3 1\\n1 2 3 7 5\", \"10 5 3\\n194757070 828985446 11164 80016 84729 117765558 111730436 164044532 419732980 48834\", \"10 6 3\\n861947514 34945 190135645 68731 44833 387988147 84308862 878151920 458358978 809653252\", \"10 8 3\\n6770... | rating_1601-1900 | {
"id": "439C",
"rating": 1700,
"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": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\nabcdefghijkl\\nchef\\nworld\\ncode\\nabcxyzhijkl\\nword\\n4\\nproblem\\npoem\\nproblem\\nproblem\\n3\\ncontest\\ncoolest\\nunused\"], \"outputs\": [\"10\\n50\\n4\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-22223",
"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": "Many internet protocols these days include the optio... | code | {
"ground_truth": "{\"inputs\": [\"5 6\\nhtml text/html\\nhtm text/html\\npng image/png\\nsvg image/svg+xml\\ntxt text/plain\\nindex.html\\nthis.file.has.lots.of.dots.txt\\nnodotsatall\\nvirus.exe\\ndont.let.the.png.fool.you\\ncase.matters.TXT\", \"5 6\\nhtml tfxt/html\\nhtm text/html\\npng image/png\\nsvg image/svg+... | none | {
"id": "mime2",
"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 term of this problem is the same as the previous... | code | {
"ground_truth": "{\"inputs\": [\"1 1000000000\\n1\\n1000000000\\n\", \"3 1\\n2 1 4\\n11 3 16\\n\", \"10 1\\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000\\n1 1 1 1 1 1 1 1 1 1\\n\", \"4 3\\n4 3 5 6\\n11 12 14 20\\n\", \"1 1\\n4\\n6\\n\", \"10 926\\n5 6... | rating_1401-1600 | {
"id": "670_D2. Magic Powder - 2",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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": "At a geometry lesson Bob learnt that a triangle is c... | code | {
"ground_truth": "{\"inputs\": [\"-1 0 2 0 0 1\\n\", \"2 3 4 5 6 6\\n\", \"0 0 2 0 0 1\\n\", \"30 8 49 13 25 27\\n\", \"-67 49 89 -76 -37 87\\n\", \"34 74 -2 -95 63 -33\\n\", \"-66 24 8 -29 17 62\\n\", \"-10 -11 62 6 -12 -3\\n\", \"49 -7 19 -76 26 3\\n\", \"0 0 1 0 4 1\\n\", \"-50 -1 0 50 0 -50\\n\", \"0 0 1 0 2 1\\... | rating_1401-1600 | {
"id": "18_A. Triangle",
"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": "Imagine that Alice is playing a card game with her f... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n0 0 0 0 0 0 0 0\\n1 2 3 4 1 2 3 4\\n1\\n0 0 0 1 0 0 0 0\\n0 0 0 0 4 0 0 0\\n0\\n1 0 0 0 0 0 0 0\\n0 0 0 4 0 0 2 0\\n1\\n1 1 1 1 1 1 1 1\\n1 1 1 1 1 1 1 1\", \"1\\n0\\n0 2 2 0 1 2 1 2\\n1 2 4 3 2 1 1 0\"], \"outputs\": [\"Alice\\nBob\\nAlice\\nDeal\", \"Alice\"]}",
"style":... | rating_>1900 | {
"id": "919F",
"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": "In the computer world, use restricted resource you ha... | code | {
"ground_truth": "{\"fn_name\": \"findMaxForm\", \"inputs\": [[[\"\\\"10\\\"\", \"\\\"0001\\\"\", \"\\\"111001\\\"\", \"\\\"1\\\"\", \"\\\"0\\\"\"], 5, 3]], \"outputs\": [4]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-6921",
"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": "You have N rods with you. The i-th rod has a length ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 2\\n4 6\\n4\\n2 8 9 11\\n25 27 100 45\"], \"outputs\": [\"8\\n2960\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-10481",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "You are given array $a_1, a_2, \\dots, a_n$. Find th... | code | {
"ground_truth": "{\"inputs\": [\"5\\n6 1 6 6 0\\n\", \"1\\n1000000000\\n\", \"6\\n1 1 0 1 1 1\\n\", \"5\\n2 2 2 2 3\\n\", \"6\\n3 3 2 2 2 2\\n\", \"2\\n1 2\\n\", \"69\\n2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53... | EASY | {
"id": "taco-train-2359",
"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": "Some large corporation where Polycarpus works has it... | code | {
"ground_truth": "{\"inputs\": [\"1\\n1000000 10\\n\", \"2\\n1 1\\n2 1\\n\", \"3\\n3 3\\n4 3\\n5 3\\n\", \"2\\n1 11\\n100 10\\n\", \"4\\n1 10\\n2 9\\n3 8\\n40 3\\n\", \"5\\n987640 52\\n994481 69\\n995526 50\\n996631 75\\n999763 22\\n\", \"10\\n1 5\\n2 5\\n3 10\\n4 8\\n5 5\\n6 4\\n7 8\\n8 9\\n9 2\\n10 10\\n\", \"4\\n... | rating_<=1200 | {
"id": "292_A. SMSC",
"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": "Serega loves fun. However, everyone has fun in the u... | code | {
"ground_truth": "{\"inputs\": [\"7\\n6 6 2 7 4 2 5\\n7\\n1 3 6\\n2 2 4 2\\n2 2 4 7\\n2 2 2 5\\n1 2 6\\n1 1 4\\n2 1 7 3\", \"8\\n8 4 2 2 7 7 8 8\\n8\\n1 8 8\\n2 8 1 7\\n1 8 1\\n1 7 3\\n2 8 8 3\\n1 1 4\\n1 2 7\\n1 4 5\", \"10\\n7 2 3 4 3 2 4 4 9 1\\n10\\n1 4 5\\n1 1 6\\n1 3 10\\n1 5 7\\n2 5 8 5\\n2 6 7 7\\n2 1 8 5\\n... | rating_>1900 | {
"id": "455D",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In this problem you will be solving one of the most ... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 3\\n2 1\\n3 5\\n7 2\\n\", \"1 2\\n10 10\\n9 11\\n11 9\\n\"], \"outputs\": [\"5\\n\", \"0\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-23120",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "Given an array A of length N, your task is to find t... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n1 2 3 2 5\\n6\\n1 2 2 1 1 2\"], \"outputs\": [\"2 2\\n1 3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-21670",
"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\n\nN circular light sources are arranged on ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n90 10 10\\n-3 0 1 45 10 90 10\\n-6 0 2 30 3 180 10\\n-9 0 1\", \"1\\n90 10 20\\n3 3 1 90 10 315 10\\n6 0 1\", \"2\\n90 10 10\\n0 0 1 45 10 90 10\\n-6 0 2 30 3 180 10\\n-9 0 1\", \"1\\n90 20 20\\n3 3 1 90 10 315 10\\n6 0 1\", \"2\\n90 10 8\\n0 0 1 45 10 90 10\\n-6 -1 2 30 3 180 1... | none | {
"id": "p01010 Light Source",
"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": "For her birthday Alice received an interesting gift ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n110\\n011\\n100\\n100\\n011\\n100\\n100\\n\", \"2\\n11\\n11\\n00\\n01\\n11\\n\", \"2\\n10\\n00\\n00\\n00\\n10\\n\", \"2\\n10\\n10\\n01\\n01\\n10\\n\", \"3\\n100\\n100\\n111\\n000\\n000\\n000\\n101\\n\", \"2\\n10\\n11\\n00\\n00\\n11\\n\", \"3\\n110\\n010\\n100\\n100\\n011\\n100\\... | rating_>1900 | {
"id": "1219_I. The Light Square",
"rating": 2100,
"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": "There are n athletes in front of you. Athletes are n... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n3 1 2 6 4\\n6\\n2 1 3 2 4 3\\n4\\n7 9 3 1\\n2\\n1 1000\\n3\\n100 150 200\\n\", \"5\\n5\\n3 1 2 6 4\\n6\\n2 1 3 2 4 3\\n4\\n7 9 3 0\\n2\\n1 1000\\n3\\n100 150 200\\n\", \"5\\n5\\n3 1 2 6 4\\n6\\n2 1 3 2 4 3\\n4\\n7 8 3 1\\n2\\n1 1000\\n3\\n100 150 200\\n\", \"5\\n5\\n3 1 2 1 ... | rating_<=1200 | {
"id": "1360_B. Honest Coach",
"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": "You are given $n$ rectangles on a plane with coordin... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 0 1 1\\n1 1 2 2\\n3 0 4 1\\n\", \"3\\n0 0 1 1\\n0 1 1 2\\n1 0 2 1\\n\", \"4\\n0 0 5 5\\n0 0 4 4\\n1 1 4 4\\n1 1 4 4\\n\", \"5\\n0 0 10 8\\n1 2 6 7\\n2 3 5 6\\n3 4 4 5\\n8 1 9 2\\n\", \"4\\n6 77 44 98\\n4 3 84 92\\n8 23 66 89\\n28 39 80 83\\n\", \"10\\n-44 -47 -17 5\\n-40 -21 4... | MEDIUM_HARD | {
"id": "taco-train-11616",
"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": "Ramesh and Suresh were in the same class and got hom... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4251\\n52310\\n00006\\n\\nSAMPLE\", \"100\\n04\\n9\\n02163\\n003000\\n08041479\\n80750340926070052\\n90056\\n11680\\n90\\n09020809009020989\\n00460224000800\\n0606\\n6402000040\\n3918080\\n31052060072050\\n41\\n00070775690\\n8000780240500799004\\n66\\n040934020028\\n002416003000... | none | {
"id": "class-homework",
"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": "Bajirao's city has N X N police stations P(i,j) (1 ≤... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n3 1 2\\n1 4 1\\n\\nSAMPLE\", \"3\\n1 0 3\\n3 1 2\\n1 4 1\\n\\nSAMPLE\", \"3\\n1 -1 3\\n5 1 0\\n0 4 1\\n\\nSAMPLE\", \"3\\n1 0 5\\n5 1 0\\n0 4 1\\n\\nSQMALE\", \"3\\n1 0 2\\n5 0 0\\n0 4 1\\n\\nSQMALE\", \"3\\n1 0 2\\n9 1 0\\n0 4 1\\n\\nSQMALE\", \"3\\n2 0 4\\n9 1 0\\n0 4 ... | none | {
"id": "bajirao-returns",
"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": "Kenkoooo is planning a trip in Republic of Snuke. In... | code | {
"ground_truth": "{\"inputs\": [\"8 12 3 8\\n2 8 685087149 857180777\\n6 7 298270585 209942236\\n2 4 346080035 234079976\\n2 5 131857300 22507157\\n4 8 30723332 173476334\\n2 6 480845267 448565596\\n1 4 181424400 548830121\\n4 5 57429995 195056405\\n7 8 160277628 479932440\\n1 6 475692952 203530153\\n3 5 336869679 1... | none | {
"id": "p03305 SoundHound Inc. Programming Contest 2018 -Masters Tournament- - Saving Snuuk",
"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": "You are given an array a consisting of n integers. Y... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 4 6 6 6\\n\", \"4\\n1 1 1 1\\n\", \"3\\n2 8 10\\n\", \"69\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"4\\n0 0 0 1\\n\", \"10\\n2 3 3 4 1 4 1 4 1 4\\n\", \"1\\n1234\\n\", \"6... | rating_1201-1400 | {
"id": "1144_D. Equalize Them All",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
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": "Petya studies positional notations. He has already l... | code | {
"ground_truth": "{\"inputs\": [\"10\", \"3\", \"2\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\"], \"outputs\": [\"1 2 3 4 5 6 7 8 9 \\n2 4 6 8 10 12 14 16 18 \\n3 6 9 12 15 18 21 24 27 \\n4 8 12 16 20 24 28 32 36 \\n5 10 15 20 25 30 35 40 45 \\n6 12 18 24 30 36 42 48 54 \\n7 14 21 28 35 42 49 56 63 \\n8 16 24 32 40 4... | rating_1201-1400 | {
"id": "39H",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given binary string str of length N. The task is to f... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"0100110101\\\"\", \"S = \\\"0111100010\\\"\"], \"outputs\": [\"4\", \"3\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-1024",
"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": "Evenland used to be a normal country. Then Steven be... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n\", \"2 1\\n1 2\\n\"], \"outputs\": [\"4\\n\", \"1\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-16736",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "Polycarp took $n$ videos, the duration of the $i$-th... | code | {
"ground_truth": "{\"inputs\": [\"6 3\\n3 3 1 4 1 6\\n\", \"3 3\\n1 1 1\\n\", \"3 3\\n1 1 2\\n\", \"3 1\\n1 10 100\\n\", \"1 1\\n3\\n\", \"2 1\\n1 3\\n\", \"2 1\\n3 3\\n\", \"2 2\\n3 1\\n\", \"2 2\\n1 3\\n\", \"4 2\\n2 1 3 1\\n\", \"2 1\\n3 3\\n\", \"2 1\\n1 3\\n\", \"2 2\\n1 3\\n\", \"2 2\\n3 1\\n\", \"4 2\\n2 1 3 ... | EASY | {
"id": "taco-train-21663",
"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": "In a long narrow forest stretching east-west, there ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 100\\n3 200\\n999999999999999 150\\n1000000000000000 150\", \"5\\n10 2\\n40 5\\n60 3\\n70 4\\n90 1\", \"5\\n10 20\\n40 50\\n60 30\\n70 40\\n90 10\", \"4\\n1 100\\n3 200\\n999999999999999 44\\n1000000000000000 150\", \"5\\n10 20\\n40 50\\n60 35\\n70 40\\n90 10\", \"4\\n1 101\\n... | none | {
"id": "p03510 Code Festival Team Relay (Parallel) - Capture",
"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": "Bob wants to take revenge from Peter. So he thinks o... | code | {
"ground_truth": "{\"inputs\": [\"10\\n200 200\\n#83702#43820#05053806##42036965818518451#61944#765814734569303#102374683#7131995166408851661953854298816217185680010873918080136354904435140608507384743220214847038450962722552188320642574726327962728\\n##812021985089593#2#161238835994653653731#47975#65851972435913058... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-8076",
"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": "Mount Snowdon, the tallest place in Wales, is a majo... | code | {
"ground_truth": "{\"inputs\": [\"2 9\\n69 60\\n100 60\\n\", \"3 77\\n500 65\\n20 5\\n1000 80\\n\"], \"outputs\": [\"39.0\\n30.0\\n\", \"249.70323\\n172.65601\\n163.52926\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24616",
"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 two strings denoting non-negative numbers X and... | code | {
"ground_truth": "{\"inputs\": [\"X = \\\"25\\\", Y = \\\"23\\\"\", \"X = \\\"2500\\\", Y = \\\"23\\\"\"], \"outputs\": [\"48\", \"2523\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2154",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.