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": "Seen from above, there is a grid-like square shaped ...
code
{ "ground_truth": "{\"inputs\": [\"1111\\n00001\\n0110\\n01011\\n0010\\n01111\\n0010\\n01001\\n0111\", \"1111\\n00001\\n0110\\n01011\\n0010\\n01111\\n0010\\n01011\\n0111\", \"1111\\n00001\\n0110\\n01011\\n0010\\n01111\\n1010\\n01011\\n0111\", \"1111\\n00001\\n0110\\n01111\\n0010\\n00011\\n1010\\n01011\\n0111\", \"111...
none
{ "id": "p00037 Path on a Grid", "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": "We've got no test cases. A big olympiad is coming up...
code
{ "ground_truth": "{\"inputs\": [\"6 3\\n1 3 4 6 9 10\\n\", \"3 1\\n2 1 4\\n\", \"3 0\\n7 7 7\\n\", \"1 100\\n22\\n\", \"3 2\\n1 50 99\\n\", \"100 56\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 5...
rating_<=1200
{ "id": "940_A. Points on the line", "rating": 1200, "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": "Idol --- It's the eternal longing of girls. However,...
code
{ "ground_truth": "{\"inputs\": [\"4 1\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\", \"9 9\\n13 5 19\\n19 21 37\\n15 1 7\\n7 11 15\\n21 23 25\\n33 29 19\\n13 19 11\\n21 5 15\\n7 13 1\", \"4 10\\n1 1 1\\n10 10 10\\n10 10 10\\n10 10 10\", \"4 1\\n1 1 1\\n1 1 1\\n1 1 2\\n1 1 1\", \"9 9\\n13 5 19\\n19 21 37\\n15 1 7\\n7 11 24\\n21 ...
none
{ "id": "p01548 Audition", "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": "I’m strolling on sunshine, yeah-ah! And doesn’t it f...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 2 2\\n3\\n2 0 2\\n1 1 1 1\\n2 0 2\\n\", \"2\\n1 2\\n5\\n2 0 1\\n1 0 0 2\\n2 0 1\\n1 1 1 1\\n2 0 1\\n\", \"3\\n7 1 2\\n5\\n2 1 2\\n1 1 1 2\\n2 1 2\\n1 2 2 1\\n2 1 2\\n\", \"50\\n5 7 2 6 10 6 6 7 2 4 9 1 7 7 10 6 6 3 10 3 5 2 8 9 1 8 8 7 4 3 7 4 5 8 4 7 2 7 2 2 4 1 4 8 10 7 1 8 ...
rating_>1900
{ "id": "717_F. Heroes of Making Magic III", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a permutation of 1,2,...,N: p_1,p_2,.....
code
{ "ground_truth": "{\"inputs\": [\"5\\n5\\n2\\n1\\n4\\n3\\n\", \"4\\n3\\n2\\n4\\n1\\n\", \"7\\n3\\n2\\n1\\n6\\n5\\n4\\n7\\n\", \"6\\n5\\n3\\n4\\n1\\n2\\n6\\n\", \"6\\n5\\n3\\n8\\n1\\n2\\n6\", \"4\\n3\\n2\\n3\\n1\", \"6\\n5\\n3\\n8\\n1\\n2\\n3\", \"4\\n3\\n2\\n2\\n1\", \"6\\n4\\n3\\n8\\n1\\n2\\n3\", \"4\\n3\\n1\\n2\\n...
VERY_HARD
{ "id": "taco-train-11726", "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 an array A and an integer X. You are a...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 6\\n5 7 9\\n5 4\\n2 3 4 17 9\\n\"], \"outputs\": [\"0\\n2\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-16359", "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": "We have N voting papers. The i-th vote (1 \\leq i \\...
code
{ "ground_truth": "{\"inputs\": [\"7\\nbeat\\nvet\\nbeet\\nbed\\nvet\\nbet\\nbeet\\n\", \"8\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\n\", \"7\\nbass\\nbass\\nkick\\nkick\\nbass\\nkick\\nkick\\n\", \"4\\nushi\\ntapu\\nnichia\\nkun\\n\", \"8\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffal...
EASY
{ "id": "taco-train-8301", "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": "<image>\n\n\nArrange integers (0 or more and 99 or l...
code
{ "ground_truth": "{\"inputs\": [\"7\\n3,8\\n8,1,0\\n2,7,4,4\\n4,5,2,6,5\\n2,7,4,4\\n8,1,0\\n3,8\\n7\", \"7\\n3,8\\n8,1,0\\n2,7,4,4\\n4,5,2,6,5\\n2,7,4,4\\n8,1,0\\n8,3\\n7\", \"7\\n3,8\\n8,1,0\\n2,7,4,4\\n4,5,2,6,5\\n2,7,4,4\\n8,1,0\\n8,3\\n3\", \"7\\n3,8\\n8,1,0\\n2,7,4,4\\n4,5,2,6,5\\n4,4,7,2\\n8,1,0\\n8,3\\n3\", \...
none
{ "id": "p00089 The Shortest Path on A Rhombic Path", "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 Chris is a huge fan of linear algebra. This t...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1 1\\n0 1 1\\n1 0 0\\n12\\n3\\n2 3\\n3\\n2 2\\n2 2\\n1 3\\n3\\n3\\n1 2\\n2 1\\n1 1\\n3\", \"1\\n1\\n9\\n1 1\\n3\\n1 1\\n1 1\\n3\\n1 1\\n3\\n1 1\\n3\", \"3\\n1 0 1\\n0 1 1\\n1 0 1\\n4\\n3\\n3\\n3\\n3\", \"1\\n0\\n5\\n1 1\\n3\\n1 1\\n1 1\\n3\", \"2\\n0 0\\n0 0\\n9\\n3\\n1 2\\n2 ...
rating_1401-1600
{ "id": "405C", "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": "Recently Johnny have learned bogosort sorting algori...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n6\\n10\", \"3\\n2\\n4\\n10\", \"3\\n2\\n6\\n12\", \"3\\n4\\n6\\n12\", \"3\\n4\\n6\\n19\", \"3\\n2\\n4\\n19\", \"3\\n2\\n3\\n12\", \"3\\n4\\n11\\n12\", \"3\\n4\\n5\\n19\", \"3\\n2\\n2\\n19\", \"3\\n2\\n3\\n21\", \"3\\n4\\n7\\n19\", \"3\\n2\\n2\\n23\", \"3\\n2\\n3\\n7\", \"3\\...
none
{ "id": "bogosort", "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": "Example\n\nInput\n\n4 2 58 100\n10 10 50 80\n\n\nOut...
code
{ "ground_truth": "{\"inputs\": [\"4 2 58 100\\n10 10 50 80\", \"6 2 58 100\\n10 10 50 80\", \"6 2 15 100\\n10 10 50 80\", \"6 3 15 100\\n10 10 50 80\", \"6 3 15 100\\n10 10 12 80\", \"6 3 15 100\\n10 10 20 80\", \"6 4 15 100\\n10 10 20 80\", \"9 4 15 100\\n10 10 20 80\", \"13 3 24 100\\n10 10 23 80\", \"13 3 24 100\...
none
{ "id": "p01791 Card Game Strategy", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a square in the xy-plane. The coordinates o...
code
{ "ground_truth": "{\"inputs\": [\"0 0 0 1\\n\", \"2 3 6 6\\n\", \"31 -41 -59 26\\n\", \"0 1 1 0\\n\", \"0 -100 -100 100\\n\", \"100 100 99 100\\n\", \"100 100 100 99\\n\", \"67 -89 -90 -11\\n\", \"-100 100 100 -100\\n\", \"99 77 55 -99\\n\", \"1 2 3 4\\n\", \"2 1 6 6\", \"0 0 -1 1\", \"1 -41 -59 26\", \"2 2 6 6\", \...
EASY
{ "id": "taco-train-24427", "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": "Ante and Goran are preparing $N$ teams of young ambi...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 2 2\\n\", \"3\\n4 1 2\\n\", \"4\\n1 3 2 1\\n\"], \"outputs\": [\"6\\n\", \"8\\n\", \"7\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3272", "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 Poornima college, PIET CS Deparment is shifting f...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n4\\n\\nSAMPLE\", \"20\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n17\\n18\\n19\\n20\", \"20\\n1\\n2\\n3\\n4\\n1\\n6\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n17\\n18\\n19\\n20\", \"3\\n1\\n2\\n4\\n\\nMASPLE\", \"20\\n1\\n2\\n3\\n4\\n1\...
none
{ "id": "climbing-stairs-10", "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": "Bashar was practicing for the national programming c...
code
{ "ground_truth": "{\"inputs\": [\"3 3 4\\n\", \"3 3 8\\n\", \"3 4 16\\n\", \"4 4 9\\n\", \"3 3 1000000000\\n\", \"3 2 14\\n\", \"2 2 4\\n\", \"499 239 377022\\n\", \"35 337 46437\\n\", \"58 432 97392\\n\", \"1 2 2\\n\", \"2 1 2\\n\", \"4 4 11\\n\", \"4 4 12\\n\", \"36 321 45511\\n\", \"188 153 71725\\n\", \"4 4 49\\...
rating_>1900
{ "id": "1301_D. Time to Run", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "# Story\n\nJohn found a path to a treasure, and while...
code
{ "ground_truth": "{\"fn_name\": \"simplify\", \"inputs\": [[\"<>>\"], [\"\"], [\"v>^<\"], [\">>>>\"], [\"^>>>>v\"], [\"<^^>v<^^^\"], [\"<^>>v<\"], [\"<^<<^^>>vv<<<>^^^v^\"], [\"v<<<<<^^^^^v>v>v>v>v>>\"], [\">^>^>^>^>^>^>v>v>v>v>v>v>v>v<\"], [\"^^^>>>>>>^^^<<<vvv<<<vvv\"], [\"^^^>>>>>>^^^<<<vvv<<<vv\"], [\">vv<<<^^^^...
EASY
{ "id": "taco-train-3395", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The king of ghosts is really disappointed when he se...
code
{ "ground_truth": "{\"inputs\": [\"7 5\\n1 3 1 3 2 2 2\\n\\nSAMPLE\", \"7 5\\n1 3 2 3 2 2 2\\n\\nSAMPLE\", \"7 3\\n1 3 2 3 2 1 2\\n\\nSAMPLE\", \"7 3\\n1 3 2 3 2 1 1\\n\\nSAMPLE\", \"7 3\\n1 3 2 3 3 1 1\\n\\nSAMPLE\", \"7 3\\n2 3 2 3 3 1 1\\n\\nSAMPLE\", \"7 5\\n1 3 1 3 2 2 2\\n\\nS@MPLE\", \"7 3\\n1 3 2 1 2 1 2\\n\\...
none
{ "id": "haunted", "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": "Mad scientist Mike has just finished constructing a ...
code
{ "ground_truth": "{\"inputs\": [\"-++-\\n\", \"+-\\n\", \"++\\n\", \"-\\n\", \"+-+-\\n\", \"-+-\\n\", \"-++-+--+\\n\", \"+\\n\", \"-+\\n\", \"--\\n\", \"+++\\n\", \"--+\\n\", \"++--++\\n\", \"+-++-+\\n\", \"+-+--+\\n\", \"--++-+\\n\", \"-+-+--\\n\", \"+-+++-\\n\", \"-+-+-+\\n\", \"-++-+--++--+-++-\\n\", \"+-----+-++...
MEDIUM_HARD
{ "id": "taco-train-7443", "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": "Consider a sequence of n numbers using integers from...
code
{ "ground_truth": "{\"inputs\": [\"3 10\\n3 1\", \"4 10\\n3 1\", \"6 10\\n3 1\", \"2 14\\n3 1\", \"2 25\\n10 0\", \"2 4\\n10 0\", \"3 10\\n0 1\", \"3 14\\n10 3\", \"3 10\\n2 1\", \"2 9\\n3 1\", \"2 14\\n2 1\", \"3 22\\n10 3\", \"3 20\\n3 1\", \"2 20\\n2 1\", \"5 23\\n3 2\", \"2 0\\n2 1\", \"2 1\\n2 1\", \"5 33\\n3 1\...
none
{ "id": "p00070 Combination of Number Sequences", "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 of citations (each citation is a non-n...
code
{ "ground_truth": "{\"fn_name\": \"hIndex\", \"inputs\": [[[0, 1, 3, 5, 6]]], \"outputs\": [3]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-3612", "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": "At the first holiday in spring, the town Shortriver ...
code
{ "ground_truth": "{\"inputs\": [\"7 3 2 2\\n1 2 3 3 2 1 2\\n2 2\\n\", \"13 4 3 3\\n3 2 6 4 1 4 4 7 1 3 3 2 4\\n4 3 4\\n\", \"13 4 1 3\\n3 2 6 4 1 4 4 7 1 3 3 2 4\\n4 3 4\\n\", \"1 1 1 1\\n1\\n1\\n\", \"1 1 1 1\\n1\\n2\\n\", \"2 1 1 1\\n1 2\\n2\\n\", \"2 2 1 2\\n1 2\\n2 1\\n\", \"10 3 3 2\\n2 1 1 2 1 1 2 1 1 2\\n2 2\...
HARD
{ "id": "taco-train-8139", "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": "Lena is the most economical girl in Moscow. So, when...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 4\\n1 3\\n1 5\\n\", \"5\\n2 7\\n2 8\\n1 2\\n2 4\\n1 8\\n\", \"1\\n8 2\\n\", \"8\\n1 8\\n1 6\\n1 5\\n1 3\\n1 3\\n1 8\\n1 7\\n1 3\\n\", \"4\\n4 1\\n2 2\\n1 6\\n1 2\\n\", \"8\\n1 63658803333197\\n1 26806908300107\\n1 37622010993115\\n1 8932487734606\\n1 55358687683237\\n1 4494081...
MEDIUM_HARD
{ "id": "taco-train-8417", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given two strings s and t, each of length n ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1\\na\\na\\n2\\nab\\nba\\n3\\nabc\\ncab\\n3\\nabc\\ncba\\n4\\nabab\\nbaba\\n4\\nabcc\\naabc\\n\", \"1\\n1\\na\\na\\n\", \"16\\n3\\naaa\\naaa\\n3\\naab\\naab\\n3\\naab\\nbaa\\n3\\naab\\naba\\n3\\naba\\naba\\n3\\naba\\nbaa\\n3\\naba\\naab\\n3\\nabb\\nabb\\n3\\nabb\\nbab\\n3\\nabb\...
rating_>1900
{ "id": "1363_F. Rotating Substrings", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Consider the infinite sequence of integers: 1, 1, 2,...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"5\\n\", \"10\\n\", \"55\\n\", \"56\\n\", \"1000000000000\\n\", \"847194127849\\n\", \"294719472984\\n\", \"999999911791\\n\", \"999999911792\\n\", \"100000000000000\\n\", \"1\\n\", \"99993\\n\", \"99994\\n\", \"99995\\n\", \"99990\\n\", \"2\\n\", \"99991\\n\", \"99992\\n\"...
EASY
{ "id": "taco-train-7124", "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": "Vadim loves decorating the Christmas tree, so he got...
code
{ "ground_truth": "{\"inputs\": [\"5\\n0 5 0 2 3\\n\", \"7\\n1 0 0 5 0 0 2\\n\", \"1\\n0\\n\", \"20\\n7 0 9 0 5 0 15 0 0 1 17 0 11 19 0 0 3 0 13 0\\n\", \"20\\n9 0 0 0 18 0 11 0 0 4 0 15 0 0 0 14 0 0 5 0\\n\", \"20\\n13 0 0 12 14 0 19 0 15 0 8 0 7 0 9 0 20 0 0 10\\n\", \"20\\n1 0 0 13 0 0 16 0 0 4 0 0 7 0 19 0 0 10 0...
MEDIUM_HARD
{ "id": "taco-train-12226", "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 a array A of size N. Lets see if you c...
code
{ "ground_truth": "{\"inputs\": [\"1\\n1\", \"12\\n4 4 10 13 28 30 41 43 58 61 70 88\", \"3\\n3 4 5\", \"2\\n999999 1000000\", \"7\\n2 13 22 32 72 91 96\", \"5\\n5 11 12 109 110\"], \"outputs\": [\"0\", \"2\", \"30\", \"1\", \"249999\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-16687", "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": "Positive integer $x$ is called divisor of positive i...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1\\n2\\n\", \"2\\n2\\n2\\n\", \"2\\n2\\n3\\n\", \"2\\n3\\n3\\n\", \"2\\n5\\n3\\n\", \"2\\n5\\n6\\n\", \"2\\n5\\n12\\n\", \"2\\n1\\n12\\n\", \"2\\n1\\n4\\n\", \"2\\n2\\n1\\n\", \"2\\n4\\n6\\n\", \"2\\n5\\n15\\n\", \"2\\n4\\n2\\n\", \"2\\n6\\n2\\n\", \"2\\n8\\n6\\n\", \"2\\n2\\n15...
EASY
{ "id": "taco-train-14136", "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": "Given two positive integers a and b, we define f(a, ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3\\n4\\n6\\n\"], \"outputs\": [\"1\\n2\\n4\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-11092", "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": "Hiasat registered a new account in NeckoForces and w...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n1\\n2 motarack\\n2 mike\\n1\\n2 light\\n\", \"4 3\\n1\\n2 alice\\n2 bob\\n2 tanyaromanova\\n\", \"6 4\\n1\\n2 a\\n2 b\\n1\\n2 c\\n2 d\\n\", \"61 1\\n1\\n2 wrlcjfswnc\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1...
HARD
{ "id": "taco-test-932", "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": "Sam has been teaching Jon the Game of Stones to shar...
code
{ "ground_truth": "{\"inputs\": [\"1\\n5\\n\", \"2\\n1\\n2\\n\", \"3\\n34\\n44\\n21\\n\", \"6\\n34\\n44\\n21\\n55\\n1\\n36\\n\", \"14\\n34\\n44\\n21\\n55\\n1\\n36\\n53\\n31\\n58\\n59\\n11\\n40\\n20\\n32\\n\", \"10\\n34\\n44\\n21\\n55\\n1\\n36\\n53\\n31\\n58\\n59\\n\", \"12\\n34\\n44\\n21\\n55\\n1\\n36\\n53\\n31\\n58\...
HARD
{ "id": "taco-train-16179", "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": "Takahashi wants to print a document with N pages dou...
code
{ "ground_truth": "{\"inputs\": [\"5\\n\", \"2\\n\", \"100\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"50\\n\", \"97\\n\", \"99\\n\", \"42\\n\", \"9\", \"110\", \"3\", \"11\", \"111\", \"6\", \"101\", \"1\", \"8\", \"18\", \"14\", \"15\", \"26\", \"36\", \"28\", \"65\", \"20\", \"42\", \"67\", \"47\", \"57\", \"55\", \"40\...
EASY
{ "id": "taco-train-3923", "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 a computer card game called Splay th...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3\\n1 6\\n1 7\\n1 5\\n2\\n1 4\\n1 3\\n3\\n1 10\\n3 5\\n2 3\\n3\\n1 15\\n2 4\\n1 10\\n1\\n1 100\\n\", \"5\\n3\\n1 1\\n1 1\\n1 1\\n3\\n1 1\\n1 1\\n1 1\\n3\\n1 1\\n1 1\\n1 1\\n3\\n1 1\\n1 1\\n1 1\\n3\\n1 100\\n1 1\\n1 1\\n\", \"1\\n4\\n1 1\\n1 1\\n2 2\\n3 4\\n\", \"5\\n3\\n1 1\\n1 ...
rating_>1900
{ "id": "1176_F. Destroy it!", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You're given an integer N. Write a program to calcul...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"12345\", \"31203\", \"2123\"], \"3 \\n12345\\n50368\\n2123\", \"3 \\n17364\\n50368\\n2123\", \"3 \\n17364\\n87192\\n2123\", \"3 \\n17364\\n87192\\n3009\", \"3 \\n17364\\n87192\\n4291\", \"3 \\n17364\\n87192\\n8146\", \"3 \\n27324\\n87192\\n8146\", \"3 \\n27324\\n87192\\n7989...
EASY
{ "id": "taco-train-1876", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a cube of size k × k × k, which consis...
code
{ "ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"9\\n\", \"11\\n\", \"13\\n\", \"15\\n\", \"17\\n\", \"19\\n\", \"21\\n\", \"23\\n\", \"25\\n\", \"27\\n\", \"29\\n\", \"31\\n\", \"33\\n\", \"35\\n\", \"37\\n\", \"39\\n\", \"41\\n\", \"43\\n\", \"45\\n\", \"47\\n...
MEDIUM_HARD
{ "id": "taco-test-852", "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": "Today is Devu's birthday. For celebrating the occasi...
code
{ "ground_truth": "{\"inputs\": [\"5\\n6 2\\n7 2\\n6 3\\n6 4\\n7 4\\n\", \"10\\n1 1\\n1 1\\n1 1\\n7 2\\n6 3\\n9 5\\n4 1\\n2 1\\n3 1\\n2 2\\n\", \"40\\n37 15\\n48 10\\n16 5\\n25 23\\n32 20\\n24 4\\n46 19\\n16 13\\n1 1\\n37 22\\n44 29\\n24 6\\n27 10\\n39 16\\n28 13\\n5 4\\n31 22\\n9 2\\n30 26\\n23 16\\n16 12\\n43 5\\n2...
HARD
{ "id": "taco-train-24464", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given two binary strings A and B, count how many cyc...
code
{ "ground_truth": "{\"inputs\": [\"10\\n1111111111111111111111111111111111111111111111111111111111111111111\\n1111111111111111111111111111111111111111111111111111111111111111111\\n111111111111111111111111111111111111111111111\\n111111111111111111111111111111111111111111111\\n1111111111111111111111111111\\n11111111111...
MEDIUM
{ "id": "taco-train-417", "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": "The chef is trying to decode some pattern problems, ...
code
{ "ground_truth": "{\"inputs\": [[\"4\", \"1\", \"3\", \"5\", \"7\"]], \"outputs\": [[\"1\", \"111\", \"111\", \"111\", \"11111\", \"11 11\", \"1 1 1\", \"11 11\", \"11111\", \"1111111\", \"11 11\", \"1 1 1 1\", \"1 1 1\", \"1 1 1 1\", \"11 11\", \"1111111\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-11621", "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": "Geek is in a maze of size N * M (N rows, M columns). ...
code
{ "ground_truth": "{\"fn_name\": \"numberOfCells\", \"inputs\": [\"N = 3, M = 3\\nR = 1, C = 0\\nU = 1, D = 1\\nmat = {{'.', '.', '.'},\\n {'.', '#', '.'},\\n {'#', '.', '.'}}\", \"N = 4, M = 3\\nR = 1, C = 0\\nU = 1, D = 2 \\nmat = {{'.', '.', '.'}, \\n {'.', '#', '.'}, \\n {'.', '.', '.'},\\...
MEDIUM
{ "id": "taco-train-17325", "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": "Takahashi participated in a contest on AtCoder.\nThe...
code
{ "ground_truth": "{\"inputs\": [\"2 5\\n1 WA\\n1 AC\\n2 WA\\n2 AC\\n2 WA\\n\", \"100000 3\\n7777 AC\\n7777 AC\\n7777 AC\\n\", \"6 0\\n\", \"100000 3\\n7777 AC\\n7777 AC\\n7777 CA\", \"100000 3\\n12676 AC\\n7777 AC\\n7777 CA\", \"1 0\", \"4 5\\n1 WA\\n1 AC\\n2 WA\\n2 AC\\n2 WA\", \"4 5\\n1 WA\\n1 AC\\n0 WA\\n2 AC\\n2...
EASY
{ "id": "taco-train-10912", "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": "We are interested in collecting the sets of six prime...
code
{ "ground_truth": "{\"fn_name\": \"find_primes_sextuplet\", \"inputs\": [[70], [600], [2000000]], \"outputs\": [[[7, 11, 13, 17, 19, 23]], [[97, 101, 103, 107, 109, 113]], [[1091257, 1091261, 1091263, 1091267, 1091269, 1091273]]]}", "style": "rule" }
EASY
{ "id": "taco-train-12340", "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 Berland there are n cities and n - 1 bidirectiona...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 2\\n3 4\\n3 2\\n\", \"6\\n3 4\\n5 4\\n3 2\\n1 3\\n4 6\\n\", \"8\\n1 3\\n1 6\\n3 4\\n6 2\\n5 6\\n6 7\\n7 8\\n\", \"5\\n1 2\\n1 3\\n1 4\\n1 5\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n1 2\\n3 2\\n\", \"3\\n1 3\\n2 3\\n\", \"4\\n1 4\\n1 2\\n4 3\\n\", \"4\\n1 2\\n1 3\\n1 4\\n\",...
MEDIUM_HARD
{ "id": "taco-train-19575", "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": "Gardener Alexey teaches competitive programming to h...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n\", \"4\\n1 1 2 2\\n\", \"1\\n2359\\n\", \"10\\n5957 94 8220 2463 9623 7028 9656 677 8373 1126\\n\", \"10\\n9381 6234 2965 9236 4685 3101 5832 7369 5233 5308\\n\", \"10\\n9961 9927 9980 9941 9992 9910 9968 9956 9925 9975\\n\", \"10\\n9906 9903 10000 9998 9936 9952 9924 9...
EASY
{ "id": "taco-train-21694", "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 PIET's CS Deparment there is a contest of Geometr...
code
{ "ground_truth": "{\"inputs\": [\"2\\n12 30\\n06 00\\n\\nSAMPLE\", \"10\\n11 12\\n12 13\\n12 02\\n05 22\\n02 18\\n07 06\\n07 55\\n03 30\\n08 36\\n09 46\", \"10\\n01 56\\n02 10\\n03 33\\n04 42\\n05 55\\n06 59\\n07 06\\n08 08\\n09 12\\n10 55\", \"10\\n12 04\\n12 30\\n03 37\\n09 59\\n00 59\\n03 26\\n00 00\\n12 12\\n02 ...
none
{ "id": "clock-mania", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are $n$ candies in a row, they are numbered fr...
code
{ "ground_truth": "{\"inputs\": [\"7\\n11\\n3 1 4 1 5 9 2 6 5 3 5\\n1\\n1000\\n3\\n1 1 1\\n13\\n1 2 3 4 5 6 7 8 9 10 11 12 13\\n2\\n2 1\\n6\\n1 1 1 1 1 1\\n7\\n1 1 1 1 1 1 1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n2\\n1\\n1\\n1\\n1\\n\", \"7\\n11\\n3 1 4 1 5 9 2 6 5 3 5\\n1...
EASY
{ "id": "taco-train-23771", "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 pattern and a string str, find if str follows...
code
{ "ground_truth": "{\"fn_name\": \"wordPattern\", \"inputs\": [[\"\\\"abba\\\"\", \"\\\"dog cat cat dog\\\"\"]], \"outputs\": [false]}", "style": "rule" }
EASY
{ "id": "taco-train-17155", "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": "We have a permutation p = {p_1,\\ p_2,\\ ...,\\ p_n}...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 3 5 4 2\\n\", \"9\\n9 6 3 2 5 8 7 4 1\\n\", \"3\\n1 2 3\\n\", \"3\\n1 3 2\\n\", \"3\\n2 1 3\\n\", \"20\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20\\n\", \"20\\n20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1\\n\", \"20\\n1 20 2 19 3 18 4 17 5 16 6 15 7 14 8 13 9 12...
EASY
{ "id": "taco-train-8189", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are N cards on a table, out of which X cards a...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5 0\\n4 2\\n3 3\\n10 2\\n\"], \"outputs\": [\"0\\n2\\n0\\n2\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-11163", "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": "# Problem Statement\nWrite a function that takes two ...
code
{ "ground_truth": "{\"fn_name\": \"ipv4__parser\", \"inputs\": [[\"192.168.50.1\", \"255.255.255.0\"], [\"192.168.50.129\", \"255.255.255.192\"], [\"192.168.50.153\", \"255.255.255.225\"], [\"65.196.188.53\", \"255.255.240.0\"], [\"65.196.188.53\", \"0.0.0.0\"], [\"172.16.0.0\", \"255.240.0.0\"], [\"10.1.1.1\", \"255...
EASY
{ "id": "taco-test-714", "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": "Given a sequence A1 , A2 , A3 .. AN of length N . Fi...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 3 5 4 2\\n\\nSAMPLE\"], \"outputs\": [\"17\"]}", "style": "rule" }
none
{ "id": "shil-and-wave-seqeuncemonk", "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 connected undirected weighted graph ...
code
{ "ground_truth": "{\"inputs\": [\"7 15 18\\n2 6 3\\n5 7 4\\n6 5 4\\n3 6 9\\n6 7 7\\n1 6 4\\n7 1 6\\n7 2 1\\n4 3 2\\n3 2 8\\n5 3 6\\n2 5 5\\n3 7 9\\n4 1 8\\n2 1 1\\n\", \"6 10 5\\n2 5 1\\n5 3 9\\n6 2 2\\n1 3 1\\n5 1 8\\n6 5 10\\n1 6 5\\n6 4 6\\n3 6 2\\n3 4 5\\n\", \"2 1 1\\n1 2 123456789\\n\", \"28 27 378\\n1 2 10000...
rating_>1900
{ "id": "1196_F. K-th Path", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Anu has created her own function f: f(x, y) = (x | y...
code
{ "ground_truth": "{\"inputs\": [\"1\\n13\\n\", \"4\\n4 0 11 6\\n\", \"5\\n108499762 843249791 917433490 622172778 725664656\\n\", \"6\\n787704054 796688644 754725914 561572949 573891604 312543334\\n\", \"4\\n433189692 522048869 125182076 157942182\\n\", \"5\\n809571641 29322377 935888946 833709370 2457463\\n\", \"2\...
rating_1401-1600
{ "id": "1300_C. Anu Has a Function", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Jimmy and his friends like to visit large theme park...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5 0 5\\n7 0 7\\n4\\n88\\n5\\n6\\n7\\n\", \"1\\n100 3 2\\n5\\n2\\n3\\n4\\n5\\n100\\n\"], \"outputs\": [\"88\\n5\\n5\\n7\\n\", \"100\\n100\\n197\\n197\\n435\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-9919", "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": "Floating-Point Numbers\n\nIn this problem, we consid...
code
{ "ground_truth": "{\"inputs\": [\"1\\n0000000000000000000000000000000000000000000000000000\\n2\\n0000000000000000000000000000000000000000000000000000\\n3\\n0000000000000000000000000000000000000000000000000000\\n4\\n0000000000000000000000000000000000000000000000000000\\n7\\n1101000000000000000000000000000000000000000...
none
{ "id": "p01113 Floating-Point Numbers", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "After waking up at hh:mm, Andrew realised that he ha...
code
{ "ground_truth": "{\"inputs\": [\"19 00\\n255 1 100 1\\n\", \"17 41\\n1000 6 15 11\\n\", \"00 10\\n33077 21 40 22\\n\", \"17 31\\n9603 53 73 74\\n\", \"01 38\\n70542 27 74 26\\n\", \"14 53\\n76530 92 4 22\\n\", \"18 06\\n88580 22 35 59\\n\", \"10 44\\n66449 67 90 83\\n\", \"00 00\\n100000 100 100 100\\n\", \"20 58\\...
rating_<=1200
{ "id": "955_A. Feed the cat", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Bob wants to put a new bargaining table in his offic...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n000\\n010\\n000\", \"5 4\\n1100\\n0000\\n0000\\n0000\\n0000\", \"3 3\\n000\\n110\\n000\", \"4 2\\n00\\n10\\n11\\n00\", \"3 5\\n00001\\n00000\\n10100\", \"1 1\\n0\", \"10 11\\n11111111101\\n01111111111\\n11101111111\\n01111110111\\n11111111111\\n11111111111\\n11111111111\\n1111...
rating_1401-1600
{ "id": "22B", "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": "Write a program which reads three integers a, b and ...
code
{ "ground_truth": "{\"inputs\": [\"1 3 8\", \"3 8 1\", \"1 6 8\", \"3 7 1\", \"1 6 9\", \"3 7 2\", \"1 9 9\", \"3 7 3\", \"1 9 2\", \"2 7 3\", \"1 6 2\", \"3 9 3\", \"0 6 2\", \"3 8 3\", \"-1 6 2\", \"5 8 3\", \"-1 0 2\", \"5 13 3\", \"-1 -1 2\", \"5 13 5\", \"-1 -1 1\", \"1 3 0\", \"3 8 0\", \"0 6 8\", \"3 9 1\", \"...
none
{ "id": "p02392 Range", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese and Rus...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n7\", \"2\\n4\\n7\", \"3\\n5\\n10\\n15\", \"4\\n3\\n6\\n9\\n12\", \"2\\n11\\n22\", \"3\\n8\\n16\\n24\", \"4\\n7\\n14\\n21\\n28\", \"2\\n33\\n66\", \"3\\n13\\n26\\n39\", \"4\\n17\\n34\\n51\\n68\", \"2\\n90\\n180\", \"3\\n12\\n24\\n36\", \"1\\n9999\", \"1\\n10000\", \"3\\n1\\n2...
MEDIUM
{ "id": "taco-test-269", "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": "Complete the solution so that it returns the number o...
code
{ "ground_truth": "{\"fn_name\": \"solution\", \"inputs\": [[\"abcdeb\", \"b\"], [\"abc\", \"b\"], [\"abbc\", \"bb\"], [\"abcdeb\", \"a\"], [\"ccddeeccddeecc\", \"cc\"], [\"aabb\", \"cc\"], [\"bbaa\", \"a\"], [\"abab\", \"a\"], [\"abcdefdvbhibjkb\", \"b\"], [\"abccded\", \"cc\"], [\"abccded\", \"d\"]], \"outputs\": [...
EASY
{ "id": "taco-train-13938", "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 built an apartment. The apartment has a water ta...
code
{ "ground_truth": "{\"inputs\": [\"1 100\\n0 86400 1\\n1 100\\n43200 86400 1\\n0 0\", \"1 100\\n0 86400 1\\n1 110\\n43200 86400 1\\n0 0\", \"1 101\\n0 86400 1\\n1 100\\n43200 86400 1\\n0 0\", \"1 101\\n0 86400 1\\n1 000\\n43200 86400 1\\n0 0\", \"1 101\\n0 73100 1\\n1 000\\n43200 86400 1\\n0 0\", \"1 101\\n0 73100 1\...
none
{ "id": "p01298 Water Tank", "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": "Vova had a pretty weird sleeping schedule. There are...
code
{ "ground_truth": "{\"inputs\": [\"7 24 21 23\\n16 17 14 20 20 11 22\\n\", \"62 51 43 50\\n40 36 14 6 44 12 23 23 50 37 15 14 21 16 6 9 40 21 20 11 21 6 34 50 40 43 44 30 12 41 28 39 31 34 12 32 9 33 45 9 13 22 48 24 11 5 24 21 46 26 14 47 10 18 42 2 40 30 46 47 22 3\\n\", \"39 14 6 10\\n1 10 13 7 6 11 1 2 2 11 6 3 1...
rating_1601-1900
{ "id": "1324_E. Sleeping Schedule", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Akshay loves to play with numbers and arrays. He took...
code
{ "ground_truth": "{\"inputs\": [\"arr[ ] = {5, 8, 3, 9} and N = 2\", \"arr[ ] = {1, 6, 5, 9} and N = 2\"], \"outputs\": [\"13\", \"11\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4827", "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": "Jzzhu have *n* non-negative integers *a*1,<=*a*2,<=....
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 3 3\", \"4\\n0 1 2 3\", \"6\\n5 2 0 5 2 1\", \"16\\n0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\", \"10\\n450661 128600 993228 725823 293549 33490 843121 903634 556169 448234\", \"1\\n0\", \"1\\n1\", \"6\\n524 529 5249 524 529 529\", \"55\\n0 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 2 3 ...
rating_>1900
{ "id": "449D", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Digital collectible card games have become very popu...
code
{ "ground_truth": "{\"inputs\": [\"5 8\\n5 5 1\\n1 5 4\\n4 6 3\\n1 12 4\\n3 12 1\", \"3 7\\n4 4 1\\n5 8 2\\n5 3 3\", \"10 10\\n3 3 6\\n5 10 4\\n4 7 9\\n4 9 7\\n1 9 4\\n1 6 10\\n4 10 1\\n4 4 6\\n2 7 2\\n1 5 4\", \"10 20\\n9 4 10\\n2 8 9\\n9 1 1\\n8 10 10\\n5 10 2\\n1 2 10\\n9 6 3\\n2 10 5\\n7 10 6\\n6 3 1\", \"10 30\\...
rating_>1900
{ "id": "808F", "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": "Everyone knows that 2010 FIFA World Cup is being hel...
code
{ "ground_truth": "{\"inputs\": [\"4\\nA\\nB\\nC\\nD\\nA-B 1:1\\nA-C 2:2\\nA-D 1:0\\nB-C 1:0\\nB-D 0:3\\nC-D 0:3\\n\", \"2\\na\\nA\\na-A 2:1\\n\", \"2\\nEULEUbCmfrmqxtzvg\\nuHGRmKUhDcxcfqyruwzen\\nuHGRmKUhDcxcfqyruwzen-EULEUbCmfrmqxtzvg 13:92\\n\", \"4\\nTeMnHVvWKpwlpubwyhzqvc\\nAWJwc\\nbhbxErlydiwtoxy\\nEVASMeLpfqwj...
rating_1201-1400
{ "id": "19_A. World Football Cup", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Think of New York as a rectangular grid consisting o...
code
{ "ground_truth": "{\"inputs\": [\"10 10\\n2\\n1 1\\n3 3\\n2\\n1 10\\n4 4\", \"100 100\\n10\\n53 20\\n97 6\\n12 74\\n48 92\\n97 13\\n47 96\\n75 32\\n69 21\\n95 75\\n1 54\\n10\\n36 97\\n41 1\\n1 87\\n39 23\\n27 44\\n73 97\\n1 1\\n6 26\\n48 3\\n5 69\", \"100 100\\n10\\n86 72\\n25 73\\n29 84\\n34 33\\n29 20\\n84 83\\n41...
rating_>1900
{ "id": "491B", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "International Carpenters Professionals Company (ICPC...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 ( 10\\n10 ) 20\\n0 ( 10\", \"3\\n0 ( 10\\n10 ) 5\\n10 ) 5\", \"3\\n0 ) 10\\n10 ( 5\\n10 ( 5\", \"3\\n0 ( 10\\n10 ) 5\\n10 ( 5\", \"3\\n-1 ( 10\\n10 ) 5\\n10 ) 5\", \"3\\n-1 ( 9\\n10 ) 9\\n20 ( 4\", \"3\\n-1 ) 0\\n8 ( 19\\n4 ' 2\", \"3\\n-2 ) 0\\n7 ) 0\\n4 ( 11\", \"3\\n-1 ( 0\...
none
{ "id": "p01457 Carpenters' Language", "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": "n children are standing in a circle and playing the ...
code
{ "ground_truth": "{\"inputs\": [\"7 5\\n10 4 11 4 1\\n\", \"3 2\\n2 5\\n\", \"2 1\\n1\\n\", \"2 1\\n2\\n\", \"2 1\\n3\\n\", \"10 7\\n5 10 4 3 8 10 6\\n\", \"10 8\\n12 6 12 15 20 8 17 12\\n\", \"12 10\\n76 58 82 54 97 46 17 40 36 15\\n\", \"12 6\\n76 61 94 15 66 26\\n\", \"90 10\\n1045 8705 6077 3282 1459 9809 383 62...
EASY
{ "id": "taco-train-6192", "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 an array arr of length N of 0's and 1'...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\\r\\narr[] = {0, 0, 1, 0}\", \"N = 4\\r\\narr[] = {0, 0, 0, 0}\"], \"outputs\": [\"4\", \"10\"]}", "style": "rule" }
EASY
{ "id": "taco-train-21085", "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": "Saving electricity is very important!\n\nYou are in ...
code
{ "ground_truth": "{\"inputs\": [\"3 3 5\\n...\\n.##\\n..#\\n1 1 1\\n1 0 0\\n1 1 0\\n3 3 3\\n3 0 0\\n3 3 0\\n5 4 5\\n4 0 0\\n5 4 0\\n1 0\\n2 1\\n0 2\\n2 0\\n0 0\", \"1 3 2\\n...\\n1 1 1\\n1 2 1\\n1 1 1\\n0 0\\n0 2\", \"5 5 10\\n.###\\n....\\n.#\\n..#.#\\n....\\n0 12 0 0 0\\n0 4 3 2 10\\n0 0 0 99 0\\n11 13 0 2 0\\n0 1...
none
{ "id": "p01419 On or Off", "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": "Valera had an undirected connected graph without sel...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n0 1 1\", \"4 2\\n2 0 1 3\", \"3 1\\n0 0 0\", \"5 3\\n0 2 1 2 1\", \"7 3\\n2 2 0 1 3 2 1\", \"9 4\\n2 1 1 3 1 2 2 1 0\", \"3 1\\n0 1 2\", \"2 1\\n1 0\", \"2 1\\n1 1\", \"2 1\\n0 0\", \"4 2\\n0 1 0 1\", \"5 3\\n3 1 4 2 1\", \"5 4\\n1 2 2 2 3\", \"4 3\\n1 1 1 2\", \"4 3\\n1 2 2 3...
rating_1601-1900
{ "id": "404C", "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": "Piegirl found the red button. You have one last chan...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"2\\n\", \"16\\n\", \"20\\n\", \"29024\\n\", \"23105\\n\", \"2500\\n\", \"513\\n\", \"25\\n\", \"99999\\n\", \"8\\n\", \"100\\n\", \"6400\\n\", \"5\\n\", \"50\\n\", \"10\\n\", \"1000\\n\", \"12\\n\", \"800\\n\", \"55555\\n\", \"30\\n\", \"126\\n\", \"255\\n\", \"3...
rating_>1900
{ "id": "325_E. The Red Button", "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": "Recall that MEX of an array is a minimum non-negativ...
code
{ "ground_truth": "{\"inputs\": [\"7 3\\n0\\n1\\n2\\n2\\n0\\n0\\n10\\n\", \"4 3\\n1\\n2\\n1\\n2\\n\", \"4 3\\n1\\n2\\n1\\n3\\n\", \"3 3\\n0\\n1\\n2\\n2\\n0\\n0\\n10\\n\", \"4 2\\n1\\n2\\n1\\n0\\n\", \"4 2\\n1\\n3\\n1\\n0\\n\", \"4 2\\n1\\n3\\n2\\n0\\n\", \"4 2\\n0\\n3\\n2\\n0\\n\", \"3 2\\n0\\n6\\n2\\n0\\n\", \"2 3\\...
MEDIUM_HARD
{ "id": "taco-train-1706", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Your friend is typing his name into a keyboard.  Some...
code
{ "ground_truth": "{\"fn_name\": \"isLongPressedName\", \"inputs\": [[\"\\\"alex\\\"\", \"\\\"aaleex\\\"\"]], \"outputs\": [true]}", "style": "rule" }
EASY
{ "id": "taco-train-10801", "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": "Statistics claims that students sleep no more than t...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\n3 3\\n\", \"5 1\\n10 5\\n\", \"1 2\\n11 6\\n\", \"100 100\\n50 50\\n\", \"13 23\\n19 63\\n\", \"5 23\\n12 17\\n\", \"65 8\\n73 25\\n\", \"100 3\\n4 1\\n\", \"2 25\\n8 24\\n\", \"19 17\\n5 8\\n\", \"24 43\\n96 39\\n\", \"11 17\\n6 4\\n\", \"25 9\\n16 12\\n\", \"58 86\\n40 46\\n...
rating_1201-1400
{ "id": "62_A. A Student's Dream", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "There is one meeting room in a firm. There are N meet...
code
{ "ground_truth": "{\"inputs\": [\"N = 6\\r\\nstart[] = {1,3,0,5,8,5}\\r\\nend[] = {2,4,6,7,9,9}\", \"N = 3\\r\\nstart[] = {10, 12, 20}\\r\\nend[] = {20, 25, 30}\"], \"outputs\": [\"4\", \"1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4213", "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 integers A and B, each between 1 and 3...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n\", \"1 2\\n\", \"2 2\\n\", \"1 1\\n\", \"1 3\\n\", \"2 1\\n\", \"2 3\\n\", \"3 2\\n\", \"3 3\\n\", \"1 1\", \"2 4\", \"1 3\", \"2 0\", \"2 3\", \"2 6\", \"2 1\", \"3 -1\", \"2 -1\", \"3 3\", \"1 -1\", \"4 2\", \"-1 1\", \"0 2\", \"-1 2\", \"-1 -1\", \"2 7\", \"2 -2\", \"0 -2\...
EASY
{ "id": "taco-train-563", "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": "Yasin has an array a containing n integers. Yasin is...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 6 3\\n\", \"100\\n83 51 58 24 95 20 54 35 39 75 4 22 11 52 12 15 10 57 33 115 34 80 73 9 28 78 55 61 32 96 19 16 13 88 27 48 100 112 71 94 81 42 98 82 109 91 43 17 111 72 108 7 66 18 70 90 53 99 92 63 84 21 59 101 97 36 106 29 41 40 47 114 3 86 62 74 25 37 49 31 65 76 8 103 38...
rating_>1900
{ "id": "672_E. Ultimate Weirdness of an Array", "rating": 2800, "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": "Igor the analyst has adopted n little bunnies. As we...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n\", \"2 100000\\n\", \"1000 100000\\n\", \"775 1\\n\", \"998 99999\\n\", \"5 1\\n\", \"20 17\\n\", \"917 1\\n\", \"937 23565\\n\", \"449 88550\\n\", \"458 100\\n\", \"693 39706\\n\", \"999 1\\n\", \"574 29184\\n\", \"4 31901\\n\", \"2 1\\n\", \"4 70383\\n\", \"4 21538\\n\", \"...
rating_<=1200
{ "id": "794_B. Cutting Carrot", "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": "You are given n numbers x1,x2,...,xn and a prime num...
code
{ "ground_truth": "{\"inputs\": [\"11 2\\n536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912 536870912\", \"2 29\\n38 47\\n\", \"2 13\\n72 65\\n\", \"2 2\\n2 100\\n\", \"2 13\\n73 71\\n\", \"2 47\\n94 20\\n\", \"2 13\\n23 72\\n\", \"2 37\\n48 3\\n\", \"2 11\\n91 17\\n\...
HARD
{ "id": "taco-train-19508", "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 loves cooking. Also, he is very hygienic. Hence...
code
{ "ground_truth": "{\"inputs\": [[\"2 4\", \"1 6\", \"2 5\"], [\"3 3\", \"1 4\", \"6 2\", \"5 3\"]], \"outputs\": [[\"11\"], [\"9\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-12026", "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": "Read problem statements in [Bengali], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"3\\n7 1400\\n5 1000\\n10 1000\"], \"outputs\": [\"140000\\n100000\\n50000\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6058", "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": "There are several days left before the fiftieth birt...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n14 12 10\", \"2 0\\n10 10\", \"4 5\\n8 19 10 13\", \"1 1\\n1\", \"2 10\\n35 45\", \"4 8\\n89 33 54 75\", \"5 1\\n9 6 8 7 5\", \"3 3\\n3 8 6\", \"4 1000000\\n100001 1 200001 300001\", \"4 1000\\n11497 9999 10730 12280\", \"3 0\\n1000000 1000000 1000000\", \"4 50\\n165 182 157 1...
rating_1601-1900
{ "id": "6E", "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": "Doubleville, a small town in Texas, was attacked by ...
code
{ "ground_truth": "{\"inputs\": [[\"9 6\", \"AAAAAA\", \"ACACAC\", \"GTTTTG\", \"ACACAC\", \"GTTTTG\", \"ACACAC\", \"ACACAC\", \"TCCCCC\", \"TCCCCC\", \"0 0\", \"\", \"\"]], \"outputs\": [[\"1\", \"2\", \"0\", \"1\", \"0\", \"0\", \"0\", \"0\", \"0\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-6717", "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": "Andrewid the Android is a galaxy-famous detective. H...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 0 0\\n\", \"5\\n4 2 1 4 3\\n\", \"4\\n0 2 3 1\\n\", \"1\\n0\\n\", \"2\\n1 0\\n\", \"5\\n2 4 4 1 1\\n\", \"10\\n0 1 2 3 4 5 6 7 8 9\\n\", \"10\\n1 5 1 0 6 1 3 5 9 9\\n\", \"20\\n10 11 12 13 14 15 16 17 18 19 0 1 2 3 4 5 6 7 8 9\\n\", \"20\\n2 15 18 0 3 12 4 16 13 7 17 9 8 2 15 ...
EASY
{ "id": "taco-train-24310", "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 integer N. The task is to return the positio...
code
{ "ground_truth": "{\"inputs\": [\"N = 18\", \"N = 12\"], \"outputs\": [\"2\", \"3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1540", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem :\n\nBajirao is on a date with his girlfrien...
code
{ "ground_truth": "{\"inputs\": [\"2\\nremember\\noccurring\\n\\nSAMPLE\", \"2\\nremember\\noccurring\\n\\nELPMAS\", \"2\\nrmeenber\\noccurrhng\\n\\nSAMPMD\", \"2\\nrfrnfemc\\nvohtrcgcn\\n\\nLDPMAS\", \"2\\nqfrefmmc\\nnohsrcgdv\\n\\nSCLPEN\", \"2\\nremenber\\noccurring\\n\\nELPMAS\", \"2\\nremenber\\noccurring\\n\\nS...
none
{ "id": "day-6-advanced-mathematics", "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 likes to play with big numbers. Today, he has a...
code
{ "ground_truth": "{\"inputs\": [[\"4\", \"65\", \"566\", \"11\", \"1623455078\"]], \"outputs\": [[\"A\", \"AB\", \"ACDFGHIJKLNPQRSTUVW\"]]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20112", "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": "Elections in Berland are coming. There are only two ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n11 6\\n10 4\\n01 3\\n00 3\\n00 7\\n00 9\\n\", \"5\\n11 1\\n01 1\\n00 100\\n10 1\\n01 1\\n\", \"6\\n11 19\\n10 22\\n00 18\\n00 29\\n11 29\\n10 28\\n\", \"3\\n00 5000\\n00 5000\\n00 5000\\n\", \"1\\n00 1\\n\", \"1\\n00 4\\n\", \"1\\n11 15\\n\", \"2\\n00 1\\n10 1\\n\", \"2\\n00 2\\...
MEDIUM
{ "id": "taco-train-14654", "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": "Suppose you have two strings *s* and *t*, and their ...
code
{ "ground_truth": "{\"inputs\": [\"abcdefa\\nddcb\"], \"outputs\": [\"2 3 3 3 \"]}", "style": "rule" }
rating_>1900
{ "id": "954I", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "\n\nInput\n\nThe first line contains a single intege...
code
{ "ground_truth": "{\"inputs\": [\"8\\n16.94 2.42\\n15.72 2.38\\n14.82 1.58\\n14.88 0.50\\n15.76 -0.16\\n16.86 -0.20\\n17.00 0.88\\n16.40 0.92\\n\", \"5\\n2.26 1.44\\n2.28 0.64\\n2.30 -0.30\\n1.58 0.66\\n3.24 0.66\\n\", \"8\\n6.98 2.06\\n6.40 1.12\\n5.98 0.24\\n5.54 -0.60\\n7.16 0.30\\n7.82 1.24\\n8.34 0.24\\n8.74 -0...
rating_>1900
{ "id": "409_G. On a plane", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Note that this is an easier version of the problem f...
code
{ "ground_truth": "{\"inputs\": [\"3 5 3\\n1 1\\n2 2\\n1 3\\n0 0\\n0 3\\n1 4\\n3 3\\n3 0\\n\", \"5 6 4\\n3 5\\n5 5\\n4 4\\n7 2\\n5 2\\n6 1\\n4 2\\n2 6\\n5 6\\n8 3\\n8 2\\n\"], \"outputs\": [\"2\\n\", \"4\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-5524", "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 *n*<=×<=*m* table. Each cell of the ta...
code
{ "ground_truth": "{\"inputs\": [\"1 1\\n0\", \"2 3\\n1 0 1\\n0 1 0\", \"2 2\\n1 1\\n1 1\", \"1 10\\n0 0 0 0 0 0 0 0 0 0\", \"11 1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\", \"10 11\\n1 1 0 1 1 0 0 0 1 0 0\\n1 0 0 1 1 1 0 0 1 1 0\\n0 0 1 0 1 1 0 1 0 1 1\\n0 1 1 1 0 1 0 1 0 0 0\\n1 1 1 1 1 1 1 0 1 0 0\\n1 1 0 1 1 ...
rating_1201-1400
{ "id": "844B", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Theatre Square in the capital city of Berland has a ...
code
{ "ground_truth": "{\"inputs\": [\"6 6 4\", \"1 1 1\", \"2 1 1\", \"1 2 1\", \"2 2 1\", \"2 1 2\", \"1 1 3\", \"2 3 4\", \"1000000000 1000000000 1\", \"12 13 4\", \"222 332 5\", \"1000 1000 10\", \"1001 1000 10\", \"100 10001 1000000000\", \"1000000000 1000000000 1000000000\", \"1000000000 1000000000 999999999\", \"1...
rating_<=1200
{ "id": "1A", "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": "In \"Takahashi-ya\", a ramen restaurant, a bowl of r...
code
{ "ground_truth": "{\"inputs\": [\"oxo\\n\", \"ooo\\n\", \"xxx\\n\", \"pxo\", \"yxx\", \"opo\", \"oxp\", \"xyx\", \"opn\", \"xpo\", \"xzx\", \"npo\", \"opx\", \"yzx\", \"npn\", \"xpn\", \"xzy\", \"mpn\", \"npx\", \"wzy\", \"mpm\", \"nxp\", \"zwy\", \"npm\", \"mxp\", \"ywz\", \"nmp\", \"nxo\", \"yzw\", \"nnp\", \"xno\...
EASY
{ "id": "taco-train-1692", "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": "A Professor of Physics gave projects to the students...
code
{ "ground_truth": "{\"inputs\": [\"8\\n4 2 6 4 3\\n6 1 1 1 1 1 1\\n8 4 2 4 2 1 3 3 7\\n14 5 1 8 8 13 7 6 2 1 9 5 11 3 4\\n50 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 1000 999 998 997 996 995 994 993 992 991 990 989 988 987 986 985 984 983 982 981 980 979 978 977 976\\n50 7 9 1 3 7 9 5 6 4 9 3...
none
{ "id": "project-team", "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": "Spongebob is already tired trying to reason his weir...
code
{ "ground_truth": "{\"inputs\": [\"8\\n\", \"26\\n\", \"2\\n\", \"10152342200\\n\", \"6466460\\n\", \"334344854787443885\\n\", \"5050505060\\n\", \"649708734844\\n\", \"380060000009189500\\n\", \"5000004100\\n\", \"800800\\n\", \"147456000000000\\n\", \"20202582400\\n\", \"914669606669700001\\n\", \"600201602000\\n\"...
rating_1601-1900
{ "id": "599_D. Spongebob and Squares", "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": "Petya has an array of integers $a_1, a_2, \\ldots, a...
code
{ "ground_truth": "{\"inputs\": [\"7\\n1\\n1\\n2\\n2 2\\n2\\n2 1\\n3\\n1 2 3\\n3\\n2 1 3\\n3\\n3 1 2\\n4\\n2 1 4 3\\n\"], \"outputs\": [\"YES\\nYES\\nNO\\nYES\\nNO\\nYES\\nYES\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-23667", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given an integer N. Integers A and B are chosen rand...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\"], \"outputs\": [\"1/1\\n3/4\\n5/9\"]}", "style": "rule" }
none
{ "id": "coolguys", "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": "Rotation is one of several popular pocket billiards ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n2 1\\n4\\n9\\n2 4\\n8 5 3\\n7 1 6 10\\n0\", \"2\\n3\\n2 1\\n4\\n9\\n2 4\\n8 5 3\\n7 1 6 10\\n-1\", \"2\\n3\\n2 1\\n0\\n9\\n2 4\\n8 5 3\\n7 1 6 10\\n0\", \"2\\n3\\n2 1\\n0\\n9\\n2 4\\n8 5 5\\n7 1 6 10\\n0\", \"2\\n3\\n2 1\\n0\\n9\\n2 4\\n8 5 3\\n7 1 6 10\\n1\", \"2\\n3\\n2 1\...
none
{ "id": "p01505 Billiards Sorting", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a string S containing only lowercase c...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"1\", \"a\", \"9\", \"abbbcbddd\", \"6\", \"abcdef\"]], \"outputs\": [[\"0\", \"2\", \"5\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-20988", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }