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": "Geeko is very happy because his exam are over so he ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 3\\n3 2\\n\\nSAMPLE\", \"2000\\n8 294\\n9 307\\n7 310\\n3 677\\n10 952\\n6 902\\n9 86\\n7 191\\n5 423\\n5 992\\n6 306\\n5 873\\n3 504\\n3 461\\n4 380\\n7 94\\n4 16\\n5 592\\n9 876\\n9 812\\n8 664\\n6 921\\n10 701\\n7 657\\n2 979\\n9 560\\n9 393\\n3 827\\n7 841\\n8 927\\n2 685\...
none
{ "id": "geeko-and-tree-2", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Sereja has a string A consisting of n lower case Eng...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"z\", \"abcd\", \"\", \"\"]], \"outputs\": [[\"0\", \"144\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-8843", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array nums of integers, we need to find the ...
code
{ "ground_truth": "{\"fn_name\": \"maxSumDivThree\", \"inputs\": [[[3, 6, 5, 1, 8]]], \"outputs\": [18]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-9459", "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": "## Overview\nResistors are electrical components mark...
code
{ "ground_truth": "{\"fn_name\": \"decode_resistor_colors\", \"inputs\": [[\"yellow violet black\"], [\"yellow violet red gold\"], [\"brown black green silver\"], [\"brown black black\"], [\"brown black brown gold\"], [\"red red brown\"], [\"orange orange brown gold\"], [\"yellow violet brown silver\"], [\"blue gray ...
EASY
{ "id": "taco-train-7790", "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": "For long time scientists study the behavior of shark...
code
{ "ground_truth": "{\"inputs\": [\"8\\n1 2 7 3 4 8 5 6\\n\", \"6\\n25 1 2 3 14 36\\n\", \"2\\n2 1\\n\", \"127\\n64 96 63 112 62 95 61 120 60 94 59 111 58 93 57 124 56 92 55 110 54 91 53 119 52 90 51 109 50 89 49 126 48 88 47 108 46 87 45 118 44 86 43 107 42 85 41 123 40 84 39 106 38 83 37 117 36 82 35 105 34 81 33 12...
rating_1601-1900
{ "id": "982_D. Shark", "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": "This is an interactive problem.\n\nAfter getting AC ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 4\\n4 2\\n5 3\\n6 3\\n2 3\\n\\n3\\n\\n4\\n\\n4\\n\\n\", \"5 3\\n3 2\\n2 4\\n4 1\\n5 2\\n\", \"5 1\\n3 2\\n3 4\\n1 5\\n5 3\\n\", \"5 5\\n4 1\\n1 2\\n3 1\\n4 5\\n\", \"5 4\\n5 1\\n3 5\\n4 2\\n2 5\\n\", \"5 1\\n5 2\\n4 5\\n5 3\\n1 3\\n\", \"5 4\\n2 4\\n1 5\\n5 3\\n5 2\\n\", \"6 4...
rating_1601-1900
{ "id": "1305_D. Kuroni and the Celebration", "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": "Ralph has a magic field which is divided into *n*<=×...
code
{ "ground_truth": "{\"inputs\": [\"1 1 -1\", \"1 3 1\", \"3 3 -1\", \"2 7 1\", \"1 1 1\", \"2 4 -1\", \"173 69 -1\", \"110 142 1\", \"162 162 -1\", \"49 153 -1\", \"94 182 1\", \"106666666 233333333 1\", \"2 2 1\", \"146 34 -1\", \"94 86 -1\", \"2529756051797760 2682355969139391 -1\", \"3126690179932000 2474382898739...
rating_1601-1900
{ "id": "894B", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A tree is a connected graph without cycles.\n\nTwo t...
code
{ "ground_truth": "{\"inputs\": [\"10 3 409693891\\n\", \"65 4 177545087\\n\", \"5 2 433416647\\n\", \"997 6 680633279\\n\", \"989 8 990767311\\n\", \"999 2 750160753\\n\", \"1 4 904448911\\n\", \"1000 3 750160753\\n\", \"1000 6 970400047\\n\", \"983 10 762763321\\n\", \"106 9 434448163\\n\", \"2 3 434448163\\n\", \"...
rating_>1900
{ "id": "724_F. Uniformly Branched Trees", "rating": 2700, "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": "problem\n\nIn one river, there is a slightly dangero...
code
{ "ground_truth": "{\"inputs\": [\"5 1\\n2 1 3 2 2\\n1 3 2\\n1 1 7\\n1 2 1\\n1 4 4\\n5 0\\n2 1 3 2 2\\n1 3 2\\n1 1 7\\n1 2 1\\n1 4 4\\n0 0\", \"5 1\\n2 1 3 2 2\\n1 3 2\\n1 1 7\\n1 2 1\\n1 4 4\\n5 0\\n2 1 3 0 2\\n1 3 2\\n1 1 7\\n1 2 1\\n1 4 4\\n0 0\", \"5 1\\n2 1 3 2 2\\n1 3 2\\n1 1 7\\n1 2 1\\n1 4 4\\n5 0\\n2 1 3 2 2...
none
{ "id": "p00453 Pyon-Pyon River Crossing", "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": "Ujan has been lazy lately, but now has decided to br...
code
{ "ground_truth": "{\"inputs\": [\"5\\n\", \"4\\n\", \"2\\n\", \"54241012609\\n\", \"4294967318\\n\", \"370758709373\\n\", \"546739553053\\n\", \"922350872881\\n\", \"442654694329\\n\", \"832972004929\\n\", \"931667836027\\n\", \"6469693230\\n\", \"9\\n\", \"243\\n\", \"549755813888\\n\", \"902076349729\\n\", \"20000...
rating_1401-1600
{ "id": "1243_C. Tile Painting", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Iroha loves Haiku. Haiku is a short form of Japanese...
code
{ "ground_truth": "{\"inputs\": [\"5 5 7\", \"7 7 5\", \"5 5 14\", \"2 7 5\", \"5 1 14\", \"2 7 3\", \"2 4 3\", \"2 4 1\", \"2 4 0\", \"3 4 0\", \"4 4 0\", \"4 4 -1\", \"4 4 -2\", \"4 3 -2\", \"4 2 -2\", \"7 2 -2\", \"7 4 -2\", \"13 4 -2\", \"13 4 -1\", \"20 4 -1\", \"20 4 0\", \"20 0 0\", \"20 0 1\", \"1 0 1\", \"0 ...
none
{ "id": "p04043 AtCoder Beginner Contest 042 - Iroha and Haiku (ABC Edition)", "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": "A number is a special number if it’s digits only cons...
code
{ "ground_truth": "{\"inputs\": [\"N = 6\", \"N = 7\"], \"outputs\": [\"5\", \"10\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-18775", "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": "Magic Circle\n\nProblem Statement\n\n~ How to draw a...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 1\\n-1 1\\n-1 -1\\n1 -1\", \"3 1\\n0 0\\n1 0\\n0 1\", \"3 2\\n0 0\\n2 0\\n0 2\", \"3 2\\n1 -1\\n1 1\\n-2 0\", \"4 3\\n1 1\\n0 1\\n-1 -1\\n1 -1\", \"3 2\\n0 0\\n1 0\\n0 1\", \"3 2\\n0 -1\\n2 0\\n0 2\", \"3 2\\n0 -1\\n1 1\\n-2 0\", \"4 3\\n1 1\\n0 2\\n-1 -1\\n1 -1\", \"3 2\\n0...
none
{ "id": "p01607 Magical Circle", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a string $s$. You have to reverse it —...
code
{ "ground_truth": "{\"inputs\": [\"5\\naaaza\\n\", \"6\\ncbaabc\\n\", \"9\\nicpcsguru\\n\", \"50\\nfhakqhdhrgfjruxndgfhdvcxhsrjfgdhsyrhfjcbfgdvrtdysf\\n\", \"100\\nzzzzzxxxyyyytttttssssssggggdddddjjjjjkkksssssjjjjrdddzzzzxxxxaaaaarrryjjjjddderehhhqazzzzzgdgseryydr\\n\", \"2\\ngg\\n\", \"2\\nzg\\n\", \"5\\nababa\\n\",...
HARD
{ "id": "taco-train-25362", "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": "Major Mickle is commanded to protect a secret base w...
code
{ "ground_truth": "{\"inputs\": [\"\"], \"outputs\": [\"\"]}", "style": "rule" }
none
{ "id": "p01585 Mickle's Beam", "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": "Hardutta is planning an inter college football leagu...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 100000\\n1 100000\\n100000 2\", \"6\\n2 3\\n2 1\\n2 1\\n3 2\\n3 2\\n3 1\", \"61\\n80 104\\n71 15\\n212 296\\n299 298\\n128 114\\n255 44\\n120 59\\n69 229\\n167 147\\n230 259\\n142 232\\n183 19\\n171 284\\n244 23\\n1 185\\n74 30\\n76 61\\n78 289\\n235 296\\n73 77\\n232 99\\n104...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-15197", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a list of accounts where each element accounts ...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\\r\\n\\r\\naccounts [ ] =\\r\\n\\r\\n[[\\\"John\\\",\\\"johnsmith@mail.com\\\",\\\"john_newyork@mail.com\\\"],\\r\\n\\r\\n[\\\"John\\\",\\\"johnsmith@mail.com\\\",\\\"john00@mail.com\\\"],\\r\\n\\r\\n[\\\"Mary\\\",\\\"mary@mail.com\\\"],\\r\\n\\r\\n[\\\"John\\\",\\\"johnnybrav...
MEDIUM_HARD
{ "id": "taco-train-9224", "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": "Motu and Tomu are very good friends who are always l...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"6 0\", \"1 1 1 1 1 1\", \"5 1\", \"2 4 6 3 4\"]], \"outputs\": [[\"NO\", \"YES\"]]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-13005", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a permutation of the integers from 1 through...
code
{ "ground_truth": "{\"inputs\": [\"5 2\\n5 3 1 4 2\\n1 3\\n5 4\\n\", \"3 2\\n3 2 1\\n1 2\\n2 3\\n\", \"10 8\\n5 3 6 8 7 10 9 1 2 4\\n3 1\\n4 1\\n5 9\\n2 5\\n6 5\\n3 5\\n8 9\\n7 9\\n\", \"5 1\\n1 2 3 4 5\\n1 5\\n\"], \"outputs\": [\"2\\n\", \"3\\n\", \"8\\n\", \"5\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-5192", "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": "A regular expression is used to describe a set of st...
code
{ "ground_truth": "{\"inputs\": [\"3 \\n((ab)|(ba)) 2 \\n((a|b)*) 5 \\n((a*)(b(a*))) 100\\n\"], \"outputs\": [\"2 \\n32 \\n100\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-3303", "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": "This problem consists of two subproblems: for solvin...
code
{ "ground_truth": "{\"inputs\": [\"5 1 4\\n1 2\\n2 5\\n3 4\\n4 2\\n1 2\\n1 3\\n1 4\\n\", \"2 2 3\\n1 2\\n1 2\\n1 2\\n2 3\\n\", \"2 2 2\\n1 2\\n1 2\\n1 2\\n\", \"1 1 1\\n\", \"6 4 8\\n1 2\\n1 3\\n1 4\\n1 5\\n5 6\\n2 4\\n2 3\\n1 3\\n1 2\\n2 3\\n3 4\\n4 5\\n3 6\\n3 7\\n4 8\\n\", \"1 1 2\\n1 2\\n\", \"6 4 8\\n1 2\\n1 3\\...
none
{ "id": "391_E1. Three Trees", "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 have a grid with H rows and W columns of squares....
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n3\\n2 1 1\\n\", \"3 5\\n5\\n1 2 3 4 5\\n\", \"1 1\\n1\\n1\\n\"], \"outputs\": [\"1 1\\n2 3\\n\", \"1 4 4 4 3\\n2 5 4 5 3\\n2 5 5 5 3\\n\", \"1\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-14316", "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": "A valid email address meets the following criteria: ...
code
{ "ground_truth": "{\"inputs\": [\"2 \\nDEXTER <dexter@hotmail.com>\\nVIRUS <virus!@variable.:p>\\n\"], \"outputs\": [\"DEXTER <dexter@hotmail.com>\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5700", "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": "Write a program to calculate values of arithmetic ex...
code
{ "ground_truth": "{\"inputs\": [\"(1-10*i)+00007+(3+10*i)\\n3+4*i*(4+10*i)\\n(102+10*i)*(99+10*i)\\n2*i+3+9999*i+4\", \"(1-10*i)+00007+(3+10*i)\\n3+5*i*(4+10*i)\\n(102+10*i)*(99+10*i)\\n2*i+3+9999*i+4\", \"(1-10*i)+00007+(3+10*i)\\n3+5*i*(4+10*i)\\n(102*10*i)*(99+10*i)\\n2*i+3+9999*i+4\", \"(1-10*i)+00007+(3+10*i)\\...
none
{ "id": "p00684 Calculation of Expressions", "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": "Xenia the coder went to The Olympiad of Informatics ...
code
{ "ground_truth": "{\"inputs\": [\"aba\\n\", \"aaaaaa\\n\", \"zzz\\n\", \"abacaba\\n\", \"axx\\n\", \"aa\\n\", \"az\\n\", \"abaraba\\n\", \"dsjasdjqwz\\n\", \"aabaabadabacbaaca\\n\", \"zdf\\n\", \"babaaaababbba\\n\", \"baabzazababbbbaa\\n\", \"badabacaabaccabcabcabaabaccbacababacaabadababadabacabacabadabbacaccabaabac...
rating_>1900
{ "id": "356_E. Xenia and String Problem", "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 space hunter, Ken Marineblue traveled the universe...
code
{ "ground_truth": "{\"inputs\": [\"10\\n12\\n15\\n777\\n4999\\n5000\\n0\", \"10\\n12\\n15\\n777\\n7180\\n5000\\n0\", \"10\\n2\\n15\\n777\\n7180\\n5000\\n0\", \"10\\n1\\n15\\n149\\n7180\\n5000\\n0\", \"10\\n1\\n15\\n149\\n7180\\n2901\\n0\", \"10\\n1\\n15\\n149\\n7180\\n6275\\n0\", \"10\\n1\\n15\\n149\\n7180\\n10757\\n...
none
{ "id": "p01163 Space Coconut Crab II", "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 loves nature a lot. She owns her own large bea...
code
{ "ground_truth": "{\"inputs\": [\"2 1 1 1 1\\n1 2\\n1 4\\n2 2\\n2 2\\n1 2\\n2 3\\n2 2 2 2\"], \"outputs\": [\"MOVE 1 2\\nMOVE 1 1\\nMOVE 1 2\\nMOVE 2 2\\nMOVE 2 1\\nMOVE 2 2\\nEXIT\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-6946", "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 s consisting of n lowercase L...
code
{ "ground_truth": "{\"inputs\": [\"7\\nabacaba\\n\", \"6\\naabcfg\\n\", \"6\\nbabcdc\\n\", \"5\\nbadec\\n\", \"3\\naba\\n\", \"7\\nbaaaccb\\n\", \"3\\naaa\\n\", \"4\\npara\\n\", \"3\\nbac\\n\", \"7\\nbdadccd\\n\", \"2\\nba\\n\", \"7\\nstoopid\\n\", \"7\\nyxyzyyx\\n\", \"3\\nacb\\n\", \"7\\nbcbcbdc\\n\", \"7\\nabacaba...
rating_<=1200
{ "id": "1155_A. Reverse a Substring", "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": "Snow Queen told Kay to form a word \"eternity\" usin...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n4 5\\n4 6\\n5 5\\n5 6\\n7 7\", \"10 2\\n4 7\\n-9 -9\\n9 2\\n4 4\\n7 10\\n9 8\\n-6 -2\\n-9 2\\n-7 -6\\n0 5\", \"10 5\\n-7 -3\\n-2 7\\n4 4\\n-1 5\\n9 4\\n-2 -3\\n-5 8\\n8 -4\\n-6 -6\\n8 8\", \"10 10\\n-8 8\\n2 0\\n9 -3\\n0 -5\\n3 9\\n-3 7\\n6 -10\\n8 6\\n9 2\\n4 -8\", \"10 2\\n3...
rating_>1900
{ "id": "685D", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a series 9, 33, 73, 129... Find the n-th term ...
code
{ "ground_truth": "{\"inputs\": [\"n = 4\", \"n = 5\"], \"outputs\": [\"129\", \"201\"]}", "style": "rule" }
EASY
{ "id": "taco-train-16885", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array of length N, starting from 1 to N. At ...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\", \"N = 3\"], \"outputs\": [\"4\", \"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-14418", "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 n piranhas with sizes a_1, a_2, …, a_n in ...
code
{ "ground_truth": "{\"inputs\": [\"6\\n5\\n5 3 4 4 5\\n3\\n1 1 1\\n5\\n4 4 3 4 4\\n5\\n5 5 4 3 2\\n3\\n1 1 2\\n5\\n5 4 3 5 5\\n\", \"1\\n3\\n5 3 4\\n\", \"6\\n5\\n5 3 4 4 5\\n3\\n1 1 1\\n5\\n4 4 3 4 4\\n5\\n5 5 4 3 2\\n3\\n1 1 2\\n5\\n5 4 3 5 5\\n\", \"1\\n3\\n10 1 5\\n\", \"6\\n5\\n5 3 4 4 5\\n3\\n1 1 1\\n5\\n4 4 3 ...
rating_<=1200
{ "id": "1433_C. Dominant Piranha", "rating": 900, "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": "Read problems statements in Mandarin chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"5\\nifchefisgoodforchess\\nfehcaskchefechohisvoice\\nhecfisaniceperson\\nletscallchefthefch\\nchooseaprogrammer\"], \"outputs\": [\"lovely 2\\nlovely 3\\nlovely 1\\nlovely 3\\nnormal\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23452", "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 return all unique possible subsequence...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"abc\\\"\", \"S = \\\"aab\\\"\"], \"outputs\": [\"\\\"ab\\\", \\\"ac\\\", \\\"abc\\\"\", \"\\\"ab\\\", \\\"aab\\\"\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-12287", "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": "Intersections of Crossing Path City are aligned to a...
code
{ "ground_truth": "{\"inputs\": [\"4\\n12 1\\n3 8\\n10 7\\n13 14\\n8 2\\n9 12\\n6 14\\n11 3\\n3 13\\n1 10\\n11 15\\n4 15\\n4 9\\n14 10\\n5 7\\n2 5\\n6 1\\n14 5\\n16 11\\n15 6\\n15 13\\n9 6\\n16 4\\n13 2\", \"3\\n1 2\\n4 7\\n8 6\\n2 3\\n8 9\\n5 3\\n4 6\\n5 6\\n7 8\\n1 4\\n2 6\\n5 9\", \"3\\n1 2\\n4 7\\n8 6\\n2 3\\n8 9...
none
{ "id": "p01947 Ninja Map", "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": "Frank explained its friend Felman the algorithm of E...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 6\\n10 11\", \"2\\n3 6\\n10 11\", \"2\\n1 3\\n10 11\", \"2\\n0 6\\n10 11\", \"2\\n0 6\\n0 11\", \"2\\n3 6\\n8 22\", \"2\\n3 6\\n8 4\", \"2\\n5 2\\n10 2\", \"2\\n4 10\\n8 6\", \"2\\n7 14\\n8 6\", \"2\\n7 14\\n8 4\", \"2\\n2 6\\n5 2\", \"2\\n0 14\\n16 2\", \"2\\n0 11\\n10 1\", \...
none
{ "id": "gcd2", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given N integers \\{A_{1}, A_{2}, \\ldots, A...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3\\n5 2 4\\n5\\n2 1 16 8 4\\n5\\n97 98 100 96 88\\n6\\n16 19 18 21 24 22\"], \"outputs\": [\"Yes\\nYes\\nNo\\nYes\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-25334", "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": "Inzane finally found Zane with a lot of money to spa...
code
{ "ground_truth": "{\"inputs\": [\"6 2 4\\n1 6\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\", \"6 3 2\\n1 5 6\\n1 2\\n1 3\\n1 4\\n1 5\\n5 6\", \"10 1 5\\n5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 8\\n8 9\\n9 10\", \"11 1 5\\n6\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n7 8\\n8 9\\n9 10\\n10 11\", \"2 1 1\\n1\\n1 2\"], \"outputs\": [\"1...
rating_>1900
{ "id": "796D", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Alice likes all the numbers which are divisible by A...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5 2 11\\n4 3 24\\n7 7 100\\n\"], \"outputs\": [\"15\\n28\\n-1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-2083", "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": "Max wants to buy a new skateboard. He has calculated...
code
{ "ground_truth": "{\"inputs\": [\"124\\n\", \"04\\n\", \"5810438174\\n\", \"1\\n\", \"039\\n\", \"97247\\n\", \"5810438174\\n\", \"12883340691714056185860211260984431382156326935244\\n\", \"2144315253572020279108092911160072328496568665545836825277616363478721946398140227406814602154768031\\n\", \"801246490140549710...
EASY
{ "id": "taco-train-4667", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have $2n$ integers $1, 2, \\dots, 2n$. You have ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\n1\\n5\\n1 4 5 9 10\\n2\\n3 4\\n\", \"3\\n1\\n1\\n5\\n1 4 5 9 10\\n2\\n1 4\\n\", \"3\\n1\\n1\\n5\\n1 4 5 9 10\\n2\\n2 4\\n\", \"3\\n1\\n1\\n5\\n1 4 5 7 10\\n2\\n1 4\\n\", \"3\\n1\\n1\\n5\\n1 4 5 8 10\\n2\\n2 4\\n\", \"3\\n1\\n1\\n5\\n1 2 5 9 10\\n2\\n2 4\\n\", \"3\\n1\\n1\\n5...
HARD
{ "id": "taco-train-19476", "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": "n children are standing in a circle and playing the ...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n2 5\\n\", \"7 5\\n10 4 11 4 1\\n\", \"90 10\\n1045 8705 6077 3282 1459 9809 383 6206 2674 7274\\n\", \"10 7\\n5 10 4 3 8 10 6\\n\", \"2 1\\n1\\n\", \"12 10\\n76 58 82 54 97 46 17 40 36 15\\n\", \"3 2\\n301633543 643389490\\n\", \"6 5\\n532623340 628883728 583960589 690950241 4...
rating_1201-1400
{ "id": "792_B. Counting-out Rhyme", "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": "The chef has a recipe he wishes to use for his guest...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 4 4\\n3 2 3 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 4\\n4 3 20 9 6\", \"3\\n2 4 4\\n3 2 1 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 4\\n4 3 20 9 8\", \"3\\n2 4 7\\n3 2 1 4\\n4 3 15 9 6\", \"3\\n2 4 4\\n3 2 3 6\\n4 3 20 9 8\", \"3\\n2 4 4\\n3 2 3 8\\n4 3 15 9 6\", \"3\\n2 4 8\\n3 2 3...
none
{ "id": "recipe", "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": "At $3147.3$ meters high, Fansipan is the tallest mou...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n\", \"3 2\\n\"], \"outputs\": [\"YES\\n1 2\\n1 3\\n\", \"NO\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-16823", "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": "Meera teaches a class of $n$ students, and every day...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 0 0\\n\", \"3\\n0 1 2\\n\"], \"outputs\": [\"2\\n\", \"1\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-17502", "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 are given two huge binary integer numbers $a$ an...
code
{ "ground_truth": "{\"inputs\": [\"4 4\\n1010\\n1101\\n\", \"4 5\\n1001\\n10101\\n\", \"5 5\\n11111\\n11111\\n\", \"5 5\\n11111\\n11111\\n\", \"5 5\\n11111\\n10111\\n\", \"5 5\\n11011\\n11111\\n\", \"5 5\\n11001\\n11111\\n\", \"4 4\\n1010\\n1111\\n\", \"4 5\\n1001\\n10100\\n\", \"5 5\\n11011\\n11110\\n\", \"4 4\\n101...
MEDIUM_HARD
{ "id": "taco-train-12123", "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": "Given an array of digits (values are from 0 to 9), fi...
code
{ "ground_truth": "{\"inputs\": [\"N = 6\\narr[] = {6, 8, 4, 5, 2, 3}\", \"N = 5\\narr[] = {5, 3, 0, 7, 4}\"], \"outputs\": [\"604\", \"82\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24568", "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": "Rashmi loves the festival of Diwali as she gets to s...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"3 5\"], [\"1\", \"4\"]], \"outputs\": [[\"1 4 10\", \"2 5 11\", \"4 10 22\", \"3 6 12\", \"1 4 10 22 46\", \"2 5 11 23 47\", \"4 10 22 46 94\", \"3 6 12 24 48\"], [\"1 4 10 22\", \"2 5 11 23\", \"4 10 22 46\", \"3 6 12 24\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-22164", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You all know that the Library of Bookland is the lar...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 2\\n1 1\\n3 1 3 2\\n2 1 1\\n\", \"6 5\\n2 1 2\\n2 1 2\\n3 1 2 3\\n2 1 5\\n2 4 4\\n2 4 4\\n\", \"4 3\\n4 3 2 2 1\\n3 1 1 3\\n3 2 3 3\\n2 3 1\\n\", \"4 4\\n3 3 4 1\\n4 3 4 2 2\\n4 2 1 2 3\\n3 4 2 2\\n\", \"3 5\\n2 1 2\\n2 1 5\\n2 4 4\\n\", \"2 1\\n10 1 1 1 1 1 1 1 1 1 1\\n25 1...
HARD
{ "id": "taco-test-81", "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": "Bingo is a game of chance played by a group of playe...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 29 45 56 68\\n1 19 43 50 72\\n11 25 40 49 61\\n9 23 31 58 63\\n4 27 42 54 71\\n\\n14 23 39 59 63\\n8 17 35 55 61\\n15 26 42 53 71\\n10 25 31 57 64\\n6 20 44 52 68\\n\", \"2\\n2189 2127 1451 982 835\\n150 1130 779 1326 1149\\n2697 2960 315 534 2537\\n2750 1771 875 1702 430\\n30...
HARD
{ "id": "taco-train-11792", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You've got a undirected tree *s*, consisting of *n* ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\", \"3\\n1 2\\n2 3\", \"4\\n2 1\\n3 1\\n4 1\", \"6\\n2 5\\n4 3\\n4 2\\n4 6\\n3 1\", \"6\\n3 6\\n4 2\\n3 4\\n3 1\\n6 5\", \"6\\n3 2\\n6 5\\n1 3\\n1 4\\n6 1\", \"6\\n5 3\\n4 2\\n5 6\\n6 1\\n5 4\", \"5\\n1 2\\n1 3\\n4 5\\n4 1\", \"5\\n1 5\\n5 3\\n2 4\\n4 1\", \"5\\n1 5\\n5 2\\n...
rating_>1900
{ "id": "237D", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Berland capital is shaken with three bold crimes...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n.*\\n..\\n**\\n\", \"3 3\\n*.*\\n*..\\n...\\n\", \"4 4\\n*..*\\n....\\n...*\\n....\\n\", \"100 2\\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..\\n..\\n..\\n..\...
rating_<=1200
{ "id": "181_A. Series of Crimes", "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": "The process of mammoth's genome decoding in Berland ...
code
{ "ground_truth": "{\"inputs\": [\"8\\nAG?C??CT\\n\", \"4\\nAGCT\\n\", \"6\\n????G?\\n\", \"4\\nAA??\\n\", \"4\\n????\\n\", \"252\\n???????GCG??T??TT?????T?C???C?CCG???GA???????AC??A???AAC?C?CC??CCC??A??TA?CCC??T???C??CA???CA??G????C?C?C????C??C??A???C?T????C??ACGC??CC?A?????A??CC?C??C?CCG?C??C??A??CG?A?????A?CT???CC...
EASY
{ "id": "taco-train-10327", "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": "JJ has an array A of length N. He can perform the fo...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6\\n2 6 4 3 4 1\\n2\\n1 10\\n3\\n1 10 1\\n\"], \"outputs\": [\"2\\n9\\n0\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-6372", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A new airplane SuperPuperJet has an infinite number ...
code
{ "ground_truth": "{\"inputs\": [\"1f\", \"2d\", \"4a\", \"5e\", \"2c\", \"1b\", \"1000000000000000000d\", \"999999999999999997a\", \"1c\", \"1d\", \"1e\", \"1a\", \"2a\", \"2b\", \"2e\", \"2f\", \"3a\", \"3b\", \"3c\", \"3d\", \"3e\", \"3f\", \"4b\", \"4c\", \"4d\", \"4e\", \"4f\", \"999999997a\", \"999999997b\", \"...
rating_<=1200
{ "id": "725B", "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": "The bear decided to store some raspberry for the win...
code
{ "ground_truth": "{\"inputs\": [\"6 2\\n100 1 10 40 10 40\\n\", \"5 1\\n5 10 7 3 20\\n\", \"3 0\\n1 2 3\\n\", \"89 1\\n50 53 97 41 68 27 53 66 93 19 11 78 46 49 38 69 96 9 43 16 1 63 95 64 96 6 34 34 45 40 19 4 53 8 11 18 95 25 50 16 64 33 97 49 23 81 63 10 30 73 76 55 7 70 9 98 6 36 75 78 3 92 85 75 40 75 55 71 9 9...
rating_<=1200
{ "id": "385_A. Bear and Raspberry", "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": "Little Vasya's uncle is a postman. The post offices ...
code
{ "ground_truth": "{\"inputs\": [\"8\\n1 2 1 2 1 2 1 2\\n2 1 2 1 2 1 2 1\\n\", \"4\\n1 7 2 3\\n8 1 1 3\\n\", \"10\\n44 22 14 9 93 81 52 64 3 99\\n43 23 13 10 92 82 51 65 2 100\\n\", \"1\\n1\\n1\\n\", \"10\\n1 5 4 3 2 1 5 8 2 3\\n1 1 1 1 5 5 5 5 5 5\\n\", \"1\\n1000000000\\n1000000000\\n\", \"20\\n31 16 20 30 19 35 8 ...
rating_>1900
{ "id": "66_E. Petya and Post", "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": "A long time ago, in a galaxy far far away two giant ...
code
{ "ground_truth": "{\"inputs\": [\"intellect\\ntell\\n\", \"google\\napple\\n\", \"sirisiri\\nsir\\n\", \"sirisiri\\nsiri\\n\", \"aaaaaaa\\naaaa\\n\", \"bbbbbb\\nbb\\n\", \"abc\\nabcabc\\n\", \"kek\\nkekekek\\n\", \"aaaaa\\naaa\\n\", \"abcdabcv\\nabcd\\n\", \"abcabcabczabcabcabcz\\ncab\\n\", \"aatopotopotopotaa\\ntop...
EASY
{ "id": "taco-train-22674", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Cybernetics Failures (CF) organisation made a pr...
code
{ "ground_truth": "{\"inputs\": [\"2 2 2 2\\nULD\\n\", \"3 4 2 2\\nUURDRDRL\\n\", \"4 4 2 2\\nDRUL\\n\", \"1 2 1 2\\nLR\\n\", \"1 1 1 1\\nURDLUURRDDLLURDL\\n\", \"15 17 8 9\\nURRDLUULLDDDRRUR\\n\", \"2 1 1 1\\nD\\n\", \"15 17 8 9\\nURRDLUULLDDRR\\n\", \"15 17 8 9\\nURRDLU\\n\", \"15 17 8 9\\nURRDLUULLDDR\\n\", \"15 1...
rating_1401-1600
{ "id": "606_B. Testing Robots", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "For a given sequence of integers $A = \\\\{a_0, a_1,...
code
{ "ground_truth": "{\"inputs\": [\"9\\n1 4 1 4 2 1 3 5 6\\n3\\n0 9 1\\n1 6 1\\n3 7 5\", \"9\\n1 4 1 4 2 0 3 5 6\\n3\\n0 9 1\\n1 6 1\\n3 7 5\", \"9\\n1 4 1 4 4 -1 3 5 6\\n3\\n0 9 1\\n0 6 1\\n3 7 5\", \"9\\n1 4 1 4 4 -1 3 5 6\\n3\\n0 9 1\\n0 6 2\\n2 7 5\", \"9\\n1 4 0 4 4 -1 3 5 6\\n3\\n0 9 1\\n0 6 2\\n2 7 5\", \"9\\n2...
none
{ "id": "p02441 Count", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef and Roma are playing a game. Rules of the game ...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"3\", \"1 2 3\", \"3\", \"1 2 1\"], \"2\\n3\\n1 2 3\\n3\\n1 2 2\", \"2\\n3\\n1 2 3\\n3\\n0 2 1\", \"2\\n3\\n1 0 3\\n3\\n0 2 1\", \"2\\n3\\n1 0 2\\n3\\n0 2 1\", \"2\\n3\\n1 1 2\\n3\\n0 4 1\", \"2\\n3\\n1 1 4\\n3\\n0 4 1\", \"2\\n3\\n1 1 4\\n3\\n0 3 1\", \"2\\n3\\n1 1 5\\n3\\n0...
MEDIUM
{ "id": "taco-train-11619", "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": "Vedant has a hidden array of N elements. Given the [...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 11\\n1 2\\n74120341 829182732\"], \"outputs\": [\"Odd\\nEven\\nImpossible\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20756", "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": "On an $8 \\times 8$ grid, some horizontal rows have ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n\\n....B...\\n....B...\\n....B...\\nRRRRRRRR\\n....B...\\n....B...\\n....B...\\n....B...\\n\\nRRRRRRRB\\nB......B\\nB......B\\nB......B\\nB......B\\nB......B\\nB......B\\nRRRRRRRB\\n\\nRRRRRRBB\\n.B.B..BB\\nRRRRRRBB\\n.B.B..BB\\n.B.B..BB\\nRRRRRRBB\\n.B.B..BB\\n.B.B..BB\\n\\n......
EASY
{ "id": "taco-train-20880", "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": "Cleartrip decided that they wanted to verify the use...
code
{ "ground_truth": "{\"inputs\": [\"http://www.cleartrip.com/signin/service?username=test&pwd=test&profile=developer&role=ELITE&key=manager\\n\\nSAMPLE\", \"http://www.cleartrip.com/signin/service?username=test&pwd=test&profile=developer&role=ELITE&key=manager\", \"http://www.cleartrip.com.signin/service?username=test...
none
{ "id": "the-art-of-verification", "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": "You are given a permutation of numbers from 1 to *n*...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 3 4 2\", \"5\\n1 5 2 4 3\", \"100\\n17 41 19 23 46 16 10 31 82 12 77 32 11 71 83 25 98 18 34 59 13 73 80 65 37 22 6 2 24 5 94 42 51 63 52 92 97 26 93 38 36 87 64 70 14 43 68 85 33 44 74 89 56 1 69 88 20 49 48 21 84 90 7 47 39 55 81 86 76 57 3 62 15 78 100 60 61 66 91 30 58 35 ...
rating_>1900
{ "id": "452F", "rating": 2700, "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": "Get excited, folks, because it is time for the final...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"8 38\", \"7 8 19 7 8 7 10 20\", \"4 5\", \"2 10 4 9\"]], \"outputs\": [[\"7\", \"2\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-10347", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef has opened a new airline. Chef has 10 airplanes...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 15 10\\n1 10 1\\n5 60 100\\n1 11 7\\n\"], \"outputs\": [\"150\\n10\\n5000\\n70\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19116", "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": "One day Nikita found the string containing letters \...
code
{ "ground_truth": "{\"inputs\": [\"abba\", \"bab\", \"bbabbbaabbbb\", \"bbabbbbbaaba\", \"bbabbbababaa\", \"aabbaababbab\", \"a\", \"b\", \"ab\", \"ba\", \"bb\", \"aa\", \"babbbaab\", \"abaaaa\", \"aaa\"], \"outputs\": [\"4\", \"2\", \"9\", \"10\", \"9\", \"8\", \"1\", \"1\", \"2\", \"2\", \"2\", \"2\", \"6\", \"6\",...
rating_1401-1600
{ "id": "877B", "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": "Vasya has *n* items lying in a line. The items are c...
code
{ "ground_truth": "{\"inputs\": [\"3 4 4 19 1\\n42 3 99\", \"4 7 2 3 9\\n1 2 3 4\", \"2 100 100 10000 10000\\n100 100\", \"2 3 4 5 6\\n1 2\", \"1 78 94 369 10000\\n93\", \"1 94 78 369 10000\\n93\", \"5 1 100 1 10000\\n1 2 3 4 5\", \"5 100 1 10000 1\\n1 2 3 4 5\", \"5 1 100 10000 1\\n1 2 3 4 5\", \"5 100 1 1 10000\\n1...
rating_1401-1600
{ "id": "354A", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem Statement\nLevy's conjecture, named after Hy...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n7\\n11\", \"3\\n2\\n9\\n11\", \"3\\n2\\n9\\n16\", \"3\\n2\\n4\\n16\", \"3\\n2\\n12\\n11\", \"3\\n2\\n8\\n16\", \"3\\n2\\n8\\n21\", \"3\\n2\\n8\\n5\", \"3\\n4\\n3\\n1\", \"3\\n6\\n3\\n1\", \"3\\n2\\n9\\n5\", \"3\\n1\\n38\\n23\", \"3\\n3\\n33\\n6\", \"3\\n7\\n4\\n16\", \"3\\n4...
none
{ "id": "levy", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The National Championships are starting soon. There ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4 3 1 2\\n4 2 1 2\\n2 1 1 2\"], \"outputs\": [\"2\\n1\\n0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3166", "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": "Limak is an old brown bear. He often goes bowling wi...
code
{ "ground_truth": "{\"inputs\": [\"5\\n-2 -8 0 5 -3\\n\", \"6\\n-10 20 -30 40 -50 60\\n\", \"6\\n3 3 0 -7 6 -6\\n\", \"4\\n0 -7 1 -9\\n\", \"1\\n0\\n\", \"10\\n-7167 7648 9878 -3322 2789 3245 7823 -8001 4786 9940\\n\", \"15\\n2 -2 5 7 -3 -3 -4 -5 -2 3 -10 7 -5 -2 -2\\n\", \"9\\n8 -2 -8 4 -8 8 -3 -8 0\\n\", \"7\\n-3 -...
rating_>1900
{ "id": "573_E. Bear and Bowling", "rating": 3200, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "<image>\n\nSome time ago Slastyona the Sweetmaid dec...
code
{ "ground_truth": "{\"inputs\": [\"4 1\\n1 2 2 1\\n\", \"7 2\\n1 3 3 1 4 4 4\\n\", \"8 3\\n7 7 8 7 7 8 1 7\\n\", \"50 5\\n2 39 16 20 32 36 29 42 14 23 9 4 28 17 45 16 46 1 39 33 47 15 34 43 6 6 12 15 46 11 32 16 31 12 41 33 47 35 22 3 10 4 9 36 22 22 17 33 15 46\\n\", \"50 7\\n34 49 9 4 29 13 17 46 12 12 14 20 11 36 ...
rating_>1900
{ "id": "834_D. The Bakery", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Hongcow is ruler of the world. As ruler of the world...
code
{ "ground_truth": "{\"inputs\": [\"4 1 2\\n1 3\\n1 2\\n\", \"3 3 1\\n2\\n1 2\\n1 3\\n2 3\\n\", \"6 4 2\\n1 4\\n1 2\\n2 3\\n4 5\\n5 6\\n\", \"5 2 2\\n1 2\\n1 3\\n2 4\\n\", \"10 10 3\\n2 5 6\\n1 3\\n4 1\\n4 3\\n5 3\\n3 9\\n8 4\\n9 4\\n5 10\\n8 7\\n10 8\\n\", \"1 0 1\\n1\\n\", \"20 4 5\\n1 3 9 10 20\\n5 6\\n1 2\\n7 9\\n...
rating_1401-1600
{ "id": "745_C. Hongcow Builds A Nation", "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": "Read problems statements in Mandarin Chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2 Dee\\n2 2\"], \"outputs\": [\"Dum\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-7519", "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": "As you might have heard, Gunnar is an old and forget...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 3 5\\n\", \"4\\n2 6 4 8\\n\"], \"outputs\": [\"7\\n\", \"14\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-8334", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string s, find the longest palindromic substr...
code
{ "ground_truth": "{\"fn_name\": \"longestPalindrome\", \"inputs\": [[\"\\\"babad\\\"\"]], \"outputs\": [\"bab\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-10303", "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": "Polycarpus participates in a competition for hacking...
code
{ "ground_truth": "{\"inputs\": [\"116401024\\n97 1024\\n\", \"284254589153928171911281811000\\n1009 1000\\n\", \"120\\n12 1\\n\", \"604\\n6 4\\n\", \"2108\\n7 8\\n\", \"7208\\n10 1\\n\", \"97502821\\n25 91\\n\", \"803405634\\n309 313\\n\", \"15203400\\n38 129\\n\", \"8552104774\\n973 76\\n\", \"2368009434\\n320 106\...
MEDIUM_HARD
{ "id": "taco-train-23983", "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": "Problem\n\nGaccho is enthusiastic about the popular ...
code
{ "ground_truth": "{\"inputs\": [\"5 4 50\\n0 1 1 10 0\\n1 2 10\\n2 3 10\\n2 4 10\\n4 5 10\", \"5 4 40\\n0 1 1 1 0\\n1 2 5\\n2 3 5\\n3 4 5\\n4 5 5\", \"4 3 100\\n0 3 1 0\\n1 2 5\\n2 3 30\\n3 4 5\", \"5 4 50\\n0 1 1 10 0\\n1 2 17\\n2 3 10\\n2 4 10\\n4 5 10\", \"5 4 50\\n0 1 1 12 0\\n1 2 17\\n2 3 10\\n2 4 10\\n4 5 10\"...
none
{ "id": "p01079 Hogemon Get", "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 are standing on a point (n, m) and you want to go...
code
{ "ground_truth": "{\"inputs\": [\"N=3, M=0\", \"N=3, M=6\"], \"outputs\": [\"1\", \"84\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6877", "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": "Evil organizations that attempt to conquer the world...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0.200 3 0.500\\n0.100 0 0.400\\n0.900 1 1.000\\n0.400 2 0.600\\n2\\n0.600 1 0.800\\n0.500 0 1.000\\n9\\n0.200 7 0.600\\n0.400 0 0.500\\n0.700 8 1.000\\n0.100 4 0.400\\n0.200 2 0.600\\n0.100 6 0.400\\n0.100 5 0.400\\n0.600 3 0.900\\n0.500 1 0.900\\n9\\n0.300 8 0.900\\n0.700 3 0.8...
none
{ "id": "p00666 World Domination", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Chef's latest idea is that some cooks might work...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4 5\\n0 1\\n1 2\\n2 3\\n1 3\\n3 0\\n4 3\\n0 1\\n2 3\\n2 1\", \"2\\n4 5\\n0 1\\n1 2\\n2 3\\n1 3\\n3 0\\n4 3\\n0 1\\n2 3\\n2 0\", \"2\\n4 5\\n0 1\\n1 2\\n0 3\\n1 3\\n1 0\\n4 3\\n0 1\\n2 3\\n2 0\", \"2\\n4 5\\n0 1\\n1 2\\n1 3\\n1 3\\n2 0\\n4 3\\n0 1\\n2 3\\n2 0\", \"2\\n4 5\\n0 1\\...
EASY
{ "id": "taco-train-10298", "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 spring of 2014, a student successfully passed...
code
{ "ground_truth": "{\"inputs\": [\"1 1 1\\n2\", \"3 2 1\\n3\\n3\\n3\", \"3 1 -1\\n2\\n-3\\n2\", \"3 1 -10\\n-10\\n-10\\n-10\", \"1 0 1\\n2\", \"3 2 0\\n3\\n3\\n3\", \"3 1 -10\\n-19\\n-10\\n-10\", \"0 0 1\\n2\", \"3 2 0\\n5\\n3\\n3\", \"2 1 -10\\n-19\\n-10\\n-10\", \"3 2 1\\n5\\n3\\n3\", \"1 0 0\\n4\", \"3 2 0\\n1\\n3...
none
{ "id": "p01754 Dinner", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The doctor prescribed Chef to take a multivitamin ta...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 10\\n12 0\\n10 29\\n10 30\\n\"], \"outputs\": [\"YES\\nNO\\nNO\\nYES\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3904", "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 have decided to write a book introducing good re...
code
{ "ground_truth": "{\"inputs\": [\"6\\nkhabarovsk 20\\nmoscow 10\\nkazan 50\\nkazan 35\\nmoscow 60\\nkhabarovsk 40\", \"10\\nyakutsk 10\\nyakutsk 20\\nyakutsk 30\\nyakutsk 40\\nyakutsk 50\\nyakutsk 60\\nyakutsk 70\\nyakutsk 80\\nyakutsk 90\\nyakutsk 100\", \"6\\nkhabarovsk 20\\nmoscow 10\\nkazan 50\\nkazan 35\\nmosco...
none
{ "id": "p03030 AtCoder Beginner Contest 128 - Guidebook", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a sequence of n pairs of integers: (a_...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1\\n1 1\\n2 3\\n\", \"3\\n1 1\\n2 2\\n3 1\\n\", \"4\\n2 3\\n2 2\\n2 1\\n2 4\\n\", \"2\\n1 2\\n2 1\\n\", \"1\\n1 1\\n\", \"3\\n3 3\\n3 3\\n3 3\\n\", \"2\\n1 2\\n2 2\\n\", \"3\\n1 1\\n1 1\\n2 2\\n\", \"3\\n1 1\\n1 2\\n3 1\\n\", \"4\\n2 3\\n1 2\\n2 1\\n2 4\\n\", \"4\\n2 3\\n1 2\\...
rating_1601-1900
{ "id": "1207_D. Number Of Permutations", "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": "Find the minimum area of a square land on which you ...
code
{ "ground_truth": "{\"inputs\": [\"8\\n3 2\\n4 2\\n1 1\\n3 1\\n4 7\\n1 3\\n7 4\\n100 100\\n\", \"8\\n3 2\\n4 2\\n1 1\\n3 1\\n4 7\\n1 3\\n7 4\\n100 101\\n\", \"8\\n3 2\\n4 2\\n1 1\\n3 1\\n4 7\\n1 2\\n7 4\\n100 101\\n\", \"8\\n3 2\\n4 2\\n1 1\\n3 1\\n1 7\\n1 2\\n7 4\\n100 101\\n\", \"8\\n3 2\\n2 2\\n1 1\\n3 1\\n1 11\\n...
rating_<=1200
{ "id": "1360_A. Minimal Square", "rating": 800, "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": "The year of 2012 is coming...\n\nAccording to an anc...
code
{ "ground_truth": "{\"inputs\": [\"3\\nTroll likes Dracul\\nDracul likes Anka\\nSnowy likes Hexadecimal\\n210 200 180\", \"2\\nAnka likes Chapay\\nChapay likes Anka\\n10000 50 50\", \"11\\nSnowy likes Dracul\\nAnka likes Dracul\\nChapay likes Snowy\\nHexadecimal likes Troll\\nAnka likes Cleo\\nChapay likes Dracul\\nA...
rating_1201-1400
{ "id": "77A", "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": "Consider an NXN matrix on which the possible moves f...
code
{ "ground_truth": "{\"inputs\": [\"144\\n800 812 801 813\\n800 812 801 814\\n800 812 801 815\\n800 812 801 816\\n800 812 801 817\\n800 812 801 818\\n800 812 801 819\\n800 812 801 820\\n800 812 801 821\\n800 812 801 822\\n800 812 801 823\\n800 812 801 824\\n800 812 802 813\\n800 812 802 814\\n800 812 802 815\\n800 812...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3158", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in [Hindi], [Mandarin Chine...
code
{ "ground_truth": "{\"inputs\": [\"5\\n6\\ncabdab\\n21\\nyourcrushlovesyouback\\n16\\nwubbalubbadubdub\\n5\\nsplit\\n7\\nsplitit\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\\nYES\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24099", "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 have a string s and a chip, which you can place ...
code
{ "ground_truth": "{\"inputs\": [\"6\\nabcdef\\ncdedcb\\naaa\\naaaaa\\naab\\nbaaa\\nab\\nb\\nabcdef\\nabcdef\\nba\\nbaa\\n\", \"1\\naaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...
rating_1201-1400
{ "id": "1553_B. Reverse String", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Bees are one of the most industrious insects. Since ...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n0 1\\n1 2\\n2 0\\n\", \"2 1\\n0 1\\n\", \"5 6\\n0 1\\n1 2\\n1 3\\n2 3\\n0 4\\n3 4\\n\"], \"outputs\": [\"3\\n\", \"impossible\\n\", \"3\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-24467", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a long seat of width X centimeters. There ar...
code
{ "ground_truth": "{\"inputs\": [\"100000 1 1\", \"13 3 1\", \"64145 123 456\", \"12 3 1\", \"64146 123 456\", \"100010 1 1\", \"8 3 1\", \"64145 33 456\", \"12 3 2\", \"64146 123 44\", \"100010 1 0\", \"64145 33 653\", \"64146 205 44\", \"110010 1 0\", \"8 3 3\", \"64145 20 653\", \"108320 205 44\", \"111010 1 0\", ...
none
{ "id": "p03548 AtCoder Beginner Contest 078 - ISU", "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 N stones, numbered 1, 2, \\ldots, N. For e...
code
{ "ground_truth": "{\"inputs\": [\"8 5\\n1 3 4 5 10 11 12 13\", \"2 1000000000000\\n500000 1000000\", \"5 6\\n1 2 3 4 5\", \"1 1000000000000\\n500000 1000000\", \"8 5\\n1 3 4 6 10 11 12 13\", \"2 1000000000000\\n948591 1000000\", \"8 5\\n1 3 4 6 10 11 12 14\", \"2 1000000000000\\n710905 1000000\", \"2 1000000100000\\...
none
{ "id": "p03185 Educational DP Contest - Frog 3", "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 have a cross-section paper with W x H squares, a...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n1 1 0\\n0 0 1\", \"2 2\\n0 0\\n1 1\", \"3 3\\n1 1 0\\n0 0 1\", \"3 4\\n1 1 0\\n0 0 1\", \"3 5\\n1 1 0\\n0 0 1\", \"3 5\\n1 1 0\\n1 0 1\", \"3 5\\n1 1 0\\n1 -1 1\", \"3 3\\n1 1 -1\\n0 0 1\", \"3 4\\n1 1 0\\n0 1 1\", \"3 5\\n1 0 0\\n1 0 1\", \"3 5\\n1 1 -1\\n1 0 1\", \"3 4\\n1 1...
none
{ "id": "p00368 Checkered Pattern", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a rectangular grid of lattice points f...
code
{ "ground_truth": "{\"inputs\": [\"0 10\\n\", \"1 1\\n\", \"9 3\\n\", \"3 2\\n\", \"2 4\\n\", \"5 3\\n\", \"555 1\\n\", \"1000 3\\n\", \"6 5\\n\", \"987 567\\n\", \"1000 500\\n\", \"3 1\\n\", \"10 100\\n\", \"2 1\\n\", \"955 956\\n\", \"1 5\\n\", \"4 4\\n\", \"3 4\\n\", \"6 4\\n\", \"20 10\\n\", \"1000 20\\n\", \"1 1...
rating_1601-1900
{ "id": "452_B. 4-point polyline", "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": "After six days, professor GukiZ decided to give more...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"4 3 5 3\", \"2 1 5\", \"3 2 8 2\", \"3 8\"]], \"outputs\": [[\"12\", \"-1\"]]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-1733", "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": "When new students come to the Specialized Educationa...
code
{ "ground_truth": "{\"inputs\": [\"|+|=||||||\\n\", \"|||||+||=||\\n\", \"||+|=|||||\\n\", \"||||+||=||||||\\n\", \"|+||||||=|||||\\n\", \"|||||||||||||||||||||||||||||||||||||||||+|||||||||||||||||||||||||||||||||||||||||=|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\\n\", \"|+|=|...
none
{ "id": "394_A. Counting Sticks", "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 Patisserie AtCoder sells cakes with number-shape...
code
{ "ground_truth": "{\"inputs\": [\"2 2 2 8\\n4 6\\n1 5\\n3 8\", \"10 10 10 20\\n7467038376 5724769290 292794712 2843504496 3381970101 8402252870 249131806 6310293640 6690322794 6082257488\\n1873977926 2576529623 1144842195 1379118507 6003234687 4925540914 3902539811 3326692703 484657758 2877436338\\n4975681328 897438...
none
{ "id": "p03078 AtCoder Beginner Contest 123 - Cake 123", "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": "Given a string, $\\mbox{A}$, we define some operatio...
code
{ "ground_truth": "{\"inputs\": [\"eggegg\\n\", \"abcdefgabcdefg\\n\", \"aeiouuoiea\\n\"], \"outputs\": [\"egg\\n\", \"agfedcb\\n\", \"aeiou\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-589", "rating": null, "split": "confidence_train", "sub_source": "HARD" }