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": "Description\n\nIn English we often use \"neutral vowe...
code
{ "ground_truth": "{\"fn_name\": \"err_bob\", \"inputs\": [[\"r r r r r r r r\"], [\"THIS, is crazy!\"], [\"hI, hi. hI hi skY! sky? skY sky\"], [\"Hello, I am Mr Bob.\"], [\"This, is. another! test? case to check your beautiful code.\"], [\"Hello from the other siiiiideeee\"], [\"Punctuation? is, important! double s...
EASY
{ "id": "taco-train-22327", "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": "Not considering number 1, the integer 153 is the firs...
code
{ "ground_truth": "{\"fn_name\": \"eq_sum_powdig\", \"inputs\": [[100, 2], [1000, 2], [2000, 2], [200, 3], [370, 3], [400, 3], [500, 3], [1000, 3], [1500, 3]], \"outputs\": [[[]], [[]], [[]], [[153]], [[153, 370]], [[153, 370, 371]], [[153, 370, 371, 407]], [[153, 370, 371, 407]], [[153, 370, 371, 407]]]}", "style"...
EASY
{ "id": "taco-train-22532", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Write a program which reads a sequence and prints it...
code
{ "ground_truth": "{\"inputs\": [\"8\\n3 3 4 4 5 8 7 9\", \"5\\n1 2 3 4 5\", \"8\\n3 3 4 4 5 8 7 14\", \"5\\n1 2 3 4 9\", \"8\\n4 3 4 4 5 8 7 14\", \"5\\n1 4 3 4 9\", \"8\\n0 3 4 4 5 8 7 14\", \"5\\n1 1 3 4 9\", \"8\\n0 1 4 4 5 8 7 14\", \"5\\n1 0 3 4 9\", \"8\\n0 2 4 4 5 8 7 14\", \"5\\n1 0 3 4 12\", \"8\\n0 2 4 4 5...
none
{ "id": "p02407 Reversing Numbers", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "William has two arrays $a$ and $b$, each consisting ...
code
{ "ground_truth": "{\"inputs\": [\"8 5\\n0 1 2 9 3 2 7 5\\n2 2 1 9 4 1 5 8\\n2 6\\n1 7\\n2 4\\n7 8\\n5 8\\n\", \"10 5\\n146321077 449813547 308647993 833095737 785151702 11689582 907479269 508379103 675578062 401735370\\n146321077 449813547 308647993 833095737 785151702 988246116 58441821 380860017 175603431 31790197...
HARD
{ "id": "taco-train-20139", "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": "The World Programming Olympics Medal is a metal disk...
code
{ "ground_truth": "{\"inputs\": [\"4 2 3 6 4\\n2 1 2\\n3 10 6 8\\n2 1\\n\", \"3 1 2 3\\n1 2\\n3 3 2 1\\n1 2\\n\", \"2 1 2\\n3 3 1 2\\n2 2 3\\n306 406\\n\", \"2 3 2\\n3 2 3 1\\n2 2 1\\n733 883\\n\", \"1 5000\\n1 5000\\n1 1\\n1 5000\\n\", \"1 5\\n1 3\\n1 7\\n515 892\\n\", \"3 1 2 3\\n1 2\\n3 3 2 1\\n52 56\\n\", \"2 1 2...
rating_1201-1400
{ "id": "215_B. Olympic Medal", "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": "On the planet Mars a year lasts exactly n days (ther...
code
{ "ground_truth": "{\"inputs\": [\"14\\n\", \"2\\n\", \"1\\n\", \"3\\n\", \"4\\n\", \"5\\n\", \"6\\n\", \"7\\n\", \"8\\n\", \"9\\n\", \"10\\n\", \"11\\n\", \"12\\n\", \"13\\n\", \"1000000\\n\", \"16\\n\", \"17\\n\", \"18\\n\", \"19\\n\", \"20\\n\", \"21\\n\", \"22\\n\", \"23\\n\", \"24\\n\", \"25\\n\", \"26\\n\", \"2...
EASY
{ "id": "taco-train-547", "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 return all the numbe...
code
{ "ground_truth": "{\"inputs\": [\"N = 20\", \"N = 9\"], \"outputs\": [\"10 12\", \"-1\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-21385", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given an integer array A.  From some starting...
code
{ "ground_truth": "{\"fn_name\": \"oddEvenJumps\", \"inputs\": [[[10, 13, 12, 14, 15]]], \"outputs\": [2]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20629", "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": "You are given a permutation p of length n. Also you ...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\n1 3 2 4\\n3 2\\n2 4\\n\", \"9 5\\n9 7 2 3 1 4 6 5 8\\n1 6\\n4 5\\n2 7\\n7 2\\n2 7\\n\", \"3 8\\n1 2 3\\n1 2\\n1 2\\n1 2\\n1 2\\n1 2\\n1 2\\n1 3\\n2 3\\n\", \"50 10\\n41 15 17 1 5 31 7 38 30 39 43 35 2 26 20 42 48 25 19 32 50 4 8 10 44 12 9 18 13 36 28 6 27 23 40 24 3 14 29 11 ...
rating_1601-1900
{ "id": "652_C. Foe Pairs", "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": "ZS the Coder is coding on a crazy computer. If you d...
code
{ "ground_truth": "{\"inputs\": [\"6 5\\n1 3 8 14 19 20\\n\", \"6 1\\n1 3 5 7 9 10\\n\", \"1 1\\n1000000000\\n\", \"5 5\\n1 7 12 13 14\\n\", \"2 1000000000\\n1 1000000000\\n\", \"3 5\\n1 10 20\\n\", \"3 10\\n1 2 3\\n\", \"2 1\\n1 100\\n\", \"3 1\\n1 2 10\\n\", \"2 1\\n1 2\\n\", \"2 1000000000\\n1 1000000000\\n\", \"2...
EASY
{ "id": "taco-train-12611", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "HackerLand National Bank has a simple policy for war...
code
{ "ground_truth": "{\"inputs\": [\"9 5\\n2 3 4 2 3 6 8 4 5\\n\", \"5 4\\n1 2 3 4 4\\n\"], \"outputs\": [\"2\\n\", \"0\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-2357", "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": "Amr bought a new video game \"Guess Your Way Out! II...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n3 4 6 0\\n\", \"4 3\\n4 10 14 1\\n3 6 6 0\\n2 3 3 1\\n\", \"4 2\\n3 4 6 1\\n4 12 15 1\\n\", \"4 2\\n3 4 5 1\\n2 3 3 1\\n\", \"1 0\\n\", \"1 1\\n1 1 1 0\\n\", \"1 1\\n1 1 1 0\\n\", \"1 0\\n\", \"4 3\\n4 10 14 1\\n3 7 6 0\\n2 3 3 1\\n\", \"4 2\\n3 4 5 1\\n2 3 6 1\\n\", \"1 1\\n1...
HARD
{ "id": "taco-train-5734", "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": "User ainta decided to paint a wall. The wall consist...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n1 1\\n1 2\\n\", \"5 2\\n2 3\\n4 1\\n\", \"1 1\\n1 1\\n\", \"5 6\\n2 2\\n5 3\\n2 3\\n3 3\\n3 2\\n3 5\\n\", \"2 3\\n2 2\\n1 2\\n1 1\\n\", \"100 0\\n\", \"5 4\\n1 3\\n3 3\\n3 1\\n5 3\\n\", \"10 1\\n4 4\\n\", \"2 1\\n2 2\\n\", \"2000 2\\n748 945\\n748 1233\\n\", \"3 2\\n3 2\\n2 2\...
none
{ "id": "398_B. Painting The Wall", "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": "Awruk is taking part in elections in his school. It ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 1 1 5 1\\n\", \"5\\n2 2 3 2 2\\n\", \"1\\n100\\n\", \"2\\n15 5\\n\", \"50\\n12 5 4 3 4 4 9 2 14 13 1 6 6 6 6 3 1 14 1 10 4 9 12 3 1 6 5 6 9 14 4 1 10 5 15 8 5 11 13 2 10 11 8 12 8 15 2 8 6 3\\n\", \"100\\n50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 50 ...
EASY
{ "id": "taco-train-579", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are $n$ segments on a $Ox$ axis $[l_1, r_1]$, ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n1 4\\n2 3\\n3 6\\n5 7\\n3\\n5 5\\n5 5\\n5 5\\n6\\n3 3\\n1 1\\n5 5\\n1 5\\n2 2\\n4 4\\n\", \"4\\n2\\n-1000000000 1000000000\\n-1000000000 1000000000\\n2\\n-1000000000 0\\n0 1000000000\\n2\\n-1000000000 -1\\n1 1000000000\\n2\\n-1000000000 1\\n-1 1000000000\\n\", \"4\\n2\\n-100...
HARD
{ "id": "taco-train-995", "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": "While resting on the ship after the \"Russian Code C...
code
{ "ground_truth": "{\"inputs\": [\"1 1\\n\", \"1 2\\n\", \"4 1\\n\", \"1 4\\n\", \"2 1\\n\", \"2 4\\n\", \"48 2\\n\", \"3 75\\n\", \"33 1\\n\", \"4 23\\n\", \"58 2\\n\", \"2 11\\n\", \"7 14\\n\", \"2 4\\n\", \"77 20\\n\", \"1 4\\n\", \"30 31\\n\", \"100 100\\n\", \"4 1\\n\", \"2 1\\n\", \"7 14\\n\", \"4 23\\n\", \"3 ...
VERY_HARD
{ "id": "taco-test-574", "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": "Bertown is under siege! The attackers have blocked a...
code
{ "ground_truth": "{\"inputs\": [\"2 10\\n0.7853\\n0.3\\n2\\n4.0 2.4\\n6.0 1.9\\n\", \"2 10\\n0.7853\\n0.3\\n3\\n5.0 5.0\\n4.0 2.4\\n6.0 1.9\\n\", \"6 417\\n0.0303\\n0.7536\\n0.7225\\n0.2404\\n0.2432\\n0.4583\\n3\\n979.9372 477.1436\\n469.9804 408.1158\\n923.2564 220.5522\\n\", \"4 851\\n0.3178\\n0.5635\\n0.1335\\n0....
rating_>1900
{ "id": "47_E. Cannon", "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": "There is a cube on a rectangle map with H-rows and W...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n->|\\n..v\\n.^<\\nJAG\\n2012\\nSUMMER\\nHOGE\\nHOGE\\nCAMP\\n1 1\\n2 2\", \"1 3\\n+++\\n1\\n2\\n3\\n4\\n5\\n6\\n1 3\\n1 1\", \"1 3\\n+++\\n6\\n5\\n4\\n3\\n2\\n1\\n1 3\\n1 1\", \"1 3\\n...\\n1\\n2\\n3\\n4\\n5\\n6\\n1 3\\n1 1\", \"3 3\\n->|\\n..v\\n.^<\\nJAG\\n2012\\nSUMMER\\nHO...
none
{ "id": "p01565 Move on Dice", "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": "For a vector \\vec{v} = (x, y), define |v| = √{x^2 +...
code
{ "ground_truth": "{\"inputs\": [\"1\\n-824590 246031\\n\", \"8\\n-67761 603277\\n640586 -396671\\n46147 -122580\\n569609 -2112\\n400 914208\\n131792 309779\\n-850150 -486293\\n5272 721899\\n\", \"3\\n999999 0\\n0 999999\\n999999 0\\n\", \"2\\n1 999999\\n1 -999999\\n\", \"2\\n-999999 -1\\n-999999 1\\n\", \"2\\n999999...
rating_>1900
{ "id": "995_C. Leaving the Bar", "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 are given three strings A, B and C. Each of thes...
code
{ "ground_truth": "{\"inputs\": [\"9\\ndifferent\\ndifferent\\ndifferent\", \"4\\nwest\\neast\\nwait\", \"7\\nzenkoku\\ntouitsu\\nprogram\", \"9\\ncifferent\\ndifferent\\ndifferent\", \"4\\nwest\\neast\\nw`it\", \"7\\nukoknez\\ntouitsu\\nprogram\", \"9\\ncjfferent\\ndifferent\\ndifferent\", \"4\\nwesu\\neast\\nw`it\"...
none
{ "id": "p03140 NIKKEI Programming Contest 2019 - Touitsu", "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": "Gerald got a very curious hexagon for his birthday. ...
code
{ "ground_truth": "{\"inputs\": [\"1 2 1 2 1 2\\n\", \"1 1 1 1 1 1\\n\", \"30 36 36 32 34 38\\n\", \"125 7 128 8 124 11\\n\", \"7 1 7 3 5 3\\n\", \"4 60 4 60 4 60\\n\", \"50 40 46 38 52 34\\n\", \"1 1000 1 1 1000 1\\n\", \"718 466 729 470 714 481\\n\", \"66 6 65 6 66 5\\n\", \"1 6 1 5 2 5\\n\", \"7 5 4 8 4 5\\n\", \"...
rating_1401-1600
{ "id": "560_C. Gerald's Hexagon", "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": "Your friend Edvin loves languages. A personal favour...
code
{ "ground_truth": "{\"inputs\": [\"car\\n\", \"cocar\\n\", \"cocaror\\n\"], \"outputs\": [\"1\\n\", \"2\\n\", \"4\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-5630", "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": "Note the unusual time limit in this problem.\n\nYou ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4\\n5 5 5 5\\n4\\n4 2 3 1\\n3\\n6 10 15\\n5\\n2 6 3 9 24\\n5\\n3 11 7 2 5\\n\"], \"outputs\": [\"5 5 5 5\\n4 2 1 1\\n15 5 1\\n24 3 3 3 1\\n11 1 1 1 1\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-23789", "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": "Have you heard about Megamind? Megamind and Metro Man...
code
{ "ground_truth": "{\"fn_name\": \"mega_mind\", \"inputs\": [[12, 4, 3, 2], [9, 4, 2, 7], [13, 4, 3, 1], [13, 4, 3, 50], [36, 4, 3, 2], [15, 4, 3, 12], [100000, 99999, 100000, 100000], [100000, 100000, 100000, 100000], [100000, 1, 50000, 49999], [100000, 1, 1000, 999], [17, 4, 4, 16], [23, 4, 4, 13], [1, 4, 4, 15], [...
EASY
{ "id": "taco-train-9739", "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": "Give the summation of all even numbers in a Fibonacci...
code
{ "ground_truth": "{\"fn_name\": \"even_fib\", \"inputs\": [[0], [10], [5], [100], [1000], [1000000], [100000000], [1000000000], [2147483647], [-1]], \"outputs\": [[0], [10], [2], [44], [798], [1089154], [82790070], [350704366], [1485607536], [0]]}", "style": "rule" }
EASY
{ "id": "taco-train-20241", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "As a New Year's gift, Dolphin received a string s of...
code
{ "ground_truth": "{\"inputs\": [\"haiku,atcoder,tasks\", \"abcde,fghihgf,edcba\", \"happy,newyear,enjoy\", \"gaiku,atcoder,tasks\", \"abgde,fchihgf,edcba\", \"ha,pypnewyear,enjoy\", \"gaiku,atcoeer,tasks\", \"abcde,fghihcf,edgba\", \"ha,pypnewzear,enjoy\", \"gaiku,atcoeer-tasks\", \"abgde,fchihgf+edcba\", \"hap,ypne...
none
{ "id": "p03834 AtCoder Beginner Contest 051 - Haiku", "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": "Yes, that's another problem with definition of \"bea...
code
{ "ground_truth": "{\"inputs\": [\"4\\n89\\n88\\n1000\\n28923845\", \"1\\n100001\", \"2\\n1001\\n100001\", \"3\\n100001\\n100000\\n100002\", \"1\\n1001\", \"60\\n799032\\n1880\\n489633\\n167604\\n641858\\n521214\\n951107\\n121088\\n952294\\n514428\\n890184\\n883033\\n317778\\n456130\\n373364\\n404297\\n757369\\n81533...
rating_>1900
{ "id": "946E", "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 ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are N pinholes on the xy-plane. The i-th pinho...
code
{ "ground_truth": "{\"inputs\": [\"5 1 2\\n1 1\\n4 3\\n6 1\\n5 5\\n4 8\\n\", \"6 2 3\\n1 3\\n5 3\\n3 5\\n8 4\\n4 7\\n2 5\\n\", \"8 1 2\\n1 5\\n4 3\\n8 2\\n4 7\\n8 8\\n3 3\\n6 6\\n4 8\\n\", \"6 2 3\\n1 3\\n5 3\\n3 5\\n8 4\\n4 10\\n2 5\", \"5 1 2\\n1 1\\n4 1\\n6 1\\n5 5\\n4 8\", \"8 1 2\\n1 5\\n4 3\\n8 2\\n4 7\\n7 8\\n...
VERY_HARD
{ "id": "taco-train-1360", "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": "In the Bus of Characters there are n rows of seat, e...
code
{ "ground_truth": "{\"inputs\": [\"6\\n10 8 9 11 13 5\\n010010011101\\n\", \"2\\n3 1\\n0011\\n\", \"2\\n1000000000 1\\n0101\\n\", \"2\\n1000000000 999999999\\n0011\\n\", \"2\\n1 1000000\\n0011\\n\", \"10\\n24 53 10 99 83 9 15 62 33 47\\n00100000000111111111\\n\", \"1\\n1000000\\n01\\n\", \"1\\n1\\n01\\n\", \"2\\n1100...
rating_1201-1400
{ "id": "982_B. Bus of Characters", "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": "----- Statement -----\n\nYou need to find a string w...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"1\", \"2\"], \"2\\n2\\n2\", \"2\\n2\\n3\", \"2\\n3\\n2\", \"2\\n2\\n5\", \"2\\n4\\n5\", \"2\\n3\\n5\", \"2\\n5\\n5\", \"2\\n5\\n8\", \"2\\n4\\n8\", \"2\\n1\\n1\", \"2\\n2\\n4\", \"2\\n1\\n3\", \"2\\n6\\n2\", \"2\\n2\\n1\", \"2\\n6\\n5\", \"2\\n4\\n6\", \"2\\n5\\n4\", \"2\\n4...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-9916", "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": "One of the built-in functions of Python is divmod, w...
code
{ "ground_truth": "{\"inputs\": [\"177\\n10\\n\"], \"outputs\": [\"17\\n7\\n(17, 7)\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1305", "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": "Recently Monocarp got a job. His working day lasts e...
code
{ "ground_truth": "{\"inputs\": [\"4 5 3\\n3 5 1 2\\n\", \"10 10 1\\n10 5 7 4 6 3 2 1 9 8\\n\", \"1 4 3\\n3\\n\", \"2 5 2\\n5 3\\n\", \"3 6 4\\n3 1 4\\n\", \"4 100 44\\n90 96 41 35\\n\", \"5 200 33\\n116 168 48 180 164\\n\", \"10 20 19\\n9 15 11 18 20 5 16 12 3 17\\n\", \"20 1000 344\\n133 431 634 493 866 325 757 21 ...
MEDIUM_HARD
{ "id": "taco-train-20855", "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 weather report of Chefland is *Good* if the numb...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 0 1 0 1 1 1\\n0 1 0 0 0 0 1\\n1 1 1 1 1 1 1\\n0 0 0 1 0 0 0\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5794", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You have been given a String S consisting of upperca...
code
{ "ground_truth": "{\"inputs\": [\"abcdE\\n\\nSAMPLE\", \"RrHRxcUsSrvSnTyolvsxHoGyzwBMzuLCUjcSeWmBAhodtEkgZjDkFjaXXAvjTvRfHuHGtopoxaeONzFFurfNlRdAvRYlnlfdIMsI\", \"OgzCLPSSbWhqZufRHsrqEHIbFzXHdKKNlPJLvfbbbrLPCEhEeKDfhqghUWhBHzKIIEhsGAyIMJLPkvKvjEBtfaarZHgqphBjUcoE\", \"RrHRxcNsSrvSnTyolvsxHoGyzwBMzuLCUjcSeWmBAhodtEkg...
none
{ "id": "modify-the-string", "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 day, n people (n is an even number) met on a pla...
code
{ "ground_truth": "{\"inputs\": [\"2\\n\", \"20\\n\", \"4\\n\", \"8\\n\", \"14\\n\", \"16\\n\", \"18\\n\", \"6\\n\", \"10\\n\", \"12\\n\", \"010\\n\"], \"outputs\": [\"1\\n\", \"12164510040883200\\n\", \"3\\n\", \"1260\\n\", \"889574400\\n\", \"163459296000\\n\", \"39520825344000\\n\", \"40\\n\", \"72576\\n\", \"6652...
rating_1201-1400
{ "id": "1433_E. Two Round Dances", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Walking through the streets of Marshmallow City, Sla...
code
{ "ground_truth": "{\"inputs\": [\"^ >\\n1\", \"< ^\\n3\", \"^ v\\n6\", \"^ >\\n999999999\", \"> v\\n1\", \"v <\\n1\", \"< ^\\n1\", \"v <\\n422435957\", \"v >\\n139018901\", \"v ^\\n571728018\", \"^ ^\\n0\", \"< >\\n2\", \"> >\\n1000000000\", \"v v\\n8\", \"< <\\n1568\", \"^ v\\n2\", \"^ <\\n1\", \"< v\\n1\", \"v >\\...
rating_<=1200
{ "id": "834A", "rating": 900, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Mishka got a six-faced dice. It has integer numbers ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2\\n13\\n37\\n100\\n\", \"99\\n17\\n38\\n56\\n16\\n7\\n36\\n29\\n95\\n50\\n28\\n64\\n98\\n46\\n42\\n3\\n93\\n10\\n74\\n80\\n9\\n55\\n31\\n51\\n34\\n35\\n82\\n96\\n69\\n54\\n77\\n76\\n92\\n58\\n70\\n20\\n73\\n72\\n86\\n41\\n12\\n4\\n24\\n89\\n67\\n13\\n49\\n78\\n65\\n66\\n37\\n61...
EASY
{ "id": "taco-train-11953", "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": "Recently Chef learned about Longest Increasing Subse...
code
{ "ground_truth": "{\"inputs\": [[\"5\", \"1 \", \"1\", \"2 \", \"1 2\", \"2 \", \"1 1\", \"4\", \"1 2 2 1\", \"7 \", \"1 2 2 1 3 2 4\", \"\", \"\"]], \"outputs\": [[\"7\", \"36\", \"54\", \"1531\", \"1730418\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-18274", "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": "Heidi found out that the Daleks have created a netwo...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2 8\\n2 3 3\\n3 1 4\\n\", \"10 10\\n9 10 1000000000\\n10 2 1000000000\\n6 3 1000000000\\n8 6 1000000000\\n4 8 1000000000\\n7 5 1000000000\\n9 7 1000000000\\n1 3 1000000000\\n1 5 1000000000\\n4 2 1000000000\\n\", \"10 21\\n10 2 500000000\\n8 7 500000000\\n9 1 0\\n9 8 10000000...
rating_1601-1900
{ "id": "1184_E1. Daleks' Invasion (easy)", "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 \"BerCorp\" company has got n employees. These e...
code
{ "ground_truth": "{\"inputs\": [\"8 7\\n0\\n3 1 2 3\\n1 1\\n2 5 4\\n2 6 7\\n1 3\\n2 7 4\\n1 1\\n\", \"2 2\\n1 2\\n0\\n\", \"5 5\\n1 2\\n2 2 3\\n2 3 4\\n2 4 5\\n1 5\\n\", \"3 3\\n0\\n0\\n0\\n\", \"8 4\\n0\\n0\\n4 2 3 1 4\\n4 2 1 4 3\\n3 4 3 1\\n1 2\\n2 4 1\\n2 4 2\\n\", \"7 3\\n3 1 3 2\\n3 2 1 3\\n2 2 3\\n1 1\\n2 2 3...
rating_1201-1400
{ "id": "277_A. Learning Languages", "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": "Is it rated?\n\nHere it is. The Ultimate Question of...
code
{ "ground_truth": "{\"inputs\": [\"6\\n3060 3060\\n2194 2194\\n2876 2903\\n2624 2624\\n3007 2991\\n2884 2884\\n\", \"4\\n1500 1500\\n1300 1300\\n1200 1200\\n1400 1400\\n\", \"5\\n3123 3123\\n2777 2777\\n2246 2246\\n2246 2246\\n1699 1699\\n\", \"2\\n1 1\\n1 1\\n\", \"2\\n4126 4126\\n4126 4126\\n\", \"10\\n446 446\\n13...
EASY
{ "id": "taco-train-14251", "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": "Soon there will be held the world's largest programm...
code
{ "ground_truth": "{\"inputs\": [\"3 4 9\\n1 3 1 2\\n2 1 3\\n4 3 6\\n\", \"3 4 10\\n2 3 1 2\\n2 1 3\\n4 3 6\\n\", \"3 4 9\\n2 3 1 2\\n2 1 3\\n4 3 6\\n\", \"3 4 5\\n1 3 1 2\\n2 1 3\\n5 3 6\\n\", \"3 4 9\\n1 3 1 1\\n2 1 3\\n4 3 6\\n\", \"5 6 10\\n2 4 6 5 4 3\\n4 2 5 3 6\\n3 2 5 3 7\\n\", \"2 2 10\\n1 2\\n1 2\\n5 5\\n\"...
HARD
{ "id": "taco-train-3788", "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": "The girl Taylor has a beautiful calendar for the yea...
code
{ "ground_truth": "{\"inputs\": [\"2016\\n\", \"2000\\n\", \"50501\\n\", \"1000\\n\", \"1900\\n\", \"1899\\n\", \"99999\\n\", \"50000\\n\", \"99900\\n\", \"12345\\n\", \"1004\\n\", \"2100\\n\", \"1313\\n\", \"1872\\n\", \"2098\\n\", \"2072\\n\", \"2002\\n\", \"1179\\n\", \"2096\\n\", \"1096\\n\", \"1796\\n\", \"2014\...
MEDIUM_HARD
{ "id": "taco-train-9141", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "problem\n\nJOI Pizza sells pizza home delivery along...
code
{ "ground_truth": "{\"inputs\": [\"8\\n3\\n2\\n3\\n1\\n4\\n6\\n20\\n4\\n4\\n12\\n8\\n16\\n7\\n7\\n11\\n8\\n0\", \"8\\n3\\n2\\n3\\n1\\n4\\n6\\n20\\n4\\n4\\n10\\n8\\n16\\n7\\n7\\n11\\n8\\n0\", \"8\\n3\\n2\\n3\\n1\\n4\\n6\\n20\\n4\\n4\\n12\\n8\\n16\\n7\\n7\\n4\\n8\\n0\", \"8\\n3\\n2\\n3\\n1\\n4\\n6\\n20\\n4\\n4\\n14\\n8...
none
{ "id": "p00462 Pizza", "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": "There are $n$ chips arranged in a circle, numbered f...
code
{ "ground_truth": "{\"inputs\": [\"6 1\\nBWBBWW\\n\", \"7 3\\nWBWBWBW\\n\", \"6 4\\nBWBWBW\\n\", \"4 5\\nBWBB\\n\", \"16 7\\nWBBWBWWBBWBWWBWW\\n\", \"16 19\\nBWWWBBBWWBWBBBWB\\n\", \"10 1000000000\\nBBWWBBWWBB\\n\", \"12 1000000000\\nBBWWBBWWBBWW\\n\", \"3 1000000000\\nWWB\\n\", \"3 1\\nBWB\\n\", \"16 1000000000\\nBW...
HARD
{ "id": "taco-train-7019", "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": "Once N boys and M girls attended a party. You are gi...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"4 3\", \"111\", \"100\", \"110\", \"000\", \"2 2\", \"10\", \"01\"], \"2\\n4 3\\n111\\n100\\n110\\n000\\n2 1\\n10\\n01\", \"2\\n4 3\\n101\\n100\\n110\\n000\\n2 1\\n10\\n01\", \"2\\n4 3\\n101\\n100\\n010\\n000\\n2 1\\n10\\n01\", \"2\\n4 3\\n111\\n100\\n110\\n010\\n2 2\\n10\\n...
EASY
{ "id": "taco-train-10594", "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 directed acyclic graph(DAG) with n nodes labe...
code
{ "ground_truth": "{\"inputs\": [\"edges = {{0,1},{0,3},{1,2},{3,2}}, \\r\\nn = 4, s = 0, d = 2\"], \"outputs\": [\"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1338", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You're given a string S of length N and an integer K...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 1\\naaa\\n4 2\\nbaba\\n4 1\\nbabb\\n7 2\\nabcbcac\\n\"], \"outputs\": [\"aaa\\naabb\\n-1\\nabcabcc\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-20322", "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": "Dreamoon likes strings. Today he created a game abou...
code
{ "ground_truth": "{\"inputs\": [\"4\\naabbcc\\naaabbb\\naaa\\nabacad\\n\", \"4\\naabbcc\\naaabbb\\naaa\\nabacad\\n\", \"4\\naabbcc\\naa`bbb\\naaa\\nabacad\\n\", \"4\\naabbcc\\naaabbb\\naaa\\nabaacd\\n\", \"4\\nababcc\\nbbbaaa\\naaa\\nabaacd\\n\", \"4\\naabbbc\\naaabbb\\naaa\\nabacad\\n\", \"4\\naacbcc\\naaabbb\\naaa...
rating_>1900
{ "id": "1329_D. Dreamoon Likes Strings", "rating": 3100, "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": "Petya loves lucky numbers. Everybody knows that luck...
code
{ "ground_truth": "{\"inputs\": [\"7 4\\n4727447\", \"4 2\\n4478\", \"7 7\\n4211147\", \"7 6\\n4747477\", \"10 2\\n9474444474\", \"10 47\\n4214777477\", \"3 99\\n447\", \"4 1000000000\\n7747\", \"3 1000000000\\n447\", \"3 100\\n447\", \"7 74\\n4777774\", \"10 200\\n6860544593\", \"10 477\\n5837934237\", \"47 7477\\n8...
rating_1401-1600
{ "id": "121B", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Let's consider all integers in the range from 1 to n...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n5\\n\", \"100\\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\\n31\\n32\\n33\\n34\\n35\\n36\\n37\\n38\\n39\\n40\\n41\\n42\\n43\\n44\\n45\\n46\\n47\\n48\\n49\\n50\\n51\\n52\\n53\\n54\\n55...
rating_<=1200
{ "id": "1370_A. Maximum GCD", "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": "Problem C: Seishun 18 Kippu\n\nA student at R Univer...
code
{ "ground_truth": "{\"inputs\": [\"4 4\\nA B G\\nA B 40 3\\nB C 80 0\\nA G 40 0\\nB G 80 0\\n5 6\\nKusatsu Tokyo Aizu\\nTokyo Nagoya 120 3\\nKusatsu Nagoya 40 0\\nKusatsu Kanazawa 40 0\\nKanazawa Aizu 40 0\\nTokyo Kanazawa 40 0\\nTokyo Aizu 80 4\\n0 0\", \"4 4\\nA B G\\nA B 40 3\\nB C 80 0\\nA G 40 0\\nB G 80 0\\n5 6...
none
{ "id": "p01400 Seishun 18 Kippu", "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 an array Arr of N positive integers. Find the m...
code
{ "ground_truth": "{\"inputs\": [\"N = 6\\r\\nArr[] = {2, 3, 4, 5, 6, 7}\", \"N = 4\\r\\nArr[] = {1, 2, 3, 4}\"], \"outputs\": [\"4\", \"2\"]}", "style": "rule" }
EASY
{ "id": "taco-train-17009", "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 program to determine if two numbers are copri...
code
{ "ground_truth": "{\"fn_name\": \"are_coprime\", \"inputs\": [[20, 27], [12, 39], [17, 34], [34, 17], [35, 10], [64, 27]], \"outputs\": [[true], [false], [false], [false], [false], [true]]}", "style": "rule" }
EASY
{ "id": "taco-train-13820", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a set of size $m$ with integer element...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n1 2 3\", \"5 5\\n5 19 10 20 12\", \"3 5\\n3 5 0 6 7\", \"0 1\\n0\", \"1 1\\n1\", \"1 1\\n0\", \"6 30\\n3 8 13 16 18 19 21 22 24 25 26 28 29 31 33 42 44 46 49 50 51 53 54 57 58 59 60 61 62 63\", \"6 35\\n5 7 10 11 13 14 17 18 25 27 28 29 30 31 33 35 36 37 39 40 41 43 46 47 50 5...
rating_>1900
{ "id": "986C", "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": "You are given an undirected graph consisting of n ve...
code
{ "ground_truth": "{\"inputs\": [\"5 4 6\\n1 2 5 4 3\\n1 2\\n2 3\\n1 3\\n4 5\\n1 1\\n2 1\\n2 3\\n1 1\\n1 2\\n1 2\\n\", \"9 5 14\\n7 1 4 8 5 2 6 9 3\\n2 8\\n1 6\\n5 7\\n1 3\\n3 9\\n1 5\\n1 8\\n1 5\\n1 4\\n1 8\\n1 3\\n1 5\\n1 5\\n1 7\\n1 7\\n2 3\\n1 2\\n1 1\\n1 2\\n\", \"6 5 8\\n1 2 6 3 4 5\\n2 4\\n1 3\\n1 6\\n3 5\\n2 ...
rating_>1900
{ "id": "1416_D. Graph and Queries", "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": "Little Anay is afraid of darkness. He has N candles ...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3\\n2 2 2\", \"4\\n3\\n1 2 2\\n10\\n1 2 2 8 7 6 5 16 18 19\\n15\\n9 11 6 4 10 12 11 8 3 1 7 18 4 14 10\\n25\\n12 23 34 45 1 2 2 3 9 8 7 6 5 16 18 13 15 14 41 31 22 46 48 54 60\", \"100\\n2\\n1 1\\n4\\n3 6 1 8\\n8\\n2 4 7 9 6 4 1 3\\n11\\n19 38 1 34 2 8 3 2 11 10 9\\n2\\n1 1\\n4\...
EASY
{ "id": "taco-train-1731", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In a public bath, there is a shower which emits wate...
code
{ "ground_truth": "{\"inputs\": [\"9 10\\n0 3 5 7 100 110 200 300 311\", \"2 4\\n0 3\", \"1 1\\n0\", \"2 4\\n0 5\", \"4 1000000000\\n0 1000 1000000 1000000000\", \"2 4\\n0 2\", \"1 0\\n0\", \"2 4\\n0 4\", \"4 1000000000\\n0 1100 1000000 1000000000\", \"4 1000000000\\n0 1100 1000000 1010000000\", \"9 10\\n0 3 5 7 100 ...
none
{ "id": "p03733 AtCoder Regular Contest 073 - Sentou", "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 problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2 2 2 0\\n2 2 2 4\"], \"outputs\": [\"8\\n8\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-14577", "rating": null, "split": "confidence_train", "sub_source": "VERY_HARD" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given n integers a1, a2, ..., an.\n\nA seque...
code
{ "ground_truth": "{\"inputs\": [\"5 2\\n15 1 2 4 8\\n\", \"5 1\\n15 1 2 4 8\\n\", \"100 576460752303423488\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\\n\", \"...
rating_1601-1900
{ "id": "691_E. Xor-sequences", "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": "Recently Akash got this equation. Now being curious ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4\\n15\\n30\\n100\\n1000\\n\\nSAMPLE\", \"100\\n26\\n277\\n995\\n718\\n754\\n425\\n101\\n235\\n591\\n659\\n441\\n125\\n394\\n176\\n627\\n780\\n192\\n944\\n241\\n628\\n140\\n974\\n178\\n239\\n185\\n440\\n946\\n794\\n389\\n121\\n269\\n955\\n947\\n725\\n497\\n513\\n959\\n613\\n657\...
none
{ "id": "prime-equation", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an $r\\! \\times \\! c$ grid. Each cel...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2 5\\n7 6 4\\n9 8 3\\n\", \"4 3\\n8 2 5\\n12 9 6\\n3 1 10\\n11 7 4\\n\"], \"outputs\": [\"49\\n\", \"64\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-11983", "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": "You are given an undirected connected weighted graph...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n1 2 1\\n1 3 1\\n2 3 3\", \"3 2\\n1 2 1\\n2 3 1\", \"3 3\\n1 2 2\\n1 3 1\\n2 3 3\", \"4 3\\n1 2 1\\n1 3 1\\n2 3 3\", \"3 2\\n1 2 2\\n2 3 1\", \"3 2\\n1 3 2\\n2 3 1\", \"3 2\\n1 3 2\\n2 0 1\", \"3 2\\n1 2 2\\n2 0 1\", \"3 2\\n2 2 2\\n2 0 1\", \"3 2\\n1 1 1\\n2 3 1\", \"3 3\\n1 2...
none
{ "id": "p03837 AtCoder Beginner Contest 051 - Candidates of No Shortest Paths", "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 Number N in String form, Print 1 If the digit...
code
{ "ground_truth": "{\"inputs\": [\"N = \\\"1233\\\"\", \"N = \\\"1263\\\"\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-12905", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given N unit squares (squares with side lengt...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\", \"N = 5\"], \"outputs\": [\"5\", \"6\"]}", "style": "rule" }
EASY
{ "id": "taco-train-16571", "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": "Mr. Tanaka died leaving the orchard of HW Earl. The ...
code
{ "ground_truth": "{\"inputs\": [\"10 10\\n*****@\\n@#@@@@#*#*\\n@##***@@@*\\n****#*@**\\n@*#@@*##\\n*@@@@*@@@#\\n***#@*@##*\\n*@@@*@@##@\\n*@*#*@##**\\n@****#@@#@\\n0 0\", \"10 10\\n####*****@\\n@#@@@@#*#*\\n@##***@@@*\\n#****#*@**\\n##@*#@@*##\\n*@@@@*@@@#\\n***#@*@##*\\n*@@@*@@##@\\n*@*#*@##**\\n@****#@@#@\\n0 0\"...
none
{ "id": "p00118 Property Distribution", "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 Statement\n\nOne day in a forest, Alice foun...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\na 11 9\\n****.....\\n.*.*.....\\n.*.*.....\\n.*..*....\\n.**..*...\\n..**..*..\\n..*.*....\\n..**.*.*.\\n..*..*.*.\\n..*****.*\\n******.**\\nb 10 6\\n....*.\\n....*.\\n....*.\\n....*.\\n....*.\\n....*.\\n....*.\\n....*.\\n.**..*\\n*****.\\n19 55\\n*****************************...
none
{ "id": "p01652 Ancient Commemorative Monolith", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The problem is very simple. For every string given a...
code
{ "ground_truth": "{\"inputs\": [\"3\\naab\\ndddd\\nthisisapalindromeemordnilapasisiht\"], \"outputs\": [\"4\\n15\\n814157\"]}", "style": "rule" }
none
{ "id": "cb03", "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\nIn one operation...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n4 8 20 16\\n4\\n4 3 6 9\\n\"], \"outputs\": [\"2\\n6\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-4745", "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": "We'll define S(n) for positive integer n as follows:...
code
{ "ground_truth": "{\"inputs\": [\"1 1 2\\n\", \"9 1 1\\n\", \"77 7 7\\n\", \"114 5 14\\n\", \"3 1 4\\n\", \"10000000000000000 9999999999999999 1\\n\", \"98 55 1\\n\", \"111984789523940 8017182602114316 976839488\\n\", \"9999999999999998 1 1\\n\", \"9230573804495452 8577408935470783 90893866\\n\", \"2155990066796462 ...
rating_1401-1600
{ "id": "373_B. Making Sequences is Fun", "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": "A speedrun is a playthrough of a game with the inten...
code
{ "ground_truth": "{\"inputs\": [\"100 111 5\\n20 0.5 10\\n80 0.5 2\\n85 0.5 2\\n90 0.5 2\\n95 0.5 2\\n\", \"2 4 1\\n1 0.5 5\\n\", \"10 20 3\\n5 0.3 8\\n6 0.8 3\\n8 0.9 3\\n\", \"10 50 1\\n5 0.5 30\\n\"], \"outputs\": [\"124\\n\", \"3\\n\", \"18.9029850746\\n\", \"15\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-16963", "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": "Allen dreams of one day owning a enormous fleet of e...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\n1 2 0 4\\n1 2 0 4\\n5 0 0 3\\n0 5 0 3\\n\", \"1 2\\n1\\n1\\n2\\n2\\n\", \"1 2\\n1\\n2\\n1\\n2\\n\", \"2 1\\n0 0\\n0 0\\n0 1\\n0 1\\n\", \"7 14\\n2 11 1 14 9 8 5\\n12 6 7 1 10 2 3\\n14 13 9 8 5 4 11\\n13 6 4 3 12 7 10\\n\", \"48 17\\n0 0 0 0 0 0 14 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0...
rating_>1900
{ "id": "995_A. Tesla", "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": "Having solved a tedious assignment, Mirko decided to...
code
{ "ground_truth": "{\"inputs\": [\"2\\nne\\n\", \"4\\nkava\\n\", \"8\\ncokolada\\n\"], \"outputs\": [\"NE\\nn\\n\", \"DA\\nak\\n\", \"DA\\nacko\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-641", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "> If you've finished this kata, you can try the [more...
code
{ "ground_truth": "{\"fn_name\": \"promenade\", \"inputs\": [[\"\"], [\"L\"], [\"R\"], [\"LRLL\"], [\"LLRLR\"], [\"RRRLRRR\"], [\"LLLLRLLLL\"], [\"LLLLLLLLLL\"], [\"RLRLRLRRLRLL\"], [\"LLRRLRRLRLLL\"], [\"LRRLLRLLRLRR\"], [\"LRRLRLLLLRLL\"], [\"LLLRRRLLLRLL\"], [\"RRLRRRLLRLRR\"], [\"RRRRLLRLLRLR\"], [\"LLRLRLLRLLRL\...
EASY
{ "id": "taco-train-13913", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a matrix $a$ of size $n \\times m$ con...
code
{ "ground_truth": "{\"inputs\": [\"3 4 3\\n1 2 3 4\\n5 2 2 2\\n7 1 1 4\\n\", \"5 5 4\\n1 2 4 2 1\\n3 5 1 2 4\\n1 5 7 1 2\\n3 8 7 1 2\\n8 4 7 1 6\\n\", \"1 1 2\\n1\\n\", \"1 1 2\\n70\\n\", \"1 2 3\\n3 2\\n\", \"1 2 3\\n3 3\\n\", \"2 1 2\\n1\\n1\\n\", \"2 1 3\\n69\\n69\\n\", \"4 2 49\\n16 42\\n58 37\\n2 17\\n40 61\\n\"...
EASY
{ "id": "taco-train-22673", "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": "Hmm, how long has it been since the last color revol...
code
{ "ground_truth": "{\"inputs\": [\"4\\n40 3\\n1200 7\\n320802005 400\\n4 1\\n\"], \"outputs\": [\"\\n1 3 9 27\\n3 21 147 1029\\n5 2000 800000 320000000\\n1 1 1 1\\n\"]}", "style": "rule" }
rating_<=1200
{ "id": "1346_A. Color Revolution", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "President of Berland has a very vast office-room, wh...
code
{ "ground_truth": "{\"inputs\": [\"3 4 R\\nG.B.\\n.RR.\\nTTT.\", \"3 3 Z\\n...\\n.H.\\n..Z\", \"1 1 C\\nC\", \"2 2 W\\nKW\\nKW\", \"1 10 H\\n....DDHHHH\", \"3 2 W\\nOO\\nWW\\nWW\", \"3 3 U\\nUOO\\nUVV\\nUVV\", \"4 5 Z\\n...ZZ\\nUU.ZZ\\nUUTT.\\n..TT.\", \"4 4 X\\nT..R\\nTJJJ\\nDJJJ\\nXJJJ\", \"5 5 O\\nCQGAV\\nIHTUD\\n...
rating_<=1200
{ "id": "6B", "rating": 1100, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Assume you are creating a webshop and you would like ...
code
{ "ground_truth": "{\"fn_name\": \"sorted_brands\", \"inputs\": [[[]]], \"outputs\": [[[]]]}", "style": "rule" }
EASY
{ "id": "taco-train-16200", "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": "# Let's play Psychic \n\nA box contains green, red, a...
code
{ "ground_truth": "{\"fn_name\": \"Guess_it\", \"inputs\": [[3, 12], [40, 180], [30, 130], [32, 148], [18, 80], [18, 74], [50, 180], [50, 172]], \"outputs\": [[[[0, 3, 0], [1, 1, 1]]], [[[20, 20, 0], [21, 18, 1], [22, 16, 2], [23, 14, 3], [24, 12, 4], [25, 10, 5], [26, 8, 6], [27, 6, 7], [28, 4, 8], [29, 2, 9], [30, ...
EASY
{ "id": "taco-train-12013", "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": "100 years have passed since the last victory of the ...
code
{ "ground_truth": "{\"inputs\": [\"1 2\\n-1\\n?\\n\", \"2 100\\n-10000\\n0\\n1\\n\", \"4 5\\n?\\n1\\n?\\n1\\n?\\n\", \"5 3\\n?\\n?\\n?\\n?\\n?\\n?\\n\", \"4 4\\n?\\n?\\n?\\n?\\n?\\n\", \"17 10\\n3\\n6\\n0\\n0\\n0\\n0\\n0\\n0\\n7\\n9\\n0\\n0\\n0\\n0\\n0\\n0\\n0\\n1\\n\", \"2 0\\n?\\n1\\n?\\n\", \"7 10000\\n0\\n0\\n0\\...
rating_>1900
{ "id": "676_E. The Last Fight Between Human and AI", "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": "There are $N$ cars (numbered $1$ through $N$) on a c...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"5\", \"3 0 0 0 0\", \"5\", \"1 1 1 1 1\", \"5\", \"5 4 3 2 1\"]], \"outputs\": [[\"3\", \"5\", \"15\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-16662", "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 [Bengali] , [Mandarin chine...
code
{ "ground_truth": "{\"inputs\": [\"3 3 2\\n1 10 3\\n2 5 3\\n3 1 1\\n\"], \"outputs\": [\"1 2 1\\n1 2 1\\n1 1 1\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-15854", "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": "Snuke built an online judge to hold a programming co...
code
{ "ground_truth": "{\"inputs\": [\"CABD\", \"BACD\", \"ACACA\", \"ABCD\", \"XX\", \"CBBD\", \"ACABA\", \"B@CD\", \"BBCD\", \"XW\", \"DBBD\", \"B@BD\", \"ACBAA\", \"DCBB\", \"XV\", \"DBCD\", \"DC@B\", \"ACAAA\", \"ECBB\", \"VX\", \"DCBD\", \"DB@C\", \"@CABA\", \"BBCE\", \"YW\", \"DDBD\", \"D@BC\", \"AAACA\", \"CBCD\",...
none
{ "id": "p03567 CODE FESTIVAL 2017 qual C - Can you get AC?", "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": "-----Problem Statement-----\nWrite a program that ac...
code
{ "ground_truth": "{\"inputs\": [[\"123\"], \"191\", \"97\", \"162\", \"107\", \"190\", \"227\", \"357\", \"429\", \"404\", \"627\", \"889\", \"1047\", \"1652\", \"3133\", \"1313\", \"1107\", \"2085\", \"2863\", \"984\", \"265\", \"445\", \"173\", \"77\", \"33\", \"14\", \"11\", \"8\", \"9\", \"10\", \"3\", \"0\", \"...
EASY
{ "id": "taco-train-10705", "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 list of non negative integers, arrange them i...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\\r\\nArr[] = {3, 30, 34, 5, 9}\", \"N = 4\\r\\nArr[] = {54, 546, 548, 60}\"], \"outputs\": [\"9534330\", \"6054854654\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-3727", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given two strings A and B. Find minimum number of tim...
code
{ "ground_truth": "{\"inputs\": [\"A = \\\"abcd\\\"\\r\\nB = \\\"cdabcdab\\\"\", \"A = \\\"ab\\\"\\r\\nB = \\\"cab\\\"\"], \"outputs\": [\"3\", \"-1\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-18423", "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": "Mrityunjay is a high-school teacher, currently coach...
code
{ "ground_truth": "{\"inputs\": [\"3 \\n30 30 20\", \"3 \\n12 20 12\", \"3 \\n30 30 7\", \"3 \\n12 20 16\", \"3 \\n30 40 7\", \"3 \\n12 5 16\", \"3 \\n30 31 7\", \"3 \\n7 5 16\", \"3 \\n30 51 3\", \"3 \\n7 8 16\", \"3 \\n30 26 0\", \"3 \\n30 22 0\", \"3 \\n7 6 2\", \"3 \\n30 8 1\", \"3 \\n7 4 3\", \"3 \\n30 16 1\", \...
none
{ "id": "scores", "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 number N. The task is to check if N is woodal...
code
{ "ground_truth": "{\"inputs\": [\"N = 383\", \"N = 200\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5268", "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": "Anya has bought a new smartphone that uses Berdroid ...
code
{ "ground_truth": "{\"inputs\": [\"8 3 3\\n1 2 3 4 5 6 7 8\\n7 8 1\\n\", \"5 4 2\\n3 1 5 2 4\\n4 4 4 4\\n\", \"10 10 3\\n1 2 3 4 5 6 7 8 9 10\\n2 3 4 5 6 7 8 9 10 1\\n\", \"10 12 3\\n6 1 2 9 3 10 8 5 7 4\\n3 9 9 4 8 2 3 8 10 8 3 4\\n\", \"16 12 8\\n6 11 12 5 1 10 16 3 13 15 9 4 8 2 14 7\\n6 13 8 12 8 15 12 16 8 11 3 ...
MEDIUM_HARD
{ "id": "taco-train-14031", "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": "Madoka's father just reached $1$ million subscribers...
code
{ "ground_truth": "{\"inputs\": [\"5\\n3 3\\n100\\n011\\n011\\n3 3\\n110\\n111\\n110\\n1 5\\n01111\\n4 5\\n11111\\n01010\\n01000\\n01000\\n3 2\\n11\\n00\\n11\\n\"], \"outputs\": [\"YES\\nNO\\nYES\\nNO\\nYES\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-14204", "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": "Mr. Pr and Ms. Ad are at $a$ and $b$ respectively on...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 4 1 2\\n10 20 3 7\"], \"outputs\": [\"YES\\nNO\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-8403", "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": "Dom and Brian have come across this locker which the...
code
{ "ground_truth": "{\"inputs\": [\"16\", \"0\", \"220703118\"], \"outputs\": [\"5555555555555\", \"28\", \"10\"]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-17567", "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": "Piegirl was asked to implement two table join operat...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n2 6\\n3 100\", \"2 3\\n10 10\\n1 1 1\", \"2 2\\n888381664 866366630\\n170399907 404233949\", \"3 4\\n337369924 278848730 654933675\\n866361693 732544605 890800310 350303294\", \"10 10\\n510955240 684852706 455356451 284505713 595775142 646334608 563116339 941123613 818750895 5...
rating_1601-1900
{ "id": "457B", "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": "You are given a string S consisting of uppercase Eng...
code
{ "ground_truth": "{\"inputs\": [\"ATCODER\\n\", \"HATAGAYA\\n\", \"SHINJUKU\\n\", \"A\\n\", \"Z\\n\", \"TTTTTTTTTT\\n\", \"BBBBBBBBBB\\n\", \"CG\\n\", \"ABC\\n\", \"ABTTGTTTC\\n\", \"GACGCTCCAV\\n\", \"CTTAHTGACT\\n\", \"TGMJCTTDAA\\n\", \"SHINJUKV\", \"ATCPDER\", \"HATAGBYA\", \"HASAGBYA\", \"VKUJNIHT\", \"HATAGCYA...
EASY
{ "id": "taco-train-13202", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Let's assume that set S consists of m distinct inter...
code
{ "ground_truth": "{\"inputs\": [\"2 2\\n\", \"3 1\\n\", \"2 0\\n\", \"3 2\\n\", \"500 20\\n\", \"1 0\\n\", \"50 0\\n\", \"1 1\\n\", \"1 100\\n\", \"500 499\\n\", \"50 49\\n\", \"20 10\\n\", \"5 5\\n\", \"50 100\\n\", \"4 4\\n\", \"100 10\\n\", \"100 50\\n\", \"100 99\\n\", \"10 9\\n\", \"5 3\\n\", \"4 1\\n\", \"500 ...
rating_>1900
{ "id": "425_E. Sereja and Sets", "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": "You are given n rectangles, labeled 1 through n. The...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 0 1 9\\n1 0 9 1\\n1 8 9 9\\n8 1 9 8\\n\", \"9\\n0 0 1 9\\n1 0 9 1\\n1 8 9 9\\n8 1 9 8\\n2 2 3 6\\n3 2 7 3\\n2 6 7 7\\n5 3 7 6\\n3 3 5 6\\n\", \"1\\n2999 2999 3000 3000\\n\", \"1\\n0 2999 1 3000\\n\", \"17\\n1498 1502 1502 1503\\n1500 1498 1501 1501\\n1502 1501 1503 1503\\n1496...
rating_>1900
{ "id": "335_D. Rectangles and Square", "rating": 2400, "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": "How to make a cake you'll never eat.\n\nIngredients....
code
{ "ground_truth": "{\"inputs\": [\"4 1 2 3 4\", \"4 802 765 992 1\", \"4 220 380 729 969\", \"3 887 104 641\", \"12 378 724 582 387 583 241 294 159 198 653 369 418\", \"14 36 901 516 623 703 971 304 394 491 525 464 219 183 648\", \"3 287 979 395\", \"19 702 667 743 976 908 728 134 106 380 193 214 71 920 114 587 543 8...
rating_>1900
{ "id": "171C", "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 were dreaming that you are traveling to a planet...
code
{ "ground_truth": "{\"inputs\": [\"6\\n10 5\\nRRRRRRRRRRUUUUU\\n1 1\\nUDDDRLLL\\n-3 -5\\nLDLDLDDDR\\n1 2\\nLLLLUU\\n3 -2\\nRDULRLLDR\\n-1 6\\nRUDURUUUUR\\n\", \"6\\n10 5\\nRRRRRRRRRRUUUUU\\n1 1\\nUDDDRLLL\\n-3 -5\\nLDLDLDDDR\\n1 2\\nUULLLL\\n3 -2\\nRDULRLLDR\\n-1 6\\nRUDURUUUUR\\n\", \"6\\n10 5\\nRRRRRRRRRRUUUUU\\n1 ...
EASY
{ "id": "taco-train-12764", "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": "This is a peculiar functioning setup.\nTwo Tanks are...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"4 5 10\", \"2 2 5\"]], \"outputs\": [[\"Yes\", \"No\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-12401", "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": "There is an infinitely large pond, which we consider...
code
{ "ground_truth": "{\"inputs\": [\"6\\n0 10 -7 -4 -13 0\", \"5\\n0 2 5 1 0\", \"11\\n0 -4 0 -99 31 14 -15 -39 43 18 0\", \"6\\n0 10 -7 -4 -5 0\", \"5\\n0 2 5 0 0\", \"11\\n0 -4 0 -99 31 14 -15 -39 43 24 0\", \"6\\n0 2 -7 -1 -5 0\", \"11\\n0 -4 0 -99 31 13 -15 -39 64 24 0\", \"6\\n0 4 -7 -1 -3 0\", \"6\\n0 4 -7 -1 -1 ...
none
{ "id": "p03034 AtCoder Beginner Contest 128 - Frog Jump", "rating": 0, "split": "confidence_train", "sub_source": "none" }