data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
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 tournament is a directed graph without self-loops ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n00100\\n10000\\n01001\\n11101\\n11000\\n\", \"5\\n01111\\n00000\\n01000\\n01100\\n01110\\n\", \"10\\n0000010011\\n1001001111\\n1100001110\\n1010010011\\n1111011000\\n0110000001\\n1001010100\\n1001110000\\n0000111101\\n0010101100\\n\", \"5\\n01111\\n00111\\n00010\\n00001\\n00100\...
rating_>1900
{ "id": "117_C. Cycle", "rating": 2000, "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": "Once when Gerald studied in the first year at school...
code
{ "ground_truth": "{\"inputs\": [\"aaaaa\\n4\", \"abacaba\\n4\", \"abcdefgh\\n10\", \"aaaaaaaaaaaaaaaaaaaa\\n19\", \"abcdefghijjihgedcba\\n0\", \"aababcabcdabcde\\n9\", \"xyzuvwxyz\\n4\", \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\n99\", \"xxxxxxxxxxxxxxxxx...
rating_<=1200
{ "id": "101A", "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 ... ```). 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\": [\"1\\n3\\n1 2 4\"], \"outputs\": [\"2\"]}", "style": "rule" }
HARD
{ "id": "taco-train-1382", "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": "Recently Polycarp started to develop a text editor t...
code
{ "ground_truth": "{\"inputs\": [\"12 5 3\\n((()())(()))\\nRRDLD\\n\", \"8 8 8\\n(())()()\\nLLLLLLDD\\n\", \"8 4 5\\n(())()()\\nRDLD\\n\", \"88 33 12\\n(())((((())()((()())())())(((())())(())()())(()))((()())())())(((())()())(())()())()()()\\nLLLRRLRDRDRLDDLLRDLLDRLRDDLDRDLRR\\n\", \"14 8 13\\n((())())((()))\\nDLRLLR...
rating_1601-1900
{ "id": "670_E. Correct Bracket Sequence Editor", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-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": "You are given a set *Y* of *n* distinct positive int...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\", \"6\\n15 14 3 13 1 12\", \"6\\n9 7 13 17 5 11\", \"10\\n18 14 19 17 11 7 20 10 4 12\", \"100\\n713 716 230 416 3 2 597 216 779 839 13 156 723 793 168 368 232 316 98 257 170 27 746 9 616 147 792 890 796 362 852 117 993 556 885 73 131 475 121 753 508 158 473 931 527 2...
rating_1601-1900
{ "id": "722D", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A person is said to be sleep deprived if he slept st...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n7\\n10\\n\"], \"outputs\": [\"YES\\nNO\\nNO\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19515", "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 elections to Berland parliament are happening to...
code
{ "ground_truth": "{\"inputs\": [\"3 1 5 3\\n1 3 1\\n\", \"3 2 5 3\\n1 3 1\\n\", \"3 1 5 4\\n1 2 1 3\\n\", \"23 13 85 26\\n20 21 4 10 7 20 12 23 13 20 11 19 9 13 7 21 19 21 4 10 14 9 10 5 14 7\\n\", \"2 2 3 1\\n1\\n\", \"71 28 95 28\\n17 32 47 35 34 65 44 11 32 9 34 19 34 15 68 7 42 53 67 6 7 70 18 28 45 67 10 20\\n\...
rating_>1900
{ "id": "847_F. Berland Elections", "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": "The currency system in the Kingdom of Yoax-Musty is ...
code
{ "ground_truth": "{\"inputs\": [\"\"], \"outputs\": [\"\"]}", "style": "rule" }
none
{ "id": "p01589 Strange Currency System", "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 lighthouse keeper Peter commands an army of n batt...
code
{ "ground_truth": "{\"inputs\": [\"12\\n0 0 0 0 1 1 1 1 0 1 1 0\\n\", \"5\\n1 0 0 0 1\\n\", \"79\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0\\n\", \"2\\n0 0\\n\", \"80\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
rating_>1900
{ "id": "1420_E. Battle Lemmings", "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": "UTF-8 is one of the methods for coding multibyte cha...
code
{ "ground_truth": "{\"inputs\": [\"1\\nxxxxxxxx\", \"1\\nxxxxxxxx\\n3\\n11100000\\n10x00000\\n10111111\\n3\\n11100000\\n10000000\\n10111111\\n4\\nxxxxxxxx\\nxxxxxxxx\\nxxxxxxxx\\nxxxxxxxx\\n0\", \"3\\n11100000\\n10000000\\n10111111\", \"3\\n11100000\\n10x00000\\n10111111\", \"4\\nxxxxxxxx\\nxxxxxxxx\\nxxxxxxxx\\nxxxx...
none
{ "id": "p01326 UTF-8", "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 correct solution of the sudoku puzzl...
code
{ "ground_truth": "{\"inputs\": [\"1\\n154873296\\n386592714\\n729641835\\n863725149\\n975314628\\n412968357\\n631457982\\n598236471\\n247189563\\n\", \"2\\n154873296\\n386592714\\n729641835\\n863725149\\n975314628\\n412968357\\n631457982\\n598236471\\n247189563\\n154873296\\n386592714\\n729641835\\n863725149\\n97531...
EASY
{ "id": "taco-train-19373", "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": "There are many ways to order a list of integers from...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n3 1 2\\n3\\n1 2 3\\n\\nSAMPLE\", \"2\\n42\\n2 1 15 13 34 33 38 18 28 31 19 14 27 3 17 41 7 30 23 37 26 32 5 16 40 42 12 25 21 36 4 24 20 10 22 29 39 6 9 35 8 11 \\n9\\n1 4 8 2 3 6 5 7 9\", \"2\\n3\\n3 1 2\\n3\\n1 2 3\\n\\nSAMPLF\", \"2\\n3\\n3 2 1\\n3\\n1 2 3\\n\\nS@MOLD\", ...
none
{ "id": "inverse-list", "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": "Once upon a time a man came to the sea. The sea was ...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n\\n1 2\\n\\n2 3\\n\\n3 1\", \"1 0\", \"4 4\\n\\n1 2\\n\\n3 4\\n\\n4 1\\n\\n2 4\", \"12 10\\n\\n1 11\\n\\n3 6\\n\\n5 7\\n\\n4 7\\n\\n6 8\\n\\n11 7\\n\\n3 12\\n\\n11 12\\n\\n7 9\\n\\n12 2\"], \"outputs\": [\"FHTAGN!\", \"FHTAGN!\", \"NO\", \"NO\"]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-8230", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are b blocks of digits. Each one consisting of...
code
{ "ground_truth": "{\"inputs\": [\"3 2 1 2\\n3 1 2\\n\", \"3 2 1 2\\n6 2 2\\n\", \"12 1 5 10\\n3 5 6 7 8 9 5 1 1 1 1 5\\n\", \"6 5 12 23\\n5 8 2 6 5 5\\n\", \"3 2 0 2\\n3 3 9\\n\", \"100 1000000000 42 97\\n2 5 1 8 8 1 5 2 1 2 5 1 8 8 1 5 2 1 2 5 1 8 8 1 5 2 1 2 5 1 8 8 1 5 2 1 2 5 1 8 8 1 5 2 1 2 5 1 8 8 1 5 2 1 2 5 ...
rating_>1900
{ "id": "621_E. Wet Shark and Blocks", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array of strings, return all groups of strin...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\\r\\nwords[] = {act,god,cat,dog,tac}\", \"N = 3\\r\\nwords[] = {no,on,is}\"], \"outputs\": [\"act cat tac \\r\\ngod dog\", \"is\\r\\nno on\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-14205", "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": "Akari has n kinds of flowers, one of each kind.\nShe...
code
{ "ground_truth": "{\"inputs\": [\"4 1 3\\n\", \"1000000000 141421 173205\\n\", \"2 1 2\\n\", \"816288818 4784 168417\\n\", \"699889611 31932 135902\\n\", \"700770875 78537 123857\\n\", \"752655475 86918 129211\\n\", \"261214299 38506 63340\\n\", \"424043074 60016 161868\\n\", \"649882392 24593 96263\\n\", \"13617440...
MEDIUM
{ "id": "taco-train-21672", "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": "A dice is a cube, its faces contain distinct integer...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6\\n3 2\\n5 4\\n2 4\", \"3\\n3\\n2 6\\n4 1\\n5 3\", \"1\\n3\\n2 1\", \"2\\n2\\n3 1\\n1 5\", \"3\\n2\\n1 4\\n5 3\\n6 4\", \"4\\n3\\n5 6\\n1 3\\n1 5\\n4 1\", \"2\\n2\\n3 1\\n1 3\", \"3\\n2\\n1 4\\n3 1\\n4 6\", \"4\\n3\\n5 6\\n1 5\\n5 1\\n1 5\", \"5\\n1\\n2 3\\n5 3\\n5 4\\n5 1\\n3 ...
rating_<=1200
{ "id": "225A", "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": "This is the algorithmic version of a game that kids ...
code
{ "ground_truth": "{\"inputs\": [\"5\"], \"outputs\": [\"2\"]}", "style": "rule" }
none
{ "id": "epi01", "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 planning to build housing on a street. There...
code
{ "ground_truth": "{\"inputs\": [\"3 3 3\\n1 1 1\\n2 2 3\\n3 3 2\\n\", \"4 10 2\\n2 3 8\\n3 4 7\\n\", \"50 50 1\\n1 50 0\\n\", \"50 50 50\\n17 40 12\\n33 36 47\\n8 43 35\\n25 29 42\\n18 36 6\\n25 35 18\\n36 48 47\\n17 40 13\\n20 27 37\\n32 32 28\\n17 20 13\\n4 14 6\\n13 18 47\\n18 45 28\\n3 50 45\\n6 6 6\\n3 25 36\\n...
EASY
{ "id": "taco-train-24964", "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": "One day Nikita found the string containing letters \...
code
{ "ground_truth": "{\"inputs\": [\"bab\\n\", \"abba\\n\", \"ba\\n\", \"aaa\\n\", \"babbbaab\\n\", \"abaaaa\\n\", \"bbabbbababaa\\n\", \"aabbaababbab\\n\", \"a\\n\", \"bbabbbbbaaba\\n\", \"bb\\n\", \"ab\\n\", \"aa\\n\", \"b\\n\", \"bbabbbaabbbb\\n\", \"bbaaaa\\n\", \"bbbbbbabaaaa\\n\", \"aabbaababaab\\n\", \"baa\\n\",...
rating_1401-1600
{ "id": "877_B. Nikita and string", "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": "Ivan is collecting coins. There are only N different...
code
{ "ground_truth": "{\"inputs\": [\"10 11 2 4\\n\", \"20 15 2 3\\n\", \"10 6 3 7\\n\", \"7 4 1 6\\n\", \"3 2 1 2\\n\", \"15 9 9 1\\n\", \"10 6 4 3\\n\", \"4 2 1 2\\n\", \"5 2 2 3\\n\", \"63890874321754343 897803536671470111 34570989234398115 10108894437967468\\n\", \"20 15 6 10\\n\", \"5 4 3 2\\n\", \"7 2 5 2\\n\", \"...
rating_1201-1400
{ "id": "1068_A. Birthday", "rating": 1400, "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": "The defaultdict tool is a container in the collectio...
code
{ "ground_truth": "{\"inputs\": [\"5 2\\na\\na\\nb\\na\\nb\\na\\nb\\n\"], \"outputs\": [\"1 2 4\\n3 5\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13551", "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": "Increasing COVID cases have created panic amongst th...
code
{ "ground_truth": "{\"inputs\": [[\"1 2 1 3 14\"]], \"outputs\": [[\"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-17505", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Andrew, Fedor and Alex are inventive guys. Now they ...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\na\\nb\\nc\\n\", \"2 3\\na\\nb\\n\", \"1 2\\nab\\n\", \"3 3\\nabasdfabab\\nabaaasdfdsf\\nasdfaba\\n\", \"4 1\\naa\\naba\\nba\\nbba\\n\", \"3 8\\nso\\nbad\\ntest\\n\", \"1 3\\nab\\n\", \"5 6\\nabas\\ndsfdf\\nabacaba\\ndartsidius\\nkolobok\\n\", \"4 2\\naaaa\\nbbbb\\nccccc\\ndumb...
rating_1601-1900
{ "id": "455_B. A Lot of Games", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The problem describes the properties of a command li...
code
{ "ground_truth": "{\"inputs\": [\"\\\"RUn.exe O\\\" \\\"\\\" \\\" 2ne, \\\" two! . \\\" \\\"\\n\", \" firstarg second \\\"\\\" \\n\", \" \\\" \\\" \\n\", \" a \\\" \\\" a \\\"\\\" a \\n\", \"A\\n\", \"\\\"\\\"\\n\", \"\\\" \\\"\\n\", \"\\\" \\\" \\\"wu\\\" \\\"\\\" \\\" \\\" \\\"\\...
EASY
{ "id": "taco-train-17603", "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": "Bob and Ben are playing a game with forests! The gam...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n1 2\\n1 3\\n1\\n3 2\\n\"], \"outputs\": [\"BEN\\nBOB\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-6060", "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": "Tree is a connected undirected graph that has no cyc...
code
{ "ground_truth": "{\"inputs\": [\"4 4\\n1 2 4\\n2 3 1\\n3 4 2\\n4 2 3\", \"7 9\\n1 2 1\\n2 3 4\\n3 1 5\\n1 4 5\\n4 5 2\\n5 1 6\\n1 6 4\\n6 7 6\\n7 1 3\", \"5 6\\n4 1 2\\n4 2 3\\n5 1 5\\n1 3 1\\n1 2 1\\n5 3 4\", \"9 10\\n8 7 2\\n8 2 10\\n8 4 2\\n6 3 9\\n9 1 1\\n7 5 5\\n9 4 8\\n3 5 3\\n1 2 7\\n6 8 6\", \"20 28\\n20 4 ...
rating_>1900
{ "id": "720B", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Write a function that takes in a binary string and re...
code
{ "ground_truth": "{\"fn_name\": \"binary_to_string\", \"inputs\": [[\"\"], [\"0100100001100101011011000110110001101111\"], [\"00110001001100000011000100110001\"], [\"0101001101110000011000010111001001101011011100110010000001100110011011000110010101110111001011100010111000100000011001010110110101101111011101000110100...
EASY
{ "id": "taco-test-227", "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": "A ski base is planned to be built in Walrusland. Rec...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 3\\n2 3\\n1 2\\n1 2\", \"15 29\\n6 11\\n14 3\\n10 4\\n14 7\\n6 14\\n7 15\\n13 8\\n10 13\\n4 14\\n15 8\\n12 7\\n3 5\\n6 7\\n8 1\\n4 5\\n11 5\\n10 6\\n11 3\\n13 14\\n7 10\\n3 12\\n7 14\\n8 11\\n7 15\\n15 8\\n12 7\\n4 3\\n9 4\\n8 10\", \"34 27\\n19 10\\n8 31\\n26 22\\n2 30\\n32...
rating_>1900
{ "id": "91C", "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": "Polycarp has n friends, the i-th of his friends has ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4\\n4 5 2 5\\n2\\n0 4\\n5\\n10 8 5 1 4\\n1\\n10000\\n7\\n1 1 1 1 1 1 1\\n\", \"1\\n52\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\\n\", \"1\\n2\\n1 691\\n\", \"1\\n3\\n1 1 67\\n\", \"1\\n52\\n1 1 1 1 1 1 1 1 1 1 1 1 1...
none
{ "id": "1538_B. Friends and Candies", "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 [Mandarin Chinese], [Rus...
code
{ "ground_truth": "{\"inputs\": [\"4\\n20 50 2100 1900 6 6\\n50 20 1900 1900 5 5\\n20 20 1900 1900 1 6\\n27 27 1920 1920 3 3\"], \"outputs\": [\"NO\\nNO\\nNO\\nYES\"]}", "style": "rule" }
EASY
{ "id": "taco-train-21032", "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 three piles of candies: red, green and blue...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 1 1\\n1 2 1\\n4 1 1\\n7 4 10\\n8 1 4\\n8 2 8\\n\", \"6\\n1 1 1\\n1 2 1\\n4 1 1\\n7 7 10\\n8 1 4\\n8 2 8\\n\", \"6\\n1 1 1\\n1 2 1\\n4 1 1\\n7 7 18\\n8 1 4\\n8 2 8\\n\", \"6\\n1 1 1\\n1 2 1\\n4 1 1\\n7 7 25\\n8 1 4\\n8 2 15\\n\", \"6\\n1 1 1\\n2 2 1\\n4 1 1\\n7 4 10\\n8 1 4\\n8...
rating_<=1200
{ "id": "1263_A. Sweet Problem", "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": "A string is called beautiful if no two consecutive c...
code
{ "ground_truth": "{\"inputs\": [\"3\\na???cb\\na??bbc\\na?b?c\\n\", \"23\\n?\\n??\\n???\\n????\\n????\\n?a\\n?b\\n?c\\na?\\nb?\\nc?\\n?a?\\n?b?\\n?c?\\na?a\\na?b\\na?c\\nb?a\\nb?b\\nb?c\\nc?a\\nc?b\\nc?c\\n\", \"3\\na???cb\\na??bbc\\nc?b?a\\n\", \"3\\na???cb\\na??bbc\\ncab??\\n\", \"3\\na???cb\\na??bbb\\na?b?c\\n\",...
rating_<=1200
{ "id": "1265_A. Beautiful String", "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 statement of this problem is the same as the sta...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n4\\n200\\n\", \"100\\n2\\n4\\n6\\n8\\n10\\n12\\n14\\n16\\n18\\n20\\n22\\n24\\n26\\n28\\n30\\n32\\n34\\n36\\n38\\n40\\n42\\n44\\n46\\n48\\n50\\n52\\n54\\n56\\n58\\n60\\n62\\n64\\n66\\n68\\n70\\n72\\n74\\n76\\n78\\n80\\n82\\n84\\n86\\n88\\n90\\n92\\n94\\n96\\n98\\n100\\n102\\n...
rating_1201-1400
{ "id": "1354_C1. Simple Polygon Embedding", "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": "Grandma Capa has decided to knit a scarf and asked G...
code
{ "ground_truth": "{\"inputs\": [\"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\nabba\\n8\\nrprarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\nabba\\n8\\nrpqarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyy\\n4\\nabba\\n8\\nrpqarlap\\n10\\nkhyyhhyhky\\n\", \"5\\n8\\nabcaacab\\n6\\nxyzxyz\\n4\\na...
rating_<=1200
{ "id": "1582_C. Grandma Capa Knits a Scarf", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Three guys play a game: first, each person writes do...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\nabc\\ndef\\nabc\\n3\\norz for qaq\\nqaq orz for\\ncod for ces\\n5\\niat roc hem ica lly\\nbac ter iol ogi sts\\nbac roc lly iol iat\\n\", \"1\\n1\\niiy\\niiy\\niiy\\n\"], \"outputs\": [\"1 3 1 \\n2 2 6 \\n9 11 5 \\n\", \"0 0 0 \\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20461", "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": "Gautam Buddha University V.C. has planned a tour for...
code
{ "ground_truth": "{\"inputs\": [\"135\\n44\\n110 49\\n78 43\\n24 101\\n110 62\\n110 14\\n133 82\\n69 67\\n132 27\\n61 53\\n11 40\\n71 129\\n20 6\\n45 123\\n61 42\\n48 126\\n29 68\\n110 83\\n56 52\\n56 75\\n81 24\\n23 103\\n120 17\\n113 37\\n71 131\\n108 124\\n118 59\\n97 106\\n90 57\\n90 26\\n80 108\\n73 125\\n15 5\...
HARD
{ "id": "taco-train-5805", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given two integer arrays A and B each of siz...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 2\\n1 2\\n-2 3\\n3 5\\n1 2 -3\\n-2 3 -5\", \"2\\n2 2\\n1 2\\n-2 3\\n3 2\\n1 2 -3\\n-2 3 -5\", \"2\\n2 2\\n0 2\\n-2 3\\n3 2\\n1 2 -3\\n-2 3 -5\", \"2\\n2 1\\n0 2\\n-2 3\\n3 2\\n1 2 -3\\n-2 3 -5\", \"2\\n2 2\\n1 2\\n-2 3\\n3 5\\n1 1 -3\\n-2 3 -5\", \"2\\n2 4\\n1 2\\n-2 3\\n3 2\\...
none
{ "id": "maxisum", "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": "Take debugging to a whole new level:\n\nGiven a strin...
code
{ "ground_truth": "{\"fn_name\": \"debug\", \"inputs\": [[\"obugobugobuoobugsoo\"], [\"obbugugo\"], [\"bugs bunny\"], [\"bugs buggy\"], [\"oaiwjefbugoijoijapsbugsdoibugbugjfoijasdfbugsbug\"], [\"bugbugbugiahweoifuhiaasnoidfhnbugbugs\"], [\"bugsbugswaoeifhiauwehfoiwubugshefjnviouah\"], [\"bugbugbugbug\"], [\"bugsbugsb...
EASY
{ "id": "taco-train-2951", "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": "Ievan Ritola is a researcher of behavioral ecology. ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1 2\\n2 2 3\", \"2\\n1 1 4\\n2 2 3\", \"2\\n1 1 3\\n2 2 3\", \"2\\n1 1 4\\n2 0 0\", \"2\\n0 1 1\\n2 0 0\", \"2\\n1 1 2\\n2 0 0\", \"2\\n1 1 0\\n3 0 0\", \"2\\n1 1 2\\n3 2 3\", \"2\\n1 1 4\\n2 2 5\", \"2\\n1 0 5\\n2 1 3\", \"2\\n1 1 4\\n4 2 5\", \"2\\n1 0 8\\n1 -1 3\", \"2\\n1 ...
none
{ "id": "p01733 Fox Observation", "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": "Teja likes cricket very much and likes to watch it a...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1\\n4 1\\n7 6\", \"3\\n1 1\\n9 1\\n7 6\"], \"outputs\": [\"YES\", \"NO\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7935", "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": "Valeric and Valerko missed the last Euro football ga...
code
{ "ground_truth": "{\"inputs\": [\"10 3 2\\n\", \"13 12 1\\n\", \"4 1 1\\n\", \"993 992 991\\n\", \"100 1 10\\n\", \"960 935 994\\n\", \"99 8 99\\n\", \"60 16 1\\n\", \"759 10 258\\n\", \"24 19 9\\n\", \"196 169 144\\n\", \"1000 999 1\\n\", \"945 812 917\\n\", \"1000 100 10\\n\", \"500 300 300\\n\", \"888 777 1000\\n...
rating_<=1200
{ "id": "195_A. Let's Watch Football", "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": "##Task:\n\nYou have to write a function **pattern** w...
code
{ "ground_truth": "{\"fn_name\": \"pattern\", \"inputs\": [[1], [2], [5], [0], [-25]], \"outputs\": [[\"1\"], [\"2\\n21\"], [\"5\\n54\\n543\\n5432\\n54321\"], [\"\"], [\"\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-2229", "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 words (beginWord and endWord), and a dictio...
code
{ "ground_truth": "{\"fn_name\": \"ladderLength\", \"inputs\": [[\"\\\"hit\\\"\", \"\\\"cog\\\"\", [\"\\\"hot\\\"\", \"\\\"dot\\\"\", \"\\\"dog\\\"\", \"\\\"lot\\\"\", \"\\\"log\\\"\", \"\\\"cog\\\"\"]]], \"outputs\": [5]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-18079", "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 are playing another computer game, and now you h...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3\\n7 15\\n2 14\\n5 3\\n\", \"10\\n8\\n7 4\\n9 10\\n4 8\\n3 1\\n1 7\\n9 5\\n1 4\\n2 5\\n8\\n9 8\\n4 7\\n7 7\\n3 6\\n8 9\\n2 5\\n4 9\\n2 8\\n7\\n2 2\\n2 7\\n2 10\\n8 6\\n7 4\\n2 6\\n3 10\\n4\\n4 10\\n7 5\\n6 10\\n9 8\\n7\\n8 9\\n8 1\\n3 4\\n5 1\\n3 10\\n9 3\\n5 5\\n5\\n6 1\\n7 3\...
MEDIUM_HARD
{ "id": "taco-train-22231", "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": "Mislove had an array a_1, a_2, ⋅⋅⋅, a_n of n positiv...
code
{ "ground_truth": "{\"inputs\": [\"4 2 2\\n\", \"5 1 5\\n\", \"114 18 19\\n\", \"655 3 18\\n\", \"1000 1 20\\n\", \"106 16 18\\n\", \"588 13 15\\n\", \"1000 20 20\\n\", \"1000 1 1\\n\", \"1 1 1\\n\", \"408 13 13\\n\", \"879 17 17\\n\", \"17 2 14\\n\", \"624 7 17\\n\", \"114 11 19\\n\", \"539 3 18\\n\", \"2 1 1\\n\", ...
rating_<=1200
{ "id": "1204_B. Mislove Has Lost an Array", "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": "Yraglac is running a daycare service for dogs. He ha...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n2 100 10\\n100 1 10\\n\", \"3 3\\n100 20 30\\n10 90 80\\n99 90 98\\n\"], \"outputs\": [\"0\\n\", \"12\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-22571", "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": "Given three integers x, m and n. Evaluate (1 + x + x...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3 2 5\", \"1\\n6 2 5\", \"1\\n6 3 5\", \"1\\n2 3 5\", \"1\\n4 3 4\", \"1\\n4 1 8\", \"1\\n5 1 4\", \"1\\n4 3 11\", \"1\\n5 1 7\", \"1\\n17 6 8\", \"1\\n8 3 16\", \"1\\n12 1 17\", \"1\\n10 1 26\", \"1\\n18 3 20\", \"1\\n4 3 32\", \"1\\n4 3 15\", \"1\\n17 28 19\", \"1\\n5 11 19\",...
none
{ "id": "iitk1p07", "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 and your friends at the Betting against All Prob...
code
{ "ground_truth": "{\"inputs\": [\"2 2 0.5\\n\", \"2 2 0.8\\n\", \"5 3 0.85\\n\"], \"outputs\": [\"0.185185185\\n\", \"0.056241426\\n\", \"0.045463964\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5304", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Convex Hull of a set of points, in 2D plane, is a con...
code
{ "ground_truth": "{\"inputs\": [\"points_list = {{1,2},{3,1},{5,6}}\", \"points_list = {{5,1},{4,4},{1,2}}\"], \"outputs\": [\"{{1,2},{3,1},{5,6}}\", \"{{1,2},{4,4},{5,1}}\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-14270", "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 fed up with your messy room, so you decided ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n()(())()\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n)())(()(\\n10 3\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 2\\n)())(()(\\n10 1\\n))()()()((\\n2 1\\n()\\n2 1\\n)(\\n\", \"4\\n8 3...
rating_1601-1900
{ "id": "1227_C. Messy", "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": "You are given a boolean function of three variables ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n00110011\\n00000111\\n11110000\\n00011111\\n\", \"1\\n11001110\\n\", \"2\\n11001110\\n01001001\\n\", \"3\\n10001001\\n10111011\\n10111101\\n\", \"4\\n11000010\\n11000010\\n11001110\\n10001001\\n\", \"5\\n01111000\\n00110110\\n00011100\\n01110111\\n01010011\\n\", \"4\\n11000010\\...
VERY_HARD
{ "id": "taco-train-24264", "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": "Example\n\nInput\n\n2 2 7\n3 4\n3 2\n1 3\n1 1\n2 2\n...
code
{ "ground_truth": "{\"inputs\": [\"2 2 7\\n3 4\\n3 2\\n1 3\\n1 1\\n2 2\\n1 2\\n2 1\\n1 2\\n2 2\\n1 1\", \"2 2 7\\n5 4\\n3 2\\n1 3\\n1 1\\n2 2\\n1 2\\n2 1\\n1 2\\n2 2\\n1 1\", \"2 2 7\\n3 4\\n3 2\\n1 3\\n1 2\\n2 2\\n1 2\\n2 1\\n1 2\\n2 2\\n1 1\", \"4 2 7\\n3 4\\n3 2\\n1 3\\n1 1\\n2 2\\n1 2\\n2 1\\n1 2\\n2 2\\n1 1\", \...
none
{ "id": "p00940 Deadlock Detection", "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": "The Department of economic development of IT City cr...
code
{ "ground_truth": "{\"inputs\": [\"1 30 200\", \"1 1 -1\", \"-1 1 1\", \"1000 1 -1\", \"-1 1000 1\", \"1000 1000 -999\", \"633 304 -186\", \"-181 -227 368\", \"-779 -814 321\", \"1 1 0\", \"1 0 -9\"], \"outputs\": [\"-10.000000000000000\\n-20.000000000000000\", \"0.618033988749895\\n-1.618033988749895\", \"1.61803398...
rating_1201-1400
{ "id": "630N", "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": "There is a white sheet of paper lying on a rectangle...
code
{ "ground_truth": "{\"inputs\": [\"2 2 4 4\\n1 1 3 5\\n3 1 5 5\\n\", \"3 3 7 5\\n0 0 4 6\\n0 0 7 4\\n\", \"5 2 10 5\\n3 1 7 6\\n8 1 11 7\\n\", \"0 0 1000000 1000000\\n0 0 499999 1000000\\n500000 0 1000000 1000000\\n\", \"50 100 100000 99000\\n13 4654 99999 1000000\\n0 0 1000000 45653\\n\", \"0 0 1000000 1000000\\n0 0...
MEDIUM_HARD
{ "id": "taco-train-24197", "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": "You are given a number N. You need to print the patte...
code
{ "ground_truth": "{\"fn_name\": \"printPat\", \"inputs\": [\"2\", \"3\"], \"outputs\": [\"2 2 1 1 $2 1 $\", \"3 3 3 2 2 2 1 1 1 $3 3 2 2 1 1 $3 2 1 $\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22554", "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 B containing N integers, each...
code
{ "ground_truth": "{\"inputs\": [\"2\\n7\\n0 -1 2 -1 5 -1 -1\\n3\\n2 -1 -1\"], \"outputs\": [\"1 3 0 4 2 6 5\\n-1\"]}", "style": "rule" }
HARD
{ "id": "taco-train-11769", "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": "ChthollyNotaSeniorious received a special gift from ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 4\\n1 1 1 0\\n0 0 1 0\\n1 0 0 1\\n4 3\\n1 0 0\\n0 1 1\\n0 0 1\\n0 0 0\\n2 2\\n0 0\\n0 1\\n\"], \"outputs\": [\"1\\n2 1 1\\n1\\n4 2 2\\n-1\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-18470", "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": "Sort the given strings in alphabetical order, case **...
code
{ "ground_truth": "{\"fn_name\": \"sortme\", \"inputs\": [[[\"Hello\", \"there\", \"I'm\", \"fine\"]], [[\"C\", \"d\", \"a\", \"B\"]], [[\"CodeWars\"]], [[]]], \"outputs\": [[[\"fine\", \"Hello\", \"I'm\", \"there\"]], [[\"a\", \"B\", \"C\", \"d\"]], [[\"CodeWars\"]], [[]]]}", "style": "rule" }
EASY
{ "id": "taco-train-18521", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problem statements in [Bengali], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2\\n1 2\\n1 2\\n2 3 4\", \"2\\n1\\n10\\n5 11 11 11 11 11\\n5\\n10 10 10 10 10\\n1 11\\n1 11\\n1 11\\n1 11\\n1 11\", \"1\\n2\\n1 2\\n1 2\\n2 3 4\", \"2\\n1\\n10\\n5 11 11 11 11 11\\n5\\n10 10 10 10 10\\n1 11\\n1 11\\n1 11\\n1 11\\n1 11\", \"1\\n1\\n5\\n4 9 8 11 10\", \"1\\n2\\n3 ...
MEDIUM
{ "id": "taco-test-627", "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": "Mr. Schwarz was a famous powerful pro wrestler. He s...
code
{ "ground_truth": "{\"inputs\": [\"5 5\\n0 0 0 0 0\\n4 2 0 1 1\\n0 1 0 0 0\\n1 0 0 0 3\\n1 0 0 0 0\\n5 3\\n4 0 0 0 0\\n2 0 0 0 0\\n0 0 0 0 3\\n7 5\\n1 1 4 1 0 0 0\\n1 1 2 1 0 0 0\\n3 0 0 0 0 0 0\\n0 1 0 1 0 0 0\\n0 0 0 1 0 0 0\\n6 6\\n0 0 0 0 0 3\\n0 0 0 0 0 0\\n0 0 0 0 0 0\\n0 0 0 0 0 0\\n0 2 0 0 0 0\\n4 0 0 0 0 0\\...
none
{ "id": "p00798 Push!!", "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 Binary search tree. Your task is to complete ...
code
{ "ground_truth": "{\"inputs\": [\"4\\r\\n / \\\\\\r\\n 2 9\\r\\nk = 2\", \"9\\r\\n \\\\ \\r\\n 10\\r\\nK = 1\"], \"outputs\": [\"4\", \"10\"]}", "style": "rule" }
EASY
{ "id": "taco-train-14614", "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": "Little Vasya went to the supermarket to get some gro...
code
{ "ground_truth": "{\"inputs\": [\"1\\n1\\n1\", \"4\\n1 4 3 2\\n100\\n1 2 2 3\\n1 9 1\\n7 8\", \"4\\n5 4 5 5\\n3 1 3 1 2\\n3 1 1 3\\n1 1 1 2 2\\n2 2 1 1 3\", \"5\\n5 3 6 6 4\\n7 5 3 3 9\\n6 8 2\\n1 10 8 5 9 2\\n9 7 8 5 9 10\\n9 8 3 3\", \"5\\n10 10 10 10 10\\n6 7 8 6 8 5 9 8 10 5\\n9 6 9 8 7 8 8 10 8 5\\n8 7 7 8 7 5 ...
rating_<=1200
{ "id": "408A", "rating": 900, "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 an integer m as a product of integers ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5 7\\n\", \"3\\n1 1 2\\n\", \"1\\n15\\n\", \"1\\n111546435\\n\", \"10\\n6295 3400 4042 2769 3673 264 5932 4977 1776 5637\\n\", \"5\\n387420489 244140625 387420489 387420489 1\\n\", \"2\\n5 10\\n\", \"20\\n16777216 1048576 524288 8192 8192 524288 2097152 8388608 1048576 67108864 ...
none
{ "id": "397_C. On Number of Decompositions into Multipliers", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a non-empty string containing an out-of-order E...
code
{ "ground_truth": "{\"fn_name\": \"originalDigits\", \"inputs\": [[\"\\\"owoztneoer\\\"\"]], \"outputs\": [\"012\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-15531", "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": "Arthur is an innocent man who used to live on the Ea...
code
{ "ground_truth": "{\"inputs\": [\"4\\n89 0\\n0 0\\n0 -90\\n0 180\\n0 90\", \"4\\n0 0\\n10 10\\n10 -10\\n-10 -10\\n-10 10\", \"4\\n89 0\\n0 0\\n0 90\\n0 180\\n0 -90\"], \"outputs\": [\"No\", \"Yes\", \"Yes\"]}", "style": "rule" }
none
{ "id": "p01345 DON'T PANIC!", "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 Monk wants to teach all its disciples a lesson a...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 6\\n\\nSAMPLE\", \"30\\n317 36 191 843 289 107 41 943 265 649 447 806 891 730 371 351 7 102 394 549 630 624 85 955 757 841 967 377 932 309\", \"2\\n468 335\", \"30\\n317 36 191 843 289 107 41 1032 265 649 447 806 891 730 371 351 7 102 394 549 630 624 85 955 757 841 967 377 932...
none
{ "id": "the-confused-monk", "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": "Christmas is coming, Icy has just received a box of ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4 8\\n\", \"5\\n5 6 7 8 9\\n\", \"5\\n0 3 1 2 4\\n\", \"16\\n9260395 11200954 12565768 9097948 2148381 13208278 8853864 7915641 3971192 2777328 6820143 155663 11055052 2624039 6069297 9303161\\n\", \"16\\n9260395 11200954 12565768 9097948 2148381 13208278 8853864 7915641 3971192...
rating_>1900
{ "id": "1617_E. Christmas Chocolates", "rating": 2700, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Jack really likes his number five: the trick here is ...
code
{ "ground_truth": "{\"fn_name\": \"multiply\", \"inputs\": [[10], [5], [200], [0], [-2]], \"outputs\": [[250], [25], [25000], [0], [-10]]}", "style": "rule" }
EASY
{ "id": "taco-train-22052", "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": "Pig is visiting a friend.\n\nPig's house is located ...
code
{ "ground_truth": "{\"inputs\": [\"3 5\\n0 2\\n2 4\\n3 5\", \"3 7\\n0 4\\n2 5\\n6 7\", \"1 1\\n0 0\", \"30 10\\n0 7\\n1 2\\n1 2\\n1 4\\n1 4\\n1 3\\n2 2\\n2 4\\n2 6\\n2 9\\n2 2\\n3 5\\n3 8\\n4 8\\n4 5\\n4 6\\n5 6\\n5 7\\n6 6\\n6 9\\n6 7\\n6 9\\n7 7\\n7 7\\n8 8\\n8 8\\n9 9\\n9 9\\n10 10\\n10 10\", \"30 100\\n0 27\\n4 8...
rating_<=1200
{ "id": "902A", "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 three integers a, b, k.\n\nFind two bi...
code
{ "ground_truth": "{\"inputs\": [\"4 2 3\\n\", \"3 2 5\\n\", \"3 2 1\\n\", \"5 5 8\\n\", \"7 7 12\\n\", \"1436 1488 2427\\n\", \"0 20 5\\n\", \"10 1 0\\n\", \"2 4 4\\n\", \"79 113 191\\n\", \"199999 1 199999\\n\", \"5 5 5\\n\", \"1353 1579 2909\\n\", \"104 90 191\\n\", \"0 6 1\\n\", \"3 4 1\\n\", \"100014 15 100026\\...
rating_1601-1900
{ "id": "1492_D. Genius's Gambit", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-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": "Polycarp is currently developing a project in Vaja l...
code
{ "ground_truth": "{\"inputs\": [\"4\\na 3\\n2\\nb 1\\nc 1\\n\\nb 2\\n0\\n\\nb 1\\n1\\nb 2\\n\\nc 1\\n1\\nb 2\", \"9\\ncodehorses 5\\n3\\nwebfrmk 6\\nmashadb 1\\nmashadb 2\\n\\ncommons 2\\n0\\n\\nmashadb 3\\n0\\n\\nwebfrmk 6\\n2\\nmashadb 3\\ncommons 2\\n\\nextra 4\\n1\\nextra 3\\n\\nextra 3\\n0\\n\\nextra 1\\n0\\n\\...
rating_1601-1900
{ "id": "928C", "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": "At Aizu Riverside Hospital, inpatients walk twice a ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n263 2345 2504\\n1 3210 1985\\n5000 1501 4132\\n10000 503 3107\\n51 1758 2690\\n3\\n345 5000 2396\\n7 3910 1590\\n6789 2525 3616\\n0\", \"5\\n263 2345 2504\\n1 3210 1985\\n5000 1501 4132\\n10001 503 3107\\n51 1758 2690\\n3\\n345 5000 2396\\n7 3910 1590\\n6789 2525 3616\\n0\", \"5...
none
{ "id": "p00217 Walking in the Hospital", "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 linked list, the task is to complete the func...
code
{ "ground_truth": "{\"inputs\": [\"2\\r\\n\\r\\n7\\r\\n\\r\\n2 3 7 3 2 12 24\\r\\n\\r\\n5\\r\\n\\r\\n12 4 4 3 14\"], \"outputs\": [\"5\\r\\n\\r\\n2\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-7805", "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 are given a string S, consisting of lowercase En...
code
{ "ground_truth": "{\"inputs\": [\"4\\naba\\nabcd\\ncbcdbef\\nfabcdac\"], \"outputs\": [\"aab\\nabcd\\nbbccdef\\naacfbcd\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-20567", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array *s* of *n* non-negative integ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\", \"3\\n7 4 1\", \"10\\n1 3 0 7 3 7 6 5 7 5\", \"10\\n50 9 11 44 39 40 5 39 23 7\", \"10\\n4 4 3 1 5 1 3 6 4 4\", \"10\\n5 6 3 2 6 4 3 0 2 7\", \"10\\n7 0 4 3 7 6 2 1 0 2\", \"10\\n1 2 4 4 7 1 1 2 7 5\", \"10\\n3 5 5 4 0 4 1 4 5 1\", \"10\\n6826 5946 9767 38900 11942 58422 ...
rating_>1900
{ "id": "914G", "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": "**DESCRIPTION:**\n\n Your strict math teacher is tea...
code
{ "ground_truth": "{\"fn_name\": \"side_len\", \"inputs\": [[1, 1], [3, 4], [4, 6], [5, 12], [8, 10]], \"outputs\": [[[1]], [[2, 3, 4, 6]], [[3, 4, 5, 6, 7, 8, 9]], [[8, 9, 10, 11, 12, 14, 15, 16]], [[3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17]]]}", "style": "rule" }
EASY
{ "id": "taco-train-9594", "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 an array A[] consisting of 0’s and 1’s. A flip ...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\\nA[] = {1, 0, 0, 1, 0}\", \"N = 7\\nA[] = {1, 0, 0, 1, 0, 0, 1}\"], \"outputs\": [\"4\", \"6\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13829", "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": "Example\n\nInput\n\n1 1 1 1 1\n\n\nOutput\n\n0.00000...
code
{ "ground_truth": "{\"inputs\": [\"1 1 1 1 1\", \"1 1 0 1 1\", \"0 2 1 0 3\", \"1 1 1 1 3\", \"1 0 1 1 5\", \"2 0 1 1 5\", \"4 1 1 1 12\", \"0 1 1 0 2\", \"2 0 1 1 7\", \"4 1 1 1 6\", \"0 1 1 0 12\", \"0 2 1 0 5\", \"1 0 1 1 9\", \"1 1 1 0 12\", \"1 2 1 0 8\", \"2 0 1 1 21\", \"2 -1 1 0 4\", \"0 1 1 1 10\", \"1 2 4 1...
none
{ "id": "p01503 Tampopo Machine", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In the nearby kindergarten they recently made up an ...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n1 1\\n1 1\\n\", \"4 3\\n2 2\\n4 4\\n1 1\\n\", \"5 8\\n2 2\\n3 2\\n4 2\\n2 4\\n3 4\\n4 4\\n2 3\\n2 3\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"3\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-609", "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 nearby pie shop is having a special sale. For each...
code
{ "ground_truth": "{\"inputs\": [\"4\\n309999 6000 2080 2080\\n\", \"5\\n5 5 5 5 5\\n\", \"6\\n3 4 5 3 4 5\\n\", \"30\\n3 6 3 8 6 4 4 2 4 10 8 5 9 6 7 7 9 4 7 4 10 1 9 10 4 7 7 4 2 3\\n\", \"1\\n1\\n\", \"50\\n4 2 6 7 2 6 3 8 8 2 4 8 4 4 1 4 5 2 2 5 6 4 3 3 3 6 8 2 1 3 1 8 2 3 7 4 7 5 4 8 3 5 7 8 6 7 5 8 7 1\\n\", \"...
rating_>1900
{ "id": "335_F. Buy One, Get One Free", "rating": 3000, "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": "Ken and Keiko are young, poor and busy. Short explan...
code
{ "ground_truth": "{\"inputs\": [\"5\\nHakodate 08:15 Morioka 12:30 2500\\nMorioka 14:05 Hakodate 17:30 2500\\nMorioka 15:30 Hakodate 18:00 3000\\nMorioka 14:30 Tokyo 17:50 3000\\nTokyo 08:30 Morioka 13:35 3000\\n4\\nHakodate 08:15 Morioka 12:30 2500\\nMorioka 14:04 Hakodate 17:30 2500\\nMorioka 14:30 Tokyo 17:50 300...
none
{ "id": "p00808 Young", "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 three friends, Kuro, Shiro, and Katie, met up ag...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n\", \"3 0\\n\", \"6 2\\n\", \"7 4\\n\", \"4 0\\n\", \"571 402\\n\", \"543 110\\n\", \"1000 972\\n\", \"5 2\\n\", \"132 128\\n\", \"1000 1000\\n\", \"3 3\\n\", \"973 799\\n\", \"980 632\\n\", \"1000 843\\n\", \"924 576\\n\", \"721 343\\n\", \"361 300\\n\", \"311 3\\n\", \"950 4...
rating_<=1200
{ "id": "1163_A. Eating Soup", "rating": 900, "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": "Raman got placed in AWS. He is organizing his job pa...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1\\n3 2\\n\\nSAMPLE\", \"2\\n1 1\\n3 2\\n\\nSANPLE\", \"2\\n1 2\\n3 2\\n\\nSANPLE\", \"2\\n1 2\\n3 4\\n\\nSANPLE\", \"2\\n1 4\\n3 4\\n\\nSANPLE\", \"2\\n1 7\\n6 4\\n\\nSANPLE\", \"2\\n1 7\\n6 3\\n\\nSANQLE\", \"2\\n1 8\\n6 3\\n\\nSANQLE\", \"2\\n1 7\\n7 6\\n\\nSANQLE\", \"2\\n...
none
{ "id": "the-job-party-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": "Sergey Semyonovich is a mayor of a county city N and...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 2\\n1 3\\n1 4\\n\", \"4\\n1 2\\n2 3\\n3 4\\n\", \"2\\n2 1\\n\", \"3\\n2 1\\n3 2\\n\", \"10\\n2 3\\n3 9\\n6 3\\n9 8\\n9 10\\n4 8\\n3 1\\n3 5\\n7 1\\n\", \"10\\n2 3\\n3 9\\n6 3\\n9 8\\n9 10\\n4 8\\n3 1\\n3 5\\n7 1\\n\", \"3\\n2 1\\n3 2\\n\", \"2\\n2 1\\n\", \"4\\n1 2\\n1 3\\n3 4...
HARD
{ "id": "taco-train-13982", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "##Task:\n\nYou have to write a function **pattern** w...
code
{ "ground_truth": "{\"fn_name\": \"pattern\", \"inputs\": [[2], [1], [5], [6], [0], [-25]], \"outputs\": [[\"22\"], [\"\"], [\"22\\n4444\"], [\"22\\n4444\\n666666\"], [\"\"], [\"\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-14844", "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": "We have N integers. The i-th number is A_i.\n\n\\\\{...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6 10 16\", \"3\\n6 10 15\", \"3\\n3 4 5\", \"3\\n6 5 15\", \"3\\n4 4 2\", \"3\\n4 3 1\", \"3\\n4 4 5\", \"3\\n4 8 2\", \"3\\n8 8 2\", \"3\\n4 4 1\", \"3\\n4 4 4\", \"3\\n6 8 2\", \"3\\n7 4 4\", \"3\\n6 8 3\", \"3\\n2 4 4\", \"3\\n1 4 4\", \"3\\n2 8 4\", \"3\\n4 8 4\", \"3\\n6 10...
none
{ "id": "p02574 AtCoder Beginner Contest 177 - Coprime", "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": "# Introduction:\n\nReversi is a game usually played b...
code
{ "ground_truth": "{\"fn_name\": \"reversi_row\", \"inputs\": [[[]], [[0]], [[0, 1]], [[0, 7, 4]], [[3]], [[3, 4]], [[3, 4, 5]], [[2, 1, 0]], [[0, 1, 4, 3, 2]], [[0, 1, 7, 2, 3]], [[3, 2, 7, 1, 0]], [[3, 4, 5, 6, 0, 2]], [[0, 1, 2, 3, 4, 5, 6, 7]], [[7, 0, 1]], [[0, 7, 6]], [[1, 0, 2, 3, 4, 5, 6, 7]], [[5, 1, 3, 4, 6...
EASY
{ "id": "taco-train-22492", "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": "East or west, home is best. That's why family reunio...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 1 3 1\\n\", \"5\\n2 2 1 3 1\\n\", \"52\\n2608 0 0 0 0 130 0 0 0 0 1 0 72 0 2 0 0 0 0 0 0 0 0 0 289 0 0 0 5 0 0 0 313 0 0 0 6 15 0 0 0 0 0 12 0 0 0 0 0 385 1020 0\\n\", \"10\\n19167769 2685154 14824190 0 15005640 14856479 32541638 8219737 17012124 14469415\\n\", \"6\\n1554 1623...
rating_>1900
{ "id": "933_E. A Preponderant Reunion", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Abhiram needs to search for an antidote. He comes to...
code
{ "ground_truth": "{\"inputs\": [[\"cat is the act of tac\", \"cat\"]], \"outputs\": [[\"The antidote is found in 46.\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-10520", "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": "The online retailer Amagoogsoftbook currently offers...
code
{ "ground_truth": "{\"inputs\": [\"2 10\\n1 12\\n1 13\\n\", \"2 10\\n1 5\\n1 12\\n\", \"2 10\\n1 5\\n1 4\\n\", \"2 10\\n1 5\\n4 1\\n\", \"2 10\\n1 12\\n13 1\\n\"], \"outputs\": [\"2\\n\", \"2\\n\", \"2\\n\", \"2\\n\", \"1\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-10356", "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": "DNA is a nucleic acid present in the bodies of livin...
code
{ "ground_truth": "{\"inputs\": [\"6\\na b c aa d b\\n1 2 3 4 5 6\\n3\\n1 5 caaab\\n0 4 xyz\\n2 4 bcdybc\\n\"], \"outputs\": [\"0 19\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-3850", "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": "Peter likes to travel by train. He likes it so much ...
code
{ "ground_truth": "{\"inputs\": [\"atob\\na\\nb\\n\", \"aaacaaa\\naca\\naa\\n\", \"babaabababaaaababaabababaabababababababbababbbabbaabababaababbaabbababaababaaabababaabbaababaaababaa\\nabaabababaa\\nabaabbaa\\n\", \"abacaba\\naca\\nba\\n\", \"aabaab\\naba\\nab\\n\", \"bbabbbbababbaabaabaa\\nabb\\nbaab\\n\", \"aababa...
rating_<=1200
{ "id": "8_A. Train and Peter", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an integer array, return the k-th smallest dist...
code
{ "ground_truth": "{\"fn_name\": \"smallestDistancePair\", \"inputs\": [[[1, 1, 3], 1]], \"outputs\": [0]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-8625", "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": "Given an integer n and array of integers, returns the...
code
{ "ground_truth": "{\"inputs\": [\"n = 16\\narr = [0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15]\", \"n = 1\\narr = [1]\"], \"outputs\": [\"0 4 6 9 13 15\", \"1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-10447", "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": "Sean’s Swathers makes custom swathers (equipment use...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n1 2 3\\n3 2 1\\n\", \"3 2\\n3 1\\n4 7\\n2 5\\n\"], \"outputs\": [\"6 7\\n\", \"4 14 19\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2722", "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 one kingdom there are n cities and m two-way road...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n9 5 1\\n7 7 2\\n2 1\\n3 1\\n3 2\\n2\\n\", \"6 9\\n1 3 1 1 3 1 2 2 2\\n4 1 4 2 2 5 3 1 6\\n1 2\\n1 3\\n2 3\\n2 4\\n2 5\\n3 5\\n3 6\\n4 5\\n5 6\\n7\\n\", \"7 6\\n8 10 4 8 4 4\\n45 51 13 13 37 26\\n2 7\\n7 1\\n6 3\\n3 1\\n5 4\\n1 4\\n4\\n\", \"2 1\\n1\\n1\\n1 2\\n1000000000\\n\",...
rating_>1900
{ "id": "733_F. Drivers Dissatisfaction", "rating": 2200, "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": "When Valera has got some free time, he goes to the l...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\n3 1 2 1\", \"3 3\\n2 2 3\", \"1 3\\n5\", \"1 10\\n4\", \"2 10\\n6 4\", \"6 10\\n2 3 4 2 1 1\", \"7 13\\n6 8 14 9 4 11 10\", \"10 15\\n10 9 1 1 5 10 5 3 7 2\", \"20 30\\n8 1 2 6 9 4 1 9 9 10 4 7 8 9 5 7 1 8 7 4\", \"30 60\\n16 13 22 38 13 35 17 17 20 38 12 19 9 22 20 3 35 34 34...
rating_1201-1400
{ "id": "279B", "rating": 1400, "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 a string of words (x), you need to return an ar...
code
{ "ground_truth": "{\"fn_name\": \"last\", \"inputs\": [[\"man i need a taxi up to ubud\"], [\"what time are we climbing up the volcano\"], [\"take me to semynak\"], [\"massage yes massage yes massage\"], [\"take bintang and a dance please\"]], \"outputs\": [[[\"a\", \"need\", \"ubud\", \"i\", \"taxi\", \"man\", \"to...
EASY
{ "id": "taco-train-9694", "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": "Pankaj is a loiter person, \nat once his mentor who ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0.3456778\\n0.56789...\\n0.45678522522...\", \"3\\n0.5\\n0.4\\n0.45678922...\", \"3\\n0.5\\n0.4\\n0.222...\", \"3\\n0.5\\n0.4\\n0.45678922...\", \"5\\n0.343434...\\n0.34567...\\n0.4345\\n0.77777\\n0.3565635656...\"], \"outputs\": [\"P=1 Q=2\\nP=2 Q=5\\nP=2 Q=9\", \"P=1728389 Q=5...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-5374", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }