data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "A number k is called a square number if for some valu...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 4\"], \"outputs\": [\"0\", \"1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-15517", "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": "Nim is the most famous two-player algorithm game. Th...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n1 1\\n3\\n2 1 4\\n\"], \"outputs\": [\"Second\\nFirst\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22101", "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\": [\"2\\n4\\n4 3 2 1\\n5\\n1 2 2 3 1\"], \"outputs\": [\"1 2 3 2\\n2 3 2 3 1\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-18668", "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": "Read problem statements in [Bengali], [Russian], [Ma...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3\\n2 4 5\\n3\\n0 0 0\\n3\\n1 1 1\\n3\\n1 1 2\\n\"], \"outputs\": [\"1\\n0\\n-1\\n-1\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-19146", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem description\nNineteen years after the conclu...
code
{ "ground_truth": "{\"inputs\": [\"3\\nabccde\\n2\\nacd\\nbc\\nabccde\\n2\\nad\\nbce\\nmnopq\\n3\\namn\\nopsp\\nqrwas\"], \"outputs\": [\"NO\\nNO\\nYES\"]}", "style": "rule" }
none
{ "id": "harry", "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": "This is an easy version of the problem. The actual p...
code
{ "ground_truth": "{\"inputs\": [\"9\\nabacbecfd\\n\", \"8\\naaabbcbb\\n\", \"7\\nabcdedc\\n\", \"5\\nabcde\\n\", \"200\\nraaaaabbbccccccccccdddddeeeeeeeeeeeeeeffffffffffggggggggghhhhhiiiiiiiiijjjjkkkkkkkkkkllllllllmmmmmmmmnnnnnnnooooooooppppppqqqqqqqqqqrrrrrrrrssssttttttttttuuuuuuuuvvvvvvwwwwwwxxxxxxxyyyyyyyzzzzzzzz...
MEDIUM_HARD
{ "id": "taco-train-11742", "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": "Jaggu is a little kid and he likes playing with wate...
code
{ "ground_truth": "{\"inputs\": [\"2\\nU 692778 7 291188\\nR 636916 747794\\n\"], \"outputs\": [\"378 \\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-11237", "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": "HDD hard drives group data by sectors. All files are...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 1 2\", \"5\\n1 3 5 4 2\", \"1\\n1\", \"1\\n1\", \"1\\n1\", \"10\\n8 2 10 3 4 6 1 7 9 5\", \"10\\n1 2 3 4 5 6 7 8 9 10\", \"10\\n1 3 5 7 9 10 8 6 4 2\", \"100\\n11 9 35 34 51 74 16 67 26 21 14 80 84 79 7 61 28 3 53 43 42 5 56 36 69 30 22 88 1 27 65 91 46 31 59 50 17 96 25 18 64...
rating_<=1200
{ "id": "612B", "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": "After solving some Graph Theory related problems KBG...
code
{ "ground_truth": "{\"inputs\": [\"1\\n6 2\\n3 6\\n2 3\\n\"], \"outputs\": [\"2\\n5\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-18308", "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": "There is a country with n citizens. The i-th of them...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 50 2 1 10\\n3\\n1 2 0\\n2 8\\n1 3 20\\n\", \"4\\n1 2 3 4\\n3\\n2 3\\n1 2 2\\n2 1\\n\", \"4\\n1 2 3 4\\n2\\n2 3\\n2 2\\n\", \"4\\n1 2 3 4\\n2\\n2 1000\\n2 1\\n\", \"1\\n1\\n3\\n2 4\\n1 1 2\\n2 10\\n\", \"5\\n1 2 3 4 5\\n10\\n1 1 0\\n2 1\\n1 2 0\\n2 2\\n1 3 0\\n2 3\\n1 4 0\\n2 4...
rating_1401-1600
{ "id": "1199_D. Welfare State", "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": "Chandu is very fond of strings. (Or so he thinks!) B...
code
{ "ground_truth": "{\"inputs\": [\"3\\nabb\\naaab\\nababa\\n\\nSAMPLE\", \"3\\nabb\\naaab\\nababa\\n\\nSAMLPE\", \"3\\nbab\\naaab\\nababa\\n\\nSAMMPF\", \"3\\nbab\\nbaab\\nababa\\n\\nSAMMPF\", \"3\\nbab\\nbaac\\nababa\\n\\nSAMMPF\", \"3\\nbab\\ncaab\\nababa\\n\\nSAMMPF\", \"3\\nbab\\ncaaa\\nababa\\n\\nSAMMPF\", \"3\\...
none
{ "id": "chandu-and-consecutive-letters", "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": "Vasya has several phone books, in which he recorded ...
code
{ "ground_truth": "{\"inputs\": [\"2\\nivan 1 00123\\nmasha 1 00123\", \"3\\nkarl 2 612 12\\npetr 1 12\\nkatya 1 612\", \"4\\nivan 3 123 123 456\\nivan 2 456 456\\nivan 8 789 3 23 6 56 9 89 2\\ndasha 2 23 789\", \"20\\nnxj 6 7 6 6 7 7 7\\nnxj 10 8 5 1 7 6 1 0 7 0 6\\nnxj 2 6 5\\nnxj 10 6 7 6 6 5 8 3 6 6 8\\nnxj 10 6 ...
rating_1201-1400
{ "id": "898C", "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": "Chef has N strings. Each string S_{i} has length M a...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 2\\nac\\nba\\ncb\\n2 3\\nxkx\\nptp\\n4 4\\nabaa\\nbaba\\nbaab\\naabb\\n4 4\\nabaa\\nbaba\\nbaab\\naaab\\n\"], \"outputs\": [\"2\\n0\\n-1\\n3\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-17217", "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": "Chef has two integers X and Y. Chef wants to perform...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\\n99999999999999999 99999999999999999\"], \"outputs\": [\"3\\n99999999999999999\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-616", "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": "In McD's Burger, n hungry burger fans are ordering b...
code
{ "ground_truth": "{\"inputs\": [\"5\\n8 1\\n4 2\\n5 6\\n3 1\\n4 3\\n\\nSAMPLE\", \"3\\n1 3\\n2 3\\n3 3\", \"3\\n1 3\\n2 3\\n6 3\", \"5\\n8 1\\n4 0\\n5 6\\n3 1\\n4 3\\n\\nSAMPLE\", \"5\\n8 1\\n4 0\\n1 6\\n6 1\\n5 3\\n\\nSAMPLE\", \"5\\n8 2\\n4 0\\n1 6\\n6 1\\n0 3\\n\\nSAMPLE\", \"3\\n0 5\\n2 2\\n1 5\", \"5\\n8 2\\n4 ...
none
{ "id": "burger-deliver-time-1", "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": "One day Polycarp published a funny picture in a soci...
code
{ "ground_truth": "{\"inputs\": [\"5\\ntourist reposted Polycarp\\nPetr reposted Tourist\\nWJMZBMR reposted Petr\\nsdya reposted wjmzbmr\\nvepifanov reposted sdya\\n\", \"6\\nMike reposted Polycarp\\nMax reposted Polycarp\\nEveryOne reposted Polycarp\\n111 reposted Polycarp\\nVkCup reposted Polycarp\\nCodeforces repo...
EASY
{ "id": "taco-test-255", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The nation of Panel holds an annual show called The ...
code
{ "ground_truth": "{\"inputs\": [\"6 3\\n2 1\\n2 6\\n4 2\\n5 6\\n2 3\", \"8 4\\n2 6\\n2 7\\n7 8\\n1 2\\n3 1\\n2 4\\n7 5\", \"2 1\\n1 2\", \"3 1\\n2 1\\n2 3\", \"3 2\\n1 3\\n1 2\", \"4 2\\n4 2\\n1 4\\n3 2\", \"15 3\\n9 11\\n11 8\\n7 9\\n9 14\\n12 8\\n10 7\\n1 14\\n1 5\\n12 15\\n10 3\\n5 2\\n13 15\\n4 13\\n6 4\", \"15 ...
rating_>1900
{ "id": "980E", "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": "Imagine a city with n junctions and m streets. Junct...
code
{ "ground_truth": "{\"inputs\": [\"5 4\\n1 2\\n1 3\\n1 4\\n1 5\\n\", \"2 1\\n1 2\\n\", \"4 5\\n1 2\\n2 3\\n3 4\\n4 1\\n1 3\\n\", \"6 7\\n1 2\\n2 3\\n1 3\\n1 4\\n4 5\\n5 6\\n6 4\\n\", \"50 49\\n5 21\\n11 48\\n14 2\\n9 24\\n9 32\\n1 24\\n38 3\\n1 19\\n6 24\\n17 25\\n46 36\\n3 18\\n15 33\\n45 24\\n36 24\\n7 30\\n40 24\\...
rating_>1900
{ "id": "475_E. Strongly Connected City 2", "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": "Chef has the binary representation S of a number X w...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2\\n10\\n2\\n11\\n3\\n101\\n3\\n110\\n\"], \"outputs\": [\"1\\n2\\n1\\n2\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3569", "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": "Valery is a PE teacher at a school in Berland. Soon ...
code
{ "ground_truth": "{\"inputs\": [\"3 250 185 230\\n0 185 250\", \"4 250 185 230\\n0 20 185 250\", \"2 300 185 230\\n0 300\", \"4 300 4 5\\n0 6 7 300\", \"2 100 30 70\\n0 100\", \"2 300 140 160\\n0 300\", \"4 300 1 2\\n0 298 299 300\", \"3 350 150 160\\n0 310 350\", \"4 300 4 5\\n0 298 299 300\", \"19 180 117 148\\n0 ...
rating_1601-1900
{ "id": "479D", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Vika has an infinite sheet of squared paper. Initial...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 1 2 1\\n1 4 1 2\\n0 3 2 3\", \"4\\n-2 -1 2 -1\\n2 1 -2 1\\n-1 -2 -1 2\\n1 2 1 -2\", \"1\\n1 1 1 1\", \"10\\n-357884841 -999999905 -357884841 999999943\\n-130177221 999999983 -130177221 -999999974\\n627454332 999999936 627454332 -999999900\\n999999986 366591992 -999999919 36659...
rating_>1900
{ "id": "610D", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You've got an n × m pixel picture. Each pixel can be...
code
{ "ground_truth": "{\"inputs\": [\"6 5 1 2\\n##.#.\\n.###.\\n###..\\n#...#\\n.##.#\\n###..\\n\", \"2 5 1 1\\n#####\\n.....\\n\", \"5 10 4 16\\n.#####....\\n##..#..##.\\n.#..##.#..\\n##..#####.\\n...#.##..#\\n\", \"1 1 1 2\\n.\\n\", \"6 3 1 4\\n##.\\n#..\\n#..\\n..#\\n.#.\\n#.#\\n\", \"69 1 1 2\\n#\\n.\\n#\\n#\\n.\\n#...
rating_1601-1900
{ "id": "225_C. Barcode", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There exists a cursed city known as District B12. It...
code
{ "ground_truth": "{\"inputs\": [\"5\\n0 0.5 0.5 0 0.5\\n0.5 0 0.5 0 0.5\\n0.5 0.5 0 0 0.5\\n1 1 1 0 1\\n0.5 0.5 0.5 0 0\", \"5\\n0 0.73 0.1 0.22 0.01 \\n0.27 0 0.39 0.34 0.37 \\n0.9 0.61 0 0.2 0.43 \\n0.78 0.66 0.8 0 0.58 \\n0.99 0.63 0.57 0.42 0\", \"5\\n0 0.255 0.318 0.391 0.507 \\n0.745 0 0.375 0.151 0.562 \\n0.6...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-20429", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A grid of r × c is given.\nNumbers from 1 to 8 are w...
code
{ "ground_truth": "{\"inputs\": [\"7 7\\n2.3.1.1\\n.......\\n2......\\n.......\\n..3.3..\\n.......\\n2.2.4.3\", \"3 3\\n.1.\\n1.1\\n.1.\", \"1 3\\n1.1\", \"3 3\\n4.2\\n...\\n2..\", \"7 7\\n2.3.1/1\\n.......\\n2......\\n.......\\n..3.3..\\n.......\\n2.2.4.3\", \"0 3\\n.0.\\n1.1\\n-1.\", \"3 3\\n.1.\\n1.1\\n-1.\", \"1 ...
none
{ "id": "p00994 Connect", "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": "Chef had constructed 2 buildings - one of height N a...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2 3\", \"1\\n2 1\", \"1\\n2 0\", \"1\\n3 0\", \"1\\n3 -1\", \"1\\n0 0\", \"1\\n4 -2\", \"1\\n4 -1\", \"1\\n2 -5\", \"1\\n0 -9\", \"1\\n-1 -9\", \"1\\n14 0\", \"1\\n-1 12\", \"1\\n0 12\", \"1\\n0 19\", \"1\\n-1 19\", \"1\\n-1 37\", \"1\\n0 37\", \"1\\n0 27\", \"1\\n0 35\", \"1\\n...
none
{ "id": "skyscr", "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": "Today Pari gave Arya a cool graph problem. Arya wrot...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2\\n2 3\\n3 1\\n\", \"6 7\\n1 2\\n2 3\\n3 1\\n3 4\\n4 5\\n5 6\\n6 4\\n\", \"6 6\\n6 2\\n6 3\\n5 3\\n2 5\\n1 4\\n5 4\\n\", \"10 7\\n10 9\\n6 10\\n2 7\\n8 6\\n9 1\\n1 2\\n7 8\\n\", \"4 2\\n4 1\\n2 3\\n\", \"10 23\\n2 9\\n7 5\\n9 7\\n7 2\\n1 9\\n2 10\\n6 5\\n6 7\\n10 7\\n1 6\\n...
rating_>1900
{ "id": "687_E. TOF", "rating": 2900, "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 Chef's house there are N apples lying in a row on...
code
{ "ground_truth": "{\"inputs\": [[\"5 5\", \"2 4 3 2 1\"], [\"5 5\", \"2 4 9 2 5\"], \"5 8\\n2 4 3 2 1\", \"5 5\\n2 4 3 4 1\", \"5 8\\n2 4 5 3 1\", \"4 5\\n2 4 3 3 1\", \"3 5\\n2 4 9 2 5\", \"5 8\\n2 4 3 3 1\", \"3 4\\n2 4 9 2 5\", \"5 8\\n2 4 4 3 1\", \"5 4\\n2 4 9 2 5\", \"5 8\\n2 4 4 3 0\", \"5 8\\n2 4 4 2 0\", \"...
MEDIUM_HARD
{ "id": "taco-train-6307", "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": "The following graph G is called a Petersen graph and...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"AAB\", \"AABE\", \"\", \"\"]], \"outputs\": [[\"501\", \"-1\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-18267", "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": "Given an amount and the denominations of coins avail...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 2 3\\n\", \"10 4\\n2 5 3 6\\n\"], \"outputs\": [\"4\\n\", \"5\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5767", "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": "Chef is making Window frames for his new office, for...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"4\", \"1 2 1 2\", \"8\", \"1 2 1 3 4 1 5 6\"]], \"outputs\": [[\"1\", \"0\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-13204", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Everyone has got to know that HELL and Printf{} use ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 1\\n3 2\\n\\nSAMPLE\", \"2\\n2 1\\n3 2\", \"2\\n2 1\\n3 1\\n\\nSAMPLE\", \"2\\n2 1\\n4 2\", \"2\\n2 1\\n7 2\", \"2\\n4 1\\n3 1\\n\\nS@MPLE\", \"2\\n4 1\\n5 1\\n\\nFLPS@M\", \"2\\n2 1\\n4 3\", \"2\\n4 1\\n7 2\", \"2\\n4 2\\n3 2\\n\\nSANPLE\", \"2\\n4 1\\n7 1\", \"2\\n4 2\\n6 2\...
none
{ "id": "the-punishment-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": "Read problems statements in Mandarin Chinese here \n...
code
{ "ground_truth": "{\"inputs\": [\"3\\n10:00\\n09:00\\n10\\n10:00\\n09:00\\n30\\n10:00\\n09:00\\n60\", \"3\\n10:00\\n09:00\\n10\\n10:00\\n09:00\\n30\\n10:00\\n09:00\\n12\", \"3\\n10:00\\n09:00\\n10\\n10:00\\n09:00\\n48\\n10:00\\n09:00\\n60\", \"3\\n10:01\\n09:00\\n10\\n10:00\\n09:00\\n48\\n10:00\\n09:00\\n60\", \"3\\...
MEDIUM
{ "id": "taco-train-5604", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Complete the method which returns the number which is...
code
{ "ground_truth": "{\"fn_name\": \"highest_rank\", \"inputs\": [[[12, 10, 8, 12, 7, 6, 4, 10, 12]], [[12, 10, 8, 12, 7, 6, 4, 10, 10]], [[12, 10, 8, 12, 7, 6, 4, 10, 12, 10]], [[12, 10, 8, 8, 3, 3, 3, 3, 2, 4, 10, 12, 10]], [[1, 2, 3]], [[1, 1, 2, 3]], [[1, 1, 2, 2, 3]]], \"outputs\": [[12], [10], [12], [3], [3], [1]...
EASY
{ "id": "taco-train-15058", "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": "Vasya is an administrator of a public page of organi...
code
{ "ground_truth": "{\"inputs\": [\"3\\n#book\\n#bigtown\\n#big\", \"3\\n#book\\n#cool\\n#cold\", \"4\\n#car\\n#cart\\n#art\\n#at\", \"3\\n#apple\\n#apple\\n#fruit\", \"1\\n#h\", \"2\\n#y\\n#q\", \"3\\n#sima\\n#simb\\n#sima\", \"1\\n#lxqnqdnkpeayhxh\", \"6\\n#abu\\n#abc\\n#ac\\n#bk\\n#bmm\\n#bb\", \"7\\n#a\\n#aab\\n#a...
rating_1601-1900
{ "id": "777D", "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": "*Chef has recently introduced a [feature], called WA...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3\\n5 10 3\\n000\\n3\\n5 10 3\\n001\\n3\\n5 5 3\\n001\\n3\\n5 5 3\\n101\\n5\\n10 100 100 10 10\\n00001\\n\"], \"outputs\": [\"3\\n5\\n5\\n5\\n10\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-12488", "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": "A sky scraper with 1000 floors has been built in the...
code
{ "ground_truth": "{\"inputs\": [\"front\\n1\", \"back\\n1\", \"front\\n2\", \"back\\n2\"], \"outputs\": [\"L\", \"R\", \"R\", \"L\"]}", "style": "rule" }
rating_<=1200
{ "id": "120A", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The crowdedness of the discotheque would never stop ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 1 6\\n0 4 1\\n2 -1 3\\n1 -2 1\\n4 -1 1\\n\", \"8\\n0 0 1\\n0 0 2\\n0 0 3\\n0 0 4\\n0 0 5\\n0 0 6\\n0 0 7\\n0 0 8\\n\", \"4\\n1000000 -1000000 2\\n1000000 -1000000 3\\n-1000000 1000000 2\\n-1000000 1000000 1000000\\n\", \"15\\n-848 0 848\\n-758 0 758\\n-442 0 442\\n-372 0 372\\...
HARD
{ "id": "taco-train-2337", "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": "Little Chris is bored during his physics lessons (to...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 2 1 2\", \"3\\n2 3 8\", \"5\\n2 1 2 1 2\", \"1\\n1\", \"2\\n4 3\", \"6\\n100 40 60 20 1 80\", \"10\\n10 8 6 7 5 3 4 2 9 1\", \"10\\n1 2 3 4 5 6 7 8 9 10\", \"100\\n82 51 81 14 37 17 78 92 64 15 8 86 89 8 87 77 66 10 15 12 100 25 92 47 21 78 20 63 13 49 41 36 41 79 16 87 87 69 ...
rating_<=1200
{ "id": "405A", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are playing a popular video game which is famous...
code
{ "ground_truth": "{\"inputs\": [\"...\\n...\\n.*.\\n...\\n...\\n.*.\\n...\\n...\\n...\\n...\\n...\\n.*.\\n...\\n...\\n.*.\\n...\\n...\\n...\\n\\n...\\n.*.\\n...\\n*..\\n...\\n..*\\n*.*\\n*.*\\n*.*\\n*.*\\n.*.\\n*.*\\n*..\\n.*.\\n..*\\n*.*\\n...\\n*.*\\n\\n...\\n.*.\\n.*.\\n...\\n.**\\n*..\\n...\\n...\\n.*.\\n.*.\\n....
none
{ "id": "p01362 Dice Room", "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": "Give a N*N square matrix, return an array of its anti...
code
{ "ground_truth": "{\"inputs\": [\"N = 2\\r\\nmatrix[][] = {{1,2},\\r\\n {3,4}}\", \"N = 3\\r\\nmatrix[][] = {{1,2,3},\\r\\n\\r\\n {4,5,6},\\r\\n\\r\\n {7,8,9}}\"], \"outputs\": [\"1 2 3 4\", \"1 2 4 3 5 7 6 8 9\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-24676", "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": "<image>\n\nAfter William is done with work for the d...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 1\\n2 3\\n5 2\\n2 2 12\\n5 1 4\\n6 2 11\\n3 5 10\\n\", \"6 20\\n8054 2992\\n2546 5359\\n2851 9668\\n6007 5359\\n9675 9171\\n8399 7777\\n58 5920 263\\n9820 924 23327\\n5917 7866 16746\\n7982 2404 3915\\n8747 6489 17262\\n6206 649 5975\\n3473 9499 18979\\n932 2157 25119\\n5194...
rating_>1900
{ "id": "1523_F. Favorite Game", "rating": 3300, "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 two integers A and B.Find out the number of ste...
code
{ "ground_truth": "{\"inputs\": [\"A=5,B=13\", \"A=5,B=15\"], \"outputs\": [\"6\", \"3\"]}", "style": "rule" }
EASY
{ "id": "taco-train-24250", "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 [Mandarin Chinese], [Russ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1\\nA 1\\nB 2\\nC 3\\n2\\nAA 1\\nAB 1\\nAB 1\\nAC 1\\nAC 1\\nAD 1\\n1\\nZ 100\\nZ 100\\nZ 100\"], \"outputs\": [\"1 2 3\\n1 1 2 2\\n300\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5622", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You will get an array of numbers. \n\nEvery preceding...
code
{ "ground_truth": "{\"fn_name\": \"find_missing_numbers\", \"inputs\": [[[-3, -2, 1, 4]], [[-1, 0, 1, 2, 3, 4]], [[]], [[0]], [[-4, 4]]], \"outputs\": [[[-1, 0, 2, 3]], [[]], [[]], [[]], [[-3, -2, -1, 0, 1, 2, 3]]]}", "style": "rule" }
EASY
{ "id": "taco-train-18150", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given array a with n integers and m queries....
code
{ "ground_truth": "{\"inputs\": [\"6 4\\n1 2 1 1 3 5\\n1 4 1\\n2 6 2\\n3 4 1\\n3 4 2\\n\", \"5 1\\n3 2 4 5 5\\n1 3 3\\n\", \"10 10\\n1 1 1 1 1 2 1 1 1 1\\n1 9 1\\n6 7 1\\n2 4 1\\n7 8 1\\n1 3 1\\n10 10 1\\n3 5 1\\n6 7 1\\n1 10 1\\n6 6 1\\n\", \"2 6\\n1 1\\n1 1 1\\n1 1 2\\n1 2 1\\n1 2 2\\n2 2 1\\n2 2 2\\n\", \"2 1\\n1 ...
rating_1601-1900
{ "id": "622_C. Not Equal on a Segment", "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": "Vitaly has an array of n distinct integers. Vitaly w...
code
{ "ground_truth": "{\"inputs\": [\"4\\n-1 -2 -3 0\\n\", \"3\\n-1 2 0\\n\", \"100\\n-34 81 85 -96 50 20 54 86 22 10 -19 52 65 44 30 53 63 71 17 98 -92 4 5 -99 89 -23 48 9 7 33 75 2 47 -56 42 70 -68 57 51 83 82 94 91 45 46 25 95 11 -12 62 -31 -87 58 38 67 97 -60 66 73 -28 13 93 29 59 -49 77 37 -43 -27 0 -16 72 15 79 61...
rating_<=1200
{ "id": "300_A. Array", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Egor is a famous Russian singer, rapper, actor and b...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 2 0\\n1 3 1\\n2 3 0\\n2 3 1\\n\", \"5 10\\n1 2 0\\n1 3 1\\n1 4 0\\n2 3 0\\n2 3 1\\n2 5 0\\n3 4 0\\n3 4 1\\n4 2 1\\n4 5 0\\n\", \"4 8\\n1 1 0\\n1 3 0\\n1 3 1\\n3 2 0\\n2 1 0\\n3 4 1\\n2 4 0\\n2 4 1\\n\", \"1 0\\n\", \"10 40\\n9 9 1\\n4 10 0\\n4 1 1\\n6 4 1\\n9 9 1\\n6 4 1\\n2...
rating_>1900
{ "id": "1407_E. Egor in the Republic of Dagestan", "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": "During a game of Minesweeper you have arrived in the...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"1\\n\"], \"outputs\": [\"8\\n1 3 5 7 9 11 13 15 \\n\", \"0\\n\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-2895", "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": "Today, the memorable AtCoder Beginner Contest 100 ta...
code
{ "ground_truth": "{\"inputs\": [\"0 5\\n\", \"1 11\\n\", \"2 85\\n\", \"0 8\\n\", \"0 1\\n\", \"0 23\\n\", \"0 100\\n\", \"1 3\\n\", \"1 27\\n\", \"1 58\\n\", \"1 100\\n\", \"2 4\\n\", \"2 25\\n\", \"2 68\\n\", \"2 99\\n\", \"2 100\\n\", \"2 37\", \"2 11\", \"-1 5\", \"2 40\", \"2 19\", \"-1 9\", \"2 57\", \"3 19\",...
EASY
{ "id": "taco-train-17769", "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 University of Aizu Elementary School (Aizu Unive...
code
{ "ground_truth": "{\"inputs\": [\"7 8 4000\\n0 1 1\\n1 0 1\\n1 2 2\\n2 3 2\\n3 4 2\\n5 4 3\\n3 5 4\\n5 6 5\", \"2 0 1\", \"3 9 89\\n2 0 2\\n1 0 3\\n2 0 1\\n2 0 3\\n0 1 1\\n0 1 2\\n1 2 3\\n0 1 1\\n1 0 2\", \"2 0 2\", \"3 9 89\\n2 0 2\\n1 0 3\\n2 1 1\\n2 0 3\\n0 1 1\\n0 1 2\\n1 2 3\\n0 1 1\\n1 0 2\", \"7 8 4000\\n0 1 ...
none
{ "id": "p01546 Sports Days 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": "Snuke has a rooted tree with N+1 vertices. The verti...
code
{ "ground_truth": "{\"inputs\": [\"2\\n0 0\", \"31\\n0 1 0 2 4 0 4 1 6 4 3 9 7 3 7 2 15 6 12 10 12 16 5 3 20 1 25 20 23 24 23\", \"5\\n0 1 1 0 4\", \"2\\n0 1\", \"31\\n0 1 0 2 4 0 4 1 6 4 3 9 7 3 7 3 15 6 12 10 12 16 5 3 20 1 25 20 23 24 23\", \"5\\n0 1 1 0 3\", \"31\\n0 1 0 2 4 0 4 1 6 4 3 9 7 3 7 3 3 6 12 10 12 16 ...
none
{ "id": "p03499 AtCoder Regular Contest 086 - Smuggling Marbles", "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": "Pashmak's homework is a problem about graphs. Althou...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2 1\\n2 3 1\\n3 1 1\\n\", \"3 3\\n1 2 1\\n2 3 2\\n3 1 3\\n\", \"6 7\\n1 2 1\\n3 2 5\\n2 4 2\\n2 5 2\\n2 6 9\\n5 4 3\\n4 3 4\\n\", \"2 2\\n1 2 1\\n2 1 2\\n\", \"4 3\\n1 2 1\\n2 3 1\\n3 4 2\\n\", \"4 12\\n1 2 2\\n2 1 2\\n1 3 1\\n3 1 1\\n1 4 1\\n4 1 1\\n2 3 1\\n3 2 1\\n2 4 1\\n...
HARD
{ "id": "taco-train-16421", "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": "A linguist, Nodvic Natharus Damenhof (commonly calle...
code
{ "ground_truth": "{\"inputs\": [\"3\\nbillion 9\\nmillion 6\\nthousand 3\\nbillionmillionthousand\\n3\\noku 8\\nsen 3\\nman 4\\nokusenman\\n2\\nnico 2\\nvideo 4\\nniconicovideo\\n6\\nabcd 1\\nefgh 2\\nabcde 4\\nfgh 6\\ny 8\\nyy 10\\nabcdefgh\\n0\", \"3\\nbillion 9\\nmillion 6\\nthousand 3\\nbillionmillionthousand\\n...
none
{ "id": "p01249 Billion Million Thousand", "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 permutation p_1, p_2, ..., p_n. Reca...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n2 1 4 3\\n6\\n4 6 1 2 5 3\\n5\\n5 3 1 2 4\\n\", \"3\\n4\\n2 1 4 3\\n6\\n4 6 1 2 5 3\\n5\\n5 3 1 2 4\\n\", \"3\\n4\\n2 1 4 3\\n6\\n4 10 1 2 5 3\\n5\\n5 3 1 2 4\\n\", \"3\\n4\\n2 1 4 3\\n6\\n4 12 1 2 5 3\\n5\\n5 7 1 2 4\\n\", \"3\\n4\\n2 1 4 3\\n6\\n4 6 1 2 5 3\\n5\\n5 2 1 2 4...
rating_<=1200
{ "id": "1380_A. Three Indices", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given *n* segments on the Ox-axis. You can d...
code
{ "ground_truth": "{\"inputs\": [\"2\\n0 2\\n2 5\", \"5\\n0 3\\n4 2\\n4 8\\n8 10\\n7 7\", \"3\\n40 -83\\n52 -80\\n-21 -4\", \"4\\n67 -88\\n37 -62\\n-26 91\\n-99 -50\", \"5\\n45 58\\n22 6\\n-32 36\\n49 -37\\n43 62\", \"10\\n47 -85\\n71 40\\n-87 64\\n76 73\\n52 -51\\n-20 -57\\n-14 -77\\n-45 -11\\n-56 -48\\n81 20\", \"3...
rating_1601-1900
{ "id": "22D", "rating": 1900, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"2\\n12:01 AM\\n4\\n12:00 AM 11:42 PM\\n12:01 AM 11:59 AM\\n12:30 AM 12:00 PM\\n11:59 AM 11:59 PM\\n04:12 PM\\n5\\n12:00 AM 11:59 PM\\n01:00 PM 04:12 PM\\n04:12 PM 04:12 PM\\n04:12 AM 04:12 AM\\n12:00 PM 11:59 PM\"], \"outputs\": [\"1100\\n11101\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-14953", "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": "Read problems statements in mandarin chinese, russia...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3 3\\n3 1 2 2\\n2 1 2\\n3 1 4 1\\n2 1 2\\n2 1 5\\n3 1 3\\n2 1 1 2\\n1 1 1 2\\n3 1 3 3\", \"1\\n2 2\\n4 1 1 1 1\\n2 1 2\\n2 1 1\\n2 1 2\\n1 1 1 2\\n1 1 2 2\\n\", \"1\\n3 2\\n4 1 1 1 1\\n3 1 1 1\\n2 1 2\\n3 1 1\\n2 2 1\\n3 1 3\\n1 1 1 2\\n1 1 2 3\\n\", \"1\\n2 1\\n4 1 2 3 4\\n2 3 ...
HARD
{ "id": "taco-test-429", "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": "A tuple of positive integers {*x*1,<=*x*2,<=...,<=*x...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 3\", \"2\\n2 2\", \"3\\n2 1 1\", \"2\\n83 14\", \"10\\n10 10 1 2 3 3 1 2 1 5\", \"100\\n314 905 555 526 981 360 424 104 920 814 143 872 741 592 105 573 837 962 220 692 560 493 889 824 145 491 828 960 889 87 375 486 609 423 386 323 124 830 206 446 899 522 514 696 786 783 268 48...
rating_1601-1900
{ "id": "665D", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Galaxy contains n planets, there are many differ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 0 0\\n-5 0 0\\n0 3 4\\n4 -3 0\\n2 2 -2\\n\", \"3\\n-2 5 7\\n5 9 1\\n-4 6 -2\\n\", \"6\\n-1 1 -5\\n-1 -1 -9\\n5 -2 -6\\n4 8 2\\n-4 -5 8\\n-3 2 10\\n\", \"5\\n6 0 -4\\n8 1 5\\n-8 5 -6\\n-2 -4 -3\\n8 -2 1\\n\", \"4\\n-1 -1 -1\\n1 -1 1\\n-2 1 -3\\n-3 2 1\\n\", \"20\\n-60 50 -44\\n...
rating_>1900
{ "id": "106_E. Space Rescuers", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Write a program which computes the greatest common d...
code
{ "ground_truth": "{\"inputs\": [\"8 6\\n50000000 30000000\", \"8 6\\n50000000 24597532\", \"8 6\\n88904261 24597532\", \"14 6\\n88904261 24597532\", \"14 6\\n88904261 49076254\", \"14 4\\n88904261 49076254\", \"8 6\\n50000000 25142724\", \"8 6\\n50000000 42267576\", \"8 6\\n162089565 24597532\", \"14 4\\n88904261 24...
none
{ "id": "p00005 GCD and LCM", "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": "Implement a function which convert the given boolean ...
code
{ "ground_truth": "{\"fn_name\": \"boolean_to_string\", \"inputs\": [[true], [false]], \"outputs\": [[\"True\"], [\"False\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-9967", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string S, we need to find reciprocal of it. T...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"ab C\\\"\", \"S = \\\"Ish\\\"\"], \"outputs\": [\"zy X\", \"Rhs\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6826", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "As their story unravels, a timeless tale is told onc...
code
{ "ground_truth": "{\"inputs\": [\"5\\n7\\n?R???BR\\n7\\n???R???\\n1\\n?\\n1\\nB\\n10\\n?R??RB??B?\\n\", \"5\\n7\\n?R???BR\\n7\\n???R???\\n1\\n?\\n1\\nB\\n10\\n?R??RB??B?\\n\", \"1\\n2\\n??\\n\", \"5\\n7\\n?R???BR\\n7\\n???R???\\n1\\n?\\n1\\nB\\n10\\n?B??BR??R?\\n\", \"5\\n7\\n?B???RR\\n7\\n???R???\\n1\\n?\\n1\\nB\\n...
rating_<=1200
{ "id": "1559_B. Mocha and Red and Blue", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Innovation technologies are on a victorious march ar...
code
{ "ground_truth": "{\"inputs\": [\"3\\n10 50\\n2 100\\n5 30\\n3\\n4 6 9\\n\", \"9\\n23 163\\n895 838\\n344 444\\n284 763\\n942 39\\n431 92\\n147 515\\n59 505\\n940 999\\n8\\n382 497 297 125 624 212 851 859\\n\", \"2\\n10 10\\n5 5\\n1\\n5\\n\", \"6\\n397 946\\n871 126\\n800 290\\n505 429\\n239 43\\n320 292\\n9\\n387 9...
rating_1401-1600
{ "id": "416_C. Booking System", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "# Task\n Consider the following operation:\n \n We ta...
code
{ "ground_truth": "{\"fn_name\": \"factor_sum\", \"inputs\": [[24], [35], [156], [4], [31]], \"outputs\": [[5], [7], [5], [4], [31]]}", "style": "rule" }
EASY
{ "id": "taco-train-7339", "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": "Limak is a little polar bear. He plays by building t...
code
{ "ground_truth": "{\"inputs\": [\"48\", \"6\", \"1\", \"994\", \"567000123\", \"123830583943\", \"3842529393411\", \"999999993700000\", \"2\", \"7\", \"8\", \"9\", \"112\", \"113\", \"114\", \"265\", \"995\", \"200385\", \"909383000\", \"108000000057\", \"385925923480002\", \"735412349812385\", \"980123123123123\", ...
rating_>1900
{ "id": "679B", "rating": 2200, "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": "You are given sequence *a*1,<=*a*2,<=...,<=*a**n* an...
code
{ "ground_truth": "{\"inputs\": [\"5 3\\n1 1 2 3 2\\n1 5\\n2 4\\n3 5\", \"6 5\\n1 2 1 3 2 3\\n4 6\\n1 3\\n2 5\\n2 4\\n1 6\", \"10 6\\n2 2 1 5 6 4 9 8 5 4\\n1 2\\n1 10\\n2 10\\n2 9\\n5 5\\n2 8\", \"1 1\\n1\\n1 1\", \"1 3\\n1\\n1 1\\n1 1\\n1 1\", \"2 1\\n1 1\\n1 2\", \"2 1\\n1 1\\n1 1\", \"2 5\\n1 1\\n1 1\\n1 2\\n2 2\\...
rating_>1900
{ "id": "522D", "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": "You are given a tree (an undirected connected graph ...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 2\\n1 3\\n1 4\\n\", \"6 1\\n2 1\\n2 3\\n2 5\\n5 4\\n5 6\\n\", \"5 5\\n1 2\\n2 3\\n3 4\\n3 5\\n\", \"3 1000000000\\n3 2\\n2 1\\n\", \"2 1000000000\\n2 1\\n\", \"2 1\\n2 1\\n\", \"4 1\\n1 3\\n1 4\\n2 1\\n\", \"4 1\\n4 1\\n2 4\\n3 1\\n\", \"3 1000000000\\n3 2\\n2 1\\n\", \"2 10...
MEDIUM_HARD
{ "id": "taco-train-6228", "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": "Mahmoud and Ehab live in a country with n cities num...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n1 2\\n2 3\\n\", \"5\\n1 2 3 4 5\\n1 2\\n2 3\\n3 4\\n3 5\\n\", \"5\\n10 9 8 7 6\\n1 2\\n2 3\\n3 4\\n3 5\\n\", \"1\\n1\\n\", \"2\\n1 2\\n1 2\\n\", \"1\\n2\\n\", \"2\\n2 2\\n1 2\\n\", \"1\\n0\\n\", \"2\\n2 1\\n1 2\\n\", \"3\\n1 2 3\\n1 2\\n1 3\\n\", \"5\\n10 9 8 7 6\\n1 2\\...
rating_>1900
{ "id": "766_E. Mahmoud and a xor trip", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a graph consisting of $n$ vertices and...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 1\\n0 1 3\\n5 5\\n0 2 1\\n1 1 5\\n1 5 4\\n0 5 2\\n1 3 5\\n4 5\\n1 1 2\\n0 4 3\\n1 3 1\\n0 2 3\\n1 2 4\\n4 5\\n1 4 1\\n1 1 3\\n0 1 2\\n1 2 4\\n1 3 2\\n\", \"4\\n3 1\\n0 1 3\\n5 5\\n1 2 1\\n1 1 5\\n1 5 4\\n0 5 2\\n1 3 5\\n4 5\\n1 1 2\\n0 4 3\\n1 3 1\\n0 2 3\\n1 2 4\\n4 5\\n1 4 1...
HARD
{ "id": "taco-train-3636", "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": "Snuke got a present from his mother on his birthday....
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n2 1\", \"55 10\\n1 2 3 4 5 6 7 8 9 10\", \"6 1\\n6\", \"3 2\\n2 0\", \"55 10\\n2 2 3 4 5 6 7 8 9 10\", \"6 1\\n3\", \"1 1\\n6\", \"-1 1\\n2 0\", \"1 1\\n12\", \"6 2\\n2 1\", \"6 1\\n5\", \"0 2\\n1 0\", \"-1 2\\n3 0\", \"1 1\\n7\", \"1 1\\n15\", \"1 1\\n1\", \"3 2\\n2 2\", \"-1...
none
{ "id": "p04050 AtCoder Grand Contest 001 - Arrays and Palindrome", "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": "Andrewid the Android is a galaxy-famous detective. N...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n0 3 5\\n2 3\\n1 8\\n\", \"4 4\\n1 5 7 15\\n1 4\\n2 15\\n3 16\\n1 28\\n\", \"4 1\\n1 5 6 100\\n3 1\\n\", \"2 8\\n-1000000000 1000000000\\n1 1\\n1 300000000\\n1 700000000\\n1 1000000000\\n2 1\\n2 300000000\\n2 700000000\\n2 1000000000\\n\", \"3 10\\n4 6 8\\n2 4\\n1 4\\n2 3\\n2 2...
rating_>1900
{ "id": "555_D. Case of a Top Secret", "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": "Recently a dog was bought for Polycarp. The dog's na...
code
{ "ground_truth": "{\"inputs\": [\"3 5\\n2 0 1\\n\", \"3 1\\n0 0 0\\n\", \"4 6\\n2 4 3 5\\n\", \"5 1\\n0 0 0 0 1\\n\", \"10 500\\n164 44 238 205 373 249 87 30 239 90\\n\", \"1 1\\n1\\n\", \"5 1\\n0 0 0 0 0\\n\", \"5 1\\n0 0 0 0 1\\n\", \"5 2\\n0 0 0 1 0\\n\", \"5 5\\n1 4 0 0 0\\n\", \"5 10\\n1 2 1 0 1\\n\", \"5 10\\n...
EASY
{ "id": "taco-train-6806", "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": "Two good friends were trying to make a new programmi...
code
{ "ground_truth": "{\"inputs\": [\"\\\"HelloWorld\\\"\\n\", \"REVerse(substr(\\\"helloworld\\\",1,5))\\n\", \"conCAT(rEveRSE(\\\"olleh\\\"),\\\"world\\\")\\n\", \"reversE(concAT(substr(\\\"hello\\\",1,2),sUbstr(\\\"world\\\",1,5,1)))\\n\", \"suBstr(\\\"Noruz\\\",1,4,2)\\n\"], \"outputs\": [\"\\\"HelloWorld\\\"\\n\", ...
rating_>1900
{ "id": "72_D. Perse-script", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "In genetic the reverse complement of a sequence is fo...
code
{ "ground_truth": "{\"fn_name\": \"reverse_complement\", \"inputs\": [[\"TTCCGGAA\"], [\"GACTGACTGTA\"], [\"\"], [\"XYZ\"]], \"outputs\": [[\"TTCCGGAA\"], [\"TACAGTCAGTC\"], [\"\"], [\"Invalid sequence\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-20308", "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": "Golu loves prime numbers . He wants to do something ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n4\\n\\nSAMPLE\", \"10\\n43\\n5541\\n6336\\n646\\n6243\\n2798\\n5016\\n3504\\n1108\\n5074\", \"10\\n43\\n18469\\n6336\\n26502\\n19171\\n15726\\n11480\\n29360\\n26964\\n24466\", \"10\\n10041\\n28467\\n16334\\n36500\\n29169\\n25724\\n21478\\n39358\\n36962\\n34464\", \"10\\n43\\...
none
{ "id": "help-golu", "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 *n* strings *t**i*. Each string has co...
code
{ "ground_truth": "{\"inputs\": [\"2\\naa\\nbb\\n2 1\", \"2\\naa\\nab\\n2 1\", \"1\\naaa\\n2\", \"3\\na\\naa\\naaa\\n1 2 3\", \"3\\na\\naaa\\naa\\n2 1 3\", \"1\\nabcde\\n-1\", \"1\\na\\n1\", \"5\\nbbbb\\nbaaa\\nbbba\\naaba\\nbbaa\\n17 -17 -82 47 -85\", \"10\\nckxyxnoyqw\\nlwvjsygwrc\\nhretftiphn\\nrqqncjnggb\\ntxvnxg...
rating_>1900
{ "id": "616F", "rating": 2700, "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": "Inna likes sweets and a game called the \"Candy Matr...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n*G*S\\nG**S\\n*G*S\", \"1 3\\nS*G\", \"10 10\\nG********S\\n*G*******S\\n**G******S\\n***G*****S\\n****G****S\\n*****G***S\\n******G**S\\n*******G*S\\n********GS\\nG********S\", \"5 10\\nG***S*****\\nG****S****\\n***GS*****\\nG*S*******\\nG***S*****\", \"4 8\\nG*S*****\\n****G...
rating_<=1200
{ "id": "400B", "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": "Vova again tries to play some computer card game.\n\...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n6 2 8\\n\", \"3 6\\n9 1 14\\n\", \"7 8\\n4 4 2 4 2 5 3\\n\", \"5 1\\n5 5 5 5 5\\n\", \"1 1000000000\\n1\\n\", \"3 1\\n1 1 1\\n\", \"2 7\\n1 4\\n\", \"9 3\\n1 1 1 2 2 1 1 2 1\\n\", \"1 1\\n1\\n\", \"6 1\\n1 1 1 1 1 1\\n\", \"10 3\\n2 2 1 1 2 2 2 2 1 2\\n\", \"1 8\\n3\\n\", \"1 ...
rating_1601-1900
{ "id": "818_E. Card Game Again", "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": "The only difference between easy and hard versions i...
code
{ "ground_truth": "{\"inputs\": [\"0111001100111011101000\\n\", \"0001111\\n\", \"110\\n\", \"010\\n\", \"0010000110000100\\n\", \"0000000000000000\\n\", \"0000100010001110\\n\", \"1111111111111111\\n\", \"0100000001000001\\n\", \"1001101000001101\\n\", \"1\\n\", \"0\\n\", \"1111111111111010\\n\", \"1111101000110110\...
rating_>1900
{ "id": "1204_D1. Kirk and a Binary String (easy version)", "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": "Consider a playoff tournament where $2^n$ athletes c...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n1\\n\", \"30\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\\n11\\n12\\n13\\n14\\n15\\n16\\n17\\n18\\n19\\n20\\n21\\n22\\n23\\n24\\n25\\n26\\n27\\n28\\n29\\n30\\n\", \"30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\\n30\...
EASY
{ "id": "taco-train-619", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Cybernetics Failures (CF) organisation made a pr...
code
{ "ground_truth": "{\"inputs\": [\"3 4 2 2\\nUURDRDRL\", \"2 2 2 2\\nULD\", \"1 1 1 1\\nURDLUURRDDLLURDL\", \"15 17 8 9\\nURRDLUULLDD\", \"15 17 8 9\\nURRDLUULLDDDRRUR\", \"15 17 8 9\\nURRDLUULLDDDRRURR\", \"1 2 1 1\\nR\", \"2 1 1 1\\nD\", \"1 2 1 2\\nLR\", \"2 1 2 1\\nUD\", \"4 4 2 2\\nDRUL\", \"4 4 3 3\\nLUDRUL\", ...
rating_1401-1600
{ "id": "606B", "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": "We have a string s consisting of lowercase English l...
code
{ "ground_truth": "{\"inputs\": [\"a\", \"xabxa\", \"ab\", \"oxxx\", \"b\", \"axbax\", \"`b\", \"xxxo\", \"tpxt\", \"c\", \"bxbax\", \"b`\", \"yxxo\", \"d\", \"bxbbx\", \"ba\", \"oxxy\", \"e\", \"xxbbb\", \"bb\", \"oxyx\", \"f\", \"xxabb\", \"cb\", \"oxyy\", \"g\", \"xyabb\", \"bc\", \"oxzy\", \"h\", \"bbayx\", \"db\...
none
{ "id": "p03569 CODE FESTIVAL 2017 qual C - Inserting 'x'", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string s, return the maximum number of unique...
code
{ "ground_truth": "{\"fn_name\": \"maxUniqueSplit\", \"inputs\": [[\"\\\"ababccc\\\"\"]], \"outputs\": [6]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-6643", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are N gems. The value of the i-th gem is V_i.\...
code
{ "ground_truth": "{\"inputs\": [\"3\\n10 2 5\\n6 3 4\\n\", \"4\\n13 21 6 19\\n11 30 6 15\\n\", \"1\\n1\\n50\\n\", \"2\\n45 22\\n25 26\\n\", \"1\\n29\\n47\\n\", \"20\\n16 40 13 43 49 41 10 5 18 31 30 7 18 34 28 26 5 21 30 22\\n2 25 25 32 34 17 6 32 2 28 37 7 39 18 11 29 6 40 18 18\\n\", \"11\\n17 50 24 41 4 35 34 15 ...
EASY
{ "id": "taco-train-2487", "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": "Ashish has $n$ elements arranged in a line. \n\nThes...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4\\n10 20 20 30\\n0 1 0 1\\n3\\n3 1 2\\n0 1 1\\n4\\n2 2 4 8\\n1 1 1 1\\n3\\n5 15 4\\n0 0 0\\n4\\n20 10 100 50\\n1 0 0 1\\n\", \"10\\n4\\n61984 85101 45152 74839\\n1 0 0 1\\n4\\n4214 35436 84747 99946\\n0 0 1 1\\n3\\n79565 44828 8501\\n1 0 1\\n1\\n38344\\n0\\n2\\n34421 26750\\n1 ...
EASY
{ "id": "taco-train-9582", "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": "Ivan plays an old action game called Heretic. He's s...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 2\\n1 3 5\\n4 1\\n5 2 3 5\\n\", \"1\\n3 1383\\n1 2 3\\n\", \"1\\n3 3\\n1 2 3\\n\", \"1\\n3 1383\\n1 2 3\\n\", \"1\\n3 3\\n1 2 3\\n\", \"1\\n2 1383\\n1 2 3\\n\", \"2\\n3 2\\n1 3 5\\n4 1\\n5 4 3 5\\n\", \"2\\n3 2\\n1 1 5\\n4 1\\n5 4 3 5\\n\", \"2\\n3 2\\n0 1 5\\n4 1\\n5 2 3 5\\n...
EASY
{ "id": "taco-train-10902", "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": "Dmitry has an array of n non-negative integers a_1, ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 6 2 3 5 0 5\\n5\\n4 0 1 0 4\\n\", \"5\\n3\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 6 2 3 6 0 5\\n5\\n4 0 1 0 4\\n\", \"5\\n3\\n0 1 3\\n7\\n0 1 2 3 4 3 2\\n4\\n3 0 0 0\\n7\\n4 0 2 3 5 0 5\\n5\\n4 0 1 0 4\\n\", \"5\\n3\\...
rating_1601-1900
{ "id": "1619_E. MEX and Increments", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Ashish runs a small business but he is weak at manag...
code
{ "ground_truth": "{\"inputs\": [\"10\\n99982378 -1128670933 2026777722 -977282787 -1299665169 -2056170834 -1223183293 827068607 402687817 1305898955\", \"100\\n789243 -41252 -706388 -884090 -567794 -176139 236262 186752 958591 52884 64849 -223759 -793762 888124 -437070 -325756 -947304 -284929 -629215 872629 621714 -...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-7681", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Little Elephant loves strings very much. \n\nHe ...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\nabc\\na\\nab\\n\", \"7 4\\nrubik\\nfurik\\nabab\\nbaba\\naaabbbababa\\nabababababa\\nzero\\n\", \"47 10\\nyyv\\nwqvoo\\nrh\\nxtyaitb\\nobvdgph\\nnth\\ne\\nbvl\\nzkbw\\ntalmvi\\njxxojj\\nrl\\nmlfoqx\\nb\\ncfwip\\ngzkg\\nxp\\ntfrw\\nxikvb\\ne\\ntqj\\nk\\no\\ncueo\\nd\\nsuusjeo\\...
rating_>1900
{ "id": "204_E. Little Elephant and Strings", "rating": 2800, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "The Spelling Bee bees are back...\n\n# How many bees ...
code
{ "ground_truth": "{\"fn_name\": \"how_many_bees\", \"inputs\": [[null]], \"outputs\": [[0]]}", "style": "rule" }
EASY
{ "id": "taco-train-13222", "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 number n, the task is to find all 1 to n bit ...
code
{ "ground_truth": "{\"inputs\": [\"n = 3\", \"n = 2\"], \"outputs\": [\"1 2 4 5\", \"1 2\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5494", "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": "There are *n* games in a football tournament. Three ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 0 0 0\\n3 3 0 0\\n6 4 1 0\\n6 3 3 0\\n3 3 3 2\"], \"outputs\": [\"yes\\nyes\\nyes\\nno\\nno\"]}", "style": "rule" }
rating_1601-1900
{ "id": "451C", "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": "A telephone number is a sequence of exactly 11 digit...
code
{ "ground_truth": "{\"inputs\": [\"15\\n807345619350641\\n\", \"13\\n8380011223344\\n\", \"15\\n961618782888818\\n\", \"13\\n2828222222222\\n\", \"23\\n79818882846090973951051\\n\", \"17\\n83130469783251338\\n\", \"19\\n8881328076293351500\\n\", \"15\\n778887777777777\\n\", \"21\\n888888888888888888888\\n\", \"15\\n2...
rating_<=1200
{ "id": "1155_B. Game with Telephone Numbers", "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 positive integer n, generate all possible uni...
code
{ "ground_truth": "{\"inputs\": [\"n = 3\", \"n = 4\"], \"outputs\": [\"3 2 1 1 1 1\", \"4 3 1 2 2 2 1 1 1 1 1 1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-22194", "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": "Taro, a boy who hates any inefficiencies, pays coins...
code
{ "ground_truth": "{\"inputs\": [\"123 3 0 2 0 1 1\\n999 9 9 9 9 9 9\\n0 0 0 0 0 0 0\", \"123 3 0 2 0 1 1\\n999 9 9 9 9 9 10\\n0 0 0 0 0 0 0\", \"123 3 1 2 0 1 1\\n1315 8 9 9 9 14 10\\n0 0 0 0 0 0 0\", \"105 3 1 2 1 2 1\\n999 9 9 9 1 15 10\\n0 0 0 0 0 0 0\", \"123 5 1 2 2 0 1\\n999 21 9 9 1 9 10\\n0 0 0 0 0 0 0\", \"...
none
{ "id": "p00614 ICPC: Ideal Coin Payment and Change", "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 has an array A of length N.\n\nHe calls an inde...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6\\n1 3 5 2 4 8\\n4\\n2 3 4 5\\n7\\n1 1 2 2 3 4 4\\n\"], \"outputs\": [\"4\\n4\\n7\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-18109", "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": "Given a 2D matrix g contains only 1 and 0, count the ...
code
{ "ground_truth": "{\"inputs\": [\"N=4\\r\\ngraph[][]={{0, 0, 1, 0}, \\r\\n {1, 0, 0, 1},\\r\\n {0, 1, 0, 0}, \\r\\n {0, 0, 1, 0}}\"], \"outputs\": [\"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23285", "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": "Splendid matrices are square matrices with dimension...
code
{ "ground_truth": "{\"inputs\": [\"10\\n1 1 1\\n1 5 869\\n2 5 31 2\\n1 1 1\\n1 4 124\\n2 2 3 3\\n2 5 1 27\\n2 1 1 1\\n2 2 3 4\\n1 4 157\\n\", \"10\\n2 15 1 1\\n2 13 1 8192\\n2 14 16384 1\\n2 15 32768 32768\\n1 13 1\\n1 3 43\\n1 2 16\\n1 3 22\\n1 3 64\\n1 15 1073741824\", \"100\\n2 6 3 47\\n2 10 351 585\\n1 1 3\\n2 3 ...
MEDIUM
{ "id": "taco-train-1849", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Problem\n\nN ignited fuses and one bomb for each are...
code
{ "ground_truth": "{\"inputs\": [\"3 3 1\\n2 2\\n2 2 2 2 1\", \"2 2 1\\n2 1\\n2 1 1 1 2\", \"2 2 1\\n2 1\\n3 1 1 1 2 2 2\", \"3 3 2\\n1 3\\n3 2 3 2 2 2 1\\n5 2 1 1 1 1 2 2 2 3 2\", \"3 3 2\\n1 3\\n3 2 3 2 1 2 1\\n5 2 1 1 1 1 2 2 2 3 2\", \"3 3 1\\n2 2\\n2 2 2 2 2\", \"4 3 2\\n1 3\\n3 1 3 2 1 2 1\\n5 2 1 1 1 1 2 2 2 3...
none
{ "id": "p01055 Bomb Removal", "rating": 0, "split": "confidence_train", "sub_source": "none" }