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": "This problem differs from the previous one only in t...
code
{ "ground_truth": "{\"inputs\": [\"3\\n12 3 45\\n\", \"2\\n123 456\\n\", \"20\\n76 86 70 7 16 24 10 62 26 29 40 65 55 49 34 55 92 47 43 100\\n\", \"100\\n6591 1074 3466 3728 549 5440 533 3543 1536 2967 1587 304 6326 6410 8670 6736 4482 8431 1697 9264 8338 2995 3725 1805 488 4563 4261 6025 2602 1892 9297 4359 1139 711...
rating_1601-1900
{ "id": "1195_D2. Submarine in the Rybinsk Sea (hard edition)", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A known chef has prepared $n$ dishes: the $i$-th dis...
code
{ "ground_truth": "{\"inputs\": [\"8\\n\\n1 5\\n3 4\\n\\n1 6\\n3 4\\n\\n2 2\\n1 3\\n4 2\\n\\n2 4\\n1 3\\n1 7\\n\\n3 6\\n1 7\\n1 8\\n1 9\\n\\n3 6\\n1 8\\n1 9\\n30 10\\n\\n3 4\\n3 1\\n3 2\\n4 1\\n\\n5 4\\n0 7\\n6 4\\n0 8\\n4 1\\n5 3\\n\", \"8\\n\\n1 5\\n3 4\\n\\n1 6\\n3 4\\n\\n2 2\\n1 3\\n4 2\\n\\n2 4\\n1 3\\n1 7\\n\\n...
HARD
{ "id": "taco-train-24269", "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 an integer N, check if it is possible to repres...
code
{ "ground_truth": "{\"inputs\": [\"N = 1\", \"N = 2\", \"N = 7\"], \"outputs\": [\"1\", \"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24386", "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": "Little Petya often travels to his grandmother in the...
code
{ "ground_truth": "{\"inputs\": [\"8\\n1 2 1 1 1 3 3 4\\n\", \"5\\n1 2 1 2 1\\n\", \"1\\n2\\n\", \"10\\n1 2 3 4 5 6 7 8 9 10\\n\", \"10\\n10 9 8 7 6 5 4 3 2 1\\n\", \"100\\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 1 41 42 43 44 45 46 47 48 49 50 51 52...
rating_<=1200
{ "id": "66_B. Petya and Countryside", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Welcome\n\nThis kata is inspired by This Kata\n\n\nWe...
code
{ "ground_truth": "{\"fn_name\": \"jumbled_string\", \"inputs\": [[\"Such Wow!\", 1], [\"better example\", 2], [\"qwertyuio\", 2], [\"Greetings\", 8], [\"I like it!\", 1234], [\"codingisfornerdsyounerd\", 10101010], [\"this_test_will_hurt_you\", 12345678987654321]], \"outputs\": [[\"Sc o!uhWw\"], [\"bexltept merae\"]...
EASY
{ "id": "taco-train-12669", "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": "Nian is a monster which lives deep in the oceans. On...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n20 18\\n2 14\", \"5 3\\n-1 0 1 2 3\\n-1 0 1\", \"10 2\\n1 6 2 10 2 3 2 10 6 4\\n5 7\", \"50 50\\n1 6 2 10 2 3 2 10 6 4 5 0 3 1 7 3 2 4 4 2 1 5 0 6 10 1 8 0 10 9 0 4 10 5 5 7 4 9 9 5 5 2 6 7 9 4 3 7 2 0\\n0 5 9 4 4 6 1 8 2 1 6 6 8 6 4 4 7 2 1 8 6 7 4 9 8 3 0 2 0 10 7 1 4 9 4 4 ...
rating_1201-1400
{ "id": "934A", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a permutation p = {p_1,\\ p_2,\\ ...,\\ p_n}...
code
{ "ground_truth": "{\"inputs\": [\"9\\n9 6 3 2 5 8 7 4 1\", \"5\\n1 3 5 4 2\", \"9\\n9 6 3 2 5 14 7 4 1\", \"5\\n2 3 5 4 2\", \"9\\n14 17 3 4 5 25 7 4 0\", \"5\\n2 1 5 4 2\", \"9\\n14 12 3 2 9 14 1 4 0\", \"5\\n2 6 4 8 3\", \"9\\n14 6 3 2 5 14 7 4 1\", \"9\\n14 6 3 2 5 14 7 4 0\", \"9\\n14 12 3 2 5 14 7 4 0\", \"9\\n...
none
{ "id": "p02988 AtCoder Beginner Contest 132 - Ordinary Number", "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": "Whenever a programmer starts to learn a Lisp, they t...
code
{ "ground_truth": "{\"inputs\": [\"8\\n([] [] ]\\n\", \"13\\n(([] [[]] ())\\n\", \"21\\n[ { { () () () () } ]\\n\", \"27\\n[ { [[()]] (({})) } ] () {}\\n\", \"19\\n[[]] () ) [] {{}} {\\n\"], \"outputs\": [\"] 7\\n\", \"ok so far\\n\", \"] 20\\n\", \"ok so far\\n\", \") 8\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9384", "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": "Klein is trying to get her dog Jack into the Frisbee...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n12 5 3\\n0 17 3\\n0 0 2 2\\n2 3\\n2 0 2\\n100 100 2\\n0 0 -1 0\\n-2 -5 0 3\\n100 100 1 1\\n0 0\", \"2 1\\n12 5 1\\n0 17 3\\n0 0 2 2\\n2 3\\n2 0 2\\n100 100 2\\n0 0 -1 0\\n-2 -5 0 3\\n100 100 1 1\\n0 0\", \"2 1\\n7 5 1\\n0 17 3\\n0 0 2 2\\n2 3\\n2 0 2\\n110 101 2\\n0 0 -1 0\\n-...
none
{ "id": "p00625 Frisbee Dogs", "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 have N voting papers. The i-th vote (1 \\leq i \\...
code
{ "ground_truth": "{\"inputs\": [\"8\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\", \"7\\nbeat\\nvet\\nbeet\\nbed\\nvet\\nbet\\nbeet\", \"7\\nbass\\nbass\\nkick\\nkick\\nbass\\nkick\\nkick\", \"4\\nushi\\ntapu\\nnichia\\nkun\", \"8\\nbuffalo\\nbuffalo\\nbuffalo\\nbuffalo\\nolaffub\...
none
{ "id": "p02773 AtCoder Beginner Contest 155 - Poll", "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": "Родители Васи хотят, чтобы он как можно лучше учился...
code
{ "ground_truth": "{\"inputs\": [\"6\\n4 5 4 5 4 4\\n\", \"14\\n1 5 4 5 2 4 4 5 5 4 3 4 5 5\\n\", \"3\\n4 5 4\\n\", \"3\\n4 5 1\\n\", \"4\\n5 4 3 5\\n\", \"10\\n4 4 5 4 4 5 5 5 4 4\\n\", \"20\\n5 5 5 4 5 4 5 5 5 5 5 4 4 5 3 4 4 4 5 4\\n\", \"30\\n4 4 5 5 5 4 5 5 4 5 4 4 5 4 4 4 5 4 4 4 5 5 5 5 4 5 5 5 4 4\\n\", \"40\...
MEDIUM
{ "id": "taco-train-1617", "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": "Artsem is on vacation and wants to buy souvenirs for...
code
{ "ground_truth": "{\"inputs\": [\"8\\n3 1 4 1 5 9 2 6\\n4\\n1 8\\n1 3\\n4 8\\n5 7\\n\", \"2\\n612646433 751383044\\n1\\n1 2\\n\", \"2\\n122665266 751383044\\n1\\n1 2\\n\", \"2\\n42503308 751383044\\n1\\n1 2\\n\", \"2\\n42503308 137112238\\n1\\n1 2\\n\", \"2\\n612646433 481430525\\n1\\n1 2\\n\", \"2\\n49957325 751383...
rating_>1900
{ "id": "765_F. Souvenirs", "rating": 3100, "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": "Example\n\nInput\n\n3\n3 0 1\n\n\nOutput\n\n2", ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 0 1\", \"3\\n0 0 1\", \"3\\n0 0 2\", \"3\\n-1 -1 1\", \"3\\n0 1 2\", \"3\\n0 0 0\", \"3\\n3 0 2\", \"3\\n1 0 1\", \"3\\n0 1 0\", \"3\\n6 0 2\", \"3\\n1 0 0\", \"3\\n1 1 0\", \"3\\n8 0 2\", \"3\\n-1 0 1\", \"3\\n8 0 3\", \"3\\n8 1 3\", \"3\\n0 -1 1\", \"3\\n8 0 1\", \"3\\n8 -1 ...
none
{ "id": "p00935 Decimal 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": "The task is simply stated. Given an integer n (3 < n ...
code
{ "ground_truth": "{\"fn_name\": \"sum_of_squares\", \"inputs\": [[15], [16], [17], [18], [19], [2017], [1008], [3456], [4000], [12321], [661915703], [999887641], [999950886], [999951173], [999998999]], \"outputs\": [[4], [1], [2], [2], [3], [2], [4], [3], [2], [1], [4], [1], [3], [2], [4]]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-16502", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are n cities in Berland, each of them has a un...
code
{ "ground_truth": "{\"inputs\": [\"7 3 3\\n2 3 1\\n\", \"14 5 6\\n4 4 2 2 1\\n\", \"3 1 1\\n2\\n\", \"6 3 3\\n1 2 2\\n\", \"11 6 4\\n1 2 2 1 3 1\\n\", \"21 10 9\\n2 1 3 1 1 1 3 2 3 3\\n\", \"51 16 31\\n1 3 3 3 4 4 3 5 4 1 3 3 3 2 3 5\\n\", \"200000 4 90823\\n63010 23084 77424 36481\\n\", \"6390 29 1740\\n407 261 213 ...
HARD
{ "id": "taco-train-16002", "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": "Problem Statement\n\nMaxim likes dividers of the num...
code
{ "ground_truth": "{\"inputs\": [\"10\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\", \"10\\n1\\n2\\n2\\n4\\n5\\n6\\n7\\n8\\n9\\n10\", \"10\\n2\\n4\\n2\\n7\\n5\\n6\\n7\\n8\\n9\\n2\", \"10\\n2\\n2\\n2\\n4\\n5\\n6\\n1\\n8\\n9\\n10\", \"10\\n1\\n2\\n3\\n4\\n5\\n7\\n7\\n12\\n1\\n10\", \"10\\n1\\n2\\n2\\n4\\n5\\n6\\n7\\n12\\n...
none
{ "id": "maandi", "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 prime numbers. However, there is one thin...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"30\", \"45\", \"62\", \"\"]], \"outputs\": [[\"YES\", \"YES\", \"NO\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-21778", "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": "There are infinite number of cities in Geekland numbe...
code
{ "ground_truth": "{\"inputs\": [\"a = 1, b = 4\", \"a = 4, b = 3\"], \"outputs\": [\"NO\", \"YES\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7803", "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 equation, represented by words on left side ...
code
{ "ground_truth": "{\"fn_name\": \"isSolvable\", \"inputs\": [[[\"\\\"SEND\\\"\", \"\\\"MORE\\\"\"], \"\\\"MONEY\\\"\"]], \"outputs\": [false]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-6909", "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": "Consider an infinite sequence a_1, a_2, … Initially,...
code
{ "ground_truth": "{\"inputs\": [\"3\\n10 -3\\n50 4\\n100 -5\", \"3\\n2 10\\n3 -20\\n6 15\", \"5\\n56 114834\\n72 -149861\\n100 190757\\n192 -132693\\n240 133108\", \"3\\n10 -3\\n50 4\\n101 -5\", \"3\\n2 18\\n3 -20\\n6 15\", \"5\\n56 114834\\n72 -134386\\n100 190757\\n192 -132693\\n240 133108\", \"3\\n10 -3\\n91 4\\n...
none
{ "id": "p03512 Code Festival Team Relay (Parallel) - Akashic Records", "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": "## The Story\nGreen Lantern's long hours of study and...
code
{ "ground_truth": "{\"fn_name\": \"yellow_be_gone\", \"inputs\": [[\"lemonchiffon\"], [\"GOLD\"], [\"pAlEgOlDeNrOd\"], [\"BlueViolet\"], [\"#000000\"], [\"#b8860b\"], [\"#8FBC8F\"], [\"#C71585\"]], \"outputs\": [[\"PaleGreen\"], [\"ForestGreen\"], [\"LightGreen\"], [\"BlueViolet\"], [\"#000000\"], [\"#0bb886\"], [\"#...
EASY
{ "id": "taco-train-8516", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a positive floating point number N, the task is...
code
{ "ground_truth": "{\"inputs\": [\"N = \\\"30.25\\\"\", \"N = \\\"5.5\\\"\"], \"outputs\": [\"4\", \"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23996", "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": "Alan's child can be annoying at times.\n\nWhen Alan c...
code
{ "ground_truth": "{\"fn_name\": \"alan_annoying_kid\", \"inputs\": [[\"Today I played football.\"], [\"Today I didn't play football.\"], [\"Today I didn't attempt to hardcode this Kata.\"], [\"Today I cleaned the kitchen.\"], [\"Today I learned to code like a pro.\"]], \"outputs\": [[\"I don't think you played footb...
EASY
{ "id": "taco-train-12645", "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": "Inna loves sweets very much. That's why she decided ...
code
{ "ground_truth": "{\"inputs\": [\"4 4 4\\n\", \"1 1 1\\n\", \"50 50 1\\n\", \"4 4 9\\n\", \"10 10 10\\n\", \"50 50 1\\n\", \"50 50 10\\n\", \"2 2 3\\n\", \"1 2 1\\n\", \"2 50 75\\n\", \"50 50 1\\n\", \"1 1 1\\n\", \"1 2 1\\n\", \"50 50 100\\n\", \"50 50 200\\n\", \"10 10 10\\n\", \"10 10 100\\n\", \"30 30 56\\n\", \...
MEDIUM
{ "id": "taco-train-24103", "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": "Problem E: Laser Puzzle\n\nAn explorer John is now a...
code
{ "ground_truth": "{\"inputs\": [\"8 3\\nL####\\nS.../@.#\\nD#\", \"8 3\\nL#####\\nS...@.#\\nD#\", \"7 8\\n##S####\\n#.....#\\nS.O...#\\n#.*|..#\\nL..*..#\\n#.O*..D\\n#.@...#\\n#######\", \"7 8\\nS####\\n.....#\\nS.O...#\\n.*|..#\\nL..*..#\\n.O*..D\\n.@...#\", \"8 5\\nL####\\nS.../@.#\\nD#\", \"7 8\\n##S####\\n#........
none
{ "id": "p01595 Laser Puzzle", "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 involved in the development of a certain gam...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 1 3\\n1 2 5\\n1 3 2\", \"6\\n0 2 5\\n2 1 1\\n2 3 10\\n3 5 4\\n3 4 2\", \"6\\n0 2 5\\n2 1 1\\n2 3 10\\n3 5 2\\n3 4 2\", \"6\\n0 2 5\\n2 1 0\\n2 3 10\\n3 5 2\\n3 4 2\", \"4\\n0 1 3\\n0 2 5\\n1 3 2\", \"6\\n0 2 5\\n2 1 1\\n2 3 6\\n3 5 4\\n3 4 2\", \"6\\n0 2 5\\n2 1 1\\n2 3 18\\n3...
none
{ "id": "p00997 Dungeon (II)", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are two buttons, one of size A and one of size...
code
{ "ground_truth": "{\"inputs\": [\"3 4\", \"5 3\", \"6 6\", \"6 4\", \"10 3\", \"4 3\", \"12 3\", \"9 2\", \"2 3\", \"15 3\", \"2 1\", \"18 3\", \"14 2\", \"2 2\", \"1 1\", \"1 0\", \"5 5\", \"5 2\", \"8 2\", \"0 -1\", \"-1 11\", \"0 0\", \"-1 -1\", \"-1 -2\", \"-1 16\", \"-2 -22\", \"-3 -22\", \"-4 -16\", \"-2 19\",...
none
{ "id": "p03071 AtCoder Beginner Contest 124 - Buttons", "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": "Peter Parker wants to play a game with Dr. Octopus. ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n\", \"5\\n1 1 5 1 1\\n\", \"1\\n167959139\\n\", \"10\\n802030518 598196518 640274071 983359971 71550121 96204862 799843967 446173607 796619138 402690754\\n\", \"1\\n1\\n\", \"1\\n1000000000\\n\", \"2\\n2 4\\n\", \"2\\n1 1\\n\", \"2\\n1 2\\n\", \"2\\n2 1\\n\", \"3\\n1 3 1...
EASY
{ "id": "taco-train-3170", "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 got a robot which is situated on an infini...
code
{ "ground_truth": "{\"inputs\": [\"5\\nRURUU\\n-2 3\\n\", \"4\\nRULR\\n1 1\\n\", \"3\\nUUU\\n100 100\\n\", \"13\\nUUULRUDDRLUUD\\n13 -10\\n\", \"77\\nLRRUDLDUDRDRURURURLDLLURLULDDURUDUUDDUDLLDULRLRLRRRRULLRRRDURRDLUDULRUURRLDLU\\n-6 -7\\n\", \"27\\nRLUUDUDDRRULRDDULDULRLDLDRL\\n0 -3\\n\", \"3\\nLLD\\n-2 -1\\n\", \"60...
rating_1601-1900
{ "id": "1073_C. Vasya and Robot", "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": "With your birthday coming up soon, your eccentric fri...
code
{ "ground_truth": "{\"fn_name\": \"count_subsequences\", \"inputs\": [[\"happy birthday\", \"appyh appy birth day\"], [\"happy birthday\", \"hhaappyy bbiirrtthhddaayy\"], [\"happy birthday\", \"happy holidays\"], [\"happy birthday\", \"happy birthday\"], [\"happy\", \"hhhappy\"], [\"happy birthday\", \"hhhappyyyy bii...
MEDIUM_HARD
{ "id": "taco-train-10459", "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": "\"I heard that you're settled down\n\t\tThat you fou...
code
{ "ground_truth": "{\"inputs\": [\"((Never mind(I'll find(someone like you))))\", \"((Never mind(I'll find(someone like ))))uoy\", \"rfveM(( mind(I'll find(someone like you))))\", \"((Mewfr mind(I'll find(someone lkie you))))\", \"((Mewfr mind(I'll enoemos(dnif lkie you))))\", \"((Mewfr ll'I(dnim find(somennd lkie yo...
none
{ "id": "rolldeep", "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": "Vivek was quite bored with the lockdown, so he came ...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"5\", \"abcab\", \"aabab\", \"3\", \"aaa\", \"aab\", \"2\", \"de\", \"cd\"]], \"outputs\": [[\"2\", \"3 1 2 4\", \"3 0 1 3\", \"-1\", \"-1\"]]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-24560", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are n blocks arranged in a row and numbered fr...
code
{ "ground_truth": "{\"inputs\": [\"8\\nBWWWWWWB\\n\", \"5\\nWWWWW\\n\", \"3\\nBWB\\n\", \"4\\nBWBB\\n\", \"195\\nWWWWWWWWBWWWWWWWWWWWWBBBWWWBBWWWWWWWWBWWWWWWWWWWWWWWWWWWWWBWWWWWWWBWWWWWWWWWWWWWWWWBWWWWWWWWWBBBWWWWWWWWWWBWWWWWWWBBWWBWBBWWWWWWWWWWBWWWBWWWWWWWWWBBWBWWWBWWBWBWWWWBBWWWWWWWWWWWWWWWWWWWWWWWWWWBWWW\\n\", \"1...
rating_1201-1400
{ "id": "1271_B. Blocks", "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": "For a square matrix of integers of size $n \\times n...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n3\\n\"], \"outputs\": [\"4 1\\n2 3\\n9 1 8\\n3 7 2\\n6 4 5\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-11748", "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": "Memory is performing a walk on the two-dimensional p...
code
{ "ground_truth": "{\"inputs\": [\"RRU\", \"UDUR\", \"RUUR\", \"DDDD\", \"RRRR\", \"RRRUUD\", \"UDURLRDURLRD\", \"RLRU\", \"RDDLLDLUUUDDRDRURLUUURLLDDLRLUURRLLRRLDRLLUDRLRULLDLRRLRLRLRUDUUDLULURLLDUURULURLLRRRURRRDRUUDLDRLRDRLRRDDLDLDLLUDRUDRLLLLDRDUULRUURRDLULLULDUDULRURRDDDLLUDRLUDDLDDDRRDDDULLLLDLDRLRRLRRDDRLULURR...
rating_<=1200
{ "id": "712B", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Little Jhool considers Jaadu to be a very close frie...
code
{ "ground_truth": "{\"inputs\": [\"2\\nhackerearth\\nhacker\\nhackerearth\\nwow\\nSAMPLE\", \"2\\nhackerearth\\nhacker\\nhackerearti\\nwow\\nSAMPLE\", \"2\\nhackerdarth\\nhacker\\nhackerearti\\nwow\\nSAMPLE\", \"2\\nhackerearth\\nhacker\\nhtraerekcah\\nwow\\nSAMPLE\", \"2\\nhackerearth\\nhacker\\nhackerearti\\nwow\\n...
none
{ "id": "alien-language", "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": "Piegirl was asked to implement two table join operat...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n2 6\\n3 100\\n\", \"2 3\\n10 10\\n1 1 1\\n\", \"10 10\\n269584761 865524829 265226347 963092340 261501474 16861445 221090297 746538035 842020225 649641719\\n49728483 423679832 107851851 179960003 345895125 400584885 460489835 377856735 506736683 676996548\\n\", \"3 4\\n3373699...
rating_1601-1900
{ "id": "457_B. Distributed Join", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are times you recall a good old friend and eve...
code
{ "ground_truth": "{\"inputs\": [\"6 0\\n0 1 1 2 3 2\", \"10 1\\n0 1 0 3 4 5 2 3 7 0\", \"2 2\\n0 1\", \"1 1\\n0\", \"5 2\\n0 1 2 3 1\", \"30 1\\n0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 2 0 0 0 0 0 2 1 0\", \"100 5\\n0 1 1 1 0 5 6 6 8 8 9 11 12 11 8 0 0 14 6 16 7 21 15 23 15 24 0 0 0 28 0 29 26 27 19 0 0 21 37 32 4...
rating_1201-1400
{ "id": "928B", "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": "Little Ashish is doing internship at multiple places...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n5\\n13\\n\", \"3\\n1\\n5\\n13\\n\", \"5\\n1\\n2\\n3\\n4\\n5\\n\", \"1\\n9999999999999999\\n\", \"3\\n9\\n16\\n25\\n\", \"5\\n50\\n100\\n150\\n200\\n250\\n\", \"1\\n10000000000000000\\n\", \"4\\n1\\n4\\n9\\n16\\n\", \"2\\n10\\n20\\n\", \"4\\n10\\n100\\n1000\\n10000\\n\", \"2\...
MEDIUM_HARD
{ "id": "taco-test-709", "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 have n problems. You have estimated the difficul...
code
{ "ground_truth": "{\"inputs\": [\"4 40 50 10\\n10 20 30 25\\n\", \"5 25 35 10\\n10 10 20 10 20\\n\", \"3 5 6 1\\n1 2 3\\n\", \"15 2572491 5084070 823435\\n570344 78552 775918 501843 844935 71141 331498 636557 435494 715447 992666 831188 28969 171046 989614\\n\", \"10 159699 10967276 3542\\n998862 999751 995306 99264...
rating_1201-1400
{ "id": "550_B. Preparing Olympiad", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The student council has a shared document file. Ever...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nTMTTTT\\n6\\nTTMMTT\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nMTTTTT\\n6\\nTTMMTT\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTMTMTT\\n6\\nMTTTTT\\n6\\nTTMTTM\\n\", \"5\\n3\\nTMT\\n3\\nMTT\\n6\\nTTTMMT\\n6\\nTMTTTT\\n6\\nTTMMTT\\n\", \"5\\n3\\...
rating_<=1200
{ "id": "1509_B. TMT Document", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "It is raining heavily. But this is the first day for...
code
{ "ground_truth": "{\"inputs\": [\"3 7\\n2 2\\n2 3\\n2 4\\n\", \"2 2\\n6 4\\n9 5\\n\", \"5 5\\n3 3\\n2 5\\n5 6\\n4 9\\n6 1\\n\", \"2 101\\n102 69\\n1 5\\n\", \"2 100000\\n99999 99999\\n99997 6\\n\", \"2 5\\n8 10\\n1 8\\n\", \"10 97\\n92046 16\\n97376 17\\n97672 4\\n99176 17\\n96777 20\\n93319 13\\n95660 20\\n92136 8\...
rating_<=1200
{ "id": "1153_A. Serval and Bus", "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": "You are given two integers *n* and *k*. Find *k*-th ...
code
{ "ground_truth": "{\"inputs\": [\"4 2\", \"5 3\", \"12 5\", \"1 1\", \"866421317361600 26880\", \"866421317361600 26881\", \"1000000000000000 1000000000\", \"1000000000000000 100\", \"1 2\", \"4 3\", \"4 4\", \"9 3\", \"21 3\", \"67280421310721 1\", \"6 3\", \"3 3\", \"16 3\", \"1 1000\", \"16 4\", \"36 8\", \"49 4\...
rating_1201-1400
{ "id": "762A", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given three strings S, oldW and newW. Find all occurr...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"xxforxx xx for xx\\\"\\noldW = \\\"xx\\\"\\nnewW = \\\"Geeks\\\"\", \"S = \\\"india is the xx country\\\"\\noldW = \\\"xx\\\"\\nnewW = \\\"best\\\"\"], \"outputs\": [\"\\\"geeksforgeeks geeks for geeks\\\"\", \"\\\"india is the best country\\\"\"]}", "style": "rule" }
EASY
{ "id": "taco-train-10913", "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 string S consisting of the characters 0, 1 an...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"01212\\\"\", \"S = \\\"12121\\\"\"], \"outputs\": [\"3\", \"-1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4610", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "One Big Software Company has n employees numbered fr...
code
{ "ground_truth": "{\"inputs\": [\"7\\n-1 3\\n1 2\\n1 1\\n1 4\\n4 5\\n4 3\\n5 2\\n\", \"20\\n-1 100\\n1 35\\n1 22\\n1 28\\n1 2\\n1 8\\n1 17\\n1 50\\n5 37\\n1 25\\n1 29\\n5 21\\n4 16\\n2 39\\n1 41\\n3 28\\n3 30\\n2 36\\n2 26\\n14 17\\n\", \"2\\n-1 1\\n1 2\\n\", \"3\\n-1 1\\n1 2\\n1 3\\n\", \"4\\n-1 1\\n1 100\\n1 100\\...
rating_>1900
{ "id": "533_B. Work Group", "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": "For his computer science class, Jacob builds a model...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n3 6 1 4 2\\n1 2\\n2 4\\n2 5\\n1 3\\n\", \"4 2\\n1 5 5 5\\n1 2\\n1 3\\n1 4\\n\", \"2 1\\n1 100000\\n2 1\\n\", \"2 2\\n1 1000000\\n1 2\\n\", \"10 4\\n104325 153357 265088 777795 337716 557321 702646 734430 464449 744072\\n9 4\\n8 1\\n10 7\\n8 6\\n7 9\\n8 2\\n3 5\\n8 3\\n10 8\\n\...
VERY_HARD
{ "id": "taco-train-12867", "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": "Legends who were born in 90s remember Mario very wel...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n. . Q\\n. . $\\nM $ .\\n3\\nM . .\\n$ $ .\\nQ $ .\\n\\nSAMPLE\"], \"outputs\": [\"Case 1: 2 < 2 3 4 5 >\\nCase 2: -1\"]}", "style": "rule" }
none
{ "id": "mario-and-queen", "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": "Integers in Python can be as big as the bytes in you...
code
{ "ground_truth": "{\"inputs\": [\"9\\n29\\n7\\n27\\n\"], \"outputs\": [\"4710194409608608369201743232 \\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-16012", "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": "Polycarp has three sisters: Alice, Barbara, and Cere...
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 3 2 8\\n100 101 102 105\\n3 2 1 100000000\\n10 20 15 14\\n101 101 101 3\\n\", \"1\\n1 1 1 1111\\n\", \"1\\n3 798 437 1804\\n\", \"1\\n3 798 437 1804\\n\", \"1\\n1 1 1 1111\\n\", \"1\\n3 1170 437 1804\\n\", \"5\\n5 3 2 8\\n100 101 102 105\\n3 2 1 100000000\\n10 20 15 14\\n001 1...
EASY
{ "id": "taco-train-19946", "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": "Driving through the Irish countryside, one frequentl...
code
{ "ground_truth": "{\"inputs\": [\"4 12\\n1 2 4 5\\n6 8 12 18 26 28 30 34 36 37 39 40\\n\", \"5 10\\n1 2 3 4 5\\n0 1 2 3 4 5 6 7 8 9\\n\", \"3 6\\n1 2 4\\n11 12 15 19 24 30\\n\", \"2 3\\n1123456789000 1123456789007\\n5 8 13\\n\"], \"outputs\": [\"2\\n1 2\\n\", \"1\\n1\\n\", \"0\\n\\n\", \"2\\n3 5\\n\"]}", "style": ...
EASY
{ "id": "taco-train-12868", "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": "HackerLand is a country with $n$ beautiful cities an...
code
{ "ground_truth": "{\"inputs\": [\"7 6 1\\n1 1 4 5 1 3 2\\n1 2 3\\n2 6 2\\n2 3 4\\n3 4 3\\n2 4 9\\n5 7 9\\n1 2 4\\n\"], \"outputs\": [\"4\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-2448", "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": "Geek wants to climb from the 0th stair to the (n-1)th...
code
{ "ground_truth": "{\"inputs\": [\"n = 4\\r\\nheight = {10 20 30 10}\"], \"outputs\": [\"20\"]}", "style": "rule" }
EASY
{ "id": "taco-train-787", "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": "John has just bought a new car and is planning a jou...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\\n\", \"3\\n1 2\\n2 3\\n\", \"4\\n1 2\\n2 3\\n3 4\\n\", \"4\\n1 2\\n2 3\\n3 4\\n\", \"4\\n1 2\\n1 3\\n3 4\\n\", \"2\\n2 1\\n\", \"3\\n1 2\\n1 3\\n\", \"4\\n1 2\\n2 3\\n2 4\\n\", \"4\\n1 4\\n2 3\\n3 4\\n\", \"4\\n1 4\\n2 1\\n3 4\\n\", \"3\\n1 3\\n2 3\\n\", \"3\\n1 3\\n2 1\\n\...
HARD
{ "id": "taco-train-7699", "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": "F: Transparent mahjong tiles\n\nYou will play mahjon...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 1 3 3 3 5 5 5 7 7 7 9\", \"4\\n1 1 2 3 3 3 5 5 5 7 7 7 9\", \"4\\n1 1 1 3 3 3 5 5 5 7 7 7 7\", \"4\\n1 1 2 3 2 3 5 5 5 7 7 7 9\", \"4\\n1 1 2 3 3 1 5 6 5 7 7 7 7\", \"4\\n1 1 2 3 3 1 2 6 5 7 7 7 7\", \"4\\n1 1 2 3 3 2 2 6 5 7 7 7 7\", \"4\\n2 1 2 3 3 1 5 6 5 7 7 7 7\", \"4\\...
none
{ "id": "p01536 Transparent Mahjong", "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": "---\n\n# Hint\n\n\nThis Kata is an extension of the e...
code
{ "ground_truth": "{\"fn_name\": \"tv_remote\", \"inputs\": [[\"Too Easy?\"], [\"does\"], [\"your\"], [\"solution\"], [\"work\"], [\"for\"], [\"these\"], [\"words\"], [\"DOES\"], [\"YOUR\"], [\"SOLUTION\"], [\"WORK\"], [\"FOR\"], [\"THESE\"], [\"WORDS\"], [\"^does^\"], [\"$your$\"], [\"#solution#\"], [\"\\u00bfwork\\...
EASY
{ "id": "taco-train-3640", "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": "Arjit has his own printing press, Bainik Dhaskar (BD...
code
{ "ground_truth": "{\"inputs\": [\"3\\nbbbb\\naaa\\nzxewya\\nabcd\\nac\\nzzzb\\n\\nSAMPLE\", \"3\\nbbbb\\naaa\\nzxewya\\nabcd\\nca\\nzzzb\\n\\nSAMPLE\", \"3\\nbbbb\\naaa\\nzxewya\\ncbad\\nca\\nzzza\\n\\nSAMPLE\", \"3\\nbbbb\\naaa\\nzxewya\\ncabe\\nac\\nzzza\\n\\nSAMPLE\", \"3\\nbbbb\\naaa\\nzxewya\\nbbcd\\nca\\nzzzb\...
none
{ "id": "arjit-and-printing-press", "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": "As behooves any intelligent schoolboy, Kevin Sun is ...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n\", \"5 4\\n\", \"69833 569\\n\", \"6907 2590\\n\", \"463 408\\n\", \"95531 94787\\n\", \"13 4\\n\", \"807689 9869\\n\", \"4649 4648\\n\", \"437071 24705\\n\", \"7 2\\n\", \"40867 37466\\n\", \"375103 52131\\n\", \"203317 12108\\n\", \"613463 269592\\n\", \"5 3\\n\", \"5 0\\n\...
rating_1601-1900
{ "id": "603_B. Moodular Arithmetic", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n2\\n3\"], \"outputs\": [\"2\\n12\\n36\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-4181", "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": "Alan decided to get in shape for the summer, so he c...
code
{ "ground_truth": "{\"inputs\": [\"5 10000\\n10000 30000 30000 40000 20000\\n20000\\n5 2 8 3 6\\n\", \"5 10000\\n10000 40000 30000 30000 20000\\n10000\\n5 2 8 3 6\\n\", \"5 49\\n22 23 11 17 49\\n50\\n102 55 77 34 977\\n\", \"5 1\\n1 1 1 2 9\\n1000000000\\n10 20 30 40 50\\n\", \"5 49\\n22 23 11 17 49\\n50\\n102 55 77 ...
rating_1401-1600
{ "id": "1218_F. Workout plan", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "*Inspired by the [Fold an Array](https://www.codewars...
code
{ "ground_truth": "{\"fn_name\": \"split_and_add\", \"inputs\": [[[1, 2, 3, 4, 5], 2], [[1, 2, 3, 4, 5], 3], [[15], 3], [[1, 2, 3, 4], 1], [[1, 2, 3, 4, 5, 6], 20], [[32, 45, 43, 23, 54, 23, 54, 34], 2], [[32, 45, 43, 23, 54, 23, 54, 34], 0], [[3, 234, 25, 345, 45, 34, 234, 235, 345], 3], [[3, 234, 25, 345, 45, 34, 2...
EASY
{ "id": "taco-train-11579", "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": "Vasily has a deck of cards consisting of n cards. Th...
code
{ "ground_truth": "{\"inputs\": [\"4\\n6 3 1 2\\n\", \"1\\n1000\\n\", \"7\\n3 3 3 3 3 3 3\\n\", \"64\\n826 142 89 337 897 891 1004 704 281 644 910 852 147 193 289 384 625 695 416 944 162 939 164 1047 359 114 499 99 713 300 268 316 256 404 852 496 373 322 716 202 689 857 936 806 556 153 137 863 1047 678 564 474 282 13...
MEDIUM_HARD
{ "id": "taco-train-1704", "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": "Consider an $n \\times m$ matrix of ones and zeros. ...
code
{ "ground_truth": "{\"inputs\": [\"0110\\n1001\\n\", \"0\\n1\\n\", \"11\\n0110\\n\"], \"outputs\": [\"1111\\n0111\\n1110\\n1111\\n\", \"-1\\n\", \"1011\\n1101\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-20581", "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 a string $s$ of 0's and 1's. You are a...
code
{ "ground_truth": "{\"inputs\": [\"3\\n100101\\n1100011\\n10101010\\n\", \"2\\n0\\n1\\n\", \"4\\n00\\n10\\n01\\n11\\n\", \"8\\n000\\n100\\n010\\n110\\n001\\n101\\n011\\n111\\n\", \"16\\n0000\\n1000\\n0100\\n1100\\n0010\\n1010\\n0110\\n1110\\n0001\\n1001\\n0101\\n1101\\n0011\\n1011\\n0111\\n1111\\n\", \"32\\n00000\\n1...
VERY_HARD
{ "id": "taco-train-16738", "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": "This problem is a reverse case of the problem “Help ...
code
{ "ground_truth": "{\"inputs\": [\"White: Ke1,Qd1,Ra1,Rh1,Bc1,Bf1,Nb1,a2,c2,d2,f2,g2,h2,a3,e4\\nBlack: Ke8,Qd8,Ra8,Rh8,Bc8,Ng8,Nc6,a7,b7,c7,d7,e7,f7,h7,h6\\n\", \"White: \\nBlack: Kh5,Ke1\\n\"], \"outputs\": [\"+---+---+---+---+---+---+---+---+\\n|.r.|:::|.b.|:q:|.k.|:::|.n.|:r:|\\n+---+---+---+---+---+---+---+---+\\...
EASY
{ "id": "taco-train-22699", "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": "Yes, we know $\\ldots $ we’ve used Challenge $24$ be...
code
{ "ground_truth": "{\"inputs\": [\"3 5 5 2\\n\", \"1 1 1 1\\n\"], \"outputs\": [\"1\\n\", \"impossible\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-13741", "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": "Pandaland is a country & has N cities inside it. The...
code
{ "ground_truth": "{\"inputs\": [\"10\\n10 1\\n3 2\\n5 3\\n10 4\\n5 6\\n5 7\\n10 8\\n1 9\\n6 10\", \"100\\n90 1\\n13 2\\n6 3\\n32 4\\n57 5\\n48 6\\n6 7\\n69 8\\n68 9\\n5 10\\n70 11\\n56 12\\n36 13\\n26 14\\n75 15\\n7 16\\n66 17\\n71 18\\n8 19\\n77 20\\n28 21\\n48 22\\n34 23\\n31 24\\n17 25\\n48 26\\n47 27\\n68 28\\n6...
EASY
{ "id": "taco-train-341", "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": "As a professional private tutor, Kuroni has to gathe...
code
{ "ground_truth": "{\"inputs\": [\"5 6\\n0 6\\n0 6\\n2 5\\n6 6\\n4 6\\n1\\n3 3\\n30\\n\", \"5 4\\n2 4\\n2 3\\n1 1\\n0 1\\n0 0\\n1\\n4 1\\n7\\n\", \"5 4\\n2 3\\n2 3\\n4 4\\n2 3\\n2 3\\n2\\n1 5\\n4 2\\n16\\n\", \"5 5\\n1 3\\n3 4\\n2 3\\n2 3\\n2 3\\n1\\n5 1\\n13\\n\", \"5 4\\n3 4\\n4 4\\n3 4\\n4 4\\n3 4\\n4\\n2 5\\n4 5\...
rating_>1900
{ "id": "1305_H. Kuroni the Private Tutor", "rating": 3500, "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": "\"Eat a beaver, save a tree!\" — That will be the mo...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 3 1 3 2\\n2 5\\n3 4\\n4 5\\n1 5\\n4\\n\", \"3\\n2 1 1\\n3 2\\n1 2\\n3\\n\", \"1\\n6\\n1\\n\", \"5\\n1 1 1 5 5\\n1 2\\n1 4\\n4 5\\n1 3\\n1\\n\", \"15\\n1 2 1 2 3 3 1 1 2 1 1 1 1 2 2\\n15 2\\n13 5\\n7 12\\n6 7\\n1 3\\n10 1\\n2 11\\n9 10\\n12 3\\n11 1\\n8 11\\n14 5\\n4 14\\n5 7\\...
rating_>1900
{ "id": "77_C. Beavermuncher-0xFF", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "# Task\n A ciphertext alphabet is obtained from the p...
code
{ "ground_truth": "{\"fn_name\": \"is_substitution_cipher\", \"inputs\": [[\"aacb\", \"aabc\"], [\"aa\", \"bc\"], [\"aaxxaaz\", \"aazzaay\"], [\"aaxyaa\", \"aazzaa\"], [\"aazzaa\", \"aaxyaa\"], [\"jpeuizmi\", \"mxxcwriq\"]], \"outputs\": [[true], [false], [true], [false], [false], [false]]}", "style": "rule" }
EASY
{ "id": "taco-train-4343", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese and Ru...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 3\\n3 5\\n0 0\"], \"outputs\": [\"YES\\nNO\\nYES\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-17185", "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": "Summer is coming! It's time for Iahub and Iahubina t...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n100 100 100\\n100 1 100\\n100 100 100\\n\", \"3 3\\n0 0 0\\n0 10000 0\\n0 0 0\\n\", \"3 3\\n1 10 1\\n1 10 1\\n1 10 1\\n\", \"3 3\\n0 0 0\\n0 100 0\\n0 0 0\\n\", \"4 5\\n87882 40786 3691 85313 46694\\n28884 16067 3242 97367 78518\\n4250 35501 9780 14435 19004\\n64673 65438 5697...
rating_1401-1600
{ "id": "430_D. Working out", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Write a function that takes two arguments, and return...
code
{ "ground_truth": "{\"fn_name\": \"hot_singles\", \"inputs\": [[[\"tartar\", \"blanket\", \"domino\"], [\"blanket\"]], [[77, \"basketweave\"], [78, 42, \"basketweave\"]], [[100, 45, \"ciao\"], [100, 2, 3, 45, 5]], [[10, 200, 30], [10, 20, 3, 4, 5, 5, 5, 200]], [[1, 2, 3, 3], [3, 2, 1, 4, 5, 4]]], \"outputs\": [[[\"ta...
EASY
{ "id": "taco-train-11004", "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 a captain of a ship. Initially you are standing ...
code
{ "ground_truth": "{\"inputs\": [\"0 0\\n4 6\\n3\\nUUU\\n\", \"0 3\\n0 0\\n3\\nUDD\\n\", \"0 0\\n0 1\\n1\\nL\\n\", \"0 0\\n0 1\\n2\\nLU\\n\", \"0 0\\n1000000000 1000000000\\n2\\nDR\\n\", \"0 1\\n2 1\\n1\\nR\\n\", \"0 1\\n2 1\\n1\\nR\\n\", \"0 0\\n0 1\\n2\\nLU\\n\", \"0 0\\n1000000000 1000000000\\n2\\nDR\\n\", \"1 0\\...
HARD
{ "id": "taco-train-8266", "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": "Polycarpus got an internship in one well-known socia...
code
{ "ground_truth": "{\"inputs\": [\"4 2 10\\n17:05:53\\n17:05:58\\n17:06:01\\n22:39:47\\n\", \"1 2 86400\\n00:00:00\\n\", \"5 2 40000\\n06:30:57\\n07:27:25\\n09:10:21\\n11:05:03\\n12:42:37\\n\", \"7 4 30000\\n05:08:54\\n05:35:53\\n06:03:20\\n06:17:50\\n09:29:46\\n11:35:29\\n14:49:02\\n\", \"10 3 30000\\n00:06:54\\n00:...
HARD
{ "id": "taco-train-15896", "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 two segments $[l_1; r_1]$ and $[l_2; r...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 1 2\\n2 6 3 4\\n2 4 1 3\\n1 2 1 3\\n1 4 5 8\\n\", \"1\\n1 2 1 2\\n\", \"1\\n233 233333 123 456\\n\", \"1\\n233 233333 123 456\\n\", \"1\\n1 2 1 2\\n\", \"5\\n1 2 1 2\\n2 6 3 4\\n2 4 1 3\\n1 2 1 3\\n1 4 5 8\\n\", \"1\\n233 233333 79 456\\n\", \"1\\n1 2 0 2\\n\", \"5\\n1 2 1 2...
EASY
{ "id": "taco-train-3106", "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 classic programming language of Bitland is Bit++...
code
{ "ground_truth": "{\"inputs\": [\"1\\n++X\\n\", \"2\\nX++\\n--X\\n\", \"3\\n++X\\n++X\\n++X\\n\", \"2\\n--X\\n--X\\n\", \"5\\n++X\\n--X\\n++X\\n--X\\n--X\\n\", \"28\\nX--\\n++X\\nX++\\nX++\\nX++\\n--X\\n--X\\nX++\\nX--\\n++X\\nX++\\n--X\\nX--\\nX++\\nX--\\n++X\\n++X\\nX++\\nX++\\nX++\\nX++\\n--X\\n++X\\n--X\\n--X\\n...
EASY
{ "id": "taco-train-15455", "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": "Mahmoud wants to write a new dictionary that contain...
code
{ "ground_truth": "{\"inputs\": [\"3 3 4\\nhate love like\\n1 love like\\n2 love hate\\n1 hate like\\nlove like\\nlove hate\\nlike hate\\nhate like\", \"8 6 5\\nhi welcome hello ihateyou goaway dog cat rat\\n1 hi welcome\\n1 ihateyou goaway\\n2 hello ihateyou\\n2 hi goaway\\n2 hi hello\\n1 hi hello\\ndog cat\\ndog hi...
rating_>1900
{ "id": "766D", "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": "You are given an array nums of non-negative integers....
code
{ "ground_truth": "{\"fn_name\": \"specialArray\", \"inputs\": [[[3, 5]]], \"outputs\": [2]}", "style": "rule" }
EASY
{ "id": "taco-train-22519", "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": "You have *n* devices that you want to use simultaneo...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n2 2\\n2 1000\", \"1 100\\n1 1\", \"3 5\\n4 3\\n5 2\\n6 1\", \"1 1\\n1 87\", \"1 1\\n100 77\", \"5 10\\n3 81\\n3 49\\n1 20\\n1 12\\n1 30\", \"5 10\\n4 3\\n1 54\\n2 57\\n2 31\\n1 99\", \"5 10\\n2 81\\n3 31\\n4 49\\n1 35\\n1 67\", \"10 1\\n1 92\\n1 92\\n1 92\\n1 92\\n1 92\\n1 92\...
rating_1601-1900
{ "id": "772A", "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": "The subsequence is a sequence that can be derived fr...
code
{ "ground_truth": "{\"inputs\": [\"2\\n6\\n1\\n\", \"10\\n141\\n142\\n143\\n144\\n145\\n146\\n147\\n148\\n149\\n150\\n\", \"10\\n121\\n122\\n123\\n124\\n125\\n126\\n127\\n128\\n129\\n130\\n\", \"1\\n999972121\\n\", \"10\\n271\\n272\\n273\\n274\\n275\\n276\\n277\\n278\\n279\\n280\\n\", \"1\\n999962735\\n\", \"10\\n281...
rating_1601-1900
{ "id": "1202_D. Print a 1337-string...", "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": "Sorting arrays is traditionally associated with high...
code
{ "ground_truth": "{\"inputs\": [\"5\\n7\\n1\\n9\\n7\\n3\\n\", \"10\\n60\\n1\\n60\\n1\\n60\\n1\\n60\\n1\\n60\\n1\\n\"], \"outputs\": [\"1 3 7 7 9 \\n\", \"1 1 1 1 1 60 60 60 60 60 \\n\"]}", "style": "rule" }
rating_>1900
{ "id": "130_I. Array sorting", "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 problem statements in [Russian], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"7\\n7\\n10\\n26\\n242\\n129\\n394857629456789876\\n353872815358409997\"], \"outputs\": [\"8\\n9\\n25\\n243\\n128\\n394857628993920400\\n353872815358410000\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-20736", "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": "Patrick has just finished writing a message to his s...
code
{ "ground_truth": "{\"inputs\": [\"OYPROSTIYAOPECHATALSYAPRIVETSTASYA\\n\", \"helloworld\\n\", \"PRuvetSTAaYA\\n\", \"yysxwlyqboatikfnpxczmpijziiojbvadlfozjqldssffcxdegyxfrvohoxvgsrvlzjlkcuffoeisrpvagxtbkapkpzcafadzzjd\\n\", \"FSFlNEelYY\\n\", \"lgtyasficu\\n\", \"MMVESdOCALHJCTBTUWWQRGUUVTTTABKKAAdIINAdKLRLLVLODHDXD...
rating_1201-1400
{ "id": "180_C. Letter", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Unscramble the eggs.\n\nThe string given to your func...
code
{ "ground_truth": "{\"fn_name\": \"unscramble_eggs\", \"inputs\": [[\"ceggodegge heggeregge\"], [\"FeggUNegg KeggATeggA\"], [\"egegggegg\"], [\"Heggeleggleggo weggoreggleggdegg\"], [\"seggceggreggameggbeggleggedegg egegggeggsegg\"], [\"egegggeggyegg beggreggeadegg\"], [\"veggegeggyeggmeggitegge onegg teggoaseggtegg\"...
EASY
{ "id": "taco-train-15416", "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 valid XML document, and you have to ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n<feed xml:lang='en'>\\n <title>HackerRank</title>\\n <subtitle lang='en'>Programming challenges</subtitle>\\n <link rel='alternate' type='text/html' href='http://hackerrank.com/'/>\\n <updated>2013-12-25T12:00:00</updated>\\n</feed>\\n\"], \"outputs\": [\"5\\n\"]}", "s...
EASY
{ "id": "taco-train-3507", "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": "It is known that passages in Singer house are comple...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"2\\n\", \"20\\n\", \"9\\n\", \"181\\n\", \"261\\n\", \"8\\n\", \"121\\n\", \"351\\n\", \"71\\n\", \"141\\n\", \"361\\n\", \"1\\n\", \"61\\n\", \"301\\n\", \"392\\n\", \"10\\n\", \"321\\n\", \"161\\n\", \"151\\n\", \"41\\n\", \"251\\n\", \"241\\n\", \"395\\n\", \"271\\n\", ...
rating_>1900
{ "id": "830_D. Singer House", "rating": 2800, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are making your very own boardgame. The game is p...
code
{ "ground_truth": "{\"fn_name\": \"fight_resolve\", \"inputs\": [[\"K\", \"A\"], [\"S\", \"A\"], [\"k\", \"s\"], [\"a\", \"a\"], [\"k\", \"A\"], [\"K\", \"a\"]], \"outputs\": [[-1], [-1], [-1], [-1], [\"k\"], [\"K\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-3137", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In the city of Ultima Thule job applicants are often...
code
{ "ground_truth": "{\"inputs\": [\"####\\n....\\n####\\n....\\n\", \"####\\n.#..\\n####\\n....\\n\", \".#..\\n###.\\n.#.#\\n..#.\\n\", \"#..#\\n.##.\\n.##.\\n#..#\\n\", \"....\\n....\\n....\\n...#\\n\", \"....\\n....\\n....\\n....\\n\", \".#.#\\n#.#.\\n.#.#\\n#.##\\n\", \"##..\\n##..\\n..##\\n..##\\n\", \"####\\n#......
rating_<=1200
{ "id": "287_A. IQ Test", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "This problem is different from the easy version. In ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5\\nsouse\\nhouhe\\n3\\ncat\\ndog\\n2\\naa\\naz\\n3\\nabc\\nbca\\n\", \"4\\n5\\nsouse\\nhouhe\\n3\\ncat\\ndog\\n2\\naa\\naz\\n3\\nabc\\nbca\\n\", \"4\\n5\\nsouse\\nhouhe\\n3\\ncat\\ndog\\n2\\naa\\nza\\n3\\nabc\\nbca\\n\", \"4\\n5\\nsouse\\nhouhf\\n3\\ncat\\ndog\\n2\\naa\\naz\\n3...
rating_1401-1600
{ "id": "1243_B2. Character Swap (Hard Version)", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are installing a billboard and want it to have th...
code
{ "ground_truth": "{\"fn_name\": \"tallestBillboard\", \"inputs\": [[[1, 2, 3, 6]]], \"outputs\": [6]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-23201", "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": "There are n glasses on the table numbered 1, …, n. T...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6 5\\n6 5\\n10 2\\n\", \"100\\n1 0\\n1 0\\n1 0\\n1 0\\n1 0\\n1 1\\n1 0\\n1 0\\n1 0\\n1 1\\n1 0\\n1 0\\n1 0\\n1 0\\n1 0\\n1 0\\n1 0\\n1 0\\n1 1\\n1 0\\n1 0\\n1 0\\n1 0\\n1 1\\n1 0\\n1 1\\n1 0\\n1 1\\n1 1\\n1 0\\n1 0\\n1 0\\n1 1\\n1 0\\n1 0\\n1 0\\n1 1\\n1 1\\n1 0\\n1 1\\n1 0\\n1 ...
rating_>1900
{ "id": "1458_B. Glass Half Spilled", "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": "For encrypting strings this region of chars is given ...
code
{ "ground_truth": "{\"fn_name\": \"decrypt\", \"inputs\": [[\"$-Wy,dM79H'i'o$n0C&I.ZTcMJw5vPlZc Hn!krhlaa:khV mkL;gvtP-S7Rt1Vp2RV:wV9VuhO Iz3dqb.U0w\"], [\"5MyQa9p0riYplZc\"], [\"5MyQa79H'ijQaw!Ns6jVtpmnlZ.V6p\"], [\"\"], [null]], \"outputs\": [[\"Do the kata \\\"Kobayashi-Maru-Test!\\\" Endless fun and excitement wh...
EASY
{ "id": "taco-train-4195", "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're researching friendships between groups of $n$...
code
{ "ground_truth": "{\"inputs\": [\"1\\n5 4\\n1 2\\n3 2\\n4 2\\n4 3\\n\"], \"outputs\": [\"32\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-17219", "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": "A file contains data as follows : {Student name, mark...
code
{ "ground_truth": "{\"inputs\": [\"N = 2\\nS = {\\\"Shrikanth 20 30 10\\\", \\\"Ram 100 50 10\\\"}\", \"N = 3\\nS = {\\\"Adam 50 10 40\\\", \\\"Rocky 100 90 10\\\", \\\"Suresh 10 90 100\\\"}\"], \"outputs\": [\"Ram 53\", \"Rocky Suresh 66\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9055", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a bookshelf which can fit n books. The i-th...
code
{ "ground_truth": "{\"inputs\": [\"5\\n7\\n0 0 1 0 1 0 1\\n3\\n1 0 0\\n5\\n1 1 0 0 1\\n6\\n1 0 0 0 0 1\\n5\\n1 1 0 1 1\\n\", \"1\\n8\\n0 0 0 1 1 1 1 1\\n\", \"1\\n8\\n0 0 0 1 1 0 1 1\\n\", \"5\\n7\\n0 0 1 0 1 0 1\\n3\\n1 0 0\\n5\\n1 1 0 1 1\\n6\\n1 0 0 0 0 1\\n5\\n1 1 0 1 1\\n\", \"1\\n8\\n0 1 0 1 1 0 1 1\\n\", \"1\\...
rating_<=1200
{ "id": "1433_B. Yet Another Bookshelf", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "When you want to get the square of a binomial of two ...
code
{ "ground_truth": "{\"fn_name\": \"f\", \"inputs\": [[0], [1], [2], [3], [6], [10]], \"outputs\": [[[1, 1]], [[1, 2, 3]], [[1, 2, 4, 7]], [[1, 2, 4, 8, 15]], [[1, 2, 4, 8, 16, 32, 64, 127]], [[1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2047]]]}", "style": "rule" }
EASY
{ "id": "taco-train-8040", "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": "Some people will make friend requests. The list of th...
code
{ "ground_truth": "{\"fn_name\": \"numFriendRequests\", \"inputs\": [[[16, 16]]], \"outputs\": [2]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-24600", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A tennis tournament with *n* participants is running...
code
{ "ground_truth": "{\"inputs\": [\"5 2 3\", \"8 2 4\", \"10 1 500\", \"20 500 1\", \"100 123 99\", \"500 1 1\", \"500 500 500\", \"500 237 474\", \"1 2 3\", \"1 2 133\", \"1 2 100\", \"1 3 4\", \"1 10 15\", \"1 1 1\", \"1 2 5\", \"1 500 500\", \"1 3 8\", \"10 10 10\", \"1 3 5\", \"1 2 1\", \"1 2 4\", \"1 10 10\", \"1...
rating_<=1200
{ "id": "628A", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "On Internet sites usually the registration form auto...
code
{ "ground_truth": "{\"inputs\": [\"SPIT_Coders_Club_2.0\", \"abcdefgh\", \"0.2_bulC_sredoC_TIPS\", \"abcdeegh\", \"0.2_bumC_sredoC_TIPS\", \"ebcdaegh\", \"0.2_bumC_sredoC_SIPS\", \"ebceaegh\", \"C.2_bumC_sredo0_SIPS\", \"ebceaefh\", \"SPIS_0oders_Cmub_2.C\", \"hfeaecbe\", \"SPIS_1oders_Cmub_2.C\", \"hfdaecbe\", \"SQI...
none
{ "id": "spit3", "rating": 0, "split": "confidence_train", "sub_source": "none" }