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": "Read problems statements in Mandarin Chinese and Rus... | code | {
"ground_truth": "{\"inputs\": [\"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n4 2 2\\n1 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 5 6 7\\n4 2 2\\n1 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n4 2 2\\n2 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n5 2 2\\n2 4\\n3 4\", \"2\\n7 4 6\\n1 4 6 7\\n1 2 3 4 6 7\\n4 2 2\\n1 4... | EASY | {
"id": "taco-train-18924",
"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_1, A_2, \\ldots, A_N$. Y... | code | {
"ground_truth": "{\"inputs\": [[\"3\", \"5\", \"1 1 1 1 1\", \"4\", \"9 8 1 8\", \"2\", \"1 9\"]], \"outputs\": [[\"0\", \"2\", \"1\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-2000",
"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": "Vasya likes the number $239$. Therefore, he consider... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"1 10\", \"11 33\"], [\"3\", \"1 5\", \"10 50\", \"60 90\"], [\"1\", \"10000 99999\"], [\"5\", \"1 5\", \"5 10\", \"35 40\", \"15 20\", \"9999 10000\"], [\"4\", \"1 1000\", \"1001 2000\", \"2001 3000\", \"3001 4000\"], [\"2\", \"100 199\", \"200 299\"], [\"1\", \"1000 1500\"]... | EASY | {
"id": "taco-test-193",
"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": "Mirko has chosen four integers which form an arithme... | code | {
"ground_truth": "{\"inputs\": [\"4 6 8\\n\", \"10 1 4\\n\"], \"outputs\": [\"10\\n\", \"7\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8053",
"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 and Ru... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 2\\n4 5\"], \"outputs\": [\"8\\n236\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-17162",
"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": "Two polar bears Menshykov and Uslada from the St.Pet... | code | {
"ground_truth": "{\"inputs\": [\"1 2 3 4 5 6\\n\", \"4 4 5 4 4 5\\n\", \"4 2 5 4 4 4\\n\", \"5 5 5 5 5 5\\n\", \"4 4 4 4 2 2\\n\", \"1 1 2 2 3 4\\n\", \"1 3 3 3 4 5\\n\", \"4 4 5 6 7 8\\n\", \"4 4 4 4 4 5\\n\", \"5 5 5 6 6 6\\n\", \"4 4 2 2 2 2\\n\", \"1 1 3 3 3 5\\n\", \"1 8 9 1 1 1\\n\", \"9 9 9 1 9 9\\n\", \"4 4... | rating_<=1200 | {
"id": "471_A. MUH and Sticks",
"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": "You are given a positive integer N. Find the minimum... | code | {
"ground_truth": "{\"inputs\": [\"999999999\", \"3\", \"10\", \"1604548808\", \"5\", \"17\", \"1558666763\", \"8\", \"20\", \"1031129102\", \"12\", \"30\", \"1937535494\", \"1\", \"31\", \"2049048611\", \"0\", \"21\", \"1295498732\", \"9\", \"1537692078\", \"-1\", \"4\", \"964913573\", \"7\", \"1433974404\", \"-4\",... | none | {
"id": "p03307 AtCoder Beginner Contest 102 - Multiple of 2 and N",
"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": "Every year the professor selects the top two student... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"3 3 8 8\"], [\"4\", \"2 8 7 3\"]], \"outputs\": [[\"3\"], [\"4\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-10722",
"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": "Kitty and Katty have $N$ plastic blocks. They label ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n3\\n\"], \"outputs\": [\"Kitty\\nKatty\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23477",
"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": "Lazy boy has gone home during his vacations. As it i... | code | {
"ground_truth": "{\"inputs\": [\"1261 17\\n5042863 599431 4966467 9322841 4738138 3510896 674280 3220561 6813451 1754294 9972137 7558640 3663277 5165540 2764480 2065705 6974523 5704875 6109875 4519246 8781325 294525 6687068 8019470 2112271 5246438 829561 3446011 7211059 4892174 1947037 2253922 5491604 9429856 40931... | EASY | {
"id": "taco-train-9398",
"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\nRolling Block is a game in which a rectan... | code | {
"ground_truth": "{\"inputs\": [\"5 5 2\\n#####\\n#S.G#\\n#...#\\n#...#\\n#####\", \"3 12 2\\n\\nS...A.a..G#\", \"3 12 2\\n\\nS^^.^^.^^G#\", \"3 12 2\\n\\nS..A..a..G#\", \"5 5 2\\n\\nS.G#\\n...#\\n...#\", \"7 13 3\\n\\nS....#.....#\\n.....#.....#\\n.....#.....#\\n...........#\\n..........G#\", \"6 5 2\\n#####\\n#S.G... | none | {
"id": "p01014 Rolling Block",
"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": "Let's call an array a consisting of n positive (grea... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n8\\n7\\n42\\n\", \"4\\n1\\n12\\n7\\n42\\n\", \"4\\n1\\n1\\n7\\n42\\n\", \"4\\n1\\n12\\n7\\n35\\n\", \"4\\n1\\n3\\n7\\n42\\n\", \"4\\n1\\n1\\n7\\n27\\n\", \"4\\n1\\n12\\n13\\n35\\n\", \"4\\n1\\n3\\n12\\n42\\n\", \"4\\n1\\n2\\n7\\n27\\n\", \"4\\n2\\n3\\n7\\n27\\n\", \"4\\n2\\n... | rating_<=1200 | {
"id": "1550_A. Find The Array",
"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": "A trick I learned in elementary school to determine w... | code | {
"ground_truth": "{\"fn_name\": \"divisible_by_three\", \"inputs\": [[\"123\"], [\"19254\"], [\"88\"], [\"1\"], [\"963210456\"], [\"10110101011\"], [\"9\"], [\"6363\"], [\"10987654321\"], [\"9876543211234567890009\"], [\"9876543211234567890002\"]], \"outputs\": [[true], [true], [false], [false], [true], [false], [tr... | EASY | {
"id": "taco-train-17681",
"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 famous global economic crisis is approaching rap... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n11..2\\n#..22\\n#.323\\n.#333\", \"1 5\\n1#2#3\\n\", \"1 9\\n111222333\\n\", \"10 10\\n#...33.#.#\\n#.#.33.#1.\\n2.....#.11\\n222#.#.#..\\n####...#.#\\n#.........\\n.#....#...\\n..#..#.##.\\n##.....#.#\\n#..#....#.\\n\", \"10 10\\n##.#..#.#2\\n...###....\\n#..#....##\\n.....#.... | rating_>1900 | {
"id": "591_E. Three States",
"rating": 2200,
"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": "Sorting is considered to be one of the most importan... | code | {
"ground_truth": "{\"inputs\": [\"1\\n951f5gd3\"], \"outputs\": [\"135d5fg9\"]}",
"style": "rule"
} | none | {
"id": "icq3",
"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": "Shrek and the Donkey (as you can guess, they also li... | code | {
"ground_truth": "{\"inputs\": [\"0 3\", \"1 0\", \"1 1\", \"0 0\", \"2 0\", \"0 1\", \"0 2\", \"1 2\", \"2 1\", \"2 2\", \"863 814\", \"593 676\", \"124 830\", \"582 865\", \"458 81\", \"969 527\", \"886 340\", \"869 326\", \"292 760\", \"999 929\", \"528 716\", \"290 221\", \"863 620\", \"797 754\", \"915 183\", \... | rating_>1900 | {
"id": "98E",
"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 are given an n × m table, consisting of characte... | code | {
"ground_truth": "{\"inputs\": [\"3 5\\nAGCAG\\nAGCAG\\nAGCAG\\n\", \"2 2\\nAG\\nCT\\n\", \"2 2\\nTG\\nAC\\n\", \"2 2\\nAG\\nTC\\n\", \"2 2\\nGA\\nTC\\n\", \"2 2\\nGA\\nCT\\n\", \"2 2\\nAG\\nBT\\n\", \"3 5\\nAGCAG\\nGACGA\\nAGCAG\\n\", \"2 2\\nGT\\nAC\\n\", \"2 2\\nGB\\nCT\\n\", \"2 2\\nAH\\nTC\\n\", \"2 2\\nAF\\nCT... | rating_>1900 | {
"id": "1099_E. Nice table",
"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": "Problem Statement:\n\nTom is collecting money for hi... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2 3\\n1 2 3\\n1 0 3\\n\\nSAMPLE\", \"100\\n84 87 78\\n16 94 36\\n87 93 50\\n22 63 28\\n91 60 64\\n27 41 27\\n73 37 12\\n69 68 30\\n83 31 63\\n24 68 36\\n30 3 23\\n59 70 68\\n94 57 12\\n43 30 74\\n22 20 85\\n38 99 25\\n16 71 14\\n27 92 81\\n57 74 63\\n71 97 82\\n6 26 85\\n28 37... | none | {
"id": "tom-and-coins",
"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": "There is an empty grid (all cells are colored white)... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 1\\n1 2\\n2 3\\n\"], \"outputs\": [\"0\\n2\\n72\\n\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-13341",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_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": "# Task\n\nGiven the birthdates of two people, find th... | code | {
"ground_truth": "{\"fn_name\": \"half_life\", \"inputs\": [[\"1990-12-06\", \"2000-02-29\"], [\"2012-03-31\", \"1990-06-09\"], [\"1984-08-14\", \"1990-04-17\"], [\"2000-06-30\", \"1978-03-17\"], [\"1969-12-20\", \"2000-10-07\"]], \"outputs\": [[\"2009-05-24\"], [\"2034-01-21\"], [\"1995-12-19\"], [\"2022-10-14\"], ... | EASY | {
"id": "taco-train-18518",
"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 game of billiards involves two players knocking ... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"140 82\", \"89 134\", \"90 110\", \"112 106\", \"88 90\"], \"5\\n140 82\\n89 134\\n90 110\\n177 106\\n88 90\", \"5\\n140 82\\n89 134\\n90 110\\n289 106\\n88 90\", \"5\\n140 82\\n89 134\\n90 110\\n289 50\\n88 90\", \"5\\n140 82\\n89 134\\n107 110\\n289 50\\n88 90\", \"5\\n140... | EASY | {
"id": "taco-train-24837",
"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 positive integer K. Find the number of ordere... | code | {
"ground_truth": "{\"inputs\": [\"K = 2\", \"K = 4\"], \"outputs\": [\"0\", \"2\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14240",
"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": "On a strip of land of length n there are k air condi... | code | {
"ground_truth": "{\"inputs\": [\"5\\n\\n6 2\\n2 5\\n14 16\\n\\n10 1\\n7\\n30\\n\\n5 5\\n3 1 4 2 5\\n3 1 4 2 5\\n\\n7 1\\n1\\n1000000000\\n\\n6 3\\n6 1 3\\n5 5 5\\n\", \"1\\n\\n10 1\\n1\\n1000000000\\n\", \"1\\n\\n10 1\\n10\\n1000000000\\n\", \"1\\n\\n100 1\\n1\\n1000000000\\n\", \"1\\n\\n20 1\\n20\\n1000000000\\n\"... | rating_1401-1600 | {
"id": "1547_E. Air Conditioners",
"rating": 1500,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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 two strings A and B of lengths N and M resp... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5 2\\nabcdd\\nac\\n3 3\\nabc\\nxyz\\n2 4\\naa\\naaaa\\n1 3\\na\\naax\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-12501",
"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": "Oostende Beach is a very long beach located in the n... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n3 1 3 4 2\\n0 5\\n0 9\\n4 5\\n2 1\\n\", \"4 8\\n1 1 1 1\\n2 2\\n1 2\\n2 1\\n1 1\\n3 2\\n2 2\\n1 2\\n2 1\\n\"], \"outputs\": [\"2\\n1\\n2\\n1\\n\", \"1\\n1\\n1\\n1\\n1\\n2\\n2\\n2\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-4261",
"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": "\"The Chamber of Secrets has been opened again\" — t... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n.#.\\n...\\n.#.\\n\", \"4 3\\n##.\\n...\\n.#.\\n.#.\\n\", \"5 5\\n.....\\n.#...\\n.....\\n.....\\n#.###\\n\", \"3 4\\n..##\\n....\\n..#.\\n\", \"2 42\\n..........#.......#..........###........#.\\n.....#######.......#..#....#...##.........\\n\", \"6 8\\n...##...\\n.#.#.#.#\\n#... | rating_1601-1900 | {
"id": "173_B. Chamber of Secrets",
"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": "Richard is a travel freak. He is now out to travel t... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5\\n2 15 5 6 2\\n11\\n1 3 5 8 9 2 6 7 6 8 9\\n\\nSAMPLE\", \"100\\n79\\n1 1 14 17 11 1 12 1 17 1 17 11 13 16 10 1 13 3 5 12 8 16 19 16 13 6 7 4 3 5 17 1 7 3 17 6 9 5 1 1 16 15 17 17 1 1 5 17 3 13 10 15 10 12 1 5 1 19 1 14 10 11 5 8 13 1 13 13 6 3 1 13 15 12 13 3 1 9 19 \\n16\\n1... | none | {
"id": "shekhar-loves-to-travel",
"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": "Mike is given a matrix A, N and M are numbers of row... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n4 5\\n7 0\\n2\\n1 2\\n2 2\", \"1 3\\n1 2 3\\n2\\n1 1\\n3 1\", \"1 3\\n1 2 3\\n2\\n1 3\\n3 1\", \"3 2\\n2 2\\n4 5\\n7 0\\n2\\n1 2\\n2 2\", \"1 3\\n1 2 3\\n0\\n1 1\\n3 1\", \"1 3\\n1 2 2\\n2\\n1 3\\n3 1\", \"3 2\\n2 2\\n4 0\\n7 0\\n2\\n1 2\\n2 2\", \"3 2\\n2 2\\n4 1\\n7 -1... | none | {
"id": "mike1",
"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 n segments on the coordinate axis Ox a... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n0 5\\n-3 2\\n3 8\\n\", \"3 2\\n0 5\\n-3 3\\n3 8\\n\", \"1 1\\n-990637865 387517231\\n\", \"10 10\\n-92 87\\n-100 -67\\n-88 80\\n-82 -59\\n-72 81\\n-50 30\\n30 77\\n65 92\\n-76 -60\\n-29 -15\\n\", \"10 8\\n-749560329 759073394\\n-186423470 816422576\\n-674251064 742056817\\n-34... | rating_1601-1900 | {
"id": "612_D. The Union of k-Segments",
"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": "You are given an array A of n distinct sorted number... | code | {
"ground_truth": "{\"inputs\": [\"1000\\n1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 19 20 21 22 25 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 56 57 58 60 61 63 65 66 67 68 69 70 71 75 76 77 79 81 82 83 84 86 87 88 89 90 91 93 95 97 99 104 147 156 168 184 189 197 204 213 221 222 224 225... | EASY | {
"id": "taco-train-373",
"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": "```if:python,php\nIn this kata you will have to write... | code | {
"ground_truth": "{\"fn_name\": \"fuel_price\", \"inputs\": [[10, 21.5], [40, 10], [15, 5.83]], \"outputs\": [[212.5], [390], [83.7]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15872",
"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 Metropolis computer network consists of n server... | code | {
"ground_truth": "{\"inputs\": [\"4 4 2\\n0 1 0 1\\n1 2\\n2 3\\n3 4\\n4 1\\n\", \"4 5 3\\n7 1 7 2\\n1 2\\n2 3\\n3 4\\n4 1\\n2 4\\n\", \"10 40 10\\n838 215 738 782 183 422 127 283 103 129\\n1 2\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n1 9\\n1 10\\n2 3\\n2 4\\n2 5\\n2 6\\n2 7\\n2 8\\n2 9\\n2 10\\n3 4\\n3 5\\n3 6\\n3 7\\n3 8\\n... | rating_>1900 | {
"id": "1039_C. Network Safety",
"rating": 2200,
"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": "```if-not:sql\nCreate a function (or write a script i... | code | {
"ground_truth": "{\"fn_name\": \"even_or_odd\", \"inputs\": [[2], [1], [0], [1545452], [7], [78], [17], [74156741], [100000], [-123], [-456]], \"outputs\": [[\"Even\"], [\"Odd\"], [\"Even\"], [\"Even\"], [\"Odd\"], [\"Even\"], [\"Odd\"], [\"Odd\"], [\"Even\"], [\"Odd\"], [\"Even\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-25366",
"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": "Iahub is a big fan of tourists. He wants to become a... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3 5\\n\", \"3\\n4663018 4080080 6848370\\n\", \"2\\n5555 1242323\\n\", \"6\\n3835302 971984 8706888 1080445 2224695 1093317\\n\", \"50\\n3987477 8934938 4067156 6712855 7269334 5039822 9533601 9335400 5992073 2619268 438734 8620973 4347619 4307947 2249161 815221 7615258 824410... | rating_1401-1600 | {
"id": "340_C. Tourist Problem",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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 love array, don't you?\n\nYou are given two inte... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n5 1 2\", \"2 2\\n1 3\"], \"outputs\": [\"14\", \"1\"]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-3801",
"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 multiplication tables i... | code | {
"ground_truth": "{\"inputs\": [\"\"], \"outputs\": [\"\"]}",
"style": "rule"
} | none | {
"id": "p00000 QQ",
"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 list of unique words. Find all pairs of disti... | code | {
"ground_truth": "{\"fn_name\": \"palindrome_pairs\", \"inputs\": [[[\"bat\", \"tab\", \"cat\"]], [[\"dog\", \"cow\", \"tap\", \"god\", \"pat\"]], [[\"abcd\", \"dcba\", \"lls\", \"s\", \"sssll\"]], [[]], [[\"adgdfsh\", \"wertewry\", \"zxcbxcb\", \"efveyn\"]], [[5, 2, \"abc\", true, [false]]], [[5777, \"dog\", \"god\... | EASY | {
"id": "taco-train-10444",
"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 chef is trying to decode some pattern problems, ... | code | {
"ground_truth": "{\"inputs\": [[\"4\", \"1\", \"2\", \"3\", \"4\"]], \"outputs\": [[\"0\", \"01\", \"10\", \"010\", \"101\", \"010\", \"0101\", \"1010\", \"0101\", \"1010\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-2096",
"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": "Sometimes one has to spell email addresses over the ... | code | {
"ground_truth": "{\"inputs\": [\"vasyaatgmaildotcom\", \"dotdotdotatdotdotat\", \"aatt\", \"zdotdotatdotz\", \"dotdotdotdotatdotatatatdotdotdot\", \"taatta\", \"doatdt\", \"catdotdotdotatatdotdotdotnatjdotatdotdotdoteatatoatatatoatatatdotdotatdotdotwxrdotatfatgfdotuatata\", \"hmatcxatxatdotatlyucjatdothatdotcatatat... | rating_1201-1400 | {
"id": "41C",
"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": "Having learned the multiplication table, Takahashi c... | code | {
"ground_truth": "{\"inputs\": [\"2 5\", \"9 9\", \"5 10\", \"2 8\", \"9 5\", \"7 10\", \"3 8\", \"9 8\", \"7 7\", \"6 8\", \"7 9\", \"7 8\", \"7 3\", \"7 2\", \"9 2\", \"9 4\", \"9 6\", \"5 6\", \"2 6\", \"2 2\", \"8 5\", \"5 1\", \"4 8\", \"3 9\", \"2 3\", \"2 4\", \"2 1\", \"5 3\", \"1 3\", \"4 5\", \"1 1\", \"3 ... | none | {
"id": "p02879 AtCoder Beginner Contest 144 - 9x9",
"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 problem statements in [Mandarin Chinese] and [B... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 1 4\\n+ 1\\n+ 2\\n- 1\\n- 2\\n3 2 6\\n+ 2\\n+ 1\\n- 1\\n+ 3\\n- 3\\n- 2\", \"2\\n100 10 5\\n+ 1\\n+ 2\\n- 3\\n+ 3\\n- 2\\n6 4 4\\n+ 3\\n+ 2\\n+ 1\\n+ 4\\n\"], \"outputs\": [\"Inconsistent\\nConsistent\", \"Inconsistent\\nConsistent\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-3401",
"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": "Suresh is a fan of Mario. But being a programmer he ... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n1 1 5\\n\\nSAMPLE\", \"5 3\\n1 1 5\\n\\nSAPMLE\", \"5 3\\n1 2 5\\n\\nSAMPLE\", \"5 3\\n1 1 3\\n\\nELMPAS\", \"10 3\\n1 1 5\\n\\nELMPBS\", \"9 3\\n1 1 5\\n\\nSAFMLP\", \"7 3\\n1 2 5\\n\\nSLPMAE\", \"10 3\\n1 2 5\\n\\nELMPBS\", \"5 3\\n1 2 3\\n\\nELMPAS\", \"5 3\\n1 1 2\\n\\nELM... | none | {
"id": "fibo-stones",
"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": "Harrenhal is the largest castle in the Seven Kingdom... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"abbabaab\", \"\", \"\"]], \"outputs\": [[\"2\"]]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-8803",
"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": "A cell phone company is trying out its new model of ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 2 2 3 2 1 1 2 3 3 \\n3\\n171\\n3 2 3 1 1 1 1 3 1 2 \\n2\\n16\\n3 3 3 1 3 1 1 2 3 2 \\n2\\n43\\n\\nSAMPLE\", \"3\\n3 2 2 1 1 1 2 3 1 2 \\n1\\n3\\n1 2 3 2 1 2 2 3 1 1 \\n2\\n98\\n2 1 3 3 1 2 3 1 3 3 \\n1\\n1\", \"3\\n7 3 2 1 2 4 7 7 5 9 \\n10\\n1385294192\\n3 6 1 2 7 3 10 7 2 8 ... | none | {
"id": "costly-phone-number-december-easy-easy-medium",
"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 loves bitwise operations. So, he creates the fo... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n0 0\\n3\\n6 16 69\"], \"outputs\": [\"-1\\n1\\n1 3\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-3886",
"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": "Neko loves divisors. During the latest number theory... | code | {
"ground_truth": "{\"inputs\": [\"6 10\\n\", \"21 31\\n\", \"5 10\\n\", \"1924 5834\\n\", \"9911 666013\\n\", \"1 1\\n\", \"69 4295\\n\", \"948248258 533435433\\n\", \"953 1349\\n\", \"999999973 800000007\\n\", \"112342324 524224233\\n\", \"1021211 59555555\\n\", \"1000000000 1000000000\\n\", \"199999943 999999973\\... | MEDIUM_HARD | {
"id": "taco-train-2744",
"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 battle of Thermopylae is between the Persians an... | code | {
"ground_truth": "{\"inputs\": [\"2\\n100 10\\n21 72 1 83 38 17 32 27 37 79 63 53 4 7 83 49 9 40 49 94 74 35 76 47 28 24 17 21 63 6 43 83 30 95 66 67 11 49 46 47 80 60 51 83 66 33 83 26 24 31 71 97 65 46 95 45 70 63 65 32 21 59 14 50 53 31 68 63 80 13 61 59 72 12 93 89 96 75 15 20 5 85 68 21 31 15 17 52 77 81 83 49 ... | EASY | {
"id": "taco-train-76",
"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 [Hindi], [Mandarin Chine... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 2\\n..\\n*.\\n2 4\\n*..*\\n*.*.\"], \"outputs\": [\"1\\n2\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-20758",
"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": "Vitya has just started learning Berlanese language. ... | code | {
"ground_truth": "{\"inputs\": [\"codeforces\\n\", \"ninja\\n\", \"sumimasen\\n\", \"s\\n\", \"d\\n\", \"anujemogawautiedoneobninnibonuunaoennnyoorufonxionntinimiboonununnnnnleenqunminzayoutanlalo\\n\", \"uixinnepnlinqaingieianndeakuniooudidonnnqeaituioeneiroionxuowudiooonayenfeonuino\\n\", \"king\\n\", \"z\\n\", \"... | rating_<=1200 | {
"id": "1008_A. Romaji",
"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": "Let's analyze a program written on some strange prog... | code | {
"ground_truth": "{\"inputs\": [\"4\\nc=aa#bb\\nd12=c\\nres=c^d12\\ntmp=aa$c\\n\", \"2\\nmax=aaaa$bbbb\\nmin=bbbb^aaaa\\n\", \"6\\nres=res\\nb=a\\nc=b\\nd=c\\nres=d\\nres=res\\n\", \"4\\nc=a\\na=b\\nb=c\\nres=a&b\\n\", \"1\\nres=res\\n\", \"6\\na=b\\nb=c\\nc=a\\nres=res&a\\nres=res#b\\nres=res^c\\n\", \"3\\na=res\\n... | VERY_HARD | {
"id": "taco-train-15333",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_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$, you can do at most... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3 1\\n3 1 4\\n2 10\\n1 0\\n\", \"1\\n3 1\\n1 8 9\\n\", \"1\\n3 1\\n3 1 9\\n\", \"1\\n3 1\\n1 0 1\\n\"], \"outputs\": [\"2 1 5 \\n0 1 \\n\", \"0 8 10 \\n\", \"2 1 10 \\n\", \"0 0 2 \\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12761",
"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": "Suppose you are performing the following algorithm. ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4 100\\n0 0 0 0\\n1 2\\n1\\n3 4\\n1 4 1\\n3 2\\n0 1 3\\n3 9\\n0 59049 810\\n\", \"1\\n1 12\\n11\\n\", \"1\\n2 3\\n18 3\\n\", \"1\\n1 16\\n100\\n\", \"1\\n3 2\\n1 1 1\\n\", \"1\\n4 3\\n2 6 18 54\\n\", \"1\\n2 2\\n10000000000000000 9007199254740992\\n\", \"1\\n30 2\\n16777216 3355... | rating_1201-1400 | {
"id": "1312_C. Adding Powers",
"rating": 1400,
"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": "Niwel is a little golden bear. As everyone knows, be... | code | {
"ground_truth": "{\"inputs\": [\"4 4 3\\n1 2 2\\n2 4 1\\n1 3 1\\n3 4 2\\n\", \"5 11 23\\n1 2 3\\n2 3 4\\n3 4 5\\n4 5 6\\n1 3 4\\n2 4 5\\n3 5 6\\n1 4 2\\n2 5 3\\n1 5 2\\n3 2 30\\n\", \"10 16 63\\n1 2 1\\n2 10 1\\n1 3 1\\n3 10 1\\n1 4 1\\n4 10 1\\n1 5 1\\n5 10 1\\n1 6 1\\n6 10 1\\n1 7 1\\n7 10 1\\n1 8 1\\n8 10 1\\n1 ... | rating_>1900 | {
"id": "653_D. Delivery Bears",
"rating": 2200,
"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": "On the eve of Diwali, Hari is decorating his house w... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1\\n2\"], \"outputs\": [\"1\\n3\"]}",
"style": "rule"
} | none | {
"id": "comr03",
"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": "Mr. Chef is the manager of the Code cinemas and afte... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 5\\n3 3\\n4 4\"], \"outputs\": [\"3\\n4\\n4\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24047",
"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": "Pasha has recently bought a new phone jPager and sta... | code | {
"ground_truth": "{\"inputs\": [\"6 2\\n38 56 49\\n7 3 4\\n\", \"8 2\\n1 22 3 44\\n5 4 3 2\\n\", \"2 1\\n9 9\\n9 9\\n\", \"2 1\\n9 9\\n0 9\\n\", \"4 1\\n4 3 2 1\\n1 2 3 4\\n\", \"18 9\\n2 3\\n0 4\\n\", \"4 4\\n1122\\n2\\n\", \"10 5\\n8378 11089\\n7 5\\n\", \"10 5\\n52057 11807\\n0 1\\n\", \"10 1\\n3 1 1 4 8 7 5 6 4 ... | MEDIUM_HARD | {
"id": "taco-train-24644",
"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 the faculty of Computer Science in Berland.... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2050\\n\", \"3\\n2014 2016 2015\\n\", \"5\\n2099 2096 2095 2097 2098\\n\", \"3\\n2011 2010 2012\\n\", \"5\\n2097 2099 2100 2098 2096\\n\", \"5\\n2011 2014 2013 2010 2012\\n\", \"5\\n2021 2023 2024 2020 2022\\n\", \"5\\n2011 2014 2012 2013 2010\\n\", \"5\\n2043 2042 2041 2044 204... | rating_<=1200 | {
"id": "769_A. Year of University Entrance",
"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": "Polycarp is sad — New Year is coming in few days but... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 3 3\\n1 10 2\\n2 1 1\\n\", \"1\\n109 107 7856743\\n\", \"1\\n249342 9240924 10319492\\n\", \"1\\n10123 1854 1\\n\", \"6\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\\n\", \"11\\n1000000000 500000000 500000000\\n1000000000 500000000 499999999\\n1000000000 499999999 499999999... | EASY | {
"id": "taco-train-23571",
"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": "The territory of Berland is represented by a rectang... | code | {
"ground_truth": "{\"inputs\": [\"2 2\", \"3 3\", \"3 2\", \"2 3\", \"3 4\", \"6 3\", \"4 3\", \"1 2\", \"1 3\", \"1 99\", \"1 100\", \"2 1\", \"3 1\", \"99 1\", \"100 1\", \"8 97\", \"2 4\", \"2 99\", \"2 100\", \"4 2\", \"99 2\", \"100 2\", \"100 100\", \"99 100\", \"99 99\", \"100 99\", \"33 81\", \"11 17\", \"36... | rating_>1900 | {
"id": "43D",
"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": "Kirito is stuck on a level of the MMORPG he is playi... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 99\\n100 0\\n\", \"10 1\\n100 100\\n\", \"10 1\\n10 10\\n\", \"4 2\\n2 1\\n10 3\\n\", \"2 5\\n5 1\\n2 1\\n3 1\\n1 1\\n4 1\\n\", \"1 2\\n100 1\\n100 1\\n\", \"2 3\\n1 1\\n1 10\\n17 2\\n\", \"10 10\\n2 10\\n3 10\\n4 10\\n2 20\\n3 20\\n3 20\\n100 50\\n100 30\\n150 30\\n200 10\\... | rating_<=1200 | {
"id": "230_A. Dragons",
"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": "Ralph is going to collect mushrooms in the Mushroom ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 4\\n2 3 3\\n1 3 8\\n1\\n\", \"2 2\\n1 2 4\\n2 1 4\\n1\\n\", \"1 0\\n1\\n\", \"5 3\\n1 2 4\\n2 3 3\\n1 3 8\\n1\\n\", \"5 3\\n1 2 4\\n2 3 3\\n1 3 11\\n1\\n\", \"5 3\\n1 4 4\\n2 3 3\\n1 3 22\\n1\\n\", \"2 2\\n2 2 4\\n2 1 4\\n1\\n\", \"5 3\\n1 2 4\\n2 3 3\\n1 3 16\\n1\\n\", \"... | rating_>1900 | {
"id": "894_E. Ralph and Mushrooms",
"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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You might have heard about the next game in Lara Cro... | code | {
"ground_truth": "{\"inputs\": [\"4 3 0\\n\", \"4 3 11\\n\", \"4 3 7\\n\", \"1000000000 2 1999999999\\n\", \"1000000000 1000000000 999999999999999999\\n\", \"1000000000 1000000000 999999999\\n\", \"1000000000 1000000000 2000000500\\n\", \"2 2 2\\n\", \"28 3 1\\n\", \"2 3 3\\n\", \"4 6 8\\n\", \"6 6 18\\n\", \"4 3 8\... | EASY | {
"id": "taco-train-10566",
"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 is a square of size $10^6 \\times 10^6$ on the... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n2 3 1000000\\n4 0 4\\n3 0 1000000\\n4 0 1\\n2 0 5\\n3 1 1000000\\n\", \"0 1\\n242110 453990 1000000\\n\", \"1 1\\n500000 1 1000000\\n500000 0 999999\\n\", \"3 0\\n3 1 1000000\\n1 1 1000000\\n2 1 1000000\\n\", \"1 1\\n999999 999999 1000000\\n999999 0 999999\\n\", \"0 0\\n\", \"... | MEDIUM | {
"id": "taco-train-12300",
"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, the mighty Blackout, are standing in the upper-... | code | {
"ground_truth": "{\"inputs\": [\"3 3 5\\n0 1 1 0 7\\n1 1 1 0 10\\n1 1 1 1 2\\n1 1 1 2 2\\n0 1 1 2 3\\n\", \"4 5 6\\n0 2 2 2 3\\n1 2 2 3 4\\n0 3 1 2 1\\n0 1 1 0 6\\n0 2 1 0 6\\n2 3 1 5 1\\n\", \"6 6 10\\n1 2 2 3 955300913\\n3 2 2 5 386942644\\n2 4 1 0 119429360\\n3 4 1 6 336148289\\n1 1 1 1 364289283\\n2 2 2 4 72408... | rating_>1900 | {
"id": "1218_C. Jumping Transformers",
"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": "It is nighttime and Joe the Elusive got into the cou... | code | {
"ground_truth": "{\"inputs\": [\"3 2 2\\n4 1 3\\n\", \"2 3 1\\n2 3\\n\", \"5 10 7\\n98765 78654 25669 45126 98745\\n\", \"2 7597 8545\\n74807 22362\\n\", \"1 1 1000000000\\n100\\n\", \"5 2 9494412\\n5484 254 1838 18184 9421\\n\", \"95 97575868 5\\n4612 1644 3613 5413 5649 2419 5416 3926 4610 4419 2796 5062 2112 107... | rating_1601-1900 | {
"id": "89_A. Robbery",
"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": "Polycarp has prepared $n$ competitive programming pr... | code | {
"ground_truth": "{\"inputs\": [\"18\\n2 1 2 10 2 10 10 2 2 1 10 10 10 10 1 1 10 10\\n\", \"10\\n6 6 6 3 6 1000000000 3 3 6 6\\n\", \"3\\n1337 1337 1337\\n\", \"1\\n1000000000\\n\", \"2\\n1 1\\n\", \"3\\n1 2 3\\n\", \"55\\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 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ... | MEDIUM_HARD | {
"id": "taco-train-19682",
"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": "## Task\n\n**_Given_** *an array of integers* , **_Fi... | code | {
"ground_truth": "{\"fn_name\": \"adjacent_element_product\", \"inputs\": [[[5, 8]], [[5, 1, 1, 8]], [[1, 2, 3]], [[1, 5, 10, 9]], [[4, 12, 3, 1, 5]], [[5, 1, 2, 3, 1, 4]], [[3, 6, -2, -5, 7, 3]], [[9, 5, 10, 2, 24, -1, -48]], [[5, 6, -4, 2, 3, 2, -23]], [[-23, 4, -5, 99, -27, 329, -2, 7, -921]], [[1, 0, 1, 0, 1000]... | EASY | {
"id": "taco-train-17371",
"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": "**This Kata is intended as a small challenge for my s... | code | {
"ground_truth": "{\"fn_name\": \"remove_vowels\", \"inputs\": [[\"drake\"], [\"scholarstem\"], [\"codewars\"], [\"high fives!\"], [\"\"], [\"i\"], [\"b\"]], \"outputs\": [[\"drk\"], [\"schlrstm\"], [\"cdwrs\"], [\"hgh fvs!\"], [\"\"], [\"\"], [\"b\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11177",
"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": "Coloring of the vertices of a tree G is called a goo... | code | {
"ground_truth": "{\"inputs\": [\"8\\n1 2\\n2 3\\n4 3\\n5 4\\n6 7\\n6 8\\n3 6\", \"13\\n5 6\\n6 4\\n2 8\\n4 7\\n8 9\\n3 2\\n10 4\\n11 10\\n2 4\\n13 10\\n1 8\\n12 1\", \"5\\n1 2\\n2 3\\n3 4\\n3 5\", \"10\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n3 8\\n5 9\\n3 10\", \"8\\n1 2\\n2 3\\n4 3\\n5 8\\n6 7\\n6 8\\n3 6\", \"13\\n... | none | {
"id": "p03348 AtCoder Grand Contest 024 - Isomorphism Freak",
"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 the Search Ultimate program that searched for ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n\", \"41\\n\", \"4\\n\", \"57\\n\", \"20\\n\", \"117\\n\", \"49\\n\", \"45\\n\", \"36\\n\", \"47\\n\", \"241\\n\", \"23\\n\", \"176\\n\", \"30\\n\", \"115\\n\", \"250\\n\", \"187\\n\", \"85\\n\", \"131\\n\", \"243\\n\", \"189\\n\", \"21\\n\", \"148\\n\", \"213\\n\", \"186\\n\", ... | rating_>1900 | {
"id": "94_E. Azembler",
"rating": 2500,
"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": "Given are three integers N, K, and S.\n\nFind a sequ... | code | {
"ground_truth": "{\"inputs\": [\"5 3 100\", \"4 2 3\", \"5 3 000\", \"5 0 100\", \"4 1 3\", \"5 3 010\", \"4 0 3\", \"10 3 010\", \"8 0 3\", \"10 5 010\", \"8 1 3\", \"10 5 000\", \"10 1 3\", \"10 9 000\", \"10 2 3\", \"17 9 000\", \"10 0 3\", \"10 9 001\", \"7 0 3\", \"10 6 001\", \"7 0 6\", \"13 6 001\", \"2 0 6\... | none | {
"id": "p02797 Keyence Programming Contest 2020 - Subarray Sum",
"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": "Captain Bill the Hummingbird and his crew recieved a... | code | {
"ground_truth": "{\"inputs\": [\"1 1 3 6\\n1 5\\n\", \"0 0 0 6\\n2 3\\n\", \"7 -7 1 -7\\n2 2\\n\", \"-61972 -39646 -42371 -24854\\n573 238\\n\", \"1 1 4 4\\n2 2\\n\", \"9 -3 -9 -3\\n2 2\\n\", \"70 -81 -17 80\\n87 23\\n\", \"0 8 6 2\\n1 1\\n\", \"-6 -6 -10 -5\\n6 7\\n\", \"1 1 1 6\\n1 5\\n\", \"3 7 -8 8\\n2 2\\n\", ... | rating_<=1200 | {
"id": "817_A. Treasure Hunt",
"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": "In this kata we want to convert a string into an inte... | code | {
"ground_truth": "{\"fn_name\": \"parse_int\", \"inputs\": [[\"zero\"], [\"one\"], [\"two\"], [\"three\"], [\"four\"], [\"five\"], [\"six\"], [\"seven\"], [\"eight\"], [\"nine\"], [\"ten\"], [\"twenty\"], [\"twenty-one\"], [\"thirty-seven\"], [\"forty-six\"], [\"fifty-nine\"], [\"sixty-eight\"], [\"seventy-two\"], [... | MEDIUM_HARD | {
"id": "taco-train-22890",
"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": "You are given a string s of length n consisting of l... | code | {
"ground_truth": "{\"inputs\": [\"7 4\\nabacaba\\n1 1 1\\n1 4 2\\n2 1 3\\n2 4 3\\n\", \"64 1\\naabbaabababbaababababbabbabaaabbbbbaaaababbaaabbbaabbaaaabbaaaba\\n1 33 32\\n\", \"40 1\\nbabbaaaabaabbbaabbaaabbbabbbbbaaaabaaaab\\n1 21 20\\n\", \"36 4\\naababcbbcbczaaawwwwwaaaabbbbtestbest\\n1 7 6\\n13 18 5\\n23 26 3\\... | rating_>1900 | {
"id": "985_F. Isomorphic Strings",
"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": "This problem is different with easy version only by ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n\\na\\naa\\na\\n\\ncb\\nb\\nc\\n\\nc\", \"33\\nuuuuuuutttttttmmmmmmmtttttthhhhhh\\n\", \"100\\nccccccccccccccceeeeeeeeeeeeeeecccccccccccccceeeeeeeeeeeeeeccccccccccccccbbbbbbbbbbbbbbdddddddddddddd\\n\", \"33\\naaaaaaaaabbbbbbbbaaaaaaaabbbbbbbb\\n\", \"4\\nabcd\\n\", \"4\\nqjnq\\n... | rating_>1900 | {
"id": "1287_E2. Madhouse (Hard version)",
"rating": 2800,
"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": "Calculate the amount for given principal amount P , t... | code | {
"ground_truth": "{\"inputs\": [\"P = 1000 , T = 2 , N = 2 , R = 10\", \"P = 100 , T = 1 , N = 1 , R = 10\"], \"outputs\": [\"1215\", \"110\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8532",
"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": "Hector the hacker has stolen some information, but it... | code | {
"ground_truth": "{\"fn_name\": \"find_key\", \"inputs\": [[\"47b\"], [\"2533\"], [\"1ba9\"]], \"outputs\": [[1080], [9328], [6912]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12695",
"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 sorted integer array Arr[ ] of size N, and th... | code | {
"ground_truth": "{\"inputs\": [\"A = -1, B = 2, C = -1.\\r\\nN = 6\\r\\nArr[] = {-1, 0, 1, 2, 3, 4}\", \"A = 1, B = 1, C = 1.\\r\\nN = 3\\r\\nArr[] = {1, 2, 3}\"], \"outputs\": [\"-9 -4 -4 -1 -1 0\", \"3 7 13\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9175",
"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": "Pari has a friend who loves palindrome numbers. A pa... | code | {
"ground_truth": "{\"inputs\": [\"1\", \"10\", \"11\", \"12\", \"100\", \"1321\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"26550\", \"16137\", \"91471\", \"41242\", \"30866\", \"4442231232741003009964183199713851566466079882929007253443... | rating_<=1200 | {
"id": "688B",
"rating": 1000,
"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 a singly linked list. The task is to find the l... | code | {
"ground_truth": "{\"inputs\": [\"LinkedList:1->2->3->4->5\", \"LinkedList:2->4->6->7->5->1->0\"], \"outputs\": [\"5\", \"7\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14532",
"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": "Implement `String#parse_mana_cost`, which parses [Mag... | code | {
"ground_truth": "{\"fn_name\": \"parse_mana_cost\", \"inputs\": [[\"\"], [\"0\"], [\"1\"], [\"4\"], [\"15\"], [\"2rr\"], [\"1wbg\"], [\"1WWU\"], [\"0r\"], [\"2x\"], [\"2R\"], [\"2\\n\"], [\"\\n2\"], [\"1b\"], [\"1bb\"], [\"1bbb\"], [\"1bg\"], [\"1bgu\"], [\"1br\"], [\"1brg\"], [\"1g\"], [\"1gg\"], [\"1ggg\"], [\"1g... | EASY | {
"id": "taco-train-1246",
"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": "Three candidates take part in a TV show.\n\nIn order ... | code | {
"ground_truth": "{\"fn_name\": \"winner\", \"inputs\": [[[]]], \"outputs\": [[false]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11197",
"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": "Inna loves sweets very much. That's why she wants to... | code | {
"ground_truth": "{\"inputs\": [\"4 5 5\\n0 1 1 2 3 2\\n0 2 2 3 3 3\\n0 1 5 4 5 1\\n1 2 3 3 4\\n1 3 4 3 4\\n\", \"4000000 4000000 1\\n1 2 2 3999999 3999999\\n\", \"52 27 8\\n1 2 2 2 2\\n0 17 16 26 19 23114845\\n1 23 7 33 17\\n1 2 11 26 13\\n0 14 21 27 21 36953730\\n1 18 12 24 14\\n0 23 25 27 27 49008751\\n0 23 19 33... | none | {
"id": "390_E. Inna and Large Sweet Matrix",
"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 Bitlandians are quite weird people. They have ve... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 999\\n999 1\\n\", \"3\\n400 600\\n400 600\\n400 600\\n\", \"2\\n500 500\\n500 500\\n\", \"1\\n1 999\\n\", \"10\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n1 999\\n\", \"2\\n499 501\\n501 499\\n\", \"3\\n500 500\\n1 999\\n400 600\\n\", \"1\\n0 1000... | MEDIUM | {
"id": "taco-train-20026",
"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": "One day Vasya was going home when he saw a box lying... | code | {
"ground_truth": "{\"inputs\": [\"2 2 2\\n1 1 1\\n1 2 3 4 5 6\\n\", \"0 0 10\\n3 2 3\\n1 2 3 4 5 6\\n\", \"5 5 0\\n3 1 3\\n832224 636838 995053 211585 505442 341920\\n\", \"34271 -17508 -6147\\n456 567 112\\n804178 307516 306399 18981 989216 228388\\n\", \"967 -1346 2551\\n769 331 28\\n458319 885170 877010 533360 72... | rating_1401-1600 | {
"id": "231_D. Magic Box",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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": "Everybody loves magic, especially magicians who comp... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n0 -4\\n8 0\\n2\\n0 -45\\n-3 0\", \"2\\n2\\n0 -4\\n8 0\\n2\\n0 -45\\n-2 0\", \"2\\n2\\n0 -4\\n6 0\\n2\\n0 -45\\n-2 1\", \"2\\n2\\n0 -8\\n10 0\\n2\\n0 -17\\n-3 -1\", \"2\\n2\\n0 -8\\n7 0\\n2\\n0 -45\\n-3 -1\", \"2\\n2\\n0 -8\\n2 0\\n2\\n0 -19\\n-2 0\", \"2\\n2\\n0 -4\\n8... | MEDIUM | {
"id": "taco-train-20767",
"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": "Ignoring the air resistance, velocity of a freely fa... | code | {
"ground_truth": "{\"inputs\": [\"25.4\\n25.4\", \"26.000450676027395\\n25.4\", \"26.601491934975797\\n25.4\", \"26.840499084692592\\n26.667646669726267\", \"28.332769442919567\\n26.667646669726267\", \"30.680680649968536\\n27.762964644795844\", \"30.680680649968536\\n28.560601801329888\", \"31.609624009789687\\n28.... | none | {
"id": "p00024 Physical Experiments",
"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": "Raghav is good in mathematics. He loves to ask puzzl... | code | {
"ground_truth": "{\"inputs\": [\"8\\n3 5 3 1 2 5 3 7\\n\\nSAMPLE\", \"30\\n2 2 2 2 2 2 2 3 3 3 3 3 3 4 4 4 4 4 4 5 5 5 5 5 5 5 1 1 1 1 1\", \"12\\n3 1 3 5 20000 30000 2 0 1 1 2 3\", \"8\\n0 0 0 0 0 0 0 0\"], \"outputs\": [\"6\", \"618\", \"13\", \"56\"]}",
"style": "rule"
} | none | {
"id": "tricky-triplet-2",
"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 recently found Ancient Prophesy is believed to con... | code | {
"ground_truth": "{\"inputs\": [\"777-444---21-12-2013-12-2013-12-2013---444-777\\n\", \"12-12-201312-12-201312-12-201313--12-201313--12-201313--12-201313--12-201313--12-201313--12-201313--12-201313--12-2013\\n\", \"01--01--2013-12-2013-01--01--2013\\n\", \"01-04-201425-08-201386-04-201525-10-2014878-04-20102-06-201... | rating_1401-1600 | {
"id": "260_B. Ancient Prophesy",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
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": "There are N children standing in a line. Each child i... | code | {
"ground_truth": "{\"fn_name\": \"candy\", \"inputs\": [[[1, 0, 2]]], \"outputs\": [5]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-16043",
"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": "Snuke has a sequence of N integers x_1,x_2,\\cdots,x... | code | {
"ground_truth": "{\"inputs\": [\"15\\n541962451 761940280 182215520 378290929 211514670 802103642 28942109 641621418 380343684 526398645 81993818 14709769 139483158 444795625 40343083\", \"5\\n1 2 1 2 1\", \"5\\n2 1 2 1 2\", \"15\\n541962451 761940280 37261785 378290929 211514670 802103642 28942109 641621418 380343... | none | {
"id": "p02877 AtCoder Grand Contest 040 - Prefix Suffix Addition",
"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 image with a height of H pixels and ... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\nabc\\narc\\n\", \"1 1\\nz\\n\", \"2 3\\nabc\\nbrc\", \"1 1\\ny\", \"2 3\\nabc\\nbqc\", \"0 1\\ny\", \"2 1\\nabc\\nbrc\", \"1 1\\nx\", \"1 2\\nz\", \"0 2\\nz\", \"-2 0\\nz\", \"-2 -1\\nz\", \"1 -1\\nz\", \"1 0\\nz\", \"-20 3\\nx\", \"-20 5\\nx\", \"-20 6\\nx\", \"1 0\\nv\", \"2... | EASY | {
"id": "taco-train-3479",
"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": "Gargari got bored to play with the bishops and now, ... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1 4 2 3\\n4 1 2 3\\n1 2 4 3\", \"6 3\\n2 5 1 4 6 3\\n5 1 4 3 2 6\\n5 4 2 6 3 1\", \"41 4\\n24 15 17 35 13 41 4 14 23 5 8 16 21 18 30 36 6 22 11 29 26 1 40 31 7 3 32 10 28 38 12 20 39 37 34 19 33 27 2 25 9\\n22 13 25 24 38 35 29 12 15 8 11 37 3 19 4 23 18 32 30 40 36 21 16 34 2... | rating_1601-1900 | {
"id": "463D",
"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": "Given a binary tree and an integer value K, the task ... | code | {
"ground_truth": "{\"inputs\": [\"K = 1\\r\\n 0\\r\\n / \\\\\\r\\n 1 2\", \"K = 2\\r\\n 0\\r\\n / \\\\\\r\\n 1 2\\r\\n / \\r\\n 4\\r\\n / \\\\\\r\\n 5 9\"], \"outputs\": [\"-1\", \"4 2\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4058",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
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": "Consider the infinite sequence of integers: 1,<=1,<=... | code | {
"ground_truth": "{\"inputs\": [\"3\", \"5\", \"10\", \"55\", \"56\", \"1000000000000\", \"847194127849\", \"294719472984\", \"999999911791\", \"999999911792\", \"100000000000000\", \"1\", \"99993\", \"99994\", \"99995\", \"99990\", \"2\", \"99991\", \"99992\", \"99996\", \"99997\", \"99998\", \"99999\", \"1021\", \... | rating_<=1200 | {
"id": "622A",
"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": "The country of Reberland is the archenemy of Berland... | code | {
"ground_truth": "{\"inputs\": [\"suffixtree\\n3\\nsuffixtreesareawesome\\ncartesiantreeisworsethansegmenttree\\nnyeeheeheee\\n2\\n1 2 1 10\\n1 3 9 10\\n\", \"cxunrvxqydbqbcgmzlhz\\n8\\ncgmzl\\nz\\nvxqydbqbcgmz\\nvxqydbqbcgmz\\ncgmzlhz\\nc\\nz\\nb\\n6\\n6 7 2 2\\n5 6 6 17\\n2 4 13 19\\n5 8 8 9\\n1 7 6 11\\n5 6 8 11\... | rating_>1900 | {
"id": "666_E. Forensic Examination",
"rating": 3100,
"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": "To get money for a new aeonic blaster, ranger Qwerty... | code | {
"ground_truth": "{\"inputs\": [\"3 3 10\\nVenus\\n6 5 3\\n7 6 5\\n8 6 10\\nEarth\\n10 9 0\\n8 6 4\\n10 9 3\\nMars\\n4 3 0\\n8 4 12\\n7 2 5\", \"2 1 5\\nA\\n6 5 5\\nB\\n10 9 0\", \"2 2 5\\nAbcdefghij\\n20 15 20\\n10 5 13\\nKlmopqrstu\\n19 16 20\\n12 7 14\", \"3 1 5\\nTomato\\n10 7 20\\nBanana\\n13 11 0\\nApple\\n15 ... | rating_<=1200 | {
"id": "176A",
"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": "`Description:`\n\nGiven an input array (`arr`) of pos... | code | {
"ground_truth": "{\"fn_name\": \"bucketize\", \"inputs\": [[2, 2, 4, 4, 6, 6, 9, 9, 9, 9], [3, 3, 3, 3, 2], [5, 5, 5, 5, 5], [77, 3, 40, 40, 40], [16, 7, 5, 3, 6, 23]], \"outputs\": [[[null, null, [2, 4, 6], null, [9], null, null, null, null, null, null]], [[null, [2], null, null, [3], null]], [[null, null, null, n... | EASY | {
"id": "taco-train-7588",
"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": "In a building where Polycarp lives there are equal n... | code | {
"ground_truth": "{\"inputs\": [\"10 3\\n6 2\\n2 1\\n7 3\\n\", \"8 4\\n3 1\\n6 2\\n5 2\\n2 1\\n\", \"8 3\\n7 2\\n6 2\\n1 1\\n\", \"4 2\\n8 3\\n3 1\\n\", \"11 4\\n16 4\\n11 3\\n10 3\\n15 4\\n\", \"16 6\\n3 1\\n16 4\\n10 3\\n9 3\\n19 5\\n8 2\\n\", \"1 0\\n\", \"1 1\\n1 1\\n\", \"1 1\\n1 1\\n\", \"1 2\\n1 1\\n2 2\\n\",... | MEDIUM | {
"id": "taco-train-11174",
"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": "Zibi is a competitive programming coach. There are $... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n1 2\\n2 3\\n1 3\\n1 2\\n2 3\\n\", \"3 3\\n1 2\\n2 3\\n1 3\\n1 2\\n2 3\\n1 3\\n\", \"5 3\\n-1 3\\n2 4\\n1 1\\n3 5\\n2 2\\n1 4\\n2 3\\n3 5\\n\", \"4 0\\n-1000000000 -1000000000\\n1000000000 -1000000000\\n-1000000000 1000000000\\n1000000000 1000000000\\n\", \"4 4\\n-1000000000 -1... | HARD | {
"id": "taco-train-22368",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.