data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Create the multiplication table of a given number N a...
code
{ "ground_truth": "{\"inputs\": [\"N = 9\", \"N = 2\"], \"outputs\": [\"9 18 27 36 45 54 63 72 81 90\", \"2 4 6 8 10 12 14 16 18 20\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24345", "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": "Ujan decided to make a new wooden roof for the house...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5\\n4 3 1 4 5\\n4\\n4 4 4 4\\n3\\n1 1 1\\n5\\n5 5 1 1 5\\n\", \"10\\n1\\n1\\n2\\n2 1\\n3\\n3 1 2\\n3\\n2 2 2\\n4\\n4 1 4 1\\n5\\n5 4 3 2 1\\n5\\n1 2 3 4 5\\n6\\n3 2 1 6 2 2\\n10\\n4 5 2 9 6 10 3 7 1 8\\n10\\n1 3 2 2 2 9 10 10 9 7\\n\", \"4\\n5\\n2 3 1 4 5\\n4\\n4 4 4 4\\n3\\n1 1...
rating_<=1200
{ "id": "1243_A. Maximum Square", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A company needs random numbers for its operation. $N...
code
{ "ground_truth": "{\"inputs\": [\"2 6\\n13 8\\n1 1\\n\"], \"outputs\": [\"1 1 \\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-11892", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array of $n$ integers $a_1, a_2, \\...
code
{ "ground_truth": "{\"inputs\": [\"11 3\\n-5 -4 -3 -2 -1 0 1 2 3 4 5\\n> 2\\n> -4\\n< 5\\n\", \"5 5\\n0 1 -2 -1 2\\n< -2\\n< -1\\n< 0\\n< 1\\n< 2\\n\", \"5 5\\n0 1 -2 -1 2\\n< -2\\n< -1\\n< 0\\n< 1\\n< 2\\n\", \"11 3\\n-5 -4 -3 -2 -1 0 1 2 3 4 5\\n> 2\\n> -4\\n< 5\\n\", \"5 5\\n0 1 -2 -1 2\\n< -2\\n< -1\\n< 0\\n; 1\\...
VERY_HARD
{ "id": "taco-train-10642", "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": "Greg has a weighed directed graph, consisting of n v...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 3 1 1\\n6 0 400 1\\n2 4 0 1\\n1 1 1 0\\n4 1 2 3\\n\", \"2\\n0 5\\n4 0\\n1 2\\n\", \"1\\n0\\n1\\n\", \"6\\n0 72137 71041 29217 96749 46417\\n40199 0 55907 57677 68590 78796\\n83463 50721 0 30963 31779 28646\\n94529 47831 98222 0 61665 73941\\n24397 66286 2971 81613 0 52501\\n26...
rating_1601-1900
{ "id": "295_B. Greg and Graph", "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": "Many students live in a dormitory. A dormitory is a ...
code
{ "ground_truth": "{\"inputs\": [\"0 0 0 0 9\\n0 0 0 0 0\\n0 0 0 0 0\\n0 0 0 0 0\\n7 0 0 0 0\", \"0 43 21 18 2\\n3 0 21 11 65\\n5 2 0 1 4\\n54 62 12 0 99\\n87 64 81 33 0\", \"0 4 2 4 9\\n6 0 2 5 0\\n2 5 0 6 3\\n6 3 3 0 10\\n0 3 1 3 0\", \"0 65 90 2 32\\n69 0 9 97 67\\n77 97 0 16 84\\n18 50 94 0 63\\n69 12 82 16 0\", ...
rating_<=1200
{ "id": "431B", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Vasya and Petya have invented a new game. Vasya take...
code
{ "ground_truth": "{\"inputs\": [\"6\\n111010\", \"5\\n10001\", \"7\\n1100010\", \"5\\n00100\", \"3\\n101\", \"6\\n111111\", \"6\\n000000\", \"10\\n1000101001\", \"100\\n1001001000011010001101000011100101101110101001110110010001110011011100111000010010011011101000011101\", \"100\\n000000000010000000000000000000000000...
rating_1601-1900
{ "id": "49D", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem\n\nThere is a grid of $ R \\ times C $ squar...
code
{ "ground_truth": "{\"inputs\": [\"5 5 0 0 4 4\", \"1 1 0 0 0 0\", \"1 10 0 0 0 9\", \"2 2 0 0 1 1\", \"421 435 196 169 388 9\", \"2 2 0 0 0 1\", \"421 435 196 169 388 5\", \"1 2 0 0 0 0\", \"421 435 196 91 388 9\", \"5 6 0 0 4 4\", \"1 10 0 1 0 9\", \"421 435 196 169 388 12\", \"421 435 196 169 388 10\", \"421 435 1...
none
{ "id": "p02140 Gridgedge", "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": "Let's dive into the interesting topic of regular exp...
code
{ "ground_truth": "{\"inputs\": [\"2\\n9587456281\\n1252478965\\n\"], \"outputs\": [\"YES\\nNO\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-11341", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given integer n. You have to arrange numbers...
code
{ "ground_truth": "{\"inputs\": [\"4\\n\", \"3\\n\", \"11\\n\", \"2\\n\", \"6\\n\", \"10\\n\", \"65\\n\", \"9\\n\", \"4096\\n\", \"5\\n\", \"64\\n\", \"14786\\n\", \"4097\\n\", \"78946\\n\", \"100000\\n\", \"14785\\n\", \"1\\n\", \"1024\\n\", \"63\\n\", \"13\\n\", \"58\\n\", \"7\\n\", \"85\\n\", \"463\\n\", \"7807\\n...
rating_<=1200
{ "id": "1205_A. Almost Equal", "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": "It is Catmas time again, and that means a lot of str...
code
{ "ground_truth": "{\"inputs\": [\"2\\n\", \"3\\n\"], \"outputs\": [\"3.000000000\\n\", \"5.333333333\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-24270", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Nastya likes reading and even spends whole days in a...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n1 3\\n1 2\", \"3 4\\n2 2 3\\n1 1\\n1 2\\n2 4\\n3 6\", \"10 7\\n0 3 1 4 6 2 7 8 10 1\\n2 5\\n1 3\\n9 36\\n4 10\\n4 9\\n1 2\\n1 0\", \"21 21\\n10733833 40401599 15143754 45867692 28018488 23091021 17857614 15582024 28461248 14660055 14797112 1090534 17262467 8631347 11906412 200...
rating_>1900
{ "id": "992E", "rating": 2500, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array nums and an integer target.\nReturn th...
code
{ "ground_truth": "{\"fn_name\": \"maxNonOverlapping\", \"inputs\": [[[1, 1, 1, 1, 1], 2]], \"outputs\": [2]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-23777", "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": "Recently in Divanovo, a huge river locks system was ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4 1 5 4 1\\n6\\n1\\n6\\n2\\n3\\n4\\n5\\n\", \"5\\n4 4 4 4 4\\n6\\n1\\n3\\n6\\n5\\n2\\n4\\n\", \"1\\n1000000000\\n1\\n1000000000\\n\", \"50\\n13 41 88 93 19 85 19 79 56 17 9 50 73 26 46 5 8 52 77 62 71 86 2 88 4 97 85 90 95 93 5 71 51 48 26 23 5 56 52 96 7 9 70 63 15 89 55 11 97 ...
HARD
{ "id": "taco-train-5333", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array *a*1,<=*a*2,<=...,<=*a**n* an...
code
{ "ground_truth": "{\"inputs\": [\"5 3 5\\n5 -5 5 1 -4\\n2 1 2\\n4 2 1 4 5\\n2 2 5\\n? 2\\n+ 3 4\\n? 1\\n+ 2 1\\n? 2\", \"10 10 10\\n0 0 0 1 -5 8 7 2 9 -2\\n8 1 9 7 8 2 5 10 3\\n2 7 10\\n8 8 7 1 4 2 5 10 9\\n2 7 5\\n8 9 3 6 4 8 1 2 10\\n2 9 2\\n8 4 2 9 1 10 7 5 3\\n2 3 6\\n8 2 8 5 9 4 1 6 10\\n2 5 2\\n? 1\\n? 3\\n? 5...
rating_>1900
{ "id": "348C", "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": "<image>\n\n\nAs shown in the figure above, cut a con...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1\\n4 1\\n4 3\\n1 3\\n2\\n2 0 2 4\\n2 4 2 0\", \"4\\n1 1\\n4 1\\n4 3\\n1 3\\n2\\n2 0 2 5\\n2 4 2 0\", \"4\\n1 1\\n4 1\\n4 3\\n0 3\\n2\\n2 0 2 5\\n2 4 2 0\", \"4\\n1 1\\n4 2\\n4 3\\n0 3\\n2\\n2 0 2 5\\n2 4 2 0\", \"4\\n1 1\\n4 2\\n4 3\\n0 3\\n2\\n2 0 2 5\\n0 4 2 0\", \"4\\n1 1\...
none
{ "id": "p02302 Convex Cut", "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": "Little Artem has invented a time machine! He could g...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 1 5\\n3 5 5\\n1 2 5\\n3 6 5\\n2 3 5\\n3 7 5\", \"3\\n1 1 1\\n2 2 1\\n3 3 1\", \"10\\n1 1 1000000000\\n1 4 1000000000\\n2 2 1000000000\\n1 5 1000000000\\n1 8 1000000000\\n2 15 1000000000\\n3 3 1000000000\\n3 10 1000000000\\n3 6 1000000000\\n3 7 1000000000\", \"12\\n1 9 1\\n1 8 ...
rating_>1900
{ "id": "641E", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Vasya claims that he had a paper square. He cut it i...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 3\\n3 1\\n3 2\\n1 3\\n3 3\\n1 3\\n\", \"1\\n64 9\\n41 36\\n\", \"1\\n64 9\\n41 14\\n\", \"3\\n2 3\\n3 1\\n3 2\\n1 3\\n3 6\\n1 3\\n\", \"3\\n2 3\\n3 1\\n3 0\\n1 3\\n3 6\\n1 3\\n\", \"3\\n2 4\\n3 1\\n3 0\\n1 3\\n3 6\\n1 3\\n\", \"1\\n59 9\\n41 14\\n\", \"1\\n5 9\\n41 14\\n\", \"...
EASY
{ "id": "taco-train-172", "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": "Cat Noku has obtained a map of the night sky. On thi...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 1\\n1 0\\n1 1\", \"5\\n0 0\\n0 2\\n2 0\\n2 2\\n1 1\", \"3\\n819934317 939682125\\n487662889 8614219\\n-557136619 382982369\", \"10\\n25280705 121178189\\n219147240 -570920213\\n-829849659 923854124\\n18428128 -781819137\\n-876779400 528386329\\n-780997681 387686853\\n-10190055...
rating_1401-1600
{ "id": "618C", "rating": 1600, "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": "You are given a string s and should process m querie...
code
{ "ground_truth": "{\"inputs\": [\"abacaba\\n2\\n3 6 1\\n1 4 2\\n\", \"u\\n1\\n1 1 1\\n\", \"tcpyzttcpo\\n10\\n2 3 6\\n2 4 1\\n2 6 9\\n7 10 5\\n2 3 5\\n4 5 6\\n3 4 5\\n7 9 4\\n9 10 7\\n1 10 8\\n\", \"yywlblbblw\\n10\\n4 7 2\\n3 8 2\\n4 10 6\\n4 7 1\\n3 9 6\\n1 7 3\\n3 7 3\\n3 7 1\\n1 8 7\\n2 7 5\\n\", \"lacongaithatt...
rating_1201-1400
{ "id": "598_B. Queries on a String", "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 are $n$ houses numbered from $1$ to $n$ on a c...
code
{ "ground_truth": "{\"inputs\": [\"8\\n10 3\\n3 6 8\\n6 2\\n2 5\\n20 3\\n3 7 12\\n41 5\\n1 11 21 31 41\\n10 5\\n2 4 6 8 10\\n5 5\\n3 2 5 4 1\\n1000000000 1\\n1\\n1000000000 4\\n1 1000000000 10 16\\n\"], \"outputs\": [\"7\\n5\\n11\\n28\\n9\\n5\\n2\\n15\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-14957", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "~~~if-not:java\nYou have to code a function **getAllP...
code
{ "ground_truth": "{\"fn_name\": \"getAllPrimeFactors\", \"inputs\": [[10], [100], [1000], [1000001], [0], [1], [2], [\"a\"], [1.1], [-1]], \"outputs\": [[[2, 5]], [[2, 2, 5, 5]], [[2, 2, 2, 5, 5, 5]], [[101, 9901]], [[]], [[1]], [[2]], [[]], [[]], [[]]]}", "style": "rule" }
EASY
{ "id": "taco-train-22159", "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": "It is lunch time for Mole. His friend, Marmot, prepa...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 7 3 4 9\\n3\\n1 25 11\\n\", \"5\\n2 7 3 4 9\\n3\\n1 4 11\\n\", \"5\\n2 12 3 4 9\\n3\\n1 25 11\\n\", \"5\\n2 3 3 4 9\\n3\\n1 4 11\\n\", \"5\\n2 1 3 4 9\\n3\\n1 4 11\\n\", \"5\\n1 1 3 4 9\\n3\\n1 4 6\\n\", \"5\\n2 12 3 4 9\\n3\\n1 25 17\\n\", \"5\\n2 1 3 4 2\\n3\\n1 2 11\\n\", \...
EASY
{ "id": "taco-train-1039", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\", \"3\\n1\\n2\\n3\\n\", \"5\\n1\\n2\\n4\\n5\\n20\\n\", \"10\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n\", \"4\\n25\\n50\\n75\\n100\\n\", \"2\\n35\\n70\\n\", \"1\\n89\\n\", \"3\\n33\\n66\\n99\\n\", \"5\\n20\\n40\\n60\\n80\\n100\\n\", \"6\\n16\\n32\\n48\\n64\\n80\\n96\...
MEDIUM_HARD
{ "id": "taco-test-259", "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 given an integer N. Let A be an N \\times N ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 0\\n2 0\\n2 1\\n3 1\\n\"], \"outputs\": [\"No\\nYes\\nYes\\nYes\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-940", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given two strings 'str' and a wildcard pattern 'patte...
code
{ "ground_truth": "{\"inputs\": [\"pattern = \\\"ba*a?\\\"\\nstr = \\\"baaabab\\\"\", \"pattern = \\\"a*ab\\\"\\nstr = \\\"baaabab\\\"\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-3084", "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": "Chandu has been appointed as the superintendent of a...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5\\n6\\n\\nSAMPLE\", \"1000\\n3003\\n4638\\n1156\\n4277\\n1903\\n1654\\n1306\\n3643\\n4615\\n2707\\n1861\\n2651\\n1617\\n1686\\n2909\\n3456\\n1055\\n1670\\n2693\\n1270\\n4358\\n4731\\n4420\\n4965\\n1190\\n2568\\n4704\\n2147\\n3198\\n2315\\n1524\\n4715\\n2378\\n3484\\n3424\\n1558...
none
{ "id": "execute-the-prisoners", "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": "We have the following recursive function:\n\n\n\nThe ...
code
{ "ground_truth": "{\"fn_name\": \"something_acci\", \"inputs\": [[5], [10], [20], [100]], \"outputs\": [[[10, 8]], [[11, 14]], [[12, 25]], [[15, 151]]]}", "style": "rule" }
EASY
{ "id": "taco-train-23719", "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": "Vasya has n pairs of socks. In the morning of each d...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n\", \"9 3\\n\", \"100 5\\n\", \"98 3\\n\", \"62 4\\n\", \"99 2\\n\", \"99 100\\n\", \"1 2\\n\", \"2 27\\n\", \"75 16\\n\", \"4 4\\n\", \"95 16\\n\", \"20 21\\n\", \"10 9\\n\", \"1 99\\n\", \"80 80\\n\", \"10 2\\n\", \"99 74\\n\", \"52 96\\n\", \"24 5\\n\", \"100 100\\n\", \"99...
rating_<=1200
{ "id": "460_A. Vasya and Socks", "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": "Problem description.\nA matrix of dimension mxn cont...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 3 \\n1 0 0\\n0 1 0\\n0 0 1\\n3 3\\n0 0 0\\n0 0 0\\n0 0 0\\n4 5\\n1 0 0 0 0\\n1 0 1 1 0\\n0 1 1 1 1\\n0 1 0 0 0\"], \"outputs\": [\"1\\n0\\n2\"]}", "style": "rule" }
none
{ "id": "submat", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Let us look at the close relative of Fibonacci numbe...
code
{ "ground_truth": "{\"inputs\": [\"200\\n2 14\\n17 24\\n12 19\\n17 18\\n2 17\\n3 6\\n1 5\\n13 14\\n17 18\\n1 2\\n1 2\\n10 30\\n1 13\\n4 7\\n22 24\\n9 24\\n5 26\\n21 22\\n4 7\\n13 15\\n1 2\\n6 10\\n16 25\\n1 6\\n3 14\\n1 12\\n10 15\\n7 11\\n5 8\\n1 8\\n5 16\\n5 7\\n11 24\\n1 12\\n7 8\\n5 30\\n12 25\\n4 14\\n4 12\\n13 ...
none
{ "id": "mozart-numbers", "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": "Right now she actually isn't. But she will be, if yo...
code
{ "ground_truth": "{\"inputs\": [\"9\\n2\\n3\\n1\", \"5\\n5\\n2\\n20\", \"19\\n3\\n4\\n2\", \"1845999546\\n999435865\\n1234234\\n2323423\", \"1604353664\\n1604353665\\n9993432\\n1\", \"777888456\\n1\\n98\\n43\", \"1162261467\\n3\\n1\\n2000000000\", \"1000000000\\n1999999999\\n789987\\n184569875\", \"2000000000\\n2\\n...
rating_1201-1400
{ "id": "940B", "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": "A string is called *boring* if all the characters of...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3\\naaa\\n3\\nabc\\n5\\nbcaca\\n6\\ncaabaa\\n\"], \"outputs\": [\"2\\n0\\n1\\n2\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-14191", "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": "##Task:\n\nYou have to write a function **pattern** w...
code
{ "ground_truth": "{\"fn_name\": \"pattern\", \"inputs\": [[1], [2], [5], [0], [-25]], \"outputs\": [[\"1\"], [\"12\\n2\"], [\"12345\\n2345\\n345\\n45\\n5\"], [\"\"], [\"\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-24514", "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": "Chef feels that being the Head Chef is a very diffic...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3 2\\n0 3\\n1 3\"], \"outputs\": [\"3\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-13408", "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": "# Task\n\nYou are given an array `a` of positive inte...
code
{ "ground_truth": "{\"fn_name\": \"array_equalization\", \"inputs\": [[[1, 2, 2, 1, 2, 1, 2, 2, 2, 1, 1, 1], 2], [[5, 2, 3, 5, 2, 2, 3, 5, 1, 2, 5, 1, 2, 5, 3], 7], [[1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1], 9]], \"outputs\": [[4], [2], [1]]}", "style": "rule" }
EASY
{ "id": "taco-train-23126", "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": "Because my other two parts of the serie were pretty w...
code
{ "ground_truth": "{\"fn_name\": \"puzzle_tiles\", \"inputs\": [[1, 1], [3, 2]], \"outputs\": [[\" _( )__\\n _| _|\\n(_ _ (_\\n |__( )_|\"], [\" _( )__ _( )__ _( )__\\n _| _| _| _|\\n(_ _ (_ _ (_ _ (_\\n |__( )_|__( )_|__( )_|\\n |_ |_ |_ |_\\n _) _ _) _ _) _ _)\\n |__( ...
EASY
{ "id": "taco-train-22767", "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 a grid with N rows and M columns. You have ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1\\n4 5\\n6 8\\n3 2\\n\\n\"], \"outputs\": [\"1\\n4\\n0\\n2\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5573", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In winter, the inhabitants of the Moscow Zoo are ver...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 3 2\\n2 1 3\\n\", \"7\\n7 3 6 2 1 5 4\\n6 7 2 5 3 1 4\\n\", \"6\\n1 2 3 4 5 6\\n6 5 4 3 2 1\\n\", \"1\\n1\\n1\\n\"], \"outputs\": [\"2\\n\", \"16\\n\", \"11\\n\", \"1\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-22137", "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": "Vladik had started reading a complicated book about ...
code
{ "ground_truth": "{\"inputs\": [\"5 5\\n5 4 3 2 1\\n1 5 3\\n1 3 1\\n2 4 3\\n4 4 4\\n2 5 3\\n\", \"6 5\\n1 4 3 2 5 6\\n2 4 3\\n1 6 2\\n4 5 4\\n1 3 3\\n2 6 3\\n\", \"10 10\\n10 1 6 7 9 8 4 3 5 2\\n1 1 1\\n4 4 4\\n7 7 7\\n3 3 3\\n1 6 5\\n2 6 2\\n6 8 7\\n1 1 1\\n7 9 9\\n2 9 4\\n\", \"20 20\\n18 17 2 3 16 15 1 9 12 8 20 ...
EASY
{ "id": "taco-train-19825", "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": "To celebrate the second ABBYY Cup tournament, the Sm...
code
{ "ground_truth": "{\"inputs\": [\"9\\n8\\n1 2\\n1 3\\n2 3\\n4 5\\n6 7\\n7 8\\n8 9\\n9 6\\n2\\n1 6\\n7 9\", \"2\\n1\\n1 2\\n0\", \"2\\n0\\n1\\n1 2\", \"3\\n2\\n1 2\\n1 3\\n1\\n2 3\", \"3\\n3\\n1 3\\n2 1\\n2 3\\n0\", \"4\\n3\\n1 2\\n2 3\\n3 1\\n3\\n1 4\\n4 2\\n3 4\", \"7\\n8\\n1 2\\n1 3\\n1 4\\n1 5\\n2 4\\n2 5\\n3 4\\...
rating_1401-1600
{ "id": "177C1", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Mikhail the Freelancer dreams of two things: to beco...
code
{ "ground_truth": "{\"inputs\": [\"3 20 20\\n6 2\\n1 3\\n2 6\", \"4 1 1\\n2 3\\n3 2\\n2 3\\n3 2\", \"3 12 12\\n5 1\\n2 2\\n1 5\", \"3 12 12\\n5 1\\n4 4\\n1 5\", \"3 1 1\\n1 1\\n1 1\\n1 1\", \"1 4 6\\n2 3\", \"1 3 4\\n2 3\", \"2 1 1000000\\n2 4\\n5 2\", \"2 1000000 1\\n2 4\\n5 2\", \"2 1000000 1000000\\n2 4\\n5 2\", \...
rating_>1900
{ "id": "605C", "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": "Ruchi is doing her undergrad in Maths from a reputed...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3\\n\\nSAMPLE\", \"1\\n3\\n\\nSAMPKE\", \"1\\n2\\n\\nBJEQMR\", \"1\\n5\\n\\nSAMPKE\", \"1\\n10\\n\\nSAMPKE\", \"1\\n7\\n\\nSAMPKE\", \"1\\n12\\n\\nSAMPKE\", \"1\\n3\\n\\nSAMPEK\", \"1\\n4\\n\\nSAMPEK\", \"1\\n4\\n\\nSKMPEA\", \"1\\n4\\n\\nSKMPEB\", \"1\\n4\\n\\nBEPMKS\", \"1\\n4...
none
{ "id": "help-ruchi-8", "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": "Pasha loves his phone and also putting his hair up.....
code
{ "ground_truth": "{\"inputs\": [\"2 2 4\\n1 1\\n1 2\\n2 1\\n2 2\\n\", \"5 3 7\\n2 3\\n1 2\\n1 1\\n4 1\\n3 1\\n5 3\\n3 2\\n\", \"2 3 6\\n2 3\\n2 2\\n1 3\\n2 2\\n1 2\\n1 1\\n\", \"3 3 11\\n2 1\\n3 1\\n1 1\\n1 3\\n1 2\\n2 3\\n3 3\\n3 2\\n2 2\\n1 3\\n3 3\\n\", \"1000 1000 4\\n1000 1000\\n999 999\\n1000 999\\n999 1000\\n...
rating_<=1200
{ "id": "508_A. Pasha and Pixels", "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": "Chef's phone shows a Battery Low notification if the...
code
{ "ground_truth": "{\"inputs\": [\"3\\n15\\n3\\n65\"], \"outputs\": [\"Yes\\nYes\\nNo\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23646", "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": "At the beginning of the school year Berland State Un...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 4 3 2 1\\n6 8\", \"5\\n0 3 3 4 2\\n3 10\", \"2\\n2 5\\n3 6\", \"3\\n0 1 0\\n2 10\", \"5\\n2 2 2 2 2\\n5 5\", \"10\\n1 1 1 1 1 1 1 1 1 1\\n1 10\", \"10\\n1 1 1 1 1 1 1 1 1 1\\n5 5\", \"6\\n0 0 1 1 0 0\\n1 6\", \"7\\n3 2 3 3 2 1 1\\n5 10\", \"4\\n1 0 0 100\\n1 100\", \"100\\n46 ...
rating_<=1200
{ "id": "357A", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Teachers of one programming summer school decided to...
code
{ "ground_truth": "{\"inputs\": [\"5\\ngennady\\ngalya\\nboris\\nbill\\ntoshik\\nbilbo\\ntorin\\ngendalf\\nsmaug\\ngaladriel\", \"1\\na\\na\", \"2\\na\\na\\na\\na\", \"2\\na\\nb\\na\\na\", \"2\\nb\\nb\\na\\na\", \"2\\na\\nb\\na\\nb\", \"10\\nbaa\\na\\nba\\naabab\\naa\\nbaab\\nbb\\nabbbb\\na\\na\\na\\nba\\nba\\nbaabbb...
rating_>1900
{ "id": "566A", "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": "After realizing that Zookeeper is just a duck, the a...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5 1 2\\n10 8 11\\n9 0 3\\n7 4 6\\n\", \"5\\n11 7 12\\n8 6 14\\n2 1 10\\n13 0 9\\n5 3 4\\n\", \"10\\n28 18 20\\n3 1 4\\n10 5 24\\n27 8 11\\n7 2 12\\n16 13 14\\n9 0 29\\n19 6 26\\n17 15 21\\n23 22 25\\n\", \"8\\n21 12 20\\n8 2 13\\n9 3 4\\n22 6 7\\n17 16 19\\n18 0 1\\n15 5 14\\n23...
rating_>1900
{ "id": "1491_I. Ruler Of The Zoo", "rating": 3500, "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(0-based indexing), you have to find th...
code
{ "ground_truth": "{\"fn_name\": \"max_sum\", \"inputs\": [\"N = 4\\nA[] = {8,3,1,2}\"], \"outputs\": [\"29\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-21170", "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": "In an alien language, surprisingly they also use engl...
code
{ "ground_truth": "{\"fn_name\": \"isAlienSorted\", \"inputs\": [[[\"\\\"hello\\\"\", \"\\\"leetcode\\\"\"], \"\\\"hlabcdefgijkmnopqrstuvwxyz\\\"\"]], \"outputs\": [true]}", "style": "rule" }
EASY
{ "id": "taco-train-12126", "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": "So you've found a meeting room - phew! You arrive the...
code
{ "ground_truth": "{\"fn_name\": \"meeting\", \"inputs\": [[[[\"XXX\", 3], [\"XXXXX\", 6], [\"XXXXXX\", 9]], 4], [[[\"XXX\", 1], [\"XXXXXX\", 6], [\"X\", 2], [\"XXXXXX\", 8], [\"X\", 3], [\"XXX\", 1]], 5], [[[\"XX\", 2], [\"XXXX\", 6], [\"XXXXX\", 4]], 0], [[[\"XX\", 2], [\"XXXX\", 6], [\"XXXXX\", 4]], 8], [[[\"XX\",...
EASY
{ "id": "taco-train-13868", "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": "Our Chef is doing what he is best at, COOKING A BARB...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"4\"]], \"outputs\": [[\"5\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-2212", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Convexity of a set of points on the plane is the siz...
code
{ "ground_truth": "{\"inputs\": [\"4 3\", \"6 3\", \"6 6\", \"7 4\", \"3 3\", \"5 3\", \"4 4\", \"5 4\", \"6 4\", \"8 4\", \"8 6\", \"10 5\", \"5 5\", \"10 6\", \"11 7\", \"16 8\", \"9 5\", \"200 100\", \"199 100\", \"198 100\", \"102 100\", \"101 100\", \"100 100\", \"198 99\", \"197 99\", \"100 99\", \"99 99\", \"5...
rating_>1900
{ "id": "277B", "rating": 2300, "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": "An expedition group flew from planet ACM-1 to Earth ...
code
{ "ground_truth": "{\"inputs\": [\"1 10\", \"3 8\", \"8 12\", \"4 84\", \"9 95\", \"331358794 820674098\", \"5 56\", \"10 22\", \"8 73\", \"7 63\", \"1 57\", \"6 5\", \"6 25\", \"1 39\", \"3 60\", \"2 81\", \"5 35\", \"8 100\", \"6 29\", \"7 90\", \"1 37\", \"7 34\", \"3 49\", \"1 38\", \"7 88\", \"9 30\", \"33373490...
rating_1201-1400
{ "id": "226A", "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": "In 17th century our Chef was a Wizard. He asked his ...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"5\", \"1 2\", \"1 3\", \"2 4\", \"2 5\"]], \"outputs\": [[\"1 2 3 4 5\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-15672", "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": "F --Land inheritance\n\nProblem Statement\n\nOne $ N...
code
{ "ground_truth": "{\"inputs\": [\"3 3 2\\n1 2 2\\n3 1 0\\n0 4 3\", \"3 3 2\\n1 2 2\\n3 1 0\\n1 4 3\", \"3 3 2\\n1 2 2\\n1 1 0\\n1 4 3\", \"3 3 2\\n1 2 2\\n1 1 0\\n1 2 3\", \"1 3 2\\n2 2 2\\n1 1 0\\n1 2 3\", \"1 3 0\\n1 3 2\\n1 2 -1\\n1 2 3\", \"1 3 2\\n2 3 3\\n1 1 0\\n1 2 3\", \"3 4 2\\n1 2 2\\n3 1 0\\n0 4 6\", \"3 ...
none
{ "id": "p01844 Land Inheritance", "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": "Enough is enough. Too many times it happened that Va...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n3 2 1\\n\", \"5 1\\n1000000000 1000000000 1000000000 1000000000 1000000000\\n\", \"3 2\\n1 0 1\\n\", \"4 4\\n2 8 4 1\\n\", \"1 1\\n0\\n\", \"1 1\\n1\\n\", \"4 5\\n5 5 5 5\\n\", \"5 2\\n3 1 0 3 1\\n\", \"3 2\\n1 0 0\\n\", \"3 2\\n0 0 1\\n\", \"161 5\\n17 0 3 8 4 8 8 14 15 7 5 1...
EASY
{ "id": "taco-test-332", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The University of Lagado is organising events for th...
code
{ "ground_truth": "{\"inputs\": [\"10.00 9.0 2\\nfire 2 1/1 4.00\\nwater 10 1/2 2.00\\n\", \"2.00 3.0 3\\nfirewater 1 1/1 1.00\\nwindwater 1 1/1 1.00\\nearthwater 1 1/1 1.00\\n\"], \"outputs\": [\"fire 2\\nwater 1\\n\", \"IMPOSSIBLE\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-12204", "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": "You are given a length of string and two thumbtacks. ...
code
{ "ground_truth": "{\"fn_name\": \"ellipse_contains_point\", \"inputs\": [[{\"x\": 0, \"y\": 0}, {\"x\": 0, \"y\": 0}, 2, {\"x\": 0, \"y\": 0}], [{\"x\": 0, \"y\": 0}, {\"x\": 0, \"y\": 0}, 2, {\"x\": 1, \"y\": 1}]], \"outputs\": [[true], [false]]}", "style": "rule" }
EASY
{ "id": "taco-train-22096", "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": "# Task\n\nYou got a `scratch lottery`, you want to kn...
code
{ "ground_truth": "{\"fn_name\": \"scratch\", \"inputs\": [[[\"tiger tiger tiger 100\", \"rabbit dragon snake 100\", \"rat ox pig 1000\", \"dog cock sheep 10\", \"horse monkey rat 5\", \"dog dog dog 1000\"]]], \"outputs\": [[1100]]}", "style": "rule" }
EASY
{ "id": "taco-train-19514", "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 dragon and the princess are arguing about what t...
code
{ "ground_truth": "{\"inputs\": [\"1 3\", \"5 5\", \"100 100\", \"100 1\", \"1 100\", \"67 420\", \"0 1000\", \"1000 0\", \"0 0\", \"1000 1000\", \"32 1000\", \"581 406\", \"459 52\", \"900 853\", \"778 218\", \"219 20\", \"815 665\", \"773 467\", \"215 269\", \"93 633\", \"267 270\", \"226 72\", \"666 436\", \"544 5...
rating_1601-1900
{ "id": "148D", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Write a function that receives two strings and return...
code
{ "ground_truth": "{\"fn_name\": \"shifted_diff\", \"inputs\": [[\"fatigue\", \"tiguefa\"], [\"hoop\", \"pooh\"], [\"eecoff\", \"coffee\"], [\"Moose\", \"moose\"], [\"isn't\", \"'tisn\"], [\"Esham\", \"Esham\"], [\" \", \" \"], [\"dog\", \"god\"], [\" \", \" \"], [\"doomhouse\", \"hoodmouse\"], [\"123456789!@#$%^&*(...
EASY
{ "id": "taco-train-1336", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In an attempt to reduce the growing population, Arch...
code
{ "ground_truth": "{\"inputs\": [\"3\\ntom marvoloriddle\\n2\\nlord\\nvoldemort\\ncheap up\\n1\\nheapcup\\nbruce wayne\\n2\\nbat\\nman\", \"3\\ntom marvoloriddle\\n2\\nlord\\nvoldemort\\ncheap up\\n1\\nheapcup\\nbruce wayne\\n2\\nbat\\nman\", \"1\\nsarah john\\n2\\njoh\\nnarahs\", \"2\\ndave monica\\n3\\nmo\\nnica\\n...
MEDIUM
{ "id": "taco-test-888", "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 valid parentheses sequence is a non-empty string w...
code
{ "ground_truth": "{\"inputs\": [\"1\\n()((()()))\", \"1\\n()(())()()\", \"1\\n((((()()))\", \"1\\n(()(()()))\", \"1\\n()((()(())\", \"1\\n()()()()()\", \"1\\n((((((()))\", \"1\\n((((()(())\", \"1\\n(((((((())\", \"1\\n((((((((()\", \"1\\n((((((((((\", \"1\\n(()())()()\", \"1\\n(()(())())\", \"1\\n((()((()))\", \"1\\...
none
{ "id": "brackets", "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": "Adilbek was assigned to a special project. For Adilb...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1\\n4 5\\n5 11\\n\", \"50\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n1 9\\n1 10\\n2 1\\n2 2\\n2 3\\n2 4\\n2 5\\n2 6\\n2 7\\n2 8\\n2 9\\n2 10\\n3 1\\n3 2\\n3 3\\n3 4\\n3 5\\n3 6\\n3 7\\n3 8\\n3 9\\n3 10\\n4 1\\n4 2\\n4 3\\n4 4\\n4 5\\n4 6\\n4 7\\n4 8\\n4 9\\n4 10\\n5 1\\...
EASY
{ "id": "taco-train-8220", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements [Mandarin] , [Bengali] , [H...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n2 4\\n5 4\\n2\\n8 6\\n0 7\"], \"outputs\": [\"1 2\\ninvalid\"]}", "style": "rule" }
HARD
{ "id": "taco-train-10133", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The official capital and the cultural capital of Ber...
code
{ "ground_truth": "{\"inputs\": [\"2 10\\n30 35 1 100\\n20 35 10 10\", \"3 100\\n10 30 1000 1\\n5 10 1000 3\\n10 40 1000 100000\", \"10 1\\n8 6 3 4\\n9 10 7 7\\n1 3 9 5\\n10 9 4 2\\n1 10 2 10\\n1 1 8 5\\n5 5 9 2\\n5 8 4 3\\n4 4 9 7\\n5 7 5 10\", \"5 5\\n100 29 49 77\\n34 74 41 8\\n32 21 24 91\\n45 52 16 51\\n50 87 90...
rating_1601-1900
{ "id": "215D", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Create a function that takes any sentence and redistr...
code
{ "ground_truth": "{\"fn_name\": \"vowel_start\", \"inputs\": [[\"It is beautiful weather today!\"], [\"Coding is great\"], [\"my number is 0208-533-2325\"], [\"oranges, apples, melon, pineapple\"], [\"under_score\"]], \"outputs\": [[\"it isb e a ut if ulw e ath ert od ay\"], [\"c od ing isgr e at\"], [\"myn umb er i...
EASY
{ "id": "taco-train-8061", "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": "_Based on [Project Euler problem 35](https://projecte...
code
{ "ground_truth": "{\"fn_name\": \"circular_prime\", \"inputs\": [[197], [179], [971], [222], [9377], [7], [213], [35], [1]], \"outputs\": [[true], [false], [true], [false], [true], [true], [false], [false], [false]]}", "style": "rule" }
EASY
{ "id": "taco-train-6712", "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 two even integers $n$ and $m$. Your ta...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 4\\n2 2\\n4 4\\n\", \"1\\n2 8\\n\", \"1\\n4 10\\n\", \"3\\n2 2\\n2 4\\n2 10\\n\", \"1\\n12 12\\n\", \"3\\n2 6\\n4 8\\n6 10\\n\", \"1\\n16 16\\n\", \"2\\n4 4\\n8 6\\n\", \"2\\n6 4\\n10 8\\n\", \"1\\n24 24\\n\", \"3\\n8 16\\n12 12\\n16 8\\n\", \"2\\n10 4\\n14 14\\n\", \"1\\n28 2...
EASY
{ "id": "taco-test-186", "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": "Permutation p is an ordered set of integers p_1, p_...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"5\\n\", \"13\\n\", \"1\\n\", \"2\\n\", \"4\\n\", \"6\\n\", \"15\\n\", \"16\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"14\\n\", \"9\\n\", \"11\\n\", \"14\\n\", \"7\\n\", \"16\\n\", \"8\\n\", \"15\\n\", \"6\\n\", \"10\\n\", \"4\\n\", \"12\\n\", \"...
HARD
{ "id": "taco-train-15172", "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": "According to an old legeng, a long time ago Ankh-Mor...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 1 2\\n\", \"5\\n4 5 1 2 3\\n\", \"1\\n1\\n\", \"2\\n1 2\\n\", \"10\\n5 1 6 2 8 3 4 10 9 7\\n\", \"30\\n16 10 4 29 5 28 12 21 11 30 18 6 14 3 17 22 20 15 9 1 27 19 24 26 13 25 2 23 8 7\\n\", \"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 1...
EASY
{ "id": "taco-train-13055", "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": "For the given sequence with *n* different elements f...
code
{ "ground_truth": "{\"inputs\": [\"5 2\\n1\\n2\\n3\\n5\\n4\", \"1 0\\n1\", \"2 1\\n1\\n2\", \"2 1\\n2\\n1\", \"3 2\\n1\\n2\\n3\", \"3 1\\n1\\n3\\n2\", \"3 1\\n2\\n1\\n3\", \"3 1\\n2\\n3\\n1\", \"3 1\\n3\\n1\\n2\", \"3 2\\n3\\n2\\n1\", \"10 2\\n6\\n10\\n9\\n7\\n1\\n2\\n8\\n5\\n4\\n3\", \"100 7\\n1\\n2\\n3\\n4\\n5\\n6\...
rating_1601-1900
{ "id": "597C", "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": "Sloth is bad, mkay? So we decided to prepare a probl...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 2\\n2 3\\n3 4\\n\", \"5\\n1 2\\n2 3\\n3 4\\n3 5\\n\", \"8\\n1 2\\n2 3\\n3 4\\n1 5\\n5 6\\n6 7\\n1 8\\n\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n\", \"32\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n5 11\\n6 12\\n3 7\\n3 8\\n7 13\\n8 14\\n4 9\\n4 10\\n9 15\\n10 16\\n17 18\\n17 19\\n17 20\\n18 21\\n...
rating_>1900
{ "id": "891_D. Sloth", "rating": 3100, "split": "confidence_train", "sub_source": "rating_>1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Romans have attacked again. This time they are m...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 2 1\", \"3\\n2 3 1\", \"4\\n10 8 3 1\", \"4\\n1 5 4 3\", \"9\\n10 9 5 6 8 3 4 7 11\", \"7\\n11 3 8 4 2 9 6\", \"6\\n2 1 10 7 3 5\", \"4\\n1 5 3 10\", \"3\\n2 7 11\", \"5\\n4 11 7 5 10\", \"72\\n685 154 298 660 716 963 692 257 397 974 92 191 519 838 828 957 687 776 636 997 101 ...
rating_1601-1900
{ "id": "61E", "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": "Heidi is a statistician to the core, and she likes t...
code
{ "ground_truth": "{\"inputs\": [\"2\\n92 100 99 109 93 105 103 106 101 99 ... (input is truncated)\\n28 180 147 53 84 80 180 85 8 16 ... (input si truncated)\", \"2\\n92 100 99 109 93 105 103 106 101 99 ... (input is truncated)\\n28 180 147 53 84 80 180 85 8 16 .-. (input si truncated)\", \"2\\n92 100 99 109 93 105 ...
HARD
{ "id": "taco-train-9260", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a street by the name of colourful street in...
code
{ "ground_truth": "{\"inputs\": [\"89\\n10\\n924 165 482\\n773 346 102\\n188 755 295\\n150 627 136\\n489 425 75\\n382 436 529\\n86 229 876\\n342 127 356\\n228 52 663\\n823 72 41\\n12\\n512 391 938\\n564 88 426\\n761 137 65\\n90 801 102\\n967 912 312\\n423 800 757\\n41 166 552\\n816 355 965\\n969 199 144\\n549 262 445...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3447", "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": "Problem description :\nThe fight between Raghu and R...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n15\", \"2\\n3\\n15\", \"2\\n3\\n29\", \"2\\n3\\n14\", \"2\\n1\\n11\", \"2\\n1\\n2\", \"2\\n6\\n2\", \"2\\n16\\n1\", \"2\\n32\\n0\", \"2\\n61\\n0\", \"2\\n85\\n1\", \"2\\n116\\n3\", \"2\\n116\\n6\", \"2\\n156\\n6\", \"2\\n234\\n6\", \"2\\n234\\n20\", \"2\\n65\\n20\", \"2\\n74...
none
{ "id": "coadies2", "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 tree and a budget. Assume you are at t...
code
{ "ground_truth": "{\"inputs\": [\"10\\n / \\\\\\n 8 2\\n / / \\\\\\n 3 3 6\\n \\\\\\n 4\\nand budget = 8\", \"1\\n / \\\\\\n 2 3\\n / \\\\ / \\\\\\n 4 5 6 7\\nand budget = ...
EASY
{ "id": "taco-train-20486", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem statement\n\nJOI decided to start a new soci...
code
{ "ground_truth": "{\"inputs\": [\"3 0 10\", \"3 0 19\", \"2 0 19\", \"4 0 19\", \"5 -1 19\", \"5 -1 30\", \"5 -1 58\", \"4 -1 58\", \"8 0 22\", \"6 0 43\", \"2 0 31\", \"3 -1 30\", \"4 1 58\", \"4 0 2\", \"0 1 22\", \"5 0 43\", \"1 -2 19\", \"0 1 58\", \"0 1 12\", \"5 0 10\", \"1 0 19\", \"0 1 105\", \"1 0 35\", \"0...
none
{ "id": "p00575 Social Game", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The crew of the Flying Dutchman are fond of betting ...
code
{ "ground_truth": "{\"inputs\": [\"30\\n65\\n205 225 368 199 637 257 405 570 862 903 680 438 996 224 328 642 475 550 282 377 403 619 416 256 740 572 861 424 636 731 716 171 854 666 314 981 734 469 808 867 635 679 342 671 859 1000 757 623 285 173 371 970 651 856 228 468 479 314 799 228 815 462 711 604 852 \\n96\\n483 ...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-22169", "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": "String diversity is the number of symbols that occur...
code
{ "ground_truth": "{\"inputs\": [\"aabacaabbad\\n\", \"abca\\n\", \"caacbbbbab\\n\", \"oqhvuewbdwqslxqigksfkuykyrfnzpbjdispjazvmyvbthdoquzeldlxuzjowjoxebgogjwhxgordphgbmtrkfooknjvjigskskz\\n\", \"cbbcaaaabc\\n\", \"accbbaabaa\\n\", \"bccbcabaaa\\n\", \"bbcbcaabaccbbbbbccbccbabcaacbacbacacbacbaabbcaccaabccabcaacababca...
rating_>1900
{ "id": "386_C. Diverse Substrings", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Let's think about verbal arithmetic.\n\nThe material...
code
{ "ground_truth": "{\"inputs\": [\"3\\nACM\\nIBM\\nICPC\\n3\\nGAME\\nBEST\\nGAMER\\n4\\nA\\nB\\nC\\nAB\\n3\\nA\\nB\\nCD\\n3\\nONE\\nTWO\\nTHREE\\n3\\nTWO\\nTHREE\\nFIVE\\n3\\nMOV\\nPOP\\nDIV\\n9\\nA\\nB\\nC\\nD\\nE\\nF\\nG\\nH\\nIJ\\n0\", \"3\\nACM\\nIBM\\nICPC\\n3\\nGAME\\nBEST\\nGAMER\\n4\\nA\\nB\\nC\\nAB\\n3\\nA\\...
none
{ "id": "p00742 Verbal Arithmetic", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in [Hindi], [Mandarin Chine...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n2 5 3\\n10\\n38 9 102 10 96 7 46 28 88 13\"], \"outputs\": [\"2 5 \\n102 7\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22899", "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": "YAML (YAML Ain't Markup Language) is one of the form...
code
{ "ground_truth": "{\"inputs\": [\".tweets.1\\nname: shimeji\\nid: shimejitan\\ntweets:\\n1: shimejilove\\n2: azupero\", \".no.such.property\\nobject:\\nprop1: str\\nprop2: str\", \".tweets.1\\nname: shimeji\\nid: shimejitan\\ntweets:\\n 1: shimejilove\\n 2: azupero\", \".my.obj\\nmy:\\nstr: string value\\nobj:\\na...
none
{ "id": "p01552 YAML", "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": "Polycarp has a favorite sequence a[1 ... n] consisti...
code
{ "ground_truth": "{\"inputs\": [\"6\\n7\\n3 4 5 2 9 1 1\\n4\\n9 2 7 1\\n11\\n8 4 3 1 2 7 8 7 9 4 2\\n1\\n42\\n2\\n11 7\\n8\\n1 1 1 1 1 1 1 1\\n\", \"1\\n1\\n45\\n\", \"1\\n1\\n99\\n\", \"1\\n1\\n20\\n\", \"1\\n1\\n24\\n\", \"1\\n1\\n3\\n\", \"1\\n4\\n1453324 2 1453324 1\\n\", \"1\\n1\\n21\\n\", \"1\\n1\\n97\\n\", \"...
rating_<=1200
{ "id": "1462_A. Favorite Sequence", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Uneori îmi spun: am să mor \natât de singuratecă-n ...
code
{ "ground_truth": "{\"inputs\": [\"6 6 6\\n1 2\\n2 3\\n4 1\\n5 4\\n6 1\\n6 5\\n1 1\\n3 1\\n1 5\\n2 1\\n3 4\\n3 3\"], \"outputs\": [\"YES\\nYES\\nNO\"]}", "style": "rule" }
HARD
{ "id": "taco-train-9629", "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": "Given a string containing just the characters '(' and...
code
{ "ground_truth": "{\"fn_name\": \"longestValidParentheses\", \"inputs\": [[\"\\\"(()\\\"\"], [\"\\\")()())\\\"\"], [\"\\\"\\\"\"]], \"outputs\": [2, 4, 0]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-22536", "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": "Lord Omkar has permitted you to enter the Holy Churc...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n2 1 3 1\\n2\\n420 420\\n\", \"8\\n6\\n1 7 7 1 7 1\\n2\\n3 3\\n8\\n1 1000000000 1000000000 2 2 1 2 2\\n2\\n420 69\\n10\\n1 3 5 7 9 2 4 6 8 10\\n5\\n6 16 7 6 1\\n3\\n16 16 16\\n5\\n1 2 9 8 4\\n\", \"1\\n7\\n529035968 529035968 529035968 529035968 529035968 529035968 529035968\...
MEDIUM
{ "id": "taco-train-15451", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an integer array, you need to find one continuo...
code
{ "ground_truth": "{\"fn_name\": \"findUnsortedSubarray\", \"inputs\": [[[2, 6, 4, 8, 10, 9, 15]]], \"outputs\": [5]}", "style": "rule" }
EASY
{ "id": "taco-train-8284", "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 playing the following game with Joisino.\n\n...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6\\n2\\n6\", \"4\\n2\\n5\\n5\\n2\", \"6\\n12\\n22\\n16\\n22\\n18\\n12\", \"3\\n6\\n2\\n7\", \"4\\n3\\n5\\n5\\n2\", \"6\\n12\\n22\\n18\\n22\\n18\\n12\", \"4\\n3\\n5\\n9\\n1\", \"6\\n4\\n47\\n28\\n35\\n18\\n12\", \"3\\n0\\n0\\n10\", \"3\\n6\\n2\\n8\", \"4\\n3\\n5\\n5\\n1\", \"6\\n...
none
{ "id": "p03607 AtCoder Beginner Contest 073 - Write and Erase", "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": "Little Dormi received a histogram with $n$ bars of h...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n4 8 9 6\\n6\\n2 1 7 4 0 0\\n\", \"2\\n4\\n8 8 9 6\\n6\\n2 1 7 4 0 0\\n\", \"2\\n4\\n8 8 9 8\\n6\\n2 0 7 4 0 0\\n\", \"2\\n4\\n3 8 14 6\\n6\\n2 1 7 4 0 0\\n\", \"2\\n4\\n3 8 14 6\\n6\\n2 0 7 4 0 0\\n\", \"2\\n4\\n3 8 1 6\\n6\\n2 0 7 4 0 0\\n\", \"2\\n4\\n8 8 9 8\\n6\\n2 1 2 4...
EASY
{ "id": "taco-train-5048", "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 hero of the Cut the Rope game is a little monste...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n0 2 4\\n1 3 1\\n0 8 3\\n0 20 10\\n1 5 5\", \"5 2\\n1 15 2\\n1 11 2\\n0 17 2\\n0 16 1\\n1 18 2\", \"6 2\\n1 17 3\\n1 6 1\\n0 4 2\\n1 10 1\\n1 7 3\\n1 5 1\", \"7 2\\n1 14 1\\n1 9 2\\n0 6 3\\n0 20 2\\n0 4 2\\n0 3 1\\n0 9 2\", \"8 2\\n0 20 3\\n1 5 2\\n1 4 1\\n1 7 1\\n0 1 3\\n1 5 3...
rating_1401-1600
{ "id": "436A", "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": "Your task is to calculate the number of arrays such ...
code
{ "ground_truth": "{\"inputs\": [\"100000 200000\\n\", \"3 4\\n\", \"3 5\\n\", \"42 1337\\n\", \"3 3\\n\", \"20 20\\n\", \"3 200000\\n\", \"2 2\\n\", \"150000 200000\\n\", \"200000 200000\\n\", \"1000 200000\\n\", \"2 3\\n\", \"7 14\\n\", \"2 10\\n\", \"3 6\\n\", \"6 200000\\n\", \"2 1\\n\", \"113870 200000\\n\", \"4...
rating_1601-1900
{ "id": "1312_D. Count the Arrays", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a tree with N vertices. The vertices a...
code
{ "ground_truth": "{\"inputs\": [\"5\\n0 1 1\\n0 2 3\\n0 3 6\\n3 4 4\", \"2\\n1 0 0\", \"5\\n0 1 1\\n0 2 3\\n0 3 6\\n3 4 1\", \"2\\n1 1 0\", \"5\\n0 1 1\\n0 3 3\\n0 3 5\\n4 4 1\", \"2\\n0 1 2\", \"5\\n0 1 1\\n0 2 3\\n0 3 6\\n4 4 1\", \"2\\n1 1 1\", \"5\\n0 1 1\\n0 2 3\\n0 3 5\\n4 4 1\", \"2\\n1 1 2\", \"5\\n0 1 1\\n0...
none
{ "id": "p03442 AtCoder Petrozavodsk Contest 001 - XOR Tree", "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": "Igor has been into chess for a long time and now he ...
code
{ "ground_truth": "{\"inputs\": [\"5\\noxxxx\\nx...x\\nx...x\\nx...x\\nxxxxo\\n\", \"3\\no.x\\noxx\\no.x\\n\", \"6\\n.x.x..\\nx.x.x.\\n.xo..x\\nx..ox.\\n.x.x.x\\n..x.x.\\n\", \"8\\n.o....o.\\n.....x..\\n.....o..\\n..x.....\\n..o...x.\\n...x..o.\\n...oxx..\\n....oo..\\n\", \"8\\n....o...\\n..o.x...\\n..x..o..\\n.....o...
rating_1601-1900
{ "id": "538_D. Weird Chess", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A bipartite graph G = (V, E) is a graph in which the...
code
{ "ground_truth": "{\"inputs\": [\"3 4 6\\n0 0\\n0 2\\n0 3\\n1 1\\n2 1\\n2 3\", \"3 4 6\\n0 0\\n0 0\\n0 3\\n1 1\\n2 1\\n2 3\", \"3 7 2\\n1 0\\n0 0\\n0 3\\n0 1\\n1 1\\n2 3\", \"3 4 5\\n0 0\\n0 2\\n0 3\\n1 1\\n2 1\\n2 0\", \"6 7 10\\n2 2\\n0 0\\n0 1\\n1 0\\n1 0\\n3 5\", \"3 6 0\\n2 0\\n1 0\\n0 3\\n0 1\\n0 1\\n6 1\", \"...
none
{ "id": "p02378 Bipartite Matching", "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": "Polycarp has spent the entire day preparing problems...
code
{ "ground_truth": "{\"inputs\": [\"7\\n10 3 6 4\\n11 3 6 4\\n5 9 4 10\\n6 5 2 3\\n1 1 1 1\\n3947465 47342 338129 123123\\n234123843 13 361451236 361451000\\n\", \"1\\n10 3 34386 34383\\n\", \"1\\n123456 12345 34399 34383\\n\", \"1\\n2 5 6 34383\\n\", \"1\\n5 3 34386 34383\\n\", \"1\\n123456 12345 34399 35255\\n\", \"...
rating_<=1200
{ "id": "1354_A. Alarm Clock", "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": "In Ann's favorite book shop are as many as n books o...
code
{ "ground_truth": "{\"inputs\": [\"4 1\\n1 1 1 2\\n1 1 1 1\\n4\\n1 2\\n1 3\\n1 4\\n3 4\\n\", \"4 0\\n1 2 1 2\\n0 0 0 0\\n1\\n1 4\\n\", \"2 0\\n1 2\\n43 43\\n3\\n1 2\\n2 2\\n1 1\\n\", \"10 -10\\n1 2 1 2 1 1 2 2 2 1\\n7 7 10 3 7 10 6 8 0 1\\n10\\n2 6\\n10 10\\n6 9\\n5 8\\n7 10\\n2 7\\n2 9\\n2 7\\n5 6\\n2 8\\n\", \"10 1...
rating_>1900
{ "id": "877_F. Ann and Books", "rating": 2300, "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": "Read problems statements in Mandarin Chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n1 2 4 8\\n3\\n2 3 3\\n5\\n3 3 3 3 3\", \"3\\n4\\n1 2 4 8\\n3\\n2 3 3\\n5\\n1 3 3 3 3\", \"3\\n4\\n1 2 4 2\\n3\\n3 3 3\\n5\\n1 3 2 3 3\", \"3\\n4\\n1 2 8 7\\n3\\n2 1 3\\n5\\n1 3 1 3 3\", \"3\\n4\\n1 2 15 7\\n3\\n2 1 3\\n5\\n1 3 1 3 0\", \"3\\n4\\n1 2 4 8\\n3\\n3 3 3\\n5\\n1 3...
HARD
{ "id": "taco-train-12570", "rating": null, "split": "confidence_train", "sub_source": "HARD" }