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": "Hit and blow is a popular code-breaking game played ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1234 3 0\\n1245 3 0\\n1\\n1234 0 0\\n2\\n0123 0 4\\n1230 0 4\\n0\", \"2\\n1234 3 0\\n1245 3 0\\n0\\n1234 0 0\\n2\\n0123 0 4\\n1230 0 4\\n0\", \"2\\n1234 3 0\\n1739 3 0\\n0\\n1234 0 0\\n2\\n0123 0 5\\n1230 0 4\\n0\", \"2\\n1234 3 0\\n1032 3 0\\n0\\n1234 0 0\\n2\\n0123 0 5\\n1230 ...
none
{ "id": "p01207 Hit and Blow", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Alice and Bob play ping-pong with simplified rules.\...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 1\\n2 1\\n1 7\\n\", \"12\\n1 1\\n2 1\\n1 7\\n1 1\\n2 1\\n1 7\\n1 1\\n2 1\\n1 7\\n1 1\\n2 1\\n1 7\\n\", \"1\\n99999 100000\\n\", \"1\\n99899 100000\\n\", \"1\\n99899 99899\\n\", \"3\\n1 1\\n2 1\\n96342 7\\n\", \"1\\n8627 2007\\n\", \"1\\n1000000 1000000\\n\", \"1\\n1000000 1\\n...
EASY
{ "id": "taco-train-11096", "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": "Okabe needs bananas for one of his experiments for s...
code
{ "ground_truth": "{\"inputs\": [\"1 5\\n\", \"2 3\\n\", \"987 4237\\n\", \"417 1045\\n\", \"817 3719\\n\", \"22 3481\\n\", \"939 407\\n\", \"841 7185\\n\", \"446 5030\\n\", \"1000 10000\\n\", \"4 6\\n\", \"494 6155\\n\", \"10 1\\n\", \"969 6030\\n\", \"918 7704\\n\", \"393 4874\\n\", \"20 10\\n\", \"174 2688\\n\", \...
rating_1201-1400
{ "id": "821_B. Okabe and Banana Trees", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given a set of N types of rectangular 3-D box...
code
{ "ground_truth": "{\"inputs\": [\"n = 4\\r\\nheight[] = {4,1,4,10}\\r\\nwidth[] = {6,2,5,12}\\r\\nlength[] = {7,3,6,32}\", \"n = 3\\r\\nheight[] = {1,4,3}\\r\\nwidth[] = {2,5,4}\\r\\nlength[] = {3,6,1}\"], \"outputs\": [\"60\", \"15\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-10948", "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": "The penultimate task involved the calculation of the...
code
{ "ground_truth": "{\"inputs\": [\"5\\n\\nSAMPLE\", \"5\", \"5\\n\\nMASPLE\", \"5\\n\\nELPSAM\", \"5\\n\\nELPSBM\", \"5\\n\\nELPSBL\", \"5\\n\\nLEPSBL\", \"5\\n\\nMEPSBL\", \"5\\n\\nLBSPEM\", \"5\\n\\nLBTPEM\", \"5\\n\\nLCTPEM\", \"5\\n\\nLMTPEC\", \"5\\n\\nLMTPFC\", \"5\\n\\nCFPTML\", \"5\\n\\nCFPLMT\", \"5\\n\\nCFP...
none
{ "id": "problem-8", "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": "problem\n\nAt the JOI pasta shop, the recommended pa...
code
{ "ground_truth": "{\"inputs\": [\"800\\n700\\n900\\n198\\n330\", \"800\\n1126\\n900\\n198\\n330\", \"800\\n1126\\n900\\n132\\n330\", \"800\\n1126\\n206\\n132\\n330\", \"800\\n1126\\n180\\n132\\n330\", \"800\\n1126\\n180\\n29\\n330\", \"800\\n1126\\n280\\n29\\n330\", \"800\\n1860\\n376\\n29\\n330\", \"800\\n1860\\n37...
none
{ "id": "p00488 Lunch", "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": "Mad scientist Mike entertains himself by arranging r...
code
{ "ground_truth": "{\"inputs\": [\"6\\n10\\n10\\n10\\n01\\n10\\n10\", \"4\\n01\\n01\\n10\\n10\", \"1\\n10\", \"2\\n01\\n10\", \"2\\n10\\n10\", \"3\\n10\\n01\\n10\", \"1\\n01\", \"2\\n01\\n01\", \"2\\n10\\n01\", \"3\\n01\\n01\\n01\", \"3\\n10\\n10\\n01\", \"3\\n01\\n10\\n10\", \"115\\n10\\n10\\n10\\n10\\n01\\n01\\n10\...
rating_<=1200
{ "id": "344A", "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": "Read problems statements in Mandarin Chinese and Ru...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 2 4\\n3 4 1\\n4 4 1\\n1 1 1 1\"], \"outputs\": [\"2 1 3\\n4 3 2 1\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-24636", "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": "Petya is preparing for IQ test and he has noticed th...
code
{ "ground_truth": "{\"inputs\": [\"1 334 667 1000\\n\", \"836 624 412 200\\n\", \"501 451 400 350\\n\", \"891 297 99 33\\n\", \"2 4 9 16\\n\", \"3 18 108 648\\n\", \"4 32 48 64\\n\", \"2 4 6 14\\n\", \"1 2 10 20\\n\", \"256 64 16 8\\n\", \"1000 100 10 1\\n\", \"8 4 2 1\\n\", \"11 234 457 680\\n\", \"2 9 27 81\\n\", \...
rating_1601-1900
{ "id": "328_A. IQ Test", "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": "In Berland, n different types of banknotes are used....
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 13\\n0 1 2\\n2 777\\n0 4\\n3 255\\n0 1 3\\n10 1000000000\\n0 1 2 3 4 5 6 7 8 9\\n\", \"4\\n3 13\\n0 1 2\\n2 777\\n0 2\\n3 255\\n0 1 3\\n10 1000000000\\n0 1 2 3 4 5 6 7 8 9\\n\", \"4\\n3 14\\n0 1 2\\n2 777\\n0 2\\n3 255\\n0 1 3\\n10 1000000000\\n0 1 2 3 4 5 6 7 8 9\\n\", \"4\\n...
rating_1201-1400
{ "id": "1606_C. Banknotes", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have a permutation: an array a = [a_1, a_2, …, a...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3\\n3 2 1\\n7\\n4 5 7 1 3 2 6\\n5\\n1 2 3 4 5\\n\", \"3\\n3\\n3 2 1\\n7\\n4 5 7 1 3 2 6\\n5\\n1 3 2 4 5\\n\", \"3\\n3\\n2 3 1\\n7\\n4 5 7 1 3 2 6\\n5\\n1 2 3 4 5\\n\", \"3\\n3\\n3 2 1\\n7\\n4 5 6 1 3 2 7\\n5\\n1 2 3 4 5\\n\", \"3\\n3\\n3 2 1\\n7\\n4 5 7 2 3 1 6\\n5\\n1 3 2 4 5\\...
rating_<=1200
{ "id": "1561_A. Simply Strange Sort", "rating": 800, "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": "There are n candies in a row, they are numbered from...
code
{ "ground_truth": "{\"inputs\": [\"7\\n11\\n3 1 4 1 5 9 2 6 5 3 5\\n1\\n1000\\n3\\n1 1 1\\n13\\n1 2 3 4 5 6 7 8 9 10 11 12 13\\n2\\n2 1\\n6\\n1 1 1 1 1 1\\n7\\n1 1 1 1 1 1 1\\n\", \"3\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"3\\n1\\n2\\n1\\n1\\n1\\n1\\n\", \"7\\n11\\n3 1 4 1 5 9 2 6 5 3 5\\n1\\n1000\\n3\\n1 1 1\\n13\\n1 2 3 4...
rating_1201-1400
{ "id": "1352_D. Alice, Bob and Candies", "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": "Chef is in need of money, so he decided to play a ga...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"2\", \"4 5 2 3 4\", \"2 1 6\"]], \"outputs\": [[\"8\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3628", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }
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": "Ksenia has ordinary pan scales and several weights o...
code
{ "ground_truth": "{\"inputs\": [\"AC|T\\nL\", \"|ABC\\nXYZ\", \"W|T\\nF\", \"ABC|\\nD\", \"A|BC\\nDEF\", \"|\\nABC\", \"|\\nZXCVBANMIO\", \"|C\\nA\", \"|\\nAB\", \"A|XYZ\\nUIOPL\", \"K|B\\nY\", \"EQJWDOHKZRBISPLXUYVCMNFGT|\\nA\", \"|MACKERIGZPVHNDYXJBUFLWSO\\nQT\", \"ERACGIZOVPT|WXUYMDLJNQS\\nKB\", \"CKQHRUZMISGE|FB...
rating_<=1200
{ "id": "382A", "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": "Dr .: Peter, I've finally done it.\nPeter: What's wr...
code
{ "ground_truth": "{\"inputs\": [\"PETER POTTER\", \"PETER POTTRE\", \"RETEP POTTRE\", \"RETEP PNTTRE\", \"REETP PNTTRE\", \"REETP PMTTRE\", \"RETEP PMTTRE\", \"RETEP PRTTME\", \"RETEP TRTPME\", \"EETRP TRTPME\", \"EETRP TRTPNE\", \"EETRP ENPTRT\", \"PRTEE ENPTRT\", \"PRTEE TRTPNE\", \"PRTEE TRSPNE\", \"EETRP TRSPNE\...
none
{ "id": "p00088 The Code A Doctor Loved", "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": "Iahub and Iahubina went to a picnic in a forest full...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 1 4\", \"5\\n1 1 5 2 1\", \"13\\n1 1 1 1 1 1 1 1 1 4 4 4 13\", \"4\\n1 1 1 3\", \"24\\n1 1 1 1 1 1 1 1 1 1 1 1 24 1 1 1 1 1 1 1 1 1 1 1\", \"24\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24\", \"10\\n1 1 1 1 7 1 1 1 4 10\", \"24\\n1 1 3 1 1 10 2 9 13 1 8 1...
rating_>1900
{ "id": "429C", "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": "Nick likes strings very much, he likes to rotate the...
code
{ "ground_truth": "{\"inputs\": [\"4\\nabca\\n\", \"2\\nab\\n\", \"4\\nabbc\\n\", \"2\\nca\\n\", \"31\\nbacbabaccacbcaaccacccacabaaccab\\n\", \"8\\nbbbbbacb\\n\", \"1\\nc\\n\", \"150\\nabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabca...
rating_>1900
{ "id": "17_C. Balance", "rating": 2500, "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": "Gerald is setting the New Year table. The table has ...
code
{ "ground_truth": "{\"inputs\": [\"1 10 10\\n\", \"4 10 4\\n\", \"5 10 4\\n\", \"2 100 50\\n\", \"100 821 25\\n\", \"2 10 10\\n\", \"10 72 17\\n\", \"100 100 5\\n\", \"10 1000 237\\n\", \"2 2 1\\n\", \"59 486 43\\n\", \"7 997 332\\n\", \"1 100 45\\n\", \"13 927 179\\n\", \"85 449 16\\n\", \"93 857 28\\n\", \"2 1000 5...
rating_1601-1900
{ "id": "140_A. New Year Table", "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": "Jzzhu have n non-negative integers a1, a2, ..., an. ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 3 3\\n\", \"4\\n0 1 2 3\\n\", \"6\\n5 2 0 5 2 1\\n\", \"2\\n1 31\\n\", \"2\\n1 0\\n\", \"10\\n450661 128600 993228 725823 293549 33490 843121 903634 556169 448234\\n\", \"1\\n1\\n\", \"5\\n1 3 5 7 9\\n\", \"6\\n524 529 5249 524 529 529\\n\", \"3\\n1 2 3\\n\", \"2\\n0 1\\n\", \...
rating_>1900
{ "id": "449_D. Jzzhu and Numbers", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In Republic of AtCoder, Snuke Chameleons (Family: Ch...
code
{ "ground_truth": "{\"inputs\": [\"8 10\", \"3 7\", \"123456 234567\", \"8 3\", \"2 4\", \"8 5\", \"0 7\", \"25732 234567\", \"0 5\", \"3 4\", \"0 11\", \"29001 234567\", \"4 7\", \"2 5\", \"4 8\", \"3 5\", \"4 12\", \"3 6\", \"4 18\", \"7 10\", \"4 13\", \"7 7\", \"4 15\", \"4 17\", \"7 17\", \"7 21\", \"10 21\", \"...
none
{ "id": "p03431 AtCoder Grand Contest 021 - Ball Eat Chameleons", "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 know nothing, Jon Snow.\"\n\nJon and Ygritte h...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1\\n1\\n2\\n2 1\\n5\\n1 2 3 4 5\\n5\\n5 4 3 2 1\\n5\\n5 4 3 1 2\\n10\\n1 10 2 9 3 8 4 7 5 6\", \"10\\n42\\n68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68 68\\n6335\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...
MEDIUM
{ "id": "taco-train-5306", "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": "Given $N *M$ matrix containing elements either $1$ o...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"3 3\", \"1 0 1\", \"0 1 1\", \"1 1 0\", \"10111\", \"10 5\", \"3 3\", \"0 0 1\", \"0 1 1\", \"0 1 1\", \"00011\", \"2 9\"]], \"outputs\": [[\"5\", \"4\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-18171", "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": "Suppose you have two polynomials <image> and <image>...
code
{ "ground_truth": "{\"inputs\": [\"1\\n\", \"2\\n\", \"70\\n\", \"64\\n\", \"102\\n\", \"141\\n\", \"43\\n\", \"36\\n\", \"91\\n\", \"50\\n\", \"77\\n\", \"135\\n\", \"44\\n\", \"59\\n\", \"20\\n\", \"14\\n\", \"57\\n\", \"34\\n\", \"13\\n\", \"118\\n\", \"101\\n\", \"96\\n\", \"6\\n\", \"72\\n\", \"84\\n\", \"133\\n...
rating_>1900
{ "id": "901_B. GCD of Polynomials", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "In this kata the function returns an array/list of nu...
code
{ "ground_truth": "{\"fn_name\": \"without_last\", \"inputs\": [[[1, 2, 3, 4, 5]], [[9, 7, 6, 9]]], \"outputs\": [[[1, 2, 3, 4]], [[9, 7, 6]]]}", "style": "rule" }
EASY
{ "id": "taco-train-2757", "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": "Bear Limak likes watching sports on TV. He is going ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n7 20 88\\n\", \"9\\n15 20 30 40 50 60 70 80 90\\n\", \"9\\n16 20 30 40 50 60 70 80 90\\n\", \"2\\n1 18\\n\", \"9\\n6 20 27 28 40 53 59 70 85\\n\", \"8\\n10 20 30 40 50 60 70 80\\n\", \"6\\n13 17 32 47 60 66\\n\", \"1\\n1\\n\", \"8\\n5 17 20 35 42 53 67 76\\n\", \"1\\n90\\n\", \"...
rating_<=1200
{ "id": "673_A. Bear and Game", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a flat panel with two holes. Pins are nailed...
code
{ "ground_truth": "{\"inputs\": [\"6 16\\n5 4\\n11 988\\n474 975\\n459 16\\n985 12\\n984 982\\n242 227\\n140 266\\n45 410\\n92 570\\n237 644\\n370 567\\n406 424\\n336 290\\n756 220\\n634 251\\n511 404\\n575 554\\n726 643\\n868 571\\n907 403\\n845 283\\n10 4\\n261 196\\n943 289\\n859 925\\n56 822\\n112 383\\n514 0\\n1...
none
{ "id": "p00745 Tighten Up!", "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": "In English and programming, groups can be made using ...
code
{ "ground_truth": "{\"fn_name\": \"group_check\", \"inputs\": [[\"({})\"], [\"[[]()]\"], [\"[{()}]\"], [\"()\"], [\"([])\"], [\"{}([])\"], [\"{[{}[]()[]{}{}{}{}{}{}()()()()()()()()]{{{[[[((()))]]]}}}}(())[[]]{{}}[][][][][][][]({[]})\"], [\"\"], [\"{(})\"], [\"[{}{}())\"], [\"{)[}\"], [\"[[[]])\"], [\"()[]{]\"], [\"{(...
EASY
{ "id": "taco-train-7712", "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": "Once upon a time, there was a traveler.\n\nHe plans ...
code
{ "ground_truth": "{\"inputs\": [\"3 4 3 1 4\\n3 1 2\\n1 2 10\\n2 3 30\\n3 4 20\\n2 4 4 2 1\\n3 1\\n2 3 3\\n1 3 3\\n4 1 2\\n4 2 5\\n2 4 3 4 1\\n5 5\\n1 2 10\\n2 3 10\\n3 4 10\\n1 2 0 1 2\\n1\\n8 5 10 1 5\\n2 7 1 8 4 5 6 3\\n1 2 5\\n2 3 4\\n3 4 7\\n4 5 3\\n1 3 25\\n2 4 23\\n3 5 22\\n1 4 45\\n2 5 51\\n1 5 99\\n0 0 0 0 ...
none
{ "id": "p00719 Traveling by Stagecoach", "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": "Nearly each project of the F company has a whole tea...
code
{ "ground_truth": "{\"inputs\": [\"5 4\\n+ 1\\n+ 2\\n- 2\\n- 1\", \"3 2\\n+ 1\\n- 2\", \"2 4\\n+ 1\\n- 1\\n+ 2\\n- 2\", \"5 6\\n+ 1\\n- 1\\n- 3\\n+ 3\\n+ 4\\n- 4\", \"2 4\\n+ 1\\n- 2\\n+ 2\\n- 1\", \"1 1\\n+ 1\", \"2 1\\n- 2\", \"3 5\\n- 1\\n+ 1\\n+ 2\\n- 2\\n+ 3\", \"10 8\\n+ 1\\n- 1\\n- 2\\n- 3\\n+ 3\\n+ 7\\n- 7\\n...
rating_1601-1900
{ "id": "420B", "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": "Polycarp has x of red and y of blue candies. Using t...
code
{ "ground_truth": "{\"inputs\": [\"9\\n10 12 2 5\\n1 1 2 2\\n52 311 13 27\\n1000000000 1000000000 1 1\\n1000000000 1 1 1000000000\\n1 1000000000 1000000000 1\\n1 2 1 1\\n7 8 1 2\\n4 1 2 3\\n\", \"9\\n10 12 2 5\\n1 2 2 2\\n52 311 13 27\\n1000000000 1000000000 1 1\\n1000000000 1 1 1000000000\\n1 1000000000 1000000000 1...
none
{ "id": "1538_G. Gift Set", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "After a team finished their training session on Euro...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n\", \"4 3\\n\", \"2 1\\n\", \"2 6\\n\", \"45 88\\n\", \"90 544\\n\", \"8 87\\n\", \"1 2\\n\", \"9 2\\n\", \"6 5\\n\", \"5 2\\n\", \"85 60\\n\", \"17 812\\n\", \"165 374\\n\", \"1 100000\\n\", \"10 3\\n\", \"21 57\\n\", \"61 51\\n\", \"4 3\\n\\nSAMPLE\", \"37 849\\n\", \"6 358\...
rating_1201-1400
{ "id": "195_B. After Training", "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": "As we all know, Winnie-the-Pooh just adores honey. O...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n15 8 10\\n\", \"100 1\\n85 75 55 65 39 26 47 16 9 11 3 4 70 23 56 64 36 34 16 13 18 28 32 80 8 79 76 4 21 75 93 51 85 86 100 88 91 71 97 28 66 22 47 87 91 95 3 56 81 53 88 90 21 30 74 45 58 73 36 40 70 51 28 75 20 54 69 52 14 48 52 53 91 81 32 68 16 48 60 66 91 32 55 42 93 51 ...
rating_<=1200
{ "id": "120_C. Winnie-the-Pooh and honey", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given is a string S consisting of digits from 1 thro...
code
{ "ground_truth": "{\"inputs\": [\"1817181712114\\n\", \"14282668646\\n\", \"2119\\n\", \"482425916653317346996756852422942851995828658629115845135745997868665662573821165967741315284484813129534966243629715614142164768773556193578734358759499151664782275157266712899896369186172491779732214746749541236643459479677194...
MEDIUM
{ "id": "taco-train-13971", "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": "Rhyming slang involves replacing a common word with ...
code
{ "ground_truth": "{\"inputs\": [\"stairs\\n2\\nerres airs ears ares aires\\neet eat\\n2\\napples and pears\\nplates of meat\\n\", \"drought\\n2\\naught ought aut acht\\nought oubt outte out oute\\n5\\ntasty sprout\\ndifficult route\\nworried and fraught\\nforever in doubt\\napples and pears\\n\", \"listen\\n1\\nisse...
EASY
{ "id": "taco-train-9121", "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 [Bengali], [Mandarin Chin...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1\\n2\\n3\\n4\\n7\", \"1\\n5\", \"1\\n10\", \"1\\n15\", \"1\\n20\", \"1\\n25\", \"1\\n30\", \"1\\n35\", \"1\\n40\", \"1\\n45\", \"1\\n50\", \"1\\n55\", \"1\\n60\", \"1\\n65\", \"1\\n70\", \"1\\n75\", \"1\\n80\", \"1\\n85\", \"1\\n90\", \"1\\n95\", \"1\\n100\", \"2\\n2\\n100\", \...
MEDIUM
{ "id": "taco-test-453", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have $n$ chains, the $i$-th chain consists of $c...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n3 4 3 3\\n-1 1 2 2\\n-1 2 2 3\\n2\\n5 6\\n-1 5\\n-1 1\\n3\\n3 5 2\\n-1 1 1\\n-1 3 5\\n\", \"3\\n4\\n3 4 3 3\\n-1 1 2 2\\n-1 2 2 3\\n2\\n5 6\\n-1 5\\n0 1\\n3\\n3 5 2\\n-1 1 1\\n-1 3 5\\n\", \"3\\n4\\n3 4 3 3\\n-1 1 2 2\\n-1 2 2 3\\n2\\n5 9\\n-1 5\\n0 1\\n3\\n3 5 2\\n-1 1 1\\n...
MEDIUM_HARD
{ "id": "taco-train-14607", "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": "Teacher Suki loves her students very much. Now, she ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n2 2 1\\n3\\n1 5 4\", \"2\\n3\\n2 2 1\\n3\\n1 6 4\", \"2\\n0\\n2 4 1\\n0\\n1 6 2\", \"2\\n-2\\n3 0 2\\n-1\\n0 0 0\", \"2\\n-1\\n2 1 1\\n2\\n2 2 2\", \"2\\n0\\n2 2 1\\n3\\n1 6 4\", \"2\\n0\\n2 2 1\\n3\\n1 6 2\", \"2\\n0\\n2 2 1\\n0\\n1 6 2\", \"2\\n1\\n2 4 1\\n0\\n1 6 2\", \"2...
none
{ "id": "toffees", "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 frog jumps either 1, 2, or 3 steps to go to the top...
code
{ "ground_truth": "{\"inputs\": [\"N = 1\", \"N = 4\"], \"outputs\": [\"1\", \"7\"]}", "style": "rule" }
EASY
{ "id": "taco-train-20085", "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": "For a given number N check if it is prime or not. A p...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\", \"N = 25\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19986", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese and Rus...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4 5\\n10 12\\n10 20\", \"3\\n4 5\\n10 12\\n0 20\", \"3\\n1 5\\n10 12\\n0 20\", \"3\\n1 5\\n10 23\\n0 20\", \"3\\n1 5\\n10 23\\n0 30\", \"3\\n1 5\\n8 23\\n0 30\", \"3\\n1 5\\n8 23\\n0 41\", \"3\\n1 5\\n8 23\\n0 69\", \"3\\n1 5\\n8 23\\n0 115\", \"3\\n1 3\\n8 23\\n0 115\", \"3\\n5...
EASY
{ "id": "taco-train-12366", "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 n segments [l_1, r_1], [l_2, r_2], ......
code
{ "ground_truth": "{\"inputs\": [\"7\\n19 20 1\\n13 15 2\\n6 11 2\\n4 10 1\\n14 17 1\\n13 13 2\\n5 9 1\\n\", \"5\\n5 8 1\\n1 3 2\\n3 4 2\\n6 6 1\\n2 10 2\\n\", \"3\\n1 3 1\\n4 6 2\\n2 5 1\\n\", \"10\\n1 20 1\\n11 17 2\\n3 15 2\\n3 9 2\\n3 14 1\\n16 18 2\\n6 9 2\\n13 17 2\\n10 17 2\\n7 13 1\\n\", \"12\\n1 2 2\\n6 7 2\...
rating_>1900
{ "id": "1389_F. Bicolored Segments", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Lucy is making her road bike ready for the season. A...
code
{ "ground_truth": "{\"inputs\": [\"2 11 15\\n50 34\\n11 12 13 14 16 18 20 22 25 28 32\\n\", \"3 8 10\\n30 39 48\\n10 13 16 22 25 28 32 35\\n\"], \"outputs\": [\"Ride on!\\n\", \"Time to change gears!\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-16505", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef is going to participate in a new quiz show: \"W...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5\\nABCDE\\nEBCDA\\n0 10 20 30 40 50\\n4\\nCHEF\\nQUIZ\\n4 3 2 1 0\\n8\\nABBABAAB\\nABABABAB\\n100 100 100 100 100 100 100 100 100\", \"3\\n5\\nABCDE\\nEBCDA\\n0 8 20 30 40 50\\n4\\nCHEF\\nQUIZ\\n4 3 2 1 0\\n8\\nABBABAAB\\nABABABAB\\n100 100 100 100 100 100 100 100 100\", \"3\\n...
none
{ "id": "wdtbam", "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 have multiset of *n* strings of the same length,...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\nabcde\\nabcde\\nabcde\\nabcde\\n1 1 1 1 1\\n1 1 1 1 1\\n1 1 1 1 1\\n1 1 1 1 1\", \"4 3\\nabc\\naba\\nadc\\nada\\n10 10 10\\n10 1 10\\n10 10 10\\n10 1 10\", \"3 3\\nabc\\nada\\nssa\\n1 1 1\\n1 1 1\\n1 1 1\", \"5 2\\naa\\naa\\nab\\nbb\\nbb\\n1 100\\n100 100\\n1 1\\n100 100\\n100...
rating_>1900
{ "id": "543C", "rating": 2500, "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": "Soon a school Olympiad in Informatics will be held i...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 5\\n2 6\\n3 7\", \"10\\n1 2\\n1 3\\n1 5\", \"6\\n1 3\\n2 2\\n2 2\", \"55\\n1 1000000\\n40 50\\n10 200\", \"3\\n1 1\\n1 1\\n1 1\", \"3\\n1 1000000\\n1 1000000\\n1 1000000\", \"1000\\n100 400\\n300 500\\n400 1200\", \"3000000\\n1 1000000\\n1 1000000\\n1 1000000\", \"11\\n3 5\\n3...
rating_<=1200
{ "id": "557A", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Find \\displaystyle{\\sum_{a=1}^{K}\\sum_{b=1}^{K}\\...
code
{ "ground_truth": "{\"inputs\": [\"2\\n\", \"200\\n\", \"1\\n\", \"199\\n\", \"198\\n\", \"197\\n\", \"196\\n\", \"195\\n\", \"53\\n\", \"157\\n\", \"120\\n\", \"161\\n\", \"98\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"4\", \"8\", \"3\", \"5\", \"7\", \"0\", \"1\", \"10\", \"20\", \"9\", \"11\", \"6\"...
EASY
{ "id": "taco-train-5100", "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 Binary Search Tree and a node value X, find i...
code
{ "ground_truth": "{\"inputs\": [\"2\\r\\n \\\\\\r\\n 81 \\r\\n / \\\\ \\r\\n 42 87 \\r\\n \\\\ \\\\ \\r\\n 66 90 \\r\\n / \\r\\n 45\\r\\nX = 87\", \"6\\r\\n \\\\ \\r\\n ...
EASY
{ "id": "taco-train-23402", "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": "Capitalization is writing a word with its first lett...
code
{ "ground_truth": "{\"inputs\": [\"ApPLe\", \"konjac\", \"a\", \"A\", \"z\", \"ABACABA\", \"xYaPxPxHxGePfGtQySlNrLxSjDtNnTaRaEpAhPaQpWnDzMqGgRgEwJxGiBdZnMtHxFbObCaGiCeZkUqIgBhHtNvAqAlHpMnQhNeQbMyZrCdElVwHtKrPpJjIaHuIlYwHaRkAkUpPlOhNlBtXwDsKzPyHrPiUwNlXtTaPuMwTqYtJySgFoXvLiHbQwMjSvXsQfKhVlOxGdQkWjBhEyQvBjPoFkThNeRhTuI...
rating_<=1200
{ "id": "281A", "rating": 800, "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": "Let's define the cost of a string s as the number of...
code
{ "ground_truth": "{\"inputs\": [\"9 4\\n\", \"5 1\\n\", \"10 26\\n\", \"200000 26\\n\", \"9 3\\n\", \"26 5\\n\", \"200 20\\n\", \"200000 5\\n\", \"200 15\\n\", \"200000 11\\n\", \"200 26\\n\", \"200000 10\\n\", \"27 5\\n\", \"200 18\\n\", \"1337 11\\n\", \"200 10\\n\", \"32 2\\n\", \"200 22\\n\", \"1 1\\n\", \"20000...
rating_1401-1600
{ "id": "1511_D. Min Cost String", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Rock... Paper!\n\nAfter Karen have found the determi...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n4 5 6\\n\", \"5\\n2 4 6 8 10\\n9 7 5 3 1\\n\", \"1\\n1\\n2000000\\n\", \"2\\n97153 2000000\\n1999998 254\\n\", \"15\\n31 30 29 28 27 26 25 24 23 22 21 20 19 18 17\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15\\n\", \"30\\n79656 68607 871714 1858841 237684 1177337 532141 161161 1...
EASY
{ "id": "taco-train-22663", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a grid with N rows and M columns of squares....
code
{ "ground_truth": "{\"inputs\": [\"2 2 2\", \"2 2 1\", \"7 9 20\", \"3 5 8\", \"4 2 2\", \"4 2 1\", \"7 9 8\", \"2 5 8\", \"6 2 2\", \"7 17 8\", \"1 5 8\", \"2 3 2\", \"7 17 5\", \"2 1 8\", \"2 3 0\", \"0 17 5\", \"2 2 8\", \"2 0 0\", \"0 12 5\", \"2 0 -1\", \"0 12 3\", \"0 12 1\", \"0 13 1\", \"1 13 1\", \"2 13 1\",...
none
{ "id": "p03592 CODE FESTIVAL 2017 qual A - fLIP", "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": "Permutation p is an ordered set of integers p1, p2, ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"5\\n\", \"9\\n\", \"11\\n\", \"14\\n\", \"7\\n\", \"16\\n\", \"8\\n\", \"15\\n\", \"6\\n\", \"10\\n\", \"4\\n\", \"12\\n\", \"1\\n\", \"2\\n\", \"13\\n\", \"011\\n\", \"010\\n\", \"001\\n\"], \"outputs\": [\"18\\n\", \"1800\\n\", \"734832000\\n\", \"890786230\\n\", \"0\\n\...
rating_1601-1900
{ "id": "285_D. Permutation Sum", "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": "We have N colored balls arranged in a row from left ...
code
{ "ground_truth": "{\"inputs\": [\"4 3\\n1 2 1 3\\n1 3\\n2 4\\n3 3\\n\", \"10 10\\n2 5 6 5 2 1 7 9 7 2\\n5 5\\n2 4\\n6 7\\n2 2\\n7 8\\n7 9\\n1 8\\n6 9\\n8 10\\n6 8\\n\", \"10 10\\n4 5 6 5 2 1 7 9 7 2\\n5 5\\n2 4\\n6 7\\n2 2\\n7 8\\n7 9\\n1 8\\n6 9\\n8 10\\n6 8\", \"4 1\\n1 2 1 3\\n1 3\\n2 4\\n3 3\", \"4 2\\n1 2 1 3\\...
MEDIUM_HARD
{ "id": "taco-train-21782", "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": "Little Elephant is playing a game with arrays. He is...
code
{ "ground_truth": "{\"inputs\": [[\"5\", \"4 1 2 3 4\", \"4\", \"3\", \"4\", \"6\", \"1\", \"\", \"\"], \"5\\n4 0 2 3 4\\n4\\n3\\n4\\n6\\n1\", \"5\\n4 0 2 3 4\\n4\\n5\\n4\\n6\\n1\", \"5\\n4 1 2 3 4\\n4\\n5\\n4\\n6\\n1\", \"5\\n4 1 2 6 4\\n4\\n5\\n4\\n6\\n1\", \"5\\n4 1 2 3 4\\n4\\n3\\n7\\n6\\n1\", \"5\\n4 0 2 3 4\\n1...
MEDIUM
{ "id": "taco-train-78", "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": "Tug of war is a sport that directly puts two teams a...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 2\\n4 0\\n2 1\", \"3\\n3 2\\n0 0\\n2 1\", \"3\\n3 2\\n0 0\\n3 1\", \"3\\n3 2\\n0 0\\n6 1\", \"3\\n3 4\\n1 -1\\n6 1\", \"3\\n1 4\\n1 -1\\n6 1\", \"3\\n1 4\\n1 -1\\n7 1\", \"3\\n1 4\\n0 -1\\n7 1\", \"3\\n1 2\\n0 -1\\n7 2\", \"3\\n1 6\\n0 -1\\n11 2\", \"3\\n1 6\\n0 -1\\n11 0\", \...
VERY_HARD
{ "id": "taco-train-19002", "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": "Cherry has a string S$S$ consisting of lowercase Eng...
code
{ "ground_truth": "{\"inputs\": [[\"codechef\", \"chefcode\", \"3\", \"4\", \"12\", \"1455\"]], \"outputs\": [[\"0\", \"1\", \"181\"]]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-17833", "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 3 numbers A, B and C. Find the greatest number ...
code
{ "ground_truth": "{\"inputs\": [\"A = 10, B = 3, C = 2\", \"A = -4, B = -3, C = -2\"], \"outputs\": [\"10\", \"-2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22788", "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": "Chef has a an array A consisting of N elements. He w...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 1 1 5\\n1 6 9\\n3 2 6 7\\n1 6 9\"], \"outputs\": [\"38\\n36\"]}", "style": "rule" }
none
{ "id": "chsparr", "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": "Acingel is a small town. There was only one doctor h...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\\n\", \"3 2\\n1 2 3\\n2 3 1\\n\", \"5 6\\n1 2 3 4 5\\n2 3 1 4 5\\n3 4 5 1 2\\n3 5 4 2 1\\n2 3 5 4 1\\n1 2 3 4 5\\n\", \"1 1\\n1\\n\", \"2 1\\n1 2\\n\", \"10 5\\n6 8 4 1 7 10 3 2 5 9\\n4 1 7 10 2 5 9 6 8 3\\n3 6 8 4 1 7 10 2 5 9\\n2 5 9 8 4 1 7 10 3 6\\n2 5 9 6 8 4 1 ...
rating_1601-1900
{ "id": "1043_D. Mysterious Crime", "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": "Bessie and the cows are playing with sequences and n...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 1\\n3\\n2 3\\n2 1\\n3\\n\", \"6\\n2 1\\n1 2 20\\n2 2\\n1 2 -3\\n3\\n3\\n\", \"1\\n1 1 1\\n\", \"1\\n2 1\\n\", \"2\\n2 1\\n1 2 1\\n\", \"5\\n2 1\\n1 2 1\\n2 1\\n2 1\\n1 2 1\\n\", \"5\\n1 1 7\\n1 1 7\\n1 1 7\\n2 5\\n1 2 2\\n\", \"5\\n1 1 -48\\n1 1 19\\n1 1 -35\\n2 -67\\n1 2 -13\...
MEDIUM_HARD
{ "id": "taco-train-10019", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array $a$ consisting of $n$ integer...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n\", \"6\\n6 90 12 18 30 18\\n\", \"2\\n385945560000 385945560000\\n\", \"1\\n771891120000\\n\", \"3\\n167266859760 151104713760 58992373440\\n\", \"1\\n999999999989\\n\", \"1\\n10000047259\\n\", \"1\\n1000000007\\n\", \"2\\n1000000007 1000000007\\n\", \"3\\n2 6 9\\n\...
EASY
{ "id": "taco-train-16768", "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": "Kate has finally calmed down and decides to forgive ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 11\\n2 11\\n\\nSAMPLE\", \"2\\n3 11\\n2 11\\n\\nSALPLE\", \"2\\n3 11\\n2 2\\n\\nSALPLE\", \"2\\n3 13\\n2 11\\n\\nSALPLE\", \"2\\n3 11\\n2 7\\n\\nSAMPME\", \"2\\n4 13\\n2 11\\n\\nSALPLE\", \"2\\n3 11\\n2 13\\n\\nSAMPME\", \"2\\n0 11\\n2 13\\n\\nSAMPME\", \"2\\n1 11\\n2 11\\n\\n...
none
{ "id": "factorial-again-1", "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 stumbled upon a new kind of chess puzzles. The c...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 9 3\\n8 6 7\\n4 2 5\\n\", \"6\\n32 17 18 23 26 33\\n7 36 22 3 1 5\\n30 9 8 34 27 21\\n16 6 35 28 4 25\\n29 19 24 13 11 12\\n2 20 15 14 31 10\\n\", \"10\\n38 18 27 74 94 4 45 82 83 88\\n73 95 50 40 28 59 47 19 58 60\\n23 75 14 22 97 81 3 85 87 6\\n56 80 30 62 57 90 5 41 69 44\\...
rating_>1900
{ "id": "1065_D. Three Pieces", "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": "During the last 24 hours Hamed and Malek spent all t...
code
{ "ground_truth": "{\"inputs\": [\"5 2 1\\n1 1 3 3\\n2 2 4 4\\n\", \"12 5 7\\n3 4 5 6\\n1 2 1 2\\n4 5 9 9\\n8 6 12 10\\n12 4 12 4\\n\", \"370 28 40\\n350 284 369 345\\n74 7 199 242\\n166 26 316 322\\n37 242 131 284\\n17 271 320 362\\n23 89 203 136\\n69 124 287 158\\n187 152 215 279\\n195 177 320 245\\n240 130 256 340...
rating_>1900
{ "id": "494_E. Sharti", "rating": 3200, "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": "Write a function that accepts a string, and returns t...
code
{ "ground_truth": "{\"fn_name\": \"validPhoneNumber\", \"inputs\": [[\"(123) 456-7890\"], [\"(1111)555 2345\"], [\"(098) 123 4567\"], [\"(123)456-7890\"], [\"abc(123)456-7890\"], [\"(123)456-7890abc\"], [\"abc(123)456-7890abc\"], [\"abc(123) 456-7890\"], [\"(123) 456-7890abc\"], [\"abc(123) 456-7890abc\"]], \"outputs...
EASY
{ "id": "taco-train-11704", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given is a tree G with N vertices. The vertices are ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 3\", \"6\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\", \"8\\n1 2\\n2 3\\n2 4\\n2 5\\n4 7\\n5 6\\n6 8\", \"8\\n1 2\\n2 3\\n2 4\\n2 5\\n4 7\\n5 6\\n2 8\", \"8\\n1 2\\n2 3\\n2 4\\n4 5\\n4 7\\n5 6\\n2 8\", \"8\\n1 2\\n2 3\\n2 4\\n2 5\\n4 7\\n3 6\\n6 8\", \"8\\n1 2\\n2 3\\n2 4\\n2 5\\n4 7...
none
{ "id": "p02850 AtCoder Beginner Contest 146 - Coloring Edges on Tree", "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 planning to travel in interstellar space in ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n100 1 1\\n100 1 1.5\\n\", \"4\\n100 1 0.5\\n200 1 1\\n100 0.5 1.5\\n10 2 3\\n\"], \"outputs\": [\"199.500000\\n\", \"405.500000\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-22275", "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": "DZY loves colors, and he enjoys painting.\n\nOn a co...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 1 3 4\\n2 1 1\\n2 2 2\\n2 3 3\\n\", \"3 3\\n1 1 2 4\\n1 2 3 5\\n2 1 3\\n\", \"10 6\\n1 1 5 3\\n1 2 7 9\\n1 10 10 11\\n1 3 8 12\\n1 1 10 3\\n2 1 10\\n\", \"3 3\\n2 2 3\\n1 1 3 72971211\\n2 2 3\\n\", \"3 3\\n1 2 2 31844623\\n1 1 2 37662529\\n2 2 3\\n\", \"10 10\\n1 5 9 6014471...
rating_>1900
{ "id": "445_E. DZY Loves Colors", "rating": 2400, "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": "Cman doesn't love math anymore. He loves Alisha. Ali...
code
{ "ground_truth": "{\"inputs\": [\"10\\n37 128\\n3 3 3 2 2 3 1 3 1 3 1 2 2 3 1 3 3 1 3 2 2 3 3 3 2 1 3 3 3 2 2 3 1 1 2 3 2 \\n93 230\\n2 2 1 1 1 1 1 1 3 2 1 2 1 3 2 3 2 3 3 3 2 1 1 2 2 3 3 2 1 2 2 3 2 2 3 2 1 1 3 1 3 1 1 3 1 2 1 1 1 3 3 3 2 1 1 3 3 1 2 3 3 1 3 1 3 3 1 3 1 3 1 3 1 2 3 3 3 3 3 2 1 3 1 2 3 2 2 1 3 1 3 2...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-4157", "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 string S, sort it in the following manner. So...
code
{ "ground_truth": "{\"inputs\": [\"abcdei\", \"bcadefgh\"], \"outputs\": [\"abecid\", \"bacedfgh\"]}", "style": "rule" }
EASY
{ "id": "taco-train-7887", "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": "Eli- 1 started a part-time job handing out leaflets ...
code
{ "ground_truth": "{\"inputs\": [\"1\\n20 3\", \"1\\n200 1\", \"2\\n20 8\\n20 12\"], \"outputs\": [\"67\", \"148322100\", \"24\\n20\"]}", "style": "rule" }
none
{ "id": "p03983 Kyoto University Programming Contest 2016 - Handing out leaflets", "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": "One popular blog site edits the uploaded photos like...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n\", \"2 2\\n\", \"5 5\\n\", \"15 13\\n\", \"9 10\\n\", \"47 46\\n\", \"49829224 49889315\\n\", \"483242 484564\\n\", \"644590722 593296648\\n\", \"971840165 826141527\\n\", \"49728622 49605627\\n\", \"99692141 99232337\\n\", \"48298903 49928606\\n\", \"792322809 775058858\\n\"...
rating_1601-1900
{ "id": "53_B. Blog Photo", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given a positive number N. Using the concept ...
code
{ "ground_truth": "{\"inputs\": [\"N = 12246\"], \"outputs\": [\"2 3 13 157\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-13496", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A tree is a connected undirected graph consisting of...
code
{ "ground_truth": "{\"inputs\": [\"5 3 2\", \"8 5 2\", \"8 4 2\", \"2 1 1\", \"10 3 3\", \"15 6 4\", \"16 15 14\", \"1000 51 25\", \"100000 10 7\", \"3 1 1\", \"3 2 1\", \"3 2 2\", \"4 1 1\", \"4 2 1\", \"4 2 2\", \"4 3 1\", \"4 3 2\", \"4 3 3\", \"8 5 3\", \"20 19 19\", \"30 14 14\", \"33 5 3\", \"5432 200 100\", \"...
rating_1401-1600
{ "id": "639B", "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": "In genetics, a sequence’s motif is a nucleotides (or ...
code
{ "ground_truth": "{\"fn_name\": \"motif_locator\", \"inputs\": [[\"TTCCGGAACC\", \"CC\"], [\"ACGTTACAACGTTAG\", \"ACGT\"], [\"ACGTACGTACGT\", \"AAA\"], [\"ACGT\", \"ACGTGAC\"]], \"outputs\": [[[3, 9]], [[1, 9]], [[]], [[]]]}", "style": "rule" }
EASY
{ "id": "taco-train-2351", "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": "Rumors say that one of Kamal-ol-molk's paintings has...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\nXXXX.\\nXXXX.\\n.XX..\\n.XX..\\n\", \"4 4\\nXX..\\nXX..\\nXXXX\\nXXXX\\n\", \"4 4\\n....\\n.XXX\\n.XXX\\n....\\n\", \"10 10\\n..........\\n..........\\n..........\\n..........\\n..........\\n.XX.......\\n.XXXXXX...\\n.XXXXXX...\\n..........\\n..........\\n\", \"10 10\\n..........
rating_>1900
{ "id": "475_C. Kamal-ol-molk's Painting", "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 two positive integers $A$ and $B$. Fin...
code
{ "ground_truth": "{\"inputs\": [[\"4\", \"1 1\", \"2 3\", \"4 6\", \"8 9\"]], \"outputs\": [[\"1\", \"3\", \"12\", \"36\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-15007", "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": "This year in Equestria was a year of plenty, so Appl...
code
{ "ground_truth": "{\"inputs\": [\"6\\n1 1 1 2 1 1\\n6\\n+ 2\\n+ 1\\n- 1\\n+ 2\\n- 1\\n+ 2\\n\", \"12\\n1 1 1 1 2 2 2 2 3 3 3 3\\n1\\n+ 10\\n\", \"5\\n1 1 1 1 1\\n1\\n+ 1\\n\", \"10\\n1 1 1 1 1 1 1 1 1 1\\n1\\n+ 1\\n\", \"1\\n1\\n34\\n- 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n+ 1\\n- 1\\n- 1\\n- 1\\n- 1\\...
rating_1201-1400
{ "id": "1393_B. Applejack and Storages", "rating": 1400, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Your dear son Arnie is addicted to a puzzle named Co...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 1 0 9\\n10 1 10 9\\n1 0 9 0\\n1 10 9 10\\n2\\n1.2 3.4 5.6 7.8\\n5.6 3.4 1.2 7.8\\n0\", \"4\\n0 1 0 9\\n10 1 10 9\\n1 0 9 0\\n1 10 9 10\\n2\\n1.2 3.4 5.766243403304967 7.8\\n5.6 3.4 1.2 7.8\\n0\", \"4\\n0 1 0 9\\n10 1 10 9\\n1 0 9 0\\n1 10 9 10\\n2\\n1.2 3.4 5.766243403304967 7...
none
{ "id": "p01239 Connect Line Segments", "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": "Among Johnny's numerous hobbies, there are two seemi...
code
{ "ground_truth": "{\"inputs\": [\"6\\n4\\n1 0 2 3\\n6\\n10 7 14 8 3 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 4 6 10 11 12\\n2\\n0 1023\\n\", \"6\\n4\\n1 0 2 3\\n6\\n10 7 14 8 0 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 4 6 10 11 12\\n2\\n0 1023\\n\", \"6\\n4\\n1 0 2 5\\n6\\n10 7 14 8 0 12\\n2\\n0 2\\n3\\n1 2 3\\n6\\n1 4 6 10 11 12\\...
EASY
{ "id": "taco-train-7802", "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 positive integers A_1, A_2, ..., A_N. Ta...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 1 4 1\", \"8\\n657312726 129662684 181537270 324043958 468214806 916875077 825989291 319670097\", \"5\\n1 2 3 4 5\", \"4\\n2 1 4 1\", \"8\\n347554626 129662684 181537270 324043958 468214806 916875077 825989291 319670097\", \"5\\n1 2 2 4 5\", \"8\\n67210447 129662684 181537270 ...
none
{ "id": "p03198 CADDi 2018 - Negative Doubling", "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 linked list consisting of L nodes and given a...
code
{ "ground_truth": "{\"inputs\": [\"N = 2\\nLinkedList:1->2->3->4->5->6->7->8->9\", \"N = 5\\nLinkedList:10->5->100->5\"], \"outputs\": [\"8\", \"-1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-13850", "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 X and two positions (from right side) ...
code
{ "ground_truth": "{\"inputs\": [\"X = 47\\r\\nP1 = 1\\r\\nP2 = 5\\r\\nN = 3\", \"X = 28\\r\\nP1 = 0\\r\\nP2 = 3\\r\\nN = 2\"], \"outputs\": [\"227\", \"7\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5457", "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": "Polo, the Penguin, has a lot of tests tomorrow at th...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3 7\\n1 2 3\\n2 3 5\\n3 3 3\", \"1\\n3 7\\n1 2 0\\n2 3 5\\n3 3 3\", \"1\\n3 7\\n1 2 3\\n2 3 5\\n3 4 3\", \"1\\n3 7\\n1 2 3\\n2 3 5\\n3 0 3\", \"1\\n3 7\\n1 2 0\\n2 3 10\\n7 3 3\", \"1\\n3 7\\n1 2 0\\n2 3 8\\n3 1 4\", \"1\\n3 7\\n1 2 0\\n2 2 10\\n0 3 3\", \"1\\n3 12\\n1 2 2\\n4 3...
none
{ "id": "pptest", "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": "Sherlock Holmes has decided to start a new academy t...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"5\", \"2 3 5 1 2\", \"3\", \"1 2 3\"]], \"outputs\": [[\"3\", \"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-24324", "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": "n ants are on a circle of length m. An ant travels o...
code
{ "ground_truth": "{\"inputs\": [\"4 8 6\\n6 R\\n5 L\\n1 R\\n8 L\\n\", \"4 8 2\\n1 R\\n5 L\\n6 L\\n8 R\\n\", \"2 4 8\\n1 R\\n3 L\\n\", \"10 10 90\\n2 R\\n1 R\\n3 L\\n4 R\\n7 L\\n8 L\\n6 R\\n9 R\\n5 R\\n10 L\\n\", \"10 20 59\\n1 R\\n15 L\\n7 L\\n13 R\\n5 R\\n17 R\\n3 L\\n9 R\\n11 L\\n19 L\\n\", \"10 20 85\\n6 L\\n12 R...
rating_>1900
{ "id": "652_F. Ants on a Circle", "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": "Given an array, the task is to find the difference be...
code
{ "ground_truth": "{\"inputs\": [\"arr[] = [1, 2, 2]\", \"arr[] = [7, 8, 4, 5, 4, 1, 1, 7, 7, 2, 5]\"], \"outputs\": [\"1\", \"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9950", "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": "Consider a sample space S consisting of all perfect s...
code
{ "ground_truth": "{\"inputs\": [\"N = 9\", \"N = 3\"], \"outputs\": [\"2\", \"1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1634", "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": "Create a function `sierpinski` to generate an ASCII r...
code
{ "ground_truth": "{\"fn_name\": \"sierpinski\", \"inputs\": [[1], [2], [3]], \"outputs\": [[\" * \\n* *\"], [\" * \\n * * \\n * * \\n* * * *\"], [\" * \\n * * \\n * * \\n * * * * \\n * * \\n * * * * \\n * * * * \\n* * * * * * * *\"]]}", "style": "...
EASY
{ "id": "taco-train-19445", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a positive integer N, find the smallest number ...
code
{ "ground_truth": "{\"inputs\": [\"N = 100\", \"N = 26\"], \"outputs\": [\"455\", \"-1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5240", "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": "Fibonacci numbers have the following form: \n\n$\\be...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2\\n3\\n5\\n\", \"2\\n3\\n6\\n\"], \"outputs\": [\"1\\n\", \"2\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-12610", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_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": "Yaroslav is playing a game called \"Time\". The game...
code
{ "ground_truth": "{\"inputs\": [\"3 1000\\n1000\\n0 0\\n0 1\\n0 3\", \"3 1000\\n1000\\n1 0\\n1 1\\n1 2\", \"5 1421\\n896 448 727\\n-19 -40\\n-87 40\\n69 51\\n-55 61\\n-7 67\", \"6 1000\\n142 712 254 869\\n7 0\\n95 38\\n96 -20\\n-7 93\\n75 -45\\n-80 -20\", \"7 1288\\n943 265 649 447 806\\n-4 -51\\n-26 32\\n47 -28\\n3...
rating_>1900
{ "id": "301B", "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": "In a medieval kingdom, the economic crisis is raging...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n1 2 5\\n1 2 1\\n2 1 10\\n\", \"3 2\\n1 2 10\\n3 2 20\\n\", \"5 4\\n1 4 6895\\n3 5 2890\\n4 2 2089\\n2 3 8673\\n\", \"4 2\\n1 2 3\\n1 3 4\\n\", \"7 6\\n3 5 4229\\n2 7 7116\\n3 4 2492\\n7 3 3742\\n7 3 2996\\n3 4 8359\\n\", \"2 1\\n1 2 792\\n\", \"3 3\\n1 3 4\\n1 3 2\\n1 3 8\\n\"...
rating_>1900
{ "id": "875_F. Royal Questions", "rating": 2500, "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": "Sereja showed an interesting game to his friends. Th...
code
{ "ground_truth": "{\"inputs\": [\"3 4\\n1 1 1\", \"3 4\\n3 1 3\", \"3 4\\n4 4 4\", \"2 1\\n1 10\", \"3 12\\n5 6 6\", \"4 10\\n6 3 8 7\", \"5 16\\n3 3 2 7 9\", \"6 38\\n9 10 3 8 10 6\", \"7 12\\n4 4 5 2 2 4 9\", \"8 15\\n8 10 4 2 10 9 7 6\", \"9 22\\n1 3 5 9 7 6 1 10 1\", \"10 30\\n9 10 4 5 5 7 1 7 7 2\", \"38 83\\n9...
rating_<=1200
{ "id": "426A", "rating": 800, "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": "Professor GukiZ is concerned about making his way to...
code
{ "ground_truth": "{\"inputs\": [\"3 2\\n1 0 2\\n\", \"2 1\\n1 1\\n\", \"4 100\\n3 4 5 4\\n\", \"5 8\\n121351 0 13513 0 165454\\n\", \"9 5\\n0 0 0 0 0 0 0 0 6\\n\", \"6 6\\n0 10 0 0 10 0\\n\", \"6 2\\n1000000000 1000000000 1000000000 1000000000 1000000000 1000000000\\n\", \"19 100000\\n1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
rating_>1900
{ "id": "551_C. GukiZ hates Boxes", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array (or list) of scores, return the array ...
code
{ "ground_truth": "{\"fn_name\": \"ranks\", \"inputs\": [[[]], [[2]], [[2, 2]], [[1, 2, 3]], [[-5, -10, 3, 1]], [[-1, 3, 3, 3, 5, 5]], [[1, 10, 4]], [[5, 2, 3, 5, 5, 4, 9, 8, 0]]], \"outputs\": [[[]], [[1]], [[1, 1]], [[3, 2, 1]], [[3, 4, 1, 2]], [[6, 3, 3, 3, 1, 1]], [[3, 1, 2]], [[3, 8, 7, 3, 3, 6, 1, 2, 9]]]}", ...
EASY
{ "id": "taco-train-5106", "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": "Write a function that when given a URL as a string, p...
code
{ "ground_truth": "{\"fn_name\": \"domain_name\", \"inputs\": [[\"http://google.com\"], [\"http://google.co.jp\"], [\"https://123.net\"], [\"https://hyphen-site.org\"], [\"http://codewars.com\"], [\"www.xakep.ru\"], [\"https://youtube.com\"], [\"http://www.codewars.com/kata/\"], [\"icann.org\"]], \"outputs\": [[\"goo...
EASY
{ "id": "taco-train-22598", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The only difference between the easy and hard versio...
code
{ "ground_truth": "{\"inputs\": [\"10\\n5 6\\n1 1 1 1 1\\n8 32\\n100 52 13 6 9 4 100 35\\n1 1\\n5\\n4 5\\n4 3 2 1\\n5 9\\n2 3 1 4 1\\n5 8\\n2 3 1 4 1\\n4 3\\n2 3 4 1\\n4 9\\n5 4 3 3\\n2 14\\n7 5\\n5 600000000\\n500000000 400000000 300000000 200000000 100000000\\n\"], \"outputs\": [\"2\\n2\\n0\\n1\\n2\\n2\\n1\\n1\\n1\...
EASY
{ "id": "taco-train-15852", "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": "Once Vasya played bricks. All the bricks in the set ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n0 0 3 3\\n1 0 4 3\\n2 0 5 3\\n\", \"2\\n0 0 3 3\\n1 0 4 3\\n\", \"2\\n0 0 3 3\\n2 0 5 3\\n\", \"7\\n4 6 1 9\\n-1 4 6 11\\n8 13 -3 2\\n-5 0 45 50\\n-2 50 45 3\\n45 50 -4 1\\n45 50 -1 4\\n\", \"11\\n12 12 -12 -12\\n11 8 -11 -14\\n-15 -11 -3 1\\n-16 -3 -14 -1\\n-7 -8 -21 6\\n37 -6 ...
rating_1601-1900
{ "id": "38_D. Vasya the Architect", "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": "Due to the COVID pandemic, maintaining social distan...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"4 5\", \"2 1\", \"3 4\", \"1 1\"]], \"outputs\": [[\"5\", \"3\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-18925", "rating": null, "split": "confidence_train", "sub_source": "UNKNOWN_DIFFICULTY" }