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": "The Little Elephant has an integer a, written in the...
code
{ "ground_truth": "{\"inputs\": [\"110010\\n\", \"101\\n\", \"1001011111010010100111111\\n\", \"1111111111111111111100111101001110110111111000001111110101001101001110011000001011001111111000110101\\n\", \"111010010111\\n\", \"11111\\n\", \"11110010010100001110110101110011110110100111101\\n\", \"11110111011100000000\\...
rating_<=1200
{ "id": "258_A. Little Elephant and Bits", "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 tetromino is a figure formed by joining four squar...
code
{ "ground_truth": "{\"inputs\": [\"2 1 1 0 0 0 0\", \"0 0 10 0 0 0 0\", \"0 0 10 0 1 0 0\", \"1 1 1 0 0 0 0\", \"0 0 -1 0 2 0 2\", \"4 0 1 0 0 0 0\", \"0 3 0 0 1 0 0\", \"0 3 0 0 2 0 0\", \"6 0 2 0 0 0 0\", \"11 0 2 0 0 0 0\", \"14 0 2 0 0 0 0\", \"2 5 1 0 1 2 2\", \"23 0 2 0 0 0 0\", \"1 4 0 0 4 0 3\", \"1 0 0 1 7 -...
none
{ "id": "p03840 AtCoder Grand Contest 008 - Tetromino Tiling", "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": "Takahashi throws N dice, each having K sides with al...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n\", \"4 5\\n\", \"6 1000\\n\", \"2000 2000\\n\", \"1798 1987\\n\", \"2000 1166\\n\", \"1 2000\\n\", \"2000 3\\n\", \"1789 1568\\n\", \"1998 1999\\n\", \"732 1756\\n\", \"5 1234\\n\", \"1452 9\\n\", \"1889 2\\n\", \"2 1675\\n\", \"667 288\\n\", \"1879 1290\\n\", \"1897 1590\\n\...
HARD
{ "id": "taco-train-24457", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese and Rus...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 3\\n90 95\\n12 21\", \"3\\n2 3\\n90 95\\n12 10\", \"3\\n2 3\\n90 95\\n12 16\", \"3\\n4 3\\n90 95\\n12 16\", \"3\\n4 3\\n90 95\\n12 21\", \"3\\n2 3\\n90 151\\n12 10\", \"3\\n4 3\\n90 95\\n12 28\", \"3\\n4 3\\n90 95\\n18 16\", \"3\\n3 3\\n90 151\\n12 10\", \"3\\n4 3\\n90 190\\n1...
HARD
{ "id": "taco-train-8231", "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": "Chef has a number N, Cheffina challenges the chef to...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"19\", \"385\"]], \"outputs\": [[\"0\", \"1\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-20290", "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": "Anastasia loves going for a walk in Central Uzhlyand...
code
{ "ground_truth": "{\"inputs\": [\"5 4\\n3 1 8 9 7\\n\", \"3 2\\n2 3 4\\n\", \"10 1\\n1 1 1 1 1 1 1 1 1 1\\n\", \"3 57\\n78 165 54\\n\", \"1 1\\n10000\\n\", \"2 2\\n2 2\\n\", \"9 13\\n132 87 200 62 168 51 185 192 118\\n\", \"5 72\\n74 10 146 189 184\\n\", \"1 22\\n1\\n\", \"10 1\\n1 0 1 1 1 1 1 1 1 1\\n\", \"3 87\\n7...
rating_<=1200
{ "id": "789_A. Anastasia and pebbles", "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": "I decided to play rock-paper-scissors with a group o...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2\\n3\\n2\\n1\\n1\\n2\\n2\\n2\\n1\\n0\", \"1\\n3\\n3\\n2\\n1\\n1\\n2\\n2\\n2\\n1\\n0\", \"1\\n1\\n1\\n2\\n1\\n1\\n2\\n2\\n2\\n1\\n0\", \"1\\n2\\n3\\n2\\n1\\n1\\n1\\n2\\n2\\n1\\n0\", \"1\\n2\\n2\\n2\\n1\\n1\\n1\\n2\\n2\\n1\\n0\", \"1\\n2\\n3\\n2\\n1\\n1\\n2\\n2\\n2\\n2\\n0\", \"1...
none
{ "id": "p00205 Rock", "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": "Golu wants to find out the sum of Lucky numbers.Luck...
code
{ "ground_truth": "{\"inputs\": [\"1\\n5\\n\\nSAMPLE\", \"10\\n74215\\n6298825854637\\n254237664381\\n18611731909005\\n7044762270511\\n3888409250301\\n1512558489677\\n25306016003357\\n19602191919237\\n14643188818021\", \"10\\n74215\\n6298825854637\\n254237664381\\n18611731909005\\n7044762270511\\n3888409250301\\n1512...
none
{ "id": "lucky-numbers-20", "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": "Find the longest substring within a string that conta...
code
{ "ground_truth": "{\"fn_name\": \"substring\", \"inputs\": [[\"\"], [\"a\"], [\"aa\"], [\"aaa\"], [\"ab\"], [\"aba\"], [\"abc\"], [\"abcba\"], [\"bbacc\"], [\"ccddeeff\"], [\"bbacddddcdd\"], [\"abcddeejabbedsajaajjaajjajajajjajjaaacedajajaj\"], [\"aaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbccccccccccccccccccccddddddddd...
EASY
{ "id": "taco-train-11519", "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": "Array of integers is unimodal, if:\n - it is strict...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 5 5 5 4 2\", \"5\\n10 20 30 20 10\", \"4\\n1 2 1 2\", \"7\\n3 3 3 3 3 3 3\", \"6\\n5 7 11 11 2 1\", \"1\\n7\", \"100\\n527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 527 52...
rating_<=1200
{ "id": "831A", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Rishi likes to play with strings.Strings have been h...
code
{ "ground_truth": "{\"inputs\": [\"bfiwebfiuwebfuiwe\\nirbgiurirgergberku\", \"qegfqyfeqve\\niuewbiuwebfiuew\", \"uyfuyvr232\\nefybwueifbiew\", \"kgbfrqeiubfiuewbfiuwebgiuewbvgiuewvgiuewviugvewiugviuewgiuw\\ngewgvuwevgyuewvguyewvguywevgvwegvuyewvguyewvguywev\", \"qwerty\\nqwerty\", \"kbvqiu3rbv32bvriub23iurb32iubriu3...
MEDIUM_HARD
{ "id": "taco-train-25284", "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": "n soldiers stand in a circle. For each soldier his h...
code
{ "ground_truth": "{\"inputs\": [\"4\\n10 20 30 40\\n\", \"5\\n10 12 13 15 10\\n\", \"100\\n31 75 86 68 111 27 22 22 26 30 54 163 107 75 160 122 14 23 17 26 27 20 43 58 59 71 21 148 9 32 43 91 133 286 132 70 90 156 84 14 77 93 23 18 13 72 18 131 33 28 72 175 30 86 249 20 14 208 28 57 63 199 6 10 24 30 62 267 43 479 6...
rating_<=1200
{ "id": "34_A. Reconnaissance 2", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a directed graph, consisting of n vert...
code
{ "ground_truth": "{\"inputs\": [\"5 6 1 5\\n1 2 1\\n2 3 1\\n3 5 1\\n1 4 1\\n4 3 0\\n4 5 1\\n\", \"10 10 1 6\\n10 5 0\\n5 6 1\\n1 9 0\\n4 10 0\\n7 4 0\\n1 5 1\\n2 4 0\\n7 6 0\\n3 5 0\\n5 9 0\\n\", \"10 10 1 6\\n10 5 0\\n5 6 1\\n1 9 0\\n4 10 0\\n7 4 0\\n1 5 1\\n2 4 0\\n7 2 0\\n3 5 0\\n5 9 0\\n\", \"10 10 1 6\\n10 5 0\...
rating_>1900
{ "id": "843_E. Maximum Flow", "rating": 3000, "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": "Two words are anagrams of one another if their lette...
code
{ "ground_truth": "{\"inputs\": [\"6\\naaabbb\\nab\\nabc\\nmnop\\nxyyx\\nxaxbbbxx\\n\"], \"outputs\": [\"3\\n1\\n-1\\n2\\n0\\n1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2511", "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": "Beroffice text editor has a wide range of features t...
code
{ "ground_truth": "{\"inputs\": [\"hellno\\n\", \"abacaba\\n\", \"asdfasdf\\n\", \"ooo\\n\", \"moyaoborona\\n\", \"jxegxxx\\n\", \"orfyaenanabckumulsboloyhljhacdgcmnooxvxrtuhcslxgslfpnfnyejbxqisxjyoyvcvuddboxkqgbogkfz\\n\", \"zxdgmhsjotvajkwshjpvzcuwehpeyfhakhtlvuoftkgdmvpafmxcliqvrztloocziqdkexhzcbdgxaoyvte\\n\", \"...
MEDIUM
{ "id": "taco-train-11657", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have to organize a wedding party. The program of...
code
{ "ground_truth": "{\"inputs\": [\"-2 1 -1 1 1 1 1 2\\n1 0 2 1 2 2 3 3\\n5\", \"-2 1 -1 1 1 1 1 2\\n1 0 2 1 2 2 0 3\\n5\", \"-4 1 -1 1 1 1 1 2\\n1 0 2 1 2 2 3 3\\n5\", \"-2 1 -2 1 1 1 1 2\\n1 0 2 1 2 2 0 3\\n5\", \"-4 1 -1 1 1 1 1 2\\n1 0 1 1 2 2 3 3\\n5\", \"-2 1 -2 1 1 0 1 2\\n1 0 2 1 2 2 0 3\\n5\", \"-2 1 -2 1 1 0...
none
{ "id": "p00685 Board Arrangements for Concentration Games", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given two arrays $a$ and $b$, both of length...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 8 7 2 4\\n9 7 2 9 3\\n\", \"1\\n1000000\\n1000000\\n\", \"2\\n1 3\\n4 2\\n\", \"1\\n1000010\\n1000000\\n\", \"5\\n1 8 7 2 4\\n9 11 2 9 3\\n\", \"2\\n1 3\\n4 1\\n\", \"1\\n1000011\\n1000000\\n\", \"5\\n1 8 7 2 5\\n9 11 2 9 3\\n\", \"2\\n1 5\\n4 1\\n\", \"1\\n1001011\\n1000000\\...
MEDIUM_HARD
{ "id": "taco-train-11776", "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": "Let's define Score of an array B of length M as \\su...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n2 3\\n4\\n343 10 7 47\"], \"outputs\": [\"16\\n47160\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-11941", "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": "Limak is a big polar bear. He prepared n problems fo...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4 3 10\\n1 1 8\\n\", \"4\\n7 20 15 10\\n7 20 15 10\\n\", \"2\\n10 20\\n10 1\\n\", \"2\\n1 2\\n2 1\\n\", \"3\\n5 5 5\\n5 5 5\\n\", \"10\\n39 69 92 77 22 6 90 22 35 22\\n83 27 18 54 54 10 22 55 5 76\\n\", \"20\\n137026 38874 92543 51194 173809 255974 563206 326040 164798 680930 15...
rating_>1900
{ "id": "639_E. Bear and Paradox", "rating": 2800, "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": "Little X and Little Z are good friends. They always ...
code
{ "ground_truth": "{\"inputs\": [\"1 1 0 4\\n2 3\\n0 1\", \"2 3 0 20\\n15 17\\n23 26\\n1 4\\n7 11\\n15 17\", \"5 2 27 452\\n148 154\\n421 427\\n462 470\\n777 786\\n969 978\\n245 247\\n313 322\", \"3 6 25 785\\n273 275\\n391 397\\n775 783\\n84 89\\n348 354\\n480 483\\n552 556\\n711 716\\n838 844\", \"1 6 364 421\\n649...
rating_1201-1400
{ "id": "469B", "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": "Our old friend Alexey has finally entered the Univer...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 5\\n2 8\\n1 6\\n\", \"3\\n0 10\\n1 5\\n7 15\\n\", \"2\\n1 5\\n1 2\\n\", \"2\\n1 9\\n3 5\\n\", \"21\\n0 97\\n46 59\\n64 95\\n3 16\\n86 95\\n55 71\\n51 77\\n26 28\\n47 88\\n30 40\\n26 34\\n2 12\\n9 10\\n4 19\\n35 36\\n41 92\\n1 16\\n41 78\\n56 81\\n23 35\\n40 68\\n\", \"20\\n69 ...
none
{ "id": "397_A. On Segment's Own Points", "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": "Chef's team is going to participate at the legendary...
code
{ "ground_truth": "{\"inputs\": [\"5\\n12 1\\n13 1\\n13 2\\n13 3\\n13 4\", \"5\\n12 1\\n13 1\\n13 3\\n13 3\\n13 4\", \"5\\n12 1\\n13 1\\n13 1\\n13 3\\n13 4\", \"5\\n12 1\\n13 1\\n6 1\\n13 3\\n13 4\", \"5\\n12 1\\n13 1\\n6 1\\n13 0\\n13 4\", \"5\\n12 1\\n13 1\\n6 1\\n13 0\\n13 7\", \"5\\n0 1\\n13 1\\n6 0\\n13 0\\n13 2...
none
{ "id": "chefmath", "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": "Hanh lives in a shared apartment. There are n people...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4 4\\n1 1 1 1\\n3 1\\n1 2 3\\n3 3\\n1 2 3\\n\", \"3\\n4 4\\n1 1 1 1\\n3 1\\n1 2 3\\n3 3\\n1 2 3\\n\", \"10\\n3 2\\n3 6 1\\n3 3\\n9 0 2\\n3 3\\n8 8 2\\n4 2\\n9 0 0 1\\n4 4\\n5 3 0 2\\n4 4\\n2 8 6 0\\n5 3\\n7 3 8 9 8\\n5 5\\n6 3 9 6 7\\n5 5\\n1 0 5 9 8\\n5 5\\n1 5 4 6 1\\n\", \"10...
rating_<=1200
{ "id": "1255_B. Fridge Lockers", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In a mystical Land, a person's health and wealth is ...
code
{ "ground_truth": "{\"inputs\": [\"30\\n16 3\\n-334 -500 -169 -724 -478 -358 -962 -464 -705 -145 -281 -827 -961 -491 -995 -942 \\n22 2\\n391 604 902 153 292 382 421 716 718 895 447 726 771 538 869 912 667 299 35 894 703 811 \\n17 5\\n-673 141 -253 -547 662 -37 723 -529 316 190 288 40 -264 446 -890 370 6 \\n18 2\\n-62...
EASY
{ "id": "taco-train-22521", "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": "Valera is a coder. Recently he wrote a funny program...
code
{ "ground_truth": "{\"inputs\": [\"1 1 50\", \"5 3 0\", \"5 3 25\", \"1132123 200 0\", \"1213112 200 100\", \"490879136 12 75\", \"114566801 2 55\", \"331870050 6 98\", \"252615193 9 45\", \"224314221 19 51\", \"510823354 20 18\", \"573292218 200 77\", \"465672965 100 95\", \"853095531 50 72\", \"254290166 200 95\", ...
rating_>1900
{ "id": "441E", "rating": 2400, "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": "In the world of Latin Alphabets, there seemed to be ...
code
{ "ground_truth": "{\"inputs\": [\"8\\natuongih\\n\\nSAMPLE\", \"5\\nholfz\", \"100\\ngkdydttzjmwafeftbyuiancgugsrxynxsystmcxjxftaaiwryselgychxufdplwvvcasvtjzfnelbegxjdujbcfcblyhwbporyst\", \"8\\natuongih\", \"1400\\nhkyecfkhkymiltabvburwjamqlwnokfhdllppmgednjpnrpkdpwbeayqcyemjmmnarbohcaeqqeodmvwxhnnnrdxbgpgrkirtomkp...
none
{ "id": "where-have-the-vowels-gone-pledge-easy", "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 and Chefina are playing with dice. In one turn,...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 4\\n3 4\\n4 2\\n2 6\\n\"], \"outputs\": [\"NO\\nYES\\nNO\\nYES\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1402", "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": "You are a professional robber planning to rob houses ...
code
{ "ground_truth": "{\"fn_name\": \"rob\", \"inputs\": [[[2, 3, 2]]], \"outputs\": [3]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-817", "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": "In Bubbleland a group of special programming forces ...
code
{ "ground_truth": "{\"inputs\": [\"10 25 2\\n1 9 3\\n2 5\\n1 1 3\\n1 3 1\\n2 2\\n1 8 3\\n1 5 6\\n3\\n1 9 2\\n1 8 3\\n2 9\\n1 3 1\\n2 5\\n1 6 4\\n3\\n3\\n2 4\\n3\\n1 10 9\\n1 1 7\\n3\\n2 2\\n3\\n1 5 6\\n1 1 4\\n\", \"5 12 1\\n1 1 2\\n1 1 3\\n1 3 4\\n2 4\\n2 5\\n3\\n2 1\\n1 1 2\\n1 3 2\\n2 1\\n3\\n2 1\\n\", \"5 12 2\\n...
rating_>1900
{ "id": "1423_H. Virus", "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": "There are n students studying in the 6th grade, in g...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n2 3 1\\n1 2 3 4\\n1 2 3 4\\n\", \"8 6\\n7 6 4 2 3 5 5 7\\n10 4 3 8 9 1\\n1 1 1 2 2 2\\n\", \"25 4\\n14 12 6 19 13 19 15 25 25 3 17 2 5 23 6 20 7 2 14 6 4 24 16 11 21\\n8811002 2094993 3283083 1356127\\n55 9 24 47\\n\", \"2 2\\n2 1\\n3304501 9446989\\n1 1\\n\", \"3 3\\n2 1 2\\n...
rating_>1900
{ "id": "45_B. School", "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": "Given a long number, return all the possible sum of t...
code
{ "ground_truth": "{\"fn_name\": \"digits\", \"inputs\": [[156], [81596], [3852], [3264128], [999999]], \"outputs\": [[[6, 7, 11]], [[9, 13, 17, 14, 6, 10, 7, 14, 11, 15]], [[11, 8, 5, 13, 10, 7]], [[5, 9, 7, 4, 5, 11, 8, 6, 3, 4, 10, 10, 7, 8, 14, 5, 6, 12, 3, 9, 10]], [[18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 1...
EASY
{ "id": "taco-train-22563", "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": "Takahashi and Aoki are going to together construct a...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\n\", \"1 10\\n\", \"6 3\\n\", \"1000000000 1000000000\\n\", \"1 1\\n\", \"1 1000000000\\n\", \"1000000000 1\\n\", \"1 660938501\\n\", \"2 61108425\\n\", \"3 563031691\\n\", \"4 989494029\\n\", \"1000000000 146388030\\n\", \"1000000000 121963892\\n\", \"1000000000 33979032\\n\",...
VERY_HARD
{ "id": "taco-train-19199", "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": "You are given a string $s$. You can build new string...
code
{ "ground_truth": "{\"inputs\": [\"4\\nababcd\\nabcba\\na\\nb\\ndefi\\nfed\\nxyz\\nx\\n\", \"3\\nababc\\nabcba\\nfeded\\ndefed\\nababcfeded\\nabcdebafed\\n\", \"1\\nbbbaaaaabbabaabbbbaabbbbabbaabbaababbbbbbababbababbbaaaaaaabaababbbaababbbbababbbabbbbbabaabbaaaabaa\\nbbbababbaabbbbbaabaaabaababaaaabaabbbabbababaaabba...
MEDIUM
{ "id": "taco-train-20390", "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": "Create your own mechanical dartboard that gives back ...
code
{ "ground_truth": "{\"fn_name\": \"get_score\", \"inputs\": [[-133.69, -147.38], [4.06, 0.71], [2.38, -6.06], [-5.43, 117.95], [-73.905, -95.94], [55.53, -87.95], [-145.19, 86.53]], \"outputs\": [[\"X\"], [\"DB\"], [\"SB\"], [\"20\"], [\"7\"], [\"T2\"], [\"D9\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-12138", "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 of size N that has elements ranging fr...
code
{ "ground_truth": "{\"inputs\": [\"arr[ ] = {-1, -1, 6, 1, 9, 3, 2, \\n -1, 4, -1}\", \"arr[ ] = {0, 1, 2, 3, 4, 5}\"], \"outputs\": [\"-1 1 2 3 4 -1 6 -1 -1 9\", \"0 1 2 3 4 5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-16360", "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 have an array of integers (initially empty).\n\n...
code
{ "ground_truth": "{\"inputs\": [\"7\\n1 3\\n1 1\\n2 1 2\\n1 2\\n1 1\\n1 2\\n2 1 3\\n\", \"4\\n1 1\\n1 2\\n1 1\\n2 2 2\\n\", \"8\\n2 1 4\\n1 1\\n1 4\\n1 2\\n2 2 4\\n2 4 3\\n1 2\\n2 2 7\\n\", \"1\\n1 2002\\n\", \"1\\n1 500\\n\", \"1\\n1 50\\n\", \"1\\n1 114514\\n\", \"1\\n1 50\\n\", \"1\\n1 114514\\n\", \"1\\n1 2002\\...
HARD
{ "id": "taco-train-17160", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are going out for a walk, when you suddenly enco...
code
{ "ground_truth": "{\"inputs\": [\"1 10\\n3 5\\n\", \"2 10\\n3 5\\n2 6\\n\", \"4 1000000000\\n1 1\\n1 10000000\\n1 30000000\\n1 99999999\\n\", \"5 500\\n35 44\\n28 83\\n46 62\\n31 79\\n40 43\\n\", \"4 1000000000\\n1 1\\n1 00000000\\n1 30000000\\n1 99999999\", \"1 10\\n4 5\", \"2 10\\n2 5\\n2 6\", \"5 500\\n35 44\\n28...
MEDIUM
{ "id": "taco-train-2224", "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": "The construction of subway in Bertown is almost fini...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 1 3\", \"5\\n1 5 4 3 2\", \"1\\n1\", \"2\\n1 2\", \"2\\n2 1\", \"100\\n98 52 63 2 18 96 31 58 84 40 41 45 66 100 46 71 26 48 81 20 73 91 68 76 13 93 17 29 64 95 79 21 55 75 19 85 54 51 89 78 15 87 43 59 36 1 90 35 65 56 62 28 86 5 82 49 3 99 33 9 92 32 74 69 27 22 77 16 44 94 ...
rating_1401-1600
{ "id": "884C", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "# Task\nA cake is sliced with `n` straight lines. You...
code
{ "ground_truth": "{\"fn_name\": \"cake_slice\", \"inputs\": [[0], [1], [2], [3], [10]], \"outputs\": [[1], [2], [4], [7], [56]]}", "style": "rule" }
EASY
{ "id": "taco-train-7238", "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 number positive number N, find value of f_{0}...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 4\"], \"outputs\": [\"4\", \"7\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-4983", "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": "A sequence a[0], a[1], …, a[N-1] is called decreasing...
code
{ "ground_truth": "{\"fn_name\": \"minMoves\", \"inputs\": [\"N = 4, K = 5\\nA[] = {1, 1, 2, 3}\", \"N=5, K = 2\\nA[] = {5, 4, 3, 2, 1}\"], \"outputs\": [\"3\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13259", "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": "Ann has recently started commuting by subway. We kno...
code
{ "ground_truth": "{\"inputs\": [\"5 2 2 3\\n\", \"6 2 1 2\\n\", \"6 4 1 3\\n\", \"1 1000 1 2\\n\", \"101 110 1 100\\n\", \"1000 3 1000 1000\\n\", \"100 8 10 1\\n\", \"477 2 16 14\\n\", \"9 3 3 10\\n\", \"1000 1 1000 1000\\n\", \"10 2 1 1\\n\", \"1000 2 1 1000\\n\", \"995 1 2 1\\n\", \"556 2 16 15\\n\", \"10 3 5 1\\n...
rating_<=1200
{ "id": "466_A. Cheap Travel", "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": "Mr. Wire Less is not that good at implementing circu...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"1\", \"2\", \"\", \"\"]], \"outputs\": [[\"Case 1: 1\", \"Case 2: 3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-14039", "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": "Consider the infinite sequence $s$ of positive integ...
code
{ "ground_truth": "{\"inputs\": [\"9\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n3\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n5\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1\\n5\\n3\\n4\\n5\\n6\\n7\\n8\\n12\\n\", \"9\\n1\\n2\\n3\\n4\\n5\\n6\\n11\\n8\\n9\\n\", \"9\\n1\\n3\\n3\\n2\\n5\\n6\\n7\\n8\\n9\\n\", \"9\\n1...
HARD
{ "id": "taco-train-12207", "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 biggest event of the year – Cota 2 world champio...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 3 5 7\\n\", \"3 3\\n1 7 8\\n\", \"3 1\\n6\\n\", \"2 1\\n1\\n\", \"3 5\\n7 2 1 4 8\\n\", \"2 0\\n\", \"2 3\\n2 1 3\\n\", \"3 6\\n5 4 1 3 6 7\\n\", \"10 10\\n334 588 666 787 698 768 934 182 39 834\\n\", \"3 8\\n2 5 6 1 8 3 4 7\\n\", \"17 0\\n\", \"3 7\\n5 4 8 1 7 3 6\\n\", \"1...
rating_>1900
{ "id": "1310_B. Double Elimination", "rating": 2500, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Having dealt with most of the kingdoms on mainland W...
code
{ "ground_truth": "{\"inputs\": [\"10\\n10 25\\n15 50\\n12 25\\n2 8\\n3 6\\n4 5\\n6 6\\n9 15\\n11 30\\n4 6\", \"100\\n30 50\\n25 47\\n89 200\\n100 1000\\n91 180\\n30 50\\n25 47\\n89 200\\n100 1000\\n91 180\\n30 50\\n25 47\\n89 200\\n100 1000\\n91 180\\n30 50\\n25 47\\n89 200\\n100 1000\\n91 180\\n30 50\\n25 47\\n89 2...
MEDIUM_HARD
{ "id": "taco-train-11282", "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": "Chef had a hard time arguing with his friend, and af...
code
{ "ground_truth": "{\"inputs\": [\"1\\n4 2 1\\n1 1 2 2\\n1 1\\n1 1\\n1 1\\n3 1\\n0 1\\n0 1\\n1 0\\n1 0\"], \"outputs\": [\"5\"]}", "style": "rule" }
none
{ "id": "colarr", "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 a string s of 0's and 1's. You are all...
code
{ "ground_truth": "{\"inputs\": [\"3\\n100101\\n1100011\\n10101010\\n\", \"2\\n0\\n1\\n\", \"4\\n00\\n10\\n01\\n11\\n\", \"32\\n00000\\n10000\\n01000\\n11000\\n00100\\n10100\\n01100\\n11100\\n00010\\n10010\\n01010\\n11010\\n00110\\n10110\\n01110\\n11110\\n00001\\n10001\\n01001\\n11001\\n00101\\n10101\\n01101\\n11101\...
rating_>1900
{ "id": "1458_D. Flip and Reverse", "rating": 3100, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array of integers, we need to find out all p...
code
{ "ground_truth": "{\"inputs\": [\"[5, 4, 3, 1, 2]\", \"[4, 1, 2]\"], \"outputs\": [\"3\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-17341", "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": "You are given the head of a Linked List. You have to ...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\\r\\nList = {2,5,6,2,1}\", \"N = 1\\r\\nList = {2}\"], \"outputs\": [\"{1,2,5,6,2}\", \"{2}\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6466", "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 a function, so it will produce a sentence o...
code
{ "ground_truth": "{\"fn_name\": \"make_sentences\", \"inputs\": [[[\"hello\", \"world\"]], [[\"Quick\", \"brown\", \"fox\", \"jumped\", \"over\", \"the\", \"lazy\", \"dog\"]], [[\"hello\", \",\", \"my\", \"dear\"]], [[\"one\", \",\", \"two\", \",\", \"three\"]], [[\"One\", \",\", \"two\", \"two\", \",\", \"three\", ...
EASY
{ "id": "taco-train-18012", "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": "Print all combinations which can be made by $k$ diff...
code
{ "ground_truth": "{\"inputs\": [\"5 3\", \"5 1\", \"5 0\", \"1 1\", \"2 1\", \"4 1\", \"4 2\", \"5 2\", \"2 2\", \"3 1\", \"5 4\", \"3 2\", \"8 4\", \"6 2\", \"8 8\", \"12 1\", \"7 1\", \"7 2\", \"9 2\", \"16 2\", \"13 2\", \"5 5\", \"10 1\", \"9 1\", \"10 2\", \"9 4\", \"8 3\", \"12 2\", \"16 1\", \"11 1\", \"8 2\"...
none
{ "id": "p02430 Enumeration of Combinations", "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": "In genetics a reading frame is a way to divide a sequ...
code
{ "ground_truth": "{\"fn_name\": \"decompose_single_strand\", \"inputs\": [[\"AGGTGACACCGCAAGCCTTATATTAGC\"]], \"outputs\": [[\"Frame 1: AGG TGA CAC CGC AAG CCT TAT ATT AGC\\nFrame 2: A GGT GAC ACC GCA AGC CTT ATA TTA GC\\nFrame 3: AG GTG ACA CCG CAA GCC TTA TAT TAG C\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-12107", "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": "Fox Ciel wants to write a task for a programming con...
code
{ "ground_truth": "{\"inputs\": [\"2\", \"1\", \"9\", \"1000000\\n\", \"999983\\n\", \"9999991\\n\", \"2\\n\", \"73939133\\n\", \"16\\n\", \"9\\n\", \"29\\n\", \"27\\n\", \"29000087\\n\", \"2691939\\n\", \"13567\\n\", \"15485863\\n\", \"666013\\n\", \"10\\n\", \"58376259\\n\", \"41313494\\n\", \"1\\n\", \"1000003\\n\...
rating_1601-1900
{ "id": "389_D. Fox and Minimal path", "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": "You have $r$ red and $b$ blue beans. You'd like to d...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 0\\n2 7 3\\n6 1 4\\n5 4 0\\n\", \"10\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 1000000000 1000000000\\n1 ...
EASY
{ "id": "taco-train-15242", "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": "All cinema halls in Berland are rectangles with *K* ...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n1 1\", \"4 3\\n1 2 3 1\", \"1 3\\n1\", \"2 3\\n3 3\", \"3 3\\n3 2 3\", \"1 5\\n5\", \"2 5\\n3 4\", \"3 5\\n2 5 2\", \"4 5\\n5 5 3 5\", \"5 5\\n4 1 3 1 1\", \"10 11\\n3 11 6 4 4 11 9 2 1 9\", \"10 13\\n12 8 7 11 11 9 2 12 10 1\", \"10 15\\n15 6 1 9 3 10 11 1 14 10\", \"10 17\\n...
rating_1401-1600
{ "id": "10B", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "A new deadly virus has infected large population of a...
code
{ "ground_truth": "{\"inputs\": [\"n = 5\\nvac[] = {123 146 454 542 456}\\nper[] = {100 328 248 689 200}\", \"n = 8\\nvac[] = {87 93 50 22 63 28 91 60}\\nper[] = {64 27 41 27 73 37 12 69}\"], \"outputs\": [\"0\", \"1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19248", "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 the Jambo Amusement Garden (JAG), you sell colorf...
code
{ "ground_truth": "{\"inputs\": [\"2\\nwhite 10\\nblack 10\\n2\\nblack\\nwhite\", \"2\\nwhite 20\\nblack 10\\n2\\nblack\\norange\", \"2\\nwhite 20\\nblack 10\\n2\\nblack\\nwhite\", \"4\\nred 3444\\nred 3018\\nred 3098\\nred 3319\\n4\\nred\\nred\\nred\\nred\", \"3\\nwhite 10\\nred 20\\nwhite 30\\n3\\nwhite\\nred\\nwhi...
none
{ "id": "p02005 Colorful Drink", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a grid with R rows and C columns. We call t...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n4\\n1 1 0\\n1 2 10\\n2 1 30\\n2 2 20\", \"2 2\\n3\\n1 1 0\\n1 2 10\\n2 1 20\", \"3 3\\n4\\n1 1 0\\n1 3 10\\n3 1 10\\n3 3 20\", \"2 2\\n3\\n1 1 20\\n1 2 10\\n2 1 0\", \"2 3\\n5\\n1 1 0\\n1 2 10\\n1 3 20\\n2 1 30\\n2 3 40\", \"2 4\\n4\\n1 1 0\\n1 2 10\\n2 1 30\\n2 2 20\", \"2 2\...
none
{ "id": "p03995 CODE FESTIVAL 2016 qual A - Grid and Integers", "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": "Young jedi Ivan has infiltrated in The Death Star an...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 1 1\\n1 0 1\\n1 1 0\\n\", \"5\\n0 0 1 1 1\\n0 0 2 0 2\\n1 2 0 1 3\\n1 0 1 0 1\\n1 2 3 1 0\\n\", \"5\\n0 1 1 0 1\\n1 0 1 0 3\\n1 1 0 0 1\\n0 0 0 0 0\\n1 3 1 0 0\\n\"], \"outputs\": [\"1 1 1\\n\", \"1 2 3 1 11\\n\", \"1 7 1 8 3\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-18569", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are studying a swarm of N fireflies. Each firefl...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3\\n3 0 -4 0 0 3\\n-3 -2 -1 3 0 0\\n-3 -1 2 0 3 0\\n\\nSAMPLE\"], \"outputs\": [\"Case #1: 0.00000000 1.00000000\"]}", "style": "rule" }
none
{ "id": "center-in-mass-2", "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": "In Spanish, the conjugated verb changes by adding suf...
code
{ "ground_truth": "{\"fn_name\": \"conjugate\", \"inputs\": [[\"caminar\"], [\"comer\"], [\"vivir\"]], \"outputs\": [[{\"caminar\": [\"camino\", \"caminas\", \"camina\", \"caminamos\", \"caminais\", \"caminan\"]}], [{\"comer\": [\"como\", \"comes\", \"come\", \"comemos\", \"comeis\", \"comen\"]}], [{\"vivir\": [\"viv...
EASY
{ "id": "taco-train-4299", "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 has n items lying in a line. The items are con...
code
{ "ground_truth": "{\"inputs\": [\"3 4 4 19 1\\n42 3 99\\n\", \"4 7 2 3 9\\n1 2 3 4\\n\", \"2 100 100 10000 10000\\n100 100\\n\", \"2 3 4 5 6\\n1 2\\n\", \"1 78 94 369 10000\\n93\\n\", \"1 94 78 369 10000\\n93\\n\", \"5 1 100 1 10000\\n1 2 3 4 5\\n\", \"5 100 1 10000 1\\n1 2 3 4 5\\n\", \"5 1 100 10000 1\\n1 2 3 4 5\...
MEDIUM
{ "id": "taco-train-11649", "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": "All our characters have hobbies. The same is true fo...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\n1 100\\n40 70\\n120 130\\n125 180\\n\", \"3 2\\n1 12\\n15 20\\n25 30\\n\", \"5 2\\n1 10\\n5 15\\n14 50\\n30 70\\n99 100\\n\", \"7 6\\n-8 6\\n7 9\\n-10 -5\\n-6 10\\n-7 -3\\n5 8\\n4 10\\n\", \"9 6\\n-7 -3\\n-3 10\\n-6 1\\n-1 8\\n-9 4\\n-7 -6\\n-5 -3\\n-10 -2\\n3 4\\n\", \"7 7\\n...
HARD
{ "id": "taco-train-2926", "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": "Watson gives to Sherlock two strings S1 and S2 consi...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"ABCDE\", \"XXBCZQ\", \"BBB\", \"BBBBBB\", \"\", \"\"]], \"outputs\": [[\"2\", \"6\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-23378", "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": "There is a rectangular grid of cells consisting of n...
code
{ "ground_truth": "{\"inputs\": [[\"5\", \"1 1\", \"R\", \"2 3\", \"LLRU\", \"3 2\", \"LLRU\", \"4 3\", \"ULURUDRDLD\", \"3 6\", \"RURUR\"]], \"outputs\": [[\"unsafe\", \"safe\", \"unsafe\", \"safe\", \"safe\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-19953", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Bleatrix Trotter the sheep has devised a strategy tha...
code
{ "ground_truth": "{\"fn_name\": \"trotter\", \"inputs\": [[1692], [2], [7], [100], [1], [11], [163444], [206929], [459923], [691520], [0], [12500], [1250000]], \"outputs\": [[5076], [90], [70], [900], [10], [110], [653776], [620787], [4139307], [2074560], [\"INSOMNIA\"], [900000], [90000000]]}", "style": "rule" }
EASY
{ "id": "taco-train-14150", "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": "Andryusha is an orderly boy and likes to keep things...
code
{ "ground_truth": "{\"inputs\": [\"1\\n1 1\\n\", \"3\\n2 1 1 3 2 3\\n\", \"5\\n5 1 3 2 4 3 1 2 4 5\\n\", \"10\\n4 2 6 3 4 8 7 1 1 5 2 10 6 8 3 5 10 9 9 7\\n\", \"50\\n30 47 31 38 37 50 36 43 9 23 2 2 15 31 14 49 9 16 6 44 27 14 5 6 3 47 25 26 1 35 3 15 24 19 8 46 49 41 4 26 40 28 42 11 34 35 46 18 7 28 18 40 19 42 4 ...
MEDIUM
{ "id": "taco-train-3621", "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": "In a Berland's zoo there is an enclosure with camels...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 -10\\n3 10\\n0 5\\n5 -5\\n10 1\\n\", \"3\\n0 1\\n1 1\\n2 -2\\n\", \"2\\n0 1\\n1 -1\\n\", \"30\\n-398 -1774\\n313 -6974\\n2346 -4657\\n8552 -9647\\n-5265 1538\\n8195 4864\\n-5641 -5219\\n-1394 8563\\n-1190 1992\\n-4669 -1156\\n7574 256\\n9206 -2414\\n4140 -549\\n-294 2169\\n702...
rating_<=1200
{ "id": "29_A. Spit Problem", "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\nThe __dot product__ is usually encountered ...
code
{ "ground_truth": "{\"fn_name\": \"min_dot\", \"inputs\": [[[], []], [[1, 2, 3, 4, 5], [0, 1, 1, 1, 0]], [[1, 2, 3, 4, 5], [0, 0, 1, 1, -4]], [[1, 3, 5], [4, -2, 1]]], \"outputs\": [[0], [6], [-17], [-3]]}", "style": "rule" }
EASY
{ "id": "taco-train-13141", "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": "Sagheer is walking in the street when he comes to an...
code
{ "ground_truth": "{\"inputs\": [\"1 0 0 1\\n0 1 0 0\\n0 0 1 0\\n0 0 0 1\\n\", \"0 1 1 0\\n1 0 1 0\\n1 1 0 0\\n0 0 0 1\\n\", \"1 0 0 0\\n0 0 0 1\\n0 0 0 0\\n1 0 1 0\\n\", \"0 0 0 0\\n0 0 0 1\\n0 0 0 1\\n0 0 0 1\\n\", \"1 1 1 0\\n0 1 0 1\\n1 1 1 0\\n1 1 1 1\\n\", \"0 1 1 0\\n0 1 0 0\\n1 0 0 1\\n1 0 0 0\\n\", \"1 0 0 0...
EASY
{ "id": "taco-train-24970", "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": "Haku Kale now wants to loot in a global scale. For t...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\nARCTV\\nACADAPALA\\nZHFGOSM\\n4\\nFJAOHVG\\nAAAAA\\nNUWRE\\nIAT\"], \"outputs\": [\"RAM\\nHARI\"]}", "style": "rule" }
none
{ "id": "nc1401", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a square grid with N rows and M columns. Ea...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n0 1\\n1 0\", \"2 3\\n0 0 0\\n0 1 0\", \"2 3\\n0 0 0\\n-1 1 0\", \"2 3\\n0 0 -1\\n-1 1 0\", \"1 3\\n0 0 -1\\n-1 1 0\", \"2 2\\n1 1\\n1 0\", \"1 2\\n-1 0 -1\\n-1 0 0\", \"1 0\\n-1 0 -1\\n-1 0 0\", \"1 1\\n-1 1 -4\\n0 1 2\", \"1 3\\n-1 0 -1\\n-1 1 0\", \"1 3\\n-1 0 -1\\n-1 1 1\",...
none
{ "id": "p03133 Yahoo Programming Contest 2019 - Odd Subrectangles", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array arr[ ] of size n having distinct eleme...
code
{ "ground_truth": "{\"inputs\": [\"n = 4, arr[] = [1 3 2 4]\", \"n = 5, arr[] = [6 8 0 1 3]\"], \"outputs\": [\"3 4 4 -1\", \"8 -1 1 3 -1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-24095", "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": "Nikita plays a new computer game. There are m levels...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1\\n1\\n2\\n3\\n\", \"4\\n1\\n1\\n2\\n1\\n\", \"6\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"6\\n1\\n1\\n2\\n1\\n1\\n1\\n\", \"6\\n1\\n2\\n3\\n4\\n5\\n6\\n\", \"11\\n1\\n2\\n2\\n3\\n3\\n6\\n5\\n5\\n2\\n2\\n7\\n\", \"6\\n1\\n1\\n2\\n1\\n1\\n2\\n\", \"11\\n1\\n2\\n2\\n3\\n3\\n6\\n5\\n5\\n2\\...
rating_>1900
{ "id": "842_E. Nikita and game", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Smart Beaver recently got interested in a new word g...
code
{ "ground_truth": "{\"inputs\": [\"aaab\\n2\\naa 0 0\\naab 1 1\\n\", \"ltntlnen\\n3\\nn 0 0\\nttlneenl 1 4\\nlelllt 1 1\\n\", \"a\\n0\\n\", \"nysnvneyavzcebsbsvrsbcvzsrcr\\n5\\nycaa 1 3\\nzsayyyvseccsbcbvzrr 5 16\\nznz 1 3\\nbvnzrccvcb 4 7\\nseznebzeevvrncccaabsbny 17 21\\n\", \"oaoaa\\n1\\noaooaoooooaaaaaaaoooaao 2 ...
MEDIUM_HARD
{ "id": "taco-train-14713", "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": "We'll call a set of positive integers a beautiful if...
code
{ "ground_truth": "{\"inputs\": [\"10\\n\", \"31\\n\", \"11\\n\", \"32\\n\", \"14\\n\", \"30\\n\", \"20\\n\", \"777\\n\", \"53\\n\", \"3232\\n\", \"41\\n\", \"2521\\n\", \"12\\n\", \"666\\n\", \"4848\\n\", \"2001\\n\", \"87\\n\", \"29\\n\", \"1500\\n\", \"28\\n\", \"4444\\n\", \"103\\n\", \"5000\\n\", \"4777\\n\", \"...
rating_>1900
{ "id": "365_E. Beautiful Set", "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": "To attain inner peace Geek Sundaram has to pass th...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n1 0\\n2 0\\n3 0\\n4\\n1 1\\n2 2\\n3 3\\n4 4\"], \"outputs\": [\"1\\n4\"]}", "style": "rule" }
none
{ "id": "abacus04", "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": "```if:python \nNote: Python may currently have some p...
code
{ "ground_truth": "{\"fn_name\": \"leaderboard_climb\", \"inputs\": [[[100, 90, 90, 80], [70, 80, 105]], [[982, 490, 339, 180], [180, 250, 721, 2500]], [[1982, 490, 339, 180], [180, 250, 721, 880]], [[1079, 490, 339, 180], [180, 250, 1200, 1980]]], \"outputs\": [[[4, 3, 1]], [[4, 4, 2, 1]], [[4, 4, 2, 2]], [[4, 4, 1,...
EASY
{ "id": "taco-train-16125", "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 map of Berland is a rectangle of the size *n*<=×...
code
{ "ground_truth": "{\"inputs\": [\"5 4 1\\n****\\n*..*\\n****\\n**.*\\n..**\", \"3 3 0\\n***\\n*.*\\n***\", \"3 5 1\\n.**.*\\n*.*.*\\n***..\", \"3 5 0\\n.**.*\\n*.*.*\\n***..\", \"3 50 7\\n***.********.*********************.**********.****\\n*...**..*.**.*.*.*.*.*.*.*..*.*.*.*.*.*.*.*.*.*..*\\n****************.*.****...
rating_1401-1600
{ "id": "723D", "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": "It's been a hard time for Baahubali in mathematics. ...
code
{ "ground_truth": "{\"inputs\": [\"100\\n20 36 40 39 36 \\n26 37 14 22 22 \\n36 32 30 28 24 \\n21 2 18 37 17 \\n24 6 4 48 13 \\n27 4 42 35 45 \\n42 5 30 32 18 \\n40 7 4 28 3 \\n0 14 35 30 42 \\n33 26 44 0 12 \\n36 49 44 40 47 \\n6 42 0 22 0 \\n19 14 5 49 20 \\n23 13 1 2 41 \\n4 27 4 13 32 \\n47 46 7 14 21 \\n19 50 19...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-8604", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an integer N representing the number of pairs o...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 1\"], \"outputs\": [\"((()))\\n(()())\\n(())()\\n()(())\\n()()()\\n\", \"()\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-19071", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have N colored balls arranged in a row from left ...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 2 1 3\\n1 3\\n2 4\\n3 3\", \"10 10\\n2 5 6 5 2 1 7 9 7 2\\n5 5\\n2 4\\n6 7\\n2 2\\n7 8\\n7 9\\n1 8\\n6 9\\n8 10\\n6 8\", \"10 10\\n4 5 6 5 2 1 7 9 7 2\\n5 5\\n2 4\\n6 7\\n2 2\\n7 8\\n7 9\\n1 8\\n6 9\\n8 10\\n6 8\", \"4 1\\n1 2 1 3\\n1 3\\n2 4\\n3 3\", \"4 2\\n1 2 1 3\\n1 3\\...
none
{ "id": "p02599 AtCoder Beginner Contest 174 - Range Set Query", "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": "These days, Sid and Jake are learning about number t...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 4\\n2 3\"], \"outputs\": [\"CORRECT\\nWRONG\"]}", "style": "rule" }
none
{ "id": "twofrnds", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given two strings A and B. Find the minimum number of...
code
{ "ground_truth": "{\"inputs\": [\"A = \\\"abd\\\"\\r\\nB = \\\"bad\\\"\", \"A = \\\"GeeksForGeeks\\\"\\r\\nB = \\\"ForGeeksGeeks\\\"\"], \"outputs\": [\"1\", \"3\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-4433", "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": "Create a function that accepts 3 inputs, a string, a ...
code
{ "ground_truth": "{\"fn_name\": \"endless_string\", \"inputs\": [[\"xyz\", -23, 6], [\"xyz\", 0, 4], [\"xyz\", 19, 2], [\"xyz\", -4, -4], [\"abcdefghijklmnopqrstuvwxyz\", 29, 1], [\"Hello! How are you?\", -14, 27], [\"1x2x3x4x\", 1532, 100], [\"1x2x3x4x\", -1532, -100], [\"112233\", 0, 0], [\"112233\", -1, 0], [\"11...
EASY
{ "id": "taco-train-2035", "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": "One spring day on his way to university Lesha found ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 -3\\n\", \"8\\n9 -12 3 4 -4 -10 7 3\\n\", \"1\\n0\\n\", \"4\\n1 2 3 -5\\n\", \"6\\n0 0 0 0 0 0\\n\", \"7\\n0 0 0 0 3 -3 0\\n\", \"5\\n0 0 -4 0 0\\n\", \"100\\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 ...
EASY
{ "id": "taco-train-8574", "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": "Rakesh have learn about vowel in school and is given...
code
{ "ground_truth": "{\"inputs\": [\"3\\nSdfgAe\\nOut\\nGet\\n\\nSAMPLE\", \"3\\nfdSgAe\\nOut\\nGet\\n\\nSAMPLE\", \"3\\nfdSgAe\\ntuO\\nFet\\n\\nSAMPLE\", \"3\\nBdSgfe\\ntuO\\nFet\\n\\nSAMPLD\", \"3\\nefgSdB\\nOut\\nteF\\n\\nDLPMAS\", \"3\\nefgSdB\\nOut\\ntfF\\n\\nDLPMAS\", \"3\\nBfgSde\\nuOt\\ntFg\\n\\nDLPMAS\", \"3\\...
none
{ "id": "vowel", "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": "Professor GukiZ has two arrays of integers, a and b....
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 4 3 2 1\\n4\\n1 1 1 1\", \"5\\n1 2 3 4 5\\n1\\n15\", \"5\\n1 2 3 4 5\\n4\\n1 2 3 4\", \"1\\n-42\\n1\\n-86\", \"1\\n-21\\n10\\n-43 6 -46 79 -21 93 -36 -38 -67 1\", \"10\\n87 -92 -67 -100 -88 80 -82 -59 81 -72\\n10\\n-50 30 30 77 65 92 -60 -76 -29 -15\", \"6\\n1 2 3 4 5 11\\n1\\...
rating_>1900
{ "id": "620D", "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": "The country Treeland consists of *n* cities, some pa...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 1\\n2 3\", \"4\\n1 4\\n2 4\\n3 4\", \"2\\n1 2\", \"8\\n1 2\\n3 2\\n4 3\\n4 5\\n6 5\\n6 7\\n8 7\", \"10\\n2 3\\n1 8\\n9 5\\n5 4\\n6 10\\n4 8\\n5 6\\n7 6\\n5 3\", \"10\\n9 3\\n3 8\\n4 3\\n3 5\\n7 8\\n10 3\\n2 3\\n6 2\\n3 1\", \"10\\n5 4\\n6 5\\n10 1\\n2 5\\n9 8\\n1 3\\n7 10\\n2 ...
rating_1601-1900
{ "id": "219D", "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": "A tree is a connected undirected graph consisting of...
code
{ "ground_truth": "{\"inputs\": [\"5 4 2\\n1 2\\n2 3\\n4 2\\n4 1\", \"6 5 3\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\", \"4 3 2\\n2 3\\n2 4\\n3 4\", \"4 2 2\\n1 2\\n1 3\", \"7 11 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 7\\n6 2\\n6 3\\n6 4\\n6 5\\n6 7\\n2 3\", \"3 1 2\\n1 3\", \"4 2 2\\n2 1\\n1 4\", \"4 2 3\\n2 1\\n2 4\", \"4 5 1\\n2 3\\n...
rating_>1900
{ "id": "653E", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Steven Smith, being a phenomenal Test and ODI Batsme...
code
{ "ground_truth": "{\"inputs\": [\"3 \\n5 5 \\n5 5 \\n6 7\", \"4\\n1000 2000\\n2500 300\\n3000 2000\\n2100 2000\"], \"outputs\": [\"0\\n0\\n3\\n1\", \"0\\n0\\n2\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-3231", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_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": "Polycarp takes part in a quadcopter competition. Acc...
code
{ "ground_truth": "{\"inputs\": [\"1 5\\n5 2\", \"0 1\\n0 0\", \"-100 -100\\n100 100\", \"-100 -100\\n-100 100\", \"-100 -100\\n100 -100\", \"100 -100\\n-100 -100\", \"100 -100\\n-100 100\", \"100 -100\\n100 100\", \"-100 100\\n-100 -100\", \"-100 100\\n100 -100\", \"-100 100\\n100 100\", \"100 100\\n-100 -100\", \"1...
rating_<=1200
{ "id": "883M", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array arr[] of size N and an integer K, the ...
code
{ "ground_truth": "{\"inputs\": [\"N = 7, K = 2\\narr[] = {1, 2, 3, 4, 5, 6, 7}\", \"N = 6, K = 12\\narr[] = {1, 2, 3, 4, 5, 6}\"], \"outputs\": [\"3 4 5 6 7 1 2\", \"1 2 3 4 5 6\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2598", "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": "Eugene loves sequences, especially arithmetic progre...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1 1 3\\n14 7 2 4\", \"2\\n1 1 1 2\\n14 7 2 4\", \"2\\n1 1 1 4\\n14 7 2 4\", \"2\\n1 1 0 4\\n14 7 2 4\", \"2\\n1 1 0 4\\n4 7 2 4\", \"2\\n1 1 0 4\\n2 7 2 4\", \"2\\n1 1 1 4\\n2 10 2 0\", \"2\\n1 1 1 4\\n3 29 2 0\", \"2\\n1 1 1 4\\n3 29 4 0\", \"2\\n1 1 1 4\\n3 24 4 0\", \"2\\n1...
none
{ "id": "kfunc", "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 [Bengali], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3\\n1 2 3\\n3\\n8 4 2\\n2\\n2 2 \\n\", \"3\\n3\\n1 2 3\\n3\\n8 4 2\\n2\\n2 2 \\n\", \"1\\n3\\n3 6 9\\n\", \"1\\n2\\n3 3\\n\", \"1\\n4\\n9 18 3 6\\n\", \"1\\n3\\n1 1 2\\n\", \"1\\n2\\n5 10\\n\", \"1\\n4\\n2 2 4 4\\n\", \"2\\n2\\n2 4\\n3\\n3 3 3\\n\", \"1\\n1\\n1\\n\", \"1\\n5\\n2...
MEDIUM_HARD
{ "id": "taco-test-357", "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": "Chef has two integers A and B (A ≤ B). \n\nChef can ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 6\\n4 14\\n9 10\\n\"], \"outputs\": [\"YES\\nYES\\nNO\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3744", "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": "Hattori is very much inspired by the way GMAIL works....
code
{ "ground_truth": "{\"inputs\": [\"N = 10, Q = 7query = {1, 2, 1, 5, 1, 7, 1, 9, 2, 5, 2, 7, 4, 5}\"], \"outputs\": [\" UNREAD - \\r\\n1 3 4 6 8 10READ - 2 9 5TRASH - 7\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-2818", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are $n$ cities in Berland. Some pairs of citie...
code
{ "ground_truth": "{\"inputs\": [\"4 4 3\\n1 2\\n2 3\\n1 4\\n4 3\\n\", \"4 6 3\\n1 2\\n2 3\\n1 4\\n4 3\\n2 4\\n1 3\\n\", \"5 6 2\\n1 2\\n1 3\\n2 4\\n2 5\\n3 4\\n3 5\\n\", \"2 1 200000\\n2 1\\n\", \"3 2 100000\\n1 2\\n2 3\\n\", \"3 2 100000\\n1 2\\n1 3\\n\", \"3 3 1000\\n1 2\\n2 3\\n3 1\\n\", \"5 6 166666\\n1 2\\n1 3\...
HARD
{ "id": "taco-train-23602", "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": "Vasya is an active Internet user. One day he came ac...
code
{ "ground_truth": "{\"inputs\": [\"httpsunrux\\n\", \"ftphttprururu\\n\", \"httpuururrururruruurururrrrrurrurrurruruuruuu\\n\", \"httpabuaruauabbaruru\\n\", \"httpuurrruurruuruuruuurrrurururuurruuuuuuruurr\\n\", \"httpruhhphhhpuhruruhhpruhhphruhhru\\n\", \"httpftprftprutprururftruruftptp\\n\", \"httpfttpftpfttftpftpf...
EASY
{ "id": "taco-train-7121", "rating": null, "split": "confidence_train", "sub_source": "EASY" }