data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
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": "Chloe, the same as Vladik, is a competitive programm...
code
{ "ground_truth": "{\"inputs\": [\"3 2\", \"4 8\", \"5 27\", \"7 44\", \"15 18432\", \"20 259676\", \"30 671088640\", \"38 137438953472\", \"1 1\", \"3 3\", \"4 12\", \"8 224\", \"13 1368\", \"16 49152\", \"19 1024\", \"24 15204352\", \"27 6586544\", \"31 536870912\", \"38 94489280512\", \"42 215268308020\", \"42 345...
rating_<=1200
{ "id": "743B", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a Binary Search Tree, find the sum of all leaf ...
code
{ "ground_truth": "{\"inputs\": [\"2\\r\\n\\r\\n6\\r\\n\\r\\n67 34 82 12 45 78\\r\\n\\r\\n1\\r\\n\\r\\n45\"], \"outputs\": [\"135\\r\\n\\r\\n45\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1306", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We define a spanning tree of a graph to be a BFS tre...
code
{ "ground_truth": "{\"inputs\": [\"8 9\\n1 2\\n1 3\\n1 4\\n2 7\\n3 5\\n3 6\\n4 8\\n2 3\\n3 4\\n\", \"4 4\\n1 2\\n2 3\\n3 4\\n1 4\\n\", \"6 7\\n1 2\\n1 3\\n2 4\\n3 4\\n3 5\\n4 6\\n5 6\\n\", \"5 6\\n1 2\\n1 4\\n2 3\\n3 4\\n2 5\\n3 5\\n\", \"1 0\\n\", \"8 9\\n1 2\\n1 3\\n2 4\\n2 7\\n3 5\\n3 6\\n4 8\\n2 3\\n3 4\\n\", \"4...
rating_>1900
{ "id": "1495_D. BFS Trees", "rating": 2600, "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": "Lets think of an infinite series of numbers such tha...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5 6\\n7\\n4 9\\n11\\n\\nSAMPLE\", \"10\\n844452700697263162 119646220083568392\\n617\\n624716331013886830 420232882599498616\\n263\\n371747750780382310 31328662274583882\\n151\\n155589359406144136 349833477687741817\\n263\\n890649303306320035 470504750916794312\\n509\\n172858306...
none
{ "id": "mystery-12", "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": "Motivation\n---------\n\nWhen compressing sequences o...
code
{ "ground_truth": "{\"fn_name\": \"encode\", \"inputs\": [[\"bananabar\"], [\"Humble Bundle\"], [\"Mellow Yellow\"]], \"outputs\": [[[\"nnbbraaaa\", 4]], [[\"e emnllbduuHB\", 2]], [[\"ww MYeelllloo\", 1]]]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-17347", "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": "In this problem you will have to deal with a real al...
code
{ "ground_truth": "{\"inputs\": [\"1 1 2.000000\\n1\\n1\\n1\", \"11 4 1.250000\\n9 11 7 5 15 6 6 6 6 6 6\\n8\\n4 5 6 7 8 9 10 11\", \"13 4 1.250000\\n3 3 3 3 3 20 3 3 3 3 3 3 3\\n10\\n4 5 6 7 8 9 10 11 12 13\", \"1 1 2.000000\\n4\\n1\\n1\", \"1 1 2.000000\\n1121\\n1\\n1\", \"1 1 2.000000\\n758432\\n1\\n1\", \"3 1 2.0...
rating_1401-1600
{ "id": "523B", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A magic island Geraldion, where Gerald lives, has it...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\", \"1\\n2\", \"10\\n371054 506438 397130 1 766759 208409 769264 549213 641270 771837\", \"10\\n635370 154890 909382 220996 276501 716105 538714 140162 171960 271264\", \"50\\n110876 835020 859879 999908 712969 788264 287153 921820 330355 499311 209594 484829 296329 94...
rating_<=1200
{ "id": "560A", "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": "Moscow is hosting a major international conference, ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n6 3 1 1 3 7\\n5\\n1 2 3 4 5\\n2 3 4 5 1\\n\", \"3\\n2 3 2\\n2\\n3 2\\n2 3\\n\", \"2\\n4 4\\n2\\n4 7\\n7 5\\n\", \"3\\n1 3 2\\n2\\n1 3\\n2 4\\n\", \"12\\n3 2 1 1 4 4 5 1 6 6 7 7\\n4\\n3 2 4 7\\n2 1 5 6\\n\", \"2\\n10 8\\n10\\n8 3 10 8 8 8 3 8 8 8\\n10 10 8 3 10 3 8 3 10 10\\n\", ...
rating_1201-1400
{ "id": "670_C. Cinema", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given four integers: H, W, h and w (1 ≤ h ≤ ...
code
{ "ground_truth": "{\"inputs\": [\"2 4 1 2\", \"3 4 2 3\", \"3 3 2 2\", \"0 4 1 2\", \"3 4 4 3\", \"4 3 2 2\", \"4 3 3 2\", \"3 6 4 2\", \"3 10 4 2\", \"5 10 6 2\", \"5 10 2 2\", \"2 4 4 1\", \"4 2 3 2\", \"1 4 4 2\", \"3 11 4 2\", \"3 15 4 2\", \"3 2 6 2\", \"9 10 6 2\", \"5 10 2 4\", \"2 5 1 4\", \"3 3 2 3\", \"4 2...
none
{ "id": "p03689 AtCoder Grand Contest 016 - +/- Rectangle", "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": "We start with a permutation $a_1, a_2, \\ldots, a_n$...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5 3\\n1 2 3 4 5\\n3 2 5\\n4 3\\n4 3 2 1\\n4 3 1\\n7 4\\n1 4 7 3 6 2 5\\n3 2 4 5\\n\", \"6\\n2 1\\n2 1\\n1\\n3 2\\n1 3 2\\n1 3\\n4 2\\n4 1 3 2\\n1 2\\n5 3\\n4 3 2 5 1\\n1 4 5\\n6 3\\n2 4 5 6 1 3\\n2 4 5\\n7 3\\n7 6 4 3 2 1 5\\n1 2 6\\n\", \"6\\n2 1\\n2 1\\n1\\n3 2\\n1 3 2\\n1 3\\...
MEDIUM_HARD
{ "id": "taco-train-6384", "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": "Soon after the Chunga-Changa island was discovered, ...
code
{ "ground_truth": "{\"inputs\": [\"6 8 2\\n\", \"5 4 3\\n\", \"5000000000000 6000000000000 10000000000000\\n\", \"2778787205 1763925790 48326734\\n\", \"582426543750017 789023129080207 4395672028302\\n\", \"0 0 1\\n\", \"1000000000000000000 999999999999999999 3\\n\", \"7 14 5\\n\", \"1 0 1\\n\", \"132940 345844 5\\n\...
rating_<=1200
{ "id": "1181_A. Chunga-Changa", "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": "Problem\n\nJennifer and Marian presented Carla with ...
code
{ "ground_truth": "{\"inputs\": [\"3\\nabc\\nxyz\", \"5\\naaabb\\nxyxyz\", \"3\\ncba\\nxyz\", \"5\\naaabb\\nxywyz\", \"3\\ncbb\\nxyz\", \"5\\naaacb\\nxywyz\", \"3\\ncbb\\nzyx\", \"5\\nbcaaa\\nxywyz\", \"3\\ndbb\\nzyx\", \"5\\nbcaaa\\nxywyy\", \"3\\ndbb\\nxyz\", \"5\\nbcaba\\nxywyy\", \"3\\ndbb\\nzyy\", \"5\\ncbaba\\n...
none
{ "id": "p01054 String Conversion", "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": "In this problem we'll use a stack which supports two...
code
{ "ground_truth": "{\"inputs\": [\"12+3*66*+\\n\", \"149\\n\"], \"outputs\": [\"45\\n\", \"9\\n\"]}", "style": "rule" }
rating_1601-1900
{ "id": "188_H. Stack", "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": "Given an array A[] of length N. For each index, i (1<...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\\narr[] = {4, 3, 3}\", \"N = 4\\narr[] = {4, 4, 3, 3}\"], \"outputs\": [\"{-1, 0, 2}\", \"{-2, 0, 0, 2}\"]}", "style": "rule" }
EASY
{ "id": "taco-train-306", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array A[] of N integers, where A[i] denotes ...
code
{ "ground_truth": "{\"inputs\": [\"A[] = {20, 15, 10, 17}\\r\\nM = 7\", \"A[] = {4, 42, 40, 26, 46}\\r\\nM = 20\"], \"outputs\": [\"15\", \"36\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-9965", "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": "Tetris is a popular computer game played in a field ...
code
{ "ground_truth": "{\"inputs\": [\"6 5\\n2 1 1 1 0 1\\n\", \"5 1\\n0 0 0 0 0\\n\", \"9 4\\n4 3 5 4 6 5 7 6 6\\n\"], \"outputs\": [\"5\\n\", \"7\\n\", \"1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-10818", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n1 1 4 1\\n3 4 2 1\\n7\\n5 4 5 4 5 4 5\\n3 2 4 7 2 5 9\"], \"outputs\": [\"3\\n-1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5906", "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 Takahashi Kingdom, which once existed, there are ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 1 3\\n1 0 2\\n3 2 0\\n\", \"3\\n0 1 3\\n1 0 1\\n3 1 0\\n\", \"5\\n0 21 18 11 28\\n21 0 13 10 26\\n18 13 0 23 13\\n11 10 23 0 17\\n28 26 13 17 0\\n\", \"3\\n0 1000000000 1000000000\\n1000000000 0 1000000000\\n1000000000 1000000000 0\\n\", \"3\\n0 1 3\\n1 0 1\\n3 0 0\", \"3\\n-1...
MEDIUM
{ "id": "taco-train-17434", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have recently found an array of N non-negative i...
code
{ "ground_truth": "{\"inputs\": [\"391 132\\n49926 50527 88235 44525 27775 34011 67567 87931 63104 84597 34859 60338 68157 54239 49338 78518 57175 79412 37245 37721 64001 65585 42851 55602 79589 43307 47274 35180 51399 32956 44261 55904 35814 70461 62649 41441 54056 46836 38254 52825 37617 46609 44074 48793 69079 515...
HARD
{ "id": "taco-train-11585", "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 string s consisting of only A’s and B’s. You ca...
code
{ "ground_truth": "{\"inputs\": [\"s = \\\"AA\\\"\", \"s = \\\"ABB\\\"\"], \"outputs\": [\"3\", \"5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19934", "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 order to make the \"Sea Battle\" game more intere...
code
{ "ground_truth": "{\"inputs\": [\"2 1 2 1\\n\", \"2 2 1 2\\n\", \"1 1 1 1\\n\", \"24 25 16 38\\n\", \"1000000 1000000 1000000 1000000\\n\", \"100000000 100000000 99999999 100000000\\n\", \"1000000 1000000 999999 1000000\\n\", \"23 1 12 2\\n\", \"1000000 1 1000000 1\\n\", \"100000000 1 100000000 1\\n\", \"18 3 8 15\\...
rating_<=1200
{ "id": "1131_A. Sea Battle", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Sorting \n\nOne common task for computers is to sort...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 4 6 8 3\\n\"], \"outputs\": [\"2 4 6 8 8 \\n2 4 6 6 8 \\n2 4 4 6 8 \\n2 3 4 6 8 \\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2093", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Little boy Igor wants to become a traveller. At firs...
code
{ "ground_truth": "{\"inputs\": [\"5 4\\n1 2\\n1 3\\n1 4\\n1 5\", \"5 3\\n1 2\\n2 3\\n4 5\", \"2 2\\n1 1\\n1 2\", \"4 5\\n1 4\\n3 4\\n1 2\\n2 3\\n2 4\", \"7 13\\n6 7\\n2 7\\n3 7\\n4 3\\n5 2\\n1 4\\n7 7\\n3 1\\n5 5\\n3 3\\n1 5\\n2 6\\n6 6\", \"100 10\\n87 73\\n15 71\\n14 33\\n1 4\\n20 80\\n65 67\\n36 36\\n25 4\\n22 21...
rating_>1900
{ "id": "788B", "rating": 2100, "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": "There are $n$ distinct points on a coordinate line, ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n3 5 4 7 10 12\", \"5\\n-1 2 5 8 11\", \"1\\n42\", \"3\\n0 -536870912 536870912\", \"2\\n536870912 -536870912\", \"3\\n1 2 3\", \"4\\n1 2 3 8\", \"2\\n1 2\", \"3\\n0 1 2\", \"2\\n-3 -2\", \"2\\n-4 -2\", \"2\\n2 1\", \"1\\n1\", \"3\\n0 2 6\", \"3\\n2 4 8\", \"2\\n1 0\", \"3\\n5 6 ...
rating_1601-1900
{ "id": "988D", "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": "Alice and Bob play a game. Initially they have a str...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 2\\nXX......XX...X\\n4 2\\nX...X.X..X\\n5 3\\n.......X..X\\n\", \"6\\n5 4\\n...............\\n5 4\\n...............X.....\\n5 4\\n...............X....\\n5 4\\n...............X.....X....\\n5 4\\n...................\\n5 4\\n...................X.....\\n\", \"7\\n240501 42869\\nXX...
VERY_HARD
{ "id": "taco-test-867", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Write a function that reverses the bits in an integer...
code
{ "ground_truth": "{\"fn_name\": \"reverse_bits\", \"inputs\": [[417], [267], [0], [2017], [1023], [1024]], \"outputs\": [[267], [417], [0], [1087], [1023], [1]]}", "style": "rule" }
EASY
{ "id": "taco-train-2909", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are a set of points S on the plane. This set d...
code
{ "ground_truth": "{\"inputs\": [\"10\\n30 30 -26 26\\n0 15 -36 36\\n-28 28 -34 34\\n10 10 0 4\\n-8 20 40 50\\n9 45 12 30\\n6 15 7 35\\n36 45 -8 20\\n-16 34 -4 34\\n4 34 8 17\\n\", \"10\\n-46 46 0 36\\n0 20 -24 48\\n-50 50 -49 49\\n-20 50 8 40\\n-15 30 14 28\\n4 10 -4 5\\n6 15 8 10\\n-20 50 -3 15\\n4 34 -16 34\\n16 3...
rating_>1900
{ "id": "372_E. Drawing Circles is Fun", "rating": 3000, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Old MacDonald had a farm, and on that farm she had a...
code
{ "ground_truth": "{\"inputs\": [\"16\\n\", \"5\\n\"], \"outputs\": [\"16\\n\", \"8.94427190999915878564\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7642", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n0 0\\n1 0\\n3\\n0 0 3\\n1 0 1\\n2 0 0\\n4\\n0 0 2 2\\n1 0 2 0\\n0 3 0 3\\n2 4 0 0\"], \"outputs\": [\"1\\n3\\n13\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-10443", "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": "Stack likes the number 3 a lot. \n\nHe has two non-n...
code
{ "ground_truth": "{\"inputs\": [\"2\\n0 343\\n1 1\\n\"], \"outputs\": [\"0\\n1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-25026", "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 BST and an integer. Find the least absolute d...
code
{ "ground_truth": "{\"inputs\": [\"10\\n / \\\\\\n 2 11\\n / \\\\ \\n 1 5\\n / \\\\\\n 3 6\\n \\\\\\n 4\\nK = 13\", \"8\\n / \\\\\\n 1 9\\n \\\\ \\\\\\n 4 10\\n /\\n 3\\nK = 9\"], \"outputs\": [\"2\", \"0\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-19029", "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": "Write a program which manipulates a sequence $A$ = {...
code
{ "ground_truth": "{\"inputs\": [\"6 7\\n0 1 3 1\\n0 2 4 -2\\n1 0 5\\n1 0 1\\n0 3 5 3\\n1 3 4\\n1 0 5\", \"6 7\\n0 1 3 1\\n0 2 4 -2\\n1 0 5\\n1 0 1\\n0 1 5 3\\n1 3 4\\n1 0 5\", \"6 7\\n0 0 3 1\\n0 2 4 -2\\n1 0 5\\n1 0 1\\n0 3 5 3\\n1 3 4\\n1 0 5\", \"6 7\\n0 1 3 1\\n0 2 4 0\\n1 0 5\\n1 0 1\\n0 3 5 3\\n1 3 4\\n1 0 5\"...
none
{ "id": "p02352 RMQ and RAQ", "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": "Shortly before the programming contest started, Bjar...
code
{ "ground_truth": "{\"inputs\": [\"a<bc<\\n\", \"foss<<rritun\\n\", \"a<a<a<aa<<\\n\"], \"outputs\": [\"b\\n\", \"forritun\\n\", \"\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13700", "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": "PolandBall is playing a game with EnemyBall. The rul...
code
{ "ground_truth": "{\"inputs\": [\"5 1\\npolandball\\nis\\na\\ncool\\ncharacter\\nnope\\n\", \"2 2\\nkremowka\\nwadowicka\\nkremowka\\nwiedenska\\n\", \"1 2\\na\\na\\nb\\n\", \"2 2\\na\\nb\\nb\\nc\\n\", \"2 1\\nc\\na\\na\\n\", \"3 3\\nab\\nbc\\ncd\\ncd\\ndf\\nfg\\n\", \"3 3\\nc\\na\\nb\\na\\nd\\ng\\n\", \"1 1\\naa\\n...
EASY
{ "id": "taco-test-431", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have an unsolved mystery this time too! \n\nInput...
code
{ "ground_truth": "{\"inputs\": [\"6\\n5 5\\n10 6\\n2 7\\n90 6\\n5 6\\n2 8\\n\\nSAMPLE\", \"200\\n694 7\\n656 5\\n724 5\\n398 5\\n392 8\\n399 6\\n302 8\\n188 7\\n542 5\\n90 7\\n969 6\\n424 8\\n61 7\\n778 6\\n358 5\\n706 5\\n336 5\\n241 7\\n87 5\\n664 8\\n32 8\\n627 8\\n809 8\\n919 8\\n885 8\\n124 6\\n244 7\\n132 5\\n...
none
{ "id": "mystery-2", "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": "Solve the mystery.\n\nInput :\nFirst line contains T...
code
{ "ground_truth": "{\"inputs\": [\"6\\n3\\n2 2 2\\n3\\n1 2 3\\n5\\n2 2 3 3 4\\n5\\n1 2 3 4 5\\n4\\n2 4 5 6\\n6\\n1 2 3 1 2 3\\n\\nSAMPLE\", \"10\\n10\\n9 83 61 91 57 0 89 87 83 68 \\n10\\n9 41 12 70 73 85 85 79 3 49 \\n10\\n25 14 34 85 24 19 0 13 72 15 \\n10\\n24 66 54 97 85 91 45 64 42 39 \\n10\\n44 39 78 94 54 81 3...
none
{ "id": "mystery-14", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Super Duper Secret Meeting of the Super Duper Se...
code
{ "ground_truth": "{\"inputs\": [\"5 2 6 3\\n2\\n6 2 2\\n6 5 3\\n\", \"2 5 4 2\\n3\\n3 1 2\\n5 3 1\\n1 3 2\\n\", \"-210 783 -260 833\\n10\\n406 551 1000\\n372 -373 999\\n-12 -532 999\\n371 -30 999\\n258 480 558\\n648 -957 1000\\n-716 654 473\\n156 813 366\\n-870 425 707\\n-288 -426 1000\\n\", \"0 0 1 1\\n1\\n-1 -1000...
rating_1201-1400
{ "id": "144_B. Meeting", "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": "Modern text editors usually show some information re...
code
{ "ground_truth": "{\"inputs\": [\"37\\n_Hello_Vasya(and_Petya)__bye_(and_OK)\", \"37\\n_a_(_b___c)__de_f(g_)__h__i(j_k_l)m__\", \"27\\n(LoooonG)__shOrt__(LoooonG)\", \"5\\n(___)\", \"254\\n()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()...
rating_<=1200
{ "id": "723B", "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": "The odd and even numbers are fighting against each ot...
code
{ "ground_truth": "{\"fn_name\": \"bits_battle\", \"inputs\": [[[5, 3, 14]], [[3, 8, 22, 15, 78]], [[]], [[1, 13, 16]]], \"outputs\": [[\"odds win\"], [\"evens win\"], [\"tie\"], [\"tie\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-8063", "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’ve just come out of a theatre after watching X-M...
code
{ "ground_truth": "{\"inputs\": [\"100\\n42 468\\n35 1 9 4\\n79 359\\n13 5 25 5\\n82 328\\n12 2 35 2\\n28 437\\n42 5 22 3\\n93 383\\n22 7 38 5\\n48 227\\n22 9 29 22\\n68 300\\n36 5 23 21\\n23 334\\n24 5 21 1\\n54 369\\n48 5 22 27\\n38 360\\n24 2 9 28\\n17 36\\n41 3 8 16\\n41 443\\n15 9 6 15\\n91 230\\n21 ...
EASY
{ "id": "taco-train-12813", "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 are given a text consisting of *n* lines. Each l...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 2 3\\nintel\\ncode\\nch allenge\", \"4\\n1 2 3 1\\na\\nbcdefghi\\njklmnopqrstu\\nvwxyz\", \"4\\n13 11 15 15\\nto be or not to be that is the question\\nwhether tis nobler in the mind to suffer\\nthe slings and arrows of outrageous fortune\\nor to take arms against a sea of tro...
rating_<=1200
{ "id": "722B", "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": "We have an H-by-W matrix. Let a_{ij} be the element ...
code
{ "ground_truth": "{\"inputs\": [\"2 5\\nabxba\\nabyba\", \"5 1\\nt\\nw\\ne\\ne\\nt\", \"2 2\\naa\\nbb\", \"1 1\\nz\", \"3 4\\naabb\\naabb\\naacc\", \"2 5\\nabxab\\nabyba\", \"1 1\\ny\", \"5 1\\nu\\nw\\ne\\ne\\nt\", \"2 2\\nba\\nbb\", \"2 5\\nbaxba\\nabyba\", \"5 1\\nu\\nw\\ne\\ne\\ns\", \"2 5\\nbaxba\\nacyba\", \"2 ...
none
{ "id": "p03593 CODE FESTIVAL 2017 qual A - Palindromic Matrix", "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": "Kuroni is very angry at the other setters for using ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6 2 4\\n\", \"5\\n9 8 7 3 1\\n\", \"2\\n1 1\\n\", \"10\\n648137704891 648137704891 648137704891 648137704891 648137704891 648137704891 648137704891 648137704891 648137704891 724560300002\\n\", \"2\\n999985999949 999981999937\\n\", \"5\\n169999847 169999847 169999847 300469729580...
MEDIUM
{ "id": "taco-train-11319", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array A of positive integers, find the small...
code
{ "ground_truth": "{\"inputs\": [\"Arr[] = {3, 2, 1, 5, 7, 8}\", \"Arr[] = {9, 5, 1, 2, 0}\"], \"outputs\": [\"4 5 1\", \"1 2 2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20152", "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": "Nastya received a gift on New Year — a magic wardrob...
code
{ "ground_truth": "{\"inputs\": [\"2 0\", \"2 1\", \"3 2\", \"1 411\", \"1 692\", \"16 8\", \"18 12\", \"1 1000000000000000000\", \"0 24\", \"24 0\", \"1000000000000000000 1\", \"348612312017571993 87570063840727716\", \"314647997243943415 107188213956410843\", \"375000003 2\", \"451 938\", \"4 1669\", \"24 347\", \"...
rating_1401-1600
{ "id": "992C", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese , Russi...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2\\n0 0 1 1 1 2\\n3 0 0 4 4 7\", \"2\\n6\\n0 0 4 1 1 3\\n0 0 1 0 1 2\\n0 0 1 1 1 2\\n0 0 2 1 1 2\\n3 0 0 4 4 7\\n0 0 2 1 4 0\", \"1\\n2\\n0 1 1 1 1 2\\n3 0 0 4 4 7\", \"1\\n2\\n0 2 1 0 1 1\\n3 0 0 4 4 7\", \"1\\n1\\n0 2 1 0 1 1\\n3 0 0 4 4 7\", \"1\\n1\\n0 2 2 0 1 1\\n3 0 0 8 4 ...
MEDIUM
{ "id": "taco-train-9638", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a BST (Binary Search Tree), find the shortest r...
code
{ "ground_truth": "{\"inputs\": [\"8\\r\\n / \\\\\\r\\n 3 10\\r\\n / \\\\ \\\\\\r\\n 2 6 14\\r\\n / \\\\ /\\r\\n 4 7 12\\r\\n / \\\\\\r\\n 11 13\", \"12\\r\\n \\\\\\r\\n 13\\r\\n \\\\\\r\\n 14\...
MEDIUM_HARD
{ "id": "taco-train-9106", "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": "To satisfy his love of matching socks, Phoenix has b...
code
{ "ground_truth": "{\"inputs\": [\"4\\n6 3 3\\n1 2 3 2 2 2\\n6 2 4\\n1 1 2 2 2 2\\n6 5 1\\n6 5 4 3 2 1\\n4 0 4\\n4 4 4 3\\n\", \"4\\n6 3 3\\n1 2 6 2 2 2\\n6 2 4\\n1 1 2 2 2 2\\n6 5 1\\n6 5 4 3 2 1\\n4 0 4\\n4 4 4 3\\n\", \"4\\n6 3 3\\n1 2 6 2 2 2\\n6 2 4\\n1 1 2 2 2 2\\n6 5 1\\n6 5 4 1 2 1\\n4 0 4\\n4 4 4 3\\n\", \"4...
rating_1401-1600
{ "id": "1515_D. Phoenix and Socks", "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": "The prison of your city has n prisoners. As the pris...
code
{ "ground_truth": "{\"inputs\": [\"4 3 3\\n2 3 1 1\\n\", \"1 1 1\\n2\\n\", \"11 4 2\\n2 2 0 7 3 2 2 4 9 1 4\\n\", \"57 2 10\\n7 5 2 7 4 1 0 5 2 9 2 9 8 6 6 5 9 6 8 1 0 1 0 3 2 6 5 2 8 8 8 8 0 9 4 3 6 6 2 4 5 1 2 0 1 7 1 1 5 4 5 0 7 5 1 9 6\\n\", \"2 228885628 1\\n90897004 258427916\\n\", \"3 1 1\\n1 2 1\\n\", \"3 3 3...
EASY
{ "id": "taco-train-1684", "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": "What's in a name?\n..Or rather, what's a name in? For...
code
{ "ground_truth": "{\"fn_name\": \"name_in_str\", \"inputs\": [[\"Across the rivers\", \"chris\"], [\"Next to a lake\", \"chris\"], [\"Under a sea\", \"chris\"], [\"A crew that boards the ship\", \"chris\"], [\"A live son\", \"Allison\"], [\"Just enough nice friends\", \"Jennifer\"], [\"thomas\", \"Thomas\"], [\"pipp...
EASY
{ "id": "taco-train-2109", "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": "During the \"Russian Code Cup\" programming competit...
code
{ "ground_truth": "{\"inputs\": [\"2\\n0 1\\n1 1\\n\", \"4\\n0 1\\n1 2\\n1 1\\n0 2\\n\", \"4\\n0 1\\n1 1\\n0 1\\n0 2\\n\", \"5\\n0 1\\n1 1\\n2 1\\n0 1\\n4 1\\n\", \"3\\n0 1\\n0 1\\n2 1\\n\", \"4\\n0 1\\n0 2\\n1 1\\n1 2\\n\", \"6\\n0 1\\n1 1\\n2 1\\n3 1\\n4 1\\n2 1\\n\", \"7\\n0 2\\n0 3\\n0 2\\n0 1\\n0 10\\n1 10\\n0 5...
rating_1201-1400
{ "id": "417_B. Crash", "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": "Two circles A, B are given on a two-dimensional plan...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 -3 2 0 3 2\\n0 0 9 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1000 707\", \"4\\n0 -3 2 0 3 2\\n0 0 9 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1000 245\", \"4\\n0 -3 2 0 3 2\\n0 0 9 8 8 2\\n0 0 9 10 10 5\\n0 0 707 1000 1010 707\", \"4\\n0 -3 2 0 3 2\\n0 0 6 8 8 2\\n0 0 9 10 10 5\\n0 0 70...
none
{ "id": "p03985 Kyoto University Programming Contest 2016 - Hundred Eyes Monster", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The much anticipated video game \"BiCo Grid\" has be...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 2 5\\n3 3 10\\n5 4 7\", \"3\\n3 2 5\\n3 1 10\\n5 4 7\", \"3\\n4 2 5\\n2 1 10\\n5 2 7\", \"3\\n3 2 5\\n1 1 7\\n5 4 7\", \"3\\n3 2 8\\n2 1 10\\n5 4 7\", \"3\\n3 2 4\\n1 1 7\\n5 4 7\", \"3\\n3 2 11\\n2 1 10\\n5 4 7\", \"3\\n3 2 5\\n3 1 4\\n5 4 7\", \"3\\n4 2 5\\n2 1 10\\n5 4 9\",...
none
{ "id": "bico", "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": "How many days are we represented in a foreign country...
code
{ "ground_truth": "{\"fn_name\": \"days_represented\", \"inputs\": [[[[10, 15], [25, 35]]], [[[2, 8], [220, 229], [10, 16]]]], \"outputs\": [[17], [24]]}", "style": "rule" }
EASY
{ "id": "taco-train-1557", "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 PrimeLand, there existed a very handsome young pr...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 3 4 6 8\", \"5\\n2 3 0 6 8\", \"5\\n2 3 4 6 5\", \"5\\n2 3 4 6 7\", \"5\\n2 3 0 6 7\", \"5\\n2 -1 8 6 4\", \"5\\n6 0 8 5 2\", \"5\\n6 0 4 5 2\", \"5\\n3 1 9 6 15\", \"5\\n3 1 9 4 15\", \"5\\n3 5 9 1 2\", \"5\\n3 5 4 1 2\", \"5\\n3 9 4 1 2\", \"5\\n5 18 4 1 2\", \"5\\n5 8 4 1 2...
none
{ "id": "proposal", "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": "A tree is a graph with n vertices and exactly n - 1 ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2\\n1 3\\n1 -1 1\\n\", \"5\\n2 3\\n4 5\\n2 5\\n1 3\\n0 2 1 4 3\\n\", \"10\\n5 6\\n8 2\\n9 3\\n4 1\\n6 10\\n9 8\\n7 10\\n7 4\\n5 2\\n0 -6 -9 -1 -5 -4 -2 -7 -8 -3\\n\", \"5\\n3 1\\n2 4\\n3 4\\n2 5\\n0 -3 -1 2 4\\n\", \"12\\n1 6\\n10 1\\n4 1\\n7 1\\n1 2\\n5 1\\n1 8\\n1 11\\n3 1\\...
MEDIUM_HARD
{ "id": "taco-train-9625", "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": "Tic-Tac-Toe used to be Chef's favourite game during ...
code
{ "ground_truth": "{\"inputs\": [\"1\\n4 4\\nXOXO\\nOX..\\nXO..\\nOXOX\", \"3\\n3 3\\nXOX\\nO.O\\nXOX\\n3 1\\n...\\n...\\n...\\n3 2\\n...\\n...\\n...\"], \"outputs\": [\"YES\", \"YES\\nYES\\nNO\"]}", "style": "rule" }
none
{ "id": "cheftic", "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, Russia...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4 4 2 4\\nEEOO\\n4 3 1 4\\nEEOO\"], \"outputs\": [\"yes\\nno\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20921", "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 times you recall a good old friend and eve...
code
{ "ground_truth": "{\"inputs\": [\"6 0\\n0 1 1 2 3 2\\n\", \"10 1\\n0 1 0 3 4 5 2 3 7 0\\n\", \"2 2\\n0 1\\n\", \"1 1\\n0\\n\", \"5 2\\n0 1 2 3 1\\n\", \"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\\n\", \"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...
MEDIUM
{ "id": "taco-train-15681", "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": "Ostap already settled down in Rio de Janiero suburb ...
code
{ "ground_truth": "{\"inputs\": [\"7 2\\n1 2\\n2 3\\n1 4\\n4 5\\n1 6\\n6 7\\n\", \"4 1\\n1 2\\n2 3\\n3 4\\n\", \"2 0\\n1 2\\n\", \"2 1\\n1 2\\n\", \"10 1\\n6 3\\n1 5\\n10 7\\n4 10\\n2 4\\n5 9\\n8 1\\n1 3\\n7 3\\n\", \"10 0\\n9 10\\n5 1\\n10 5\\n8 6\\n8 2\\n7 8\\n8 1\\n8 3\\n4 3\\n\", \"10 4\\n4 6\\n3 5\\n7 3\\n4 9\\n...
rating_>1900
{ "id": "735_E. Ostap and Tree", "rating": 2500, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In the card game Wolf (a variant of the famous card ...
code
{ "ground_truth": "{\"inputs\": [\"28\\n1 C\\n2 C\\n3 C\\n4 C\\n5 C\\n6 C\\n7 C\\n1 D\\n2 D\\n3 D\\n4 D\\n5 D\\n6 D\\n7 D\\n1 H\\n2 H\\n3 H\\n4 H\\n5 H\\n6 H\\n7 H\\n1 S\\n2 S\\n3 S\\n4 S\\n5 S\\n6 S\\n7 S\\n\", \"0\\n\"], \"outputs\": [\"possible\\n\", \"impossible\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20900", "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": "You are given the array of integer numbers *a*0,<=*a...
code
{ "ground_truth": "{\"inputs\": [\"9\\n2 1 0 3 0 0 3 2 4\", \"5\\n0 1 2 3 4\", \"7\\n5 6 0 1 -2 3 4\", \"1\\n0\", \"2\\n0 0\", \"2\\n0 1\", \"2\\n1 0\", \"5\\n0 1000000000 1000000000 1000000000 1000000000\", \"5\\n-1000000000 -1000000000 0 1000000000 1000000000\", \"5\\n-1000000000 1000000000 1000000000 1000000000 0\...
rating_<=1200
{ "id": "803B", "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": "White Falcon has a tree with $N$ nodes. Each node co...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1\\n1 2\\n1 2\\n2\\n1 2 2 1 1\\n2 1 2 1\\n\"], \"outputs\": [\"3\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-10781", "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 got a new job, and it's very interesting, y...
code
{ "ground_truth": "{\"inputs\": [\"-1 0 2 0\\n4\\n0 0 1 0 1 1 0 1\\n\", \"1 7 6 7\\n4\\n4 2 4 12 3 12 3 2\\n\", \"-2 2 2 -2\\n4\\n-1 -1 1 -1 1 1 -1 1\\n\", \"29 -100 -73 -94\\n6\\n-93 -71 77 -52 99 23 72 52 7 87 -35 86\\n\", \"-60 -52 68 -91\\n5\\n7 -95 70 -47 62 18 14 49 -33 -3\\n\", \"82 33 56 42\\n4\\n-49 -23 32 2...
rating_>1900
{ "id": "75_E. Ship's Shortest Path", "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": "Brave Ponta and his best friend, Brave Gonta, have c...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n4\\n2 3 5 7\\n0\", \"5\\n1 2 3 4 5\\n4\\n2 3 5 10\\n0\", \"5\\n1 2 3 4 5\\n4\\n1 3 5 10\\n0\", \"5\\n1 2 3 4 5\\n4\\n1 3 4 10\\n0\", \"5\\n1 3 3 4 5\\n4\\n2 3 5 7\\n0\", \"5\\n1 2 3 4 4\\n4\\n1 3 4 10\\n0\", \"5\\n1 3 3 4 5\\n4\\n2 3 5 10\\n0\", \"5\\n1 2 3 4 5\\n4\\...
none
{ "id": "p00631 Split Up!", "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've got an n × m table (n rows and m columns), ea...
code
{ "ground_truth": "{\"inputs\": [\"5 5 1\\n00000\\n00000\\n00100\\n00000\\n00000\\n\", \"5 5 6\\n01010\\n10101\\n01010\\n10101\\n01010\\n\", \"4 4 0\\n0000\\n0101\\n0000\\n0000\\n\", \"3 3 0\\n001\\n010\\n000\\n\", \"3 3 2\\n101\\n000\\n101\\n\", \"1 1 1\\n1\\n\", \"1 1 0\\n0\\n\", \"10 10 6\\n0101010111\\n0101010111...
rating_>1900
{ "id": "364_E. Empty Rectangles", "rating": 3000, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A flower shop has got n bouquets, and the i-th bouqu...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 3 4 2 7\\n\", \"6\\n2 2 6 8 6 12\\n\", \"3\\n11 4 10\\n\", \"4\\n943543 151729 379602 589828\\n\", \"2\\n468463 62253\\n\", \"1\\n999999\\n\", \"20\\n274039 899325 798709 157662 963297 276599 529230 80095 252956 980560 358150 82383 29856 901568 123794 275349 512273 508369 1200...
rating_1401-1600
{ "id": "926_G. Large Bouquets", "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": "It is a holiday season, and Koala is decorating his ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n101\\n3 3\\n3 2\\n3 1\\n\", \"4\\n1111\\n3 4\\n5 2\\n3 1\\n3 2\\n\", \"6\\n011100\\n5 3\\n5 5\\n2 4\\n3 5\\n4 2\\n1 5\\n\", \"1\\n0\\n1 5\\n\", \"20\\n00101101001100000010\\n1 1\\n5 3\\n3 3\\n4 5\\n1 4\\n5 2\\n4 2\\n4 4\\n5 1\\n1 1\\n5 3\\n2 4\\n2 4\\n1 2\\n2 3\\n1 4\\n1 5\\n1 3...
EASY
{ "id": "taco-train-5185", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 10\\n3 17\", \"2\\n1 10\\n3 17\\n\", \"3\\n5 15\\n10 20\\n4 6\\n\", \"1\\n1000 2000\\n\", \"2\\n1000000000 2000000000\\n5000000000 6000000000\\n\", \"4\\n1 1000000000000\\n1 1000000000000000\\n1 60\\n1 70\\n\", \"2\\n20 35\\n1 1000000000000000000\\n\", \"3\\n5 17\\n20 30\\n50 ...
VERY_HARD
{ "id": "taco-test-837", "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": "You are given a string of length n. Each character i...
code
{ "ground_truth": "{\"inputs\": [\"7 3\\nabacaba\\n1 1 1\\n1 0 0\\n1 0 0\\n\", \"7 3\\nabacaba\\n0 1 1\\n1 0 0\\n1 0 0\\n\", \"7 4\\nbacadab\\n0 1 1 1\\n1 0 0 0\\n1 0 0 0\\n1 0 0 0\\n\", \"3 3\\ncbc\\n0 0 0\\n0 0 1\\n0 1 0\\n\", \"10 4\\nbcaaddaacc\\n1 0 1 1\\n0 0 1 0\\n1 1 1 0\\n1 0 0 1\\n\", \"100 10\\nigffabeaiaaj...
rating_>1900
{ "id": "1117_F. Crisp String", "rating": 2500, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Byteland has $N$ cities (numbered from $\\mbox{1}$ t...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n1 3 4\\n1 2 1\\n2 3 2\\n2 4 2\\n3 5 3\\n\"], \"outputs\": [\"6\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-21179", "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": "Takeshi, who loves hot springs, is planning a trip t...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n1 2 5\\n3 2\\n1 2 5\\n2 3 5\\n6 9\\n1 2 7\\n1 3 9\\n1 5 14\\n2 3 10\\n2 4 15\\n3 4 11\\n3 5 2\\n4 5 9\\n4 6 8\\n0 0\", \"2 1\\n1 2 5\\n3 2\\n1 2 5\\n2 3 5\\n6 9\\n1 2 7\\n1 3 9\\n1 5 14\\n2 3 15\\n2 4 15\\n3 4 11\\n3 5 2\\n4 5 9\\n4 6 8\\n0 0\", \"2 1\\n1 2 5\\n3 2\\n1 2 5\\n2...
none
{ "id": "p00244 Hot Spring Trip", "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": "Integral numbers can be even or odd.\n\nEven numbers ...
code
{ "ground_truth": "{\"fn_name\": \"oddest\", \"inputs\": [[[1, 2]], [[1, 3]], [[1, 5]], [[]], [[0]], [[0, 1]], [[1, 3, 5, 7]], [[2, 4]], [[-1]], [[-1, -1]], [[-1, 0, 1]], [[-3, 3]], [[-5, 3]]], \"outputs\": [[1], [3], [null], [null], [0], [1], [7], [null], [-1], [null], [-1], [3], [null]]}", "style": "rule" }
EASY
{ "id": "taco-train-14803", "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 the head of a large enterprise. n people wor...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 26\\n10 12\\n1 4\\n10 11\\n1 1337\\n1 1000000000\\n5 26\\n4 4\\n2 4\\n6 8\\n5 6\\n2 7\\n\", \"1\\n1 1000000000\\n1000000000 1000000000\\n\", \"3\\n3 26\\n10 12\\n1 4\\n10 11\\n1 1337\\n1 1000000000\\n5 26\\n4 4\\n0 4\\n6 8\\n5 6\\n2 7\\n\", \"3\\n3 26\\n10 12\\n1 4\\n10 11\\n1...
rating_1601-1900
{ "id": "1251_D. Salary Changing", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You have managed to intercept an important message an...
code
{ "ground_truth": "{\"fn_name\": \"decode\", \"inputs\": [[\"sr\"], [\"svool\"], [\"r slkv mlylwb wvxlwvh gsrh nvhhztv\"], [\"qzezxirkg rh z srts ovevo wbmznrx fmgbkvw zmw rmgvikivgvw kiltiznnrmt ozmtfztv rg szh yvvm hgzmwziwravw rm gsv vxnzxirkg ozmtfztv hkvxrurxzgrlm zolmthrwv sgno zmw xhh rg rh lmv lu gsv gsivv vh...
EASY
{ "id": "taco-train-19502", "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 integer N, and return the Fibonacci Ser...
code
{ "ground_truth": "{\"inputs\": [\"5\"], \"outputs\": [\"0 1 1 2 3 5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13134", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "It is the easy version of the problem. The only diff...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 3\\n8 3\\n14 3\\n\"], \"outputs\": [\"1 1 1\\n4 2 2\\n2 6 6\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-8707", "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": "Let N be a positive integer.\n\nThere is a numerical...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 1 4 1 5 9\", \"1\\n1 2 3\", \"3\\n8 2 2 7 4 6 5 3 8\", \"2\\n3 1 4 1 7 9\", \"3\\n8 2 2 7 4 6 6 3 8\", \"2\\n3 1 4 1 7 0\", \"1\\n1 0 5\", \"1\\n1 -1 5\", \"3\\n8 1 2 7 4 6 6 0 8\", \"1\\n0 0 5\", \"2\\n3 2 4 2 11 0\", \"3\\n8 2 2 7 4 6 4 0 15\", \"3\\n8 2 2 7 4 6 4 -1 15\", \...
none
{ "id": "p03714 AtCoder Beginner Contest 062 - 3N Numbers", "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": "Happy Ladybugs is a board game having the following ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n7\\nRBY_YBR\\n6\\nX_Y__X\\n2\\n__\\n6\\nB_RRBR\\n\", \"5\\n5\\nAABBC\\n7\\nAABBC_C\\n1\\n_\\n10\\nDD__FQ_QQF\\n6\\nAABCBC\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nYES\\n\", \"NO\\nYES\\nYES\\nYES\\nNO\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24988", "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 children in AtCoder Kindergarten. Mr. Ev...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"10\\n\", \"1\\n\", \"2\", \"16\", \"0\", \"9\", \"-2\", \"4\", \"-4\", \"5\", \"8\", \"-7\", \"-13\", \"-8\", \"-11\", \"13\", \"14\", \"-16\", \"-18\", \"11\", \"-21\", \"-37\", \"-19\", \"24\", \"-38\", \"-27\", \"44\", \"-47\", \"-48\", \"-78\", \"-33\", \"-73\", \"-57\...
EASY
{ "id": "taco-train-5836", "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": "Do you like summer? Residents of Berland do. They es...
code
{ "ground_truth": "{\"inputs\": [\"2\\n11 8\", \"5\\n10 9 7 10 6\", \"3\\n12 3 3\", \"4\\n7 3 9 10\", \"1\\n1\", \"5\\n15 5 8 6 3\", \"1\\n1000000000\", \"2\\n2 1\", \"3\\n11 1 9\", \"1\\n0\", \"20\\n38 32 21 44 26 24 15 32 34 40 31 33 33 13 26 28 12 10 14 18\", \"20\\n43 38 20 41 16 37 27 29 19 17 24 19 28 8 14 32 1...
rating_>1900
{ "id": "549G", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a floor of dimensions 2 x W and tiles of dimens...
code
{ "ground_truth": "{\"inputs\": [\"W = 3\", \"W = 4\"], \"outputs\": [\"3\", \"5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-8196", "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 maze with N cells. Each cell may have multipl...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\\r\\nEdge[] = {1, 2, 0, -1}\", \"N = 4 \\r\\nEdge[] = {2, 0, -1, 2}\"], \"outputs\": [\"3\", \"-1\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-17033", "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 persons located on a plane. The i-th per...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n0 0 0 1\\n1 0 2 0\\n3\\n0 0 1 1\\n1 1 0 0\\n1 0 2 0\\n6\\n0 0 0 1\\n1 0 1 2\\n2 0 2 3\\n3 0 3 -5\\n4 0 4 -5\\n5 0 5 -5\\n\", \"1\\n5\\n0 0 1 1\\n2 2 10 10\\n-10 -10 23 23\\n-5 -5 -7 -7\\n1 2 3 4\\n\", \"4\\n2\\n0 0 1 1\\n5 5 6 6\\n2\\n0 0 -1 1\\n-5 5 -6 6\\n2\\n0 0 1 -1\\n5 ...
rating_1601-1900
{ "id": "1468_F. Full Turn", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Training is indispensable for achieving good results...
code
{ "ground_truth": "{\"inputs\": [\"2 3 100 20\\nvim 10 10\\nemacs 5 10\\nvstudio 65 100\\n2 1 6\\nemacs 4\\nvstudio 13\\n3 -3 0\\nvim 5\\nemacs 9\\nvstudio 62\", \"2 2 100 20\\nalfalfa 10 10\\ncarrot 5 10\\n1 1 6\\ncarrot 4\\n1 -3 0\\nalfalfa 5\", \"2 3 100 10\\nvim 10 10\\nemacs 5 10\\nvstudio 65 100\\n2 1 6\\nemacs...
none
{ "id": "p01413 Quest of Merchant", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Let x be a string of length at least 1. We will call...
code
{ "ground_truth": "{\"inputs\": [\"ddd\", \"aab\", \"bcbc\", \"ddc\", \"aaa\", \"adad\", \"bbcc\", \"dec\", \"aa`\", \"ccbb\", \"eec\", \"aa_\", \"ccbc\", \"cee\", \"ba_\", \"cbbc\", \"ece\", \"_ab\", \"ccba\", \"eed\", \"`ab\", \"ccab\", \"dee\", \"`ba\", \"bcac\", \"eee\", \"`b`\", \"bcca\", \"dfe\", \"ab`\", \"bcc...
none
{ "id": "p04018 AtCoder Regular Contest 060 - Best Representation", "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": "Returning back to problem solving, Gildong is now st...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\noo\\nox\\nxo\\nxx\\n\", \"3 5\\nhello\\ncodef\\norces\\n\", \"3 3\\ntab\\none\\nbat\\n\", \"9 4\\nabab\\nbaba\\nabcd\\nbcde\\ncdef\\ndefg\\nwxyz\\nzyxw\\nijji\\n\", \"17 14\\ntzmqqlttfuopox\\ndlgvbiydlxmths\\ndxnyijdxjuvvej\\nnfxqnqtffqnojm\\nrkfvitydhceoum\\ndycxhtklifleqe\\n...
rating_<=1200
{ "id": "1304_B. Longest Palindrome", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Alice guesses the strings that Bob made for her.\n\n...
code
{ "ground_truth": "{\"inputs\": [\"4\\nabbaac\\nac\\nbccddaaf\\nzzzzzzzzzz\\n\", \"1\\nassaad\\n\", \"6\\nabbaac\\nabbaac\\nabbaac\\nac\\nbccddaaf\\nzzzzzzzzzz\\n\", \"1\\nsaallaammddookkhhj\\n\", \"11\\nabbaac\\nabbaac\\nabbaac\\nabbaac\\nabbaac\\nabbaac\\nabbaac\\nabbaac\\nac\\nbccddaaf\\nzzzzzzzzzz\\n\", \"10\\nab...
EASY
{ "id": "taco-train-25168", "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 Gridnavia, three languages are spoken: Arwegian, ...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n2211\\n1112\\n1112\\n\", \"1 1\\n1\\n\"], \"outputs\": [\"AAAA\\n...A\\n....\\n\\nBB..\\nBBBB\\n...B\\n\\n....\\n...C\\nCCCC\\n\", \"impossible\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-7717", "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": "Your friend recently gave you some slimes for your b...
code
{ "ground_truth": "{\"inputs\": [\"2 500000000\\n\", \"10 1\\n\", \"100 123456789\\n\", \"227 8150970\\n\", \"929128198 12048223\\n\", \"130 9992\\n\", \"191061266 9200\\n\", \"878492843 994866548\\n\", \"372 999993903\\n\", \"104 999206739\\n\", \"985795497 13778395\\n\", \"102971757 999999656\\n\", \"164 91352172\\...
rating_>1900
{ "id": "618_G. Combining Slimes", "rating": 3300, "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": "Dreamoon is standing at the position 0 on a number l...
code
{ "ground_truth": "{\"inputs\": [\"++-+-\\n+-+-+\", \"+-+-\\n+-??\", \"+++\\n??-\", \"++++++++++\\n+++??++?++\", \"--+++---+-\\n??????????\", \"+--+++--+-\\n??????????\", \"+\\n+\", \"-\\n?\", \"+\\n-\", \"-\\n-\", \"-\\n+\", \"+\\n?\", \"++++++++++\\n++++++++++\", \"++++++++++\\n++++-+++++\", \"----------\\n++++++++...
rating_1201-1400
{ "id": "476B", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A convex polygon consisting of N vertices is given. ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n100 100\\n0 100\\n0 0\\n100 0\", \"3\\n100 100\\n0 100\\n0 0\", \"4\\n000 100\\n0 100\\n0 0\\n100 0\", \"3\\n100 100\\n0 100\\n1 0\", \"4\\n000 101\\n0 100\\n0 0\\n100 0\", \"3\\n100 100\\n0 100\\n1 1\", \"4\\n000 101\\n0 000\\n0 0\\n100 0\", \"3\\n100 100\\n0 000\\n1 1\", \"4\\...
none
{ "id": "p01556 ConvexCut", "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": "You want to schedule a list of jobs in d days. Jobs a...
code
{ "ground_truth": "{\"fn_name\": \"minDifficulty\", \"inputs\": [[[6, 5, 4, 3, 2, 1], 2]], \"outputs\": [7]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-18180", "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": "Chef has bought N robots to transport cakes for a la...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 0\\n2 1\\n4 2\", \"3\\n1 0\\n2 1\\n4 2\", \"3\\n1 0\\n2 1\\n5 2\", \"3\\n2 0\\n2 1\\n5 2\", \"3\\n2 0\\n2 1\\n2 2\", \"3\\n1 -1\\n2 1\\n5 2\", \"3\\n2 -1\\n2 1\\n5 2\", \"3\\n2 0\\n2 0\\n5 3\", \"3\\n4 -1\\n2 1\\n5 2\", \"3\\n3 -1\\n2 1\\n5 2\", \"3\\n3 -1\\n2 2\\n5 2\", \"3\\...
none
{ "id": "egrcake", "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": "Mishka has got *n* empty boxes. For every *i* (1<=≤<...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\", \"4\\n4 2 4 3\", \"10\\n58 58 58 58 58 58 58 58 58 58\", \"10\\n86 89 89 86 86 89 86 86 89 89\", \"100\\n981 288 186 186 292 876 341 288 981 360 783 907 292 186 341 292 360 876 360 360 981 398 783 288 292 398 876 981 398 907 783 360 288 981 907 186 360 288 186 981 186 2...
rating_<=1200
{ "id": "903C", "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": "An undirected graph is called k-regular, if the degr...
code
{ "ground_truth": "{\"inputs\": [\"1\\n\", \"30\\n\", \"68\\n\", \"22\\n\", \"66\\n\", \"26\\n\", \"98\\n\", \"82\\n\", \"70\\n\", \"60\\n\", \"6\\n\", \"18\\n\", \"84\\n\", \"46\\n\", \"62\\n\", \"74\\n\", \"34\\n\", \"12\\n\", \"50\\n\", \"54\\n\", \"52\\n\", \"28\\n\", \"78\\n\", \"56\\n\", \"40\\n\", \"4\\n\", \"...
rating_1601-1900
{ "id": "550_D. Regular Bridge", "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": "Pussycat Sonya has an array A consisting of N intege...
code
{ "ground_truth": "{\"inputs\": [\"6\\n11 5 6 2 8 10\\n\\nSAMPLE\", \"6\\n11 8 6 2 8 10\\n\\nSAMPLE\", \"6\\n11 15 6 2 8 13\\n\\nSAMPLE\", \"6\\n11 15 6 2 15 13\\n\\nSAMPLE\", \"6\\n11 13 6 2 15 13\\n\\nSAMPLE\", \"6\\n11 13 6 2 24 13\\n\\nELQMAS\", \"6\\n11 8 6 2 24 13\\n\\nELQMAS\", \"6\\n11 4 6 2 24 13\\n\\nELQMAS...
none
{ "id": "sonya-wants-more-equal-numbers-icpc-3", "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": "A land far, far away has N Members of Parliament (MP...
code
{ "ground_truth": "{\"inputs\": [\"7\\n2 1 2 7 3\\n2 1 3 7 4\\n2 1 4 7 5\\n2 1 5 7 6\\n2 1 6 7 2\\n\", \"10\\n3 1 2 7 3 9 4\\n3 1 3 7 4 9 5\\n3 1 4 7 5 9 6\\n3 1 5 7 6 9 8\\n3 1 6 7 8 9 10\\n\"], \"outputs\": [\"ABBBBBA\\n\", \"ABBBBBAAAA\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-6084", "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": "Takahashi the Jumbo will practice golf.\n\nHis objec...
code
{ "ground_truth": "{\"inputs\": [\"4\\n5 7\", \"7\\n500 600\", \"1\\n11 11\", \"4\\n5 9\", \"4\\n1 1\", \"4\\n2 9\", \"4\\n2 16\", \"4\\n2 23\", \"4\\n0 23\", \"4\\n1 23\", \"4\\n1 20\", \"4\\n1 8\", \"4\\n1 11\", \"4\\n1 15\", \"4\\n1 2\", \"4\\n2 2\", \"4\\n1 7\", \"7\\n500 983\", \"4\\n1 9\", \"4\\n4 16\", \"4\\n2...
none
{ "id": "p02693 AtCoder Beginner Contest 165 - We Love Golf", "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": "Alice and Bob are playing a game on an array $a$ of ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n1 1\\n2\\n2 1\\n3\\n5 4 4\\n\", \"1\\n2\\n100 200\\n\", \"1\\n2\\n200 100\\n\", \"1\\n2\\n500 500\\n\", \"3\\n3\\n1 1 1\\n4\\n2 2 2 2\\n5\\n3 3 3 3 3\\n\", \"3\\n5\\n4 3 2 1 5\\n5\\n2 3 5 4 1\\n5\\n1 2 3 4 5\\n\", \"3\\n8\\n8 7 6 5 4 3 2 1\\n10\\n10 9 8 7 6 5 4 3 2 1\\n12\\n...
EASY
{ "id": "taco-test-130", "rating": null, "split": "confidence_train", "sub_source": "EASY" }