data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A lot of frogs want to cross a river. A river is $w$...
code
{ "ground_truth": "{\"inputs\": [\"10 5\\n0 0 1 0 2 0 0 1 0\", \"10 3\\n1 1 1 1 2 1 1 1 1\", \"2 1\\n0\", \"2 1\\n5\", \"10 4\\n0 0 6 2 7 1 6 4 0\", \"100 15\\n0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 0 0 0 1 0 0 0 0 0 1 0 1 1 1 1 1 0 1 0 1 0 1 0 0 0 0 1 1 0 1 1 0 0 1 0 1 ...
rating_1601-1900
{ "id": "965D", "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": "Richard is planning to build a bowling alley for his...
code
{ "ground_truth": "{\"inputs\": [\"10\\n9 9 9\\n8 9 9\\n7 8 9\\n5 7 9\\n4 2 9\\n2 9 0\\n0 0 9\\n1 1 5\\n9 9 9\\n0 9 0\", \"6\\n1 1 9\\n8 9 8\\n0 9 0\\n4 4 9\\n3 9 9\\n9 9 9\", \"2\\n0 0 9\\n2 9 8\", \"13\\n9 8 9\\n2 5 9\\n2 5 9\\n5 8 9\\n1 3 9\\n0 7 9\\n5 0 9\\n3 6 8\\n2 4 9\\n3 9 5\\n0 0 9\\n9 0 9\\n0 9 9\", \"15\\n...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-482", "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": "Takahashi has an N \\times M grid, with N horizontal...
code
{ "ground_truth": "{\"inputs\": [\"4 5 5 3\", \"3 4 4 2\", \"7 9 20 20\", \"8 5 5 3\", \"3 5 4 2\", \"7 9 20 32\", \"15 5 5 3\", \"3 9 4 2\", \"15 5 5 5\", \"3 9 4 3\", \"15 5 8 5\", \"5 9 4 3\", \"15 5 8 3\", \"5 9 7 3\", \"15 6 8 3\", \"10 9 7 3\", \"15 11 8 3\", \"10 6 7 3\", \"15 3 8 3\", \"13 6 7 3\", \"12 3 12 ...
none
{ "id": "p03429 AtCoder Grand Contest 021 - Tiling", "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 is a range of integers [a , b] . You have to f...
code
{ "ground_truth": "{\"inputs\": [\"a = 1, b = 10\", \"a = 11, b = 13\"], \"outputs\": [\"17\", \"11\"]}", "style": "rule" }
EASY
{ "id": "taco-train-21808", "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": "PK is presented a String S by daisy duck on his birt...
code
{ "ground_truth": "{\"inputs\": [\"10\\nuuuululllluuullluullulululuullllllllullllullluulluulululluluululllluuuuuullluulllluluulllulllllllluluullluulllluulluulullllulllluuuululullluuullluulluulllulllulluuuuuulluuulllluluuuluullllluluuuuulluluulululllllllulllululullllllllullllluluullllulululluuluuuulllluullulllulluuuul...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-9711", "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": "Naruto is a fan of numbers, he likes to play with th...
code
{ "ground_truth": "{\"inputs\": [\"2\\n5 2 2 5\\n1 2 3 4 5\\n5 2 2 5\\n1 2 3 4 6\\n\\nSAMPLE\", \"2\\n5 2 2 5\\n1 2 3 4 9\\n5 2 2 5\\n1 2 3 4 6\\n\\nSAMPLE\", \"2\\n5 2 2 5\\n1 2 3 4 3\\n5 2 2 5\\n1 2 3 4 6\\n\\nSAMPLE\", \"2\\n5 2 2 5\\n1 2 3 4 9\\n5 1 2 5\\n1 2 3 4 6\\n\\nSAMPLE\", \"2\\n5 2 2 5\\n1 0 3 4 9\\n5 2 2...
none
{ "id": "beginners-task-4", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string of lowercase alphabets, count all poss...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"aba\\\", K = 2\", \"S = \\\"abaaca\\\", K = 1\"], \"outputs\": [\"3\", \"7\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-4143", "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 University management meets every semester to di...
code
{ "ground_truth": "{\"inputs\": [\"1\\n291\", \"1\\n286\", \"1\\n500\", \"1\\n978\", \"1\\n449\", \"1\\n116\", \"1\\n156\", \"1\\n172\", \"1\\n338\", \"1\\n539\", \"1\\n157\", \"1\\n128\", \"1\\n170\", \"1\\n206\", \"1\\n284\", \"1\\n351\", \"1\\n236\", \"1\\n462\", \"1\\n79\", \"1\\n55\", \"1\\n78\", \"1\\n47\", \"1...
none
{ "id": "univmt", "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": "For a positive, non-zero integer N, find the minimum ...
code
{ "ground_truth": "{\"inputs\": [\"N = 10, X = 2\", \"N = 38, X = 3\"], \"outputs\": [\"2\", \"4\"]}", "style": "rule" }
EASY
{ "id": "taco-train-22025", "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've got an array a, consisting of n integers a1, ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n4 10 3 13 7\\n8\\n1 2 4\\n2 1 3 3\\n1 2 4\\n1 3 3\\n2 2 5 5\\n1 1 5\\n2 1 2 10\\n1 2 3\\n\", \"6\\n4 7 4 0 7 3\\n5\\n2 2 3 8\\n1 1 5\\n2 3 5 1\\n2 4 5 6\\n1 2 3\\n\", \"20\\n34 20 8 27 49 36 10 9 35 22 41 2 35 50 24 21 11 33 30 16\\n20\\n2 1 8 9\\n1 8 12\\n2 4 16 14\\n2 4 13 5\\...
rating_>1900
{ "id": "242_E. XOR on Segment", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "### Task\nYou've just moved into a perfectly straight...
code
{ "ground_truth": "{\"fn_name\": \"over_the_road\", \"inputs\": [[1, 3], [3, 3], [2, 3], [3, 5], [7, 11], [10, 22], [20, 3400], [9, 26], [20, 10]], \"outputs\": [[6], [4], [5], [8], [16], [35], [6781], [44], [1]]}", "style": "rule" }
EASY
{ "id": "taco-train-17074", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Monk learned about priority queues recently and ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 2 3 4 5\\n\\nSAMPLE\", \"10\\n2 8 5 1 10 5 9 9 3 5\", \"10\\n2 8 5 1 20 5 9 9 3 5\", \"5\\n1 2 3 7 5\\n\\nSAMPLE\", \"5\\n1 2 6 7 5\\n\\nSAMPLE\", \"10\\n2 8 9 1 20 4 9 9 3 5\", \"10\\n2 8 9 1 20 4 7 9 3 5\", \"5\\n1 2 6 7 3\\n\\nSAMPLF\", \"5\\n2 2 6 7 3\\n\\nSAMPLF\", \"5\\n...
none
{ "id": "monk-and-multiplication", "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": "Recently Ivan noticed an array a while debugging his...
code
{ "ground_truth": "{\"inputs\": [\"3 0\\n\", \"3 2\\n1 1 3 2\\n2 1 3 2\\n\", \"3 1\\n1 1 3 2\\n\", \"3 2\\n1 1 3 2\\n2 1 3 1\\n\", \"3 6\\n1 1 1 2\\n2 1 1 2\\n1 2 2 2\\n2 2 2 2\\n1 3 3 2\\n2 3 3 3\\n\", \"7 3\\n2 1 2 2\\n1 3 7 2\\n2 3 7 3\\n\", \"50 2\\n2 1 33 1\\n2 14 50 1\\n\", \"29 5\\n2 4 9 27\\n1 25 29 14\\n1 9 ...
rating_>1900
{ "id": "863_F. Almost Permutation", "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": "Geek is very fond of patterns. Once, his teacher gave...
code
{ "ground_truth": "{\"inputs\": [\"5\"], \"outputs\": [\"*********\\n *******\\n *****\\n ***\\n *\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-17326", "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": "Problem\n\nI chose creature observation as the theme...
code
{ "ground_truth": "{\"inputs\": [\"5\\n00000\\n01010\\n00000\\n00100\\n00000\\n\\n00000\\n01010\\n00000\\n01010\\n00000\\n\\n00000\\n00100\\n00000\\n01010\\n00000\\n\\n00000\\n01010\\n00000\\n00100\\n00000\\n\\n00000\\n00000\\n00100\\n00000\\n00000\\n\\n1 2\\n2 3 4\\n4\\n01110\\n00100\\n00100\\n00100\\n01110\\n\\n011...
none
{ "id": "p01000 Independent Research", "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": "Petya's friends made him a birthday present — a brac...
code
{ "ground_truth": "{\"inputs\": [\"2\\n)(\\n\", \"10\\n)))))(((((\\n\", \"3\\n(()\\n\", \"2\\n()\\n\", \"3\\n)((\\n\", \"100\\n))))))))))))))))))))))))))))))))))))))))))))))))))((((((((((((((((((((((((((((((((((((((((((((((((((\\n\", \"500\\n()))))()()(()((((())))((((()()((()))))))((()())))()(()(()))()()()))())))()))...
rating_<=1200
{ "id": "1214_C. Bad Sequence", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Chef is planning a huge party for all of you and has...
code
{ "ground_truth": "{\"inputs\": [[\"5 10\", \"1 2 3 4 5\", \"\"]], \"outputs\": [[\"31\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-1010", "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 set of distinct integers, nums, return all po...
code
{ "ground_truth": "{\"fn_name\": \"subsets\", \"inputs\": [[[1, 2, 3]], [[0]]], \"outputs\": [[[], [1], [2], [1, 2], [3], [1, 3], [2, 3], [1, 2, 3]], [[], [0]]]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-15438", "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 city of Xentopia has a well-connected railway ne...
code
{ "ground_truth": "{\"inputs\": [\"4 4 1 1\\n1 2 1 2\\n1 3 1 0\\n2 4 1 1\\n3 4 1 0\\n1 4\\n\", \"4 3 200 1\\n1 2 1 1\\n2 3 1 0\\n2 4 1 2\\n1 3\\n\"], \"outputs\": [\"2\\n\", \"-1\\n\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-13455", "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": "G: Toss Cut Tree\n\nProblem Statement\n\nYou are giv...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 3\\n1 2\\n3 1\", \"3\\n1 2\\n2 3\\n1 2\\n3 2\", \"3\\n1 2\\n2 3\\n3 2\\n3 1\", \"3\\n1 3\\n2 3\\n1 2\\n3 2\", \"3\\n1 2\\n2 3\\n3 2\\n1 2\", \"3\\n1 2\\n2 3\\n3 2\\n2 1\", \"3\\n1 3\\n2 3\\n3 2\\n3 1\", \"3\\n1 2\\n1 3\\n3 2\\n2 1\", \"3\\n1 3\\n2 3\\n3 2\\n2 1\", \"3\\n...
none
{ "id": "p02094 Toss Cut Tree", "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": "Does the card fit in a snack? (Are Cards Snacks?)\n\...
code
{ "ground_truth": "{\"inputs\": [\"5 9\\n8 6 9 1 2\", \"7 9\\n8 6 9 1 2\", \"7 9\\n8 6 12 1 2\", \"7 9\\n8 6 12 2 0\", \"7 1\\n2 8 -1 1 1\", \"7 9\\n8 6 12 1 0\", \"7 9\\n8 6 23 2 0\", \"7 9\\n13 6 23 2 0\", \"7 9\\n21 6 23 2 0\", \"7 9\\n18 6 23 2 0\", \"7 9\\n18 6 39 2 0\", \"7 9\\n18 6 62 2 0\", \"7 9\\n18 6 37 2 ...
none
{ "id": "p02209 Are Cards Snacks?", "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": "Amit works at a data recovery company. Every day he ...
code
{ "ground_truth": "{\"inputs\": [\"206\\n123\\n5412 1315 3462 2181 638 1233 125 4687 557 5828 6368 8089 379 6076 2048 6187 3648 812 8717 3562 3425 4342 3637 2594 2947 307 9444 6560 4938 1993 8080 7797 7822 3216 6688 1002 3100 1822 1765 4985 4606 9952 9705 5423 4890 8624 8139 6061 2731 2122 3995 4889 197 1527 203 8220...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3713", "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": "The link to the Russian translation.\n\nAlex has ope...
code
{ "ground_truth": "{\"inputs\": [\"500\\n3\\n1\\n3\\n8\\n7\\n4\\n1\\n7\\n8\\n5\\n4\\n2\\n2\\n6\\n2\\n3\\n2\\n9\\n3\\n2\\n1\\n2\\n6\\n3\\n1\\n8\\n8\\n2\\n5\\n1\\n1\\n6\\n5\\n1\\n1\\n6\\n7\\n3\\n1\\n1\\n6\\n3\\n1\\n2\\n5\\n1\\n2\\n3\\n3\\n2\\n2\\n2\\n10\\n8\\n10\\n2\\n10\\n3\\n1\\n2\\n3\\n6\\n4\\n3\\n2\\n10\\n5\\n4\\n5...
MEDIUM
{ "id": "taco-train-14493", "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": "Sunuke cannot move in the initial state. The price o...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2 3\\n4 5 6\", \"7\\n0 3 1\\n0 3 2\\n1 -1 2\\n0 0 1\\n-2 4 1\\n-4 0 1\\n2 1 2\", \"2\\n1 2 3\\n4 5 10\", \"7\\n0 3 1\\n0 3 2\\n1 -1 2\\n0 0 1\\n-2 7 1\\n-4 0 1\\n2 1 2\", \"7\\n0 3 0\\n0 3 2\\n1 -1 2\\n0 1 1\\n-2 7 1\\n-2 0 1\\n2 1 2\", \"7\\n1 3 0\\n0 2 2\\n1 -1 1\\n0 1 1\\n-...
none
{ "id": "p01746 Directions", "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": "Petya and Vasya decided to play a little. They found...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n\", \"2 4\\n\", \"1 1\\n\", \"2 1\\n\", \"4 4\\n\", \"10 7\\n\", \"5 13\\n\", \"7 11\\n\", \"1 2\\n\", \"10 10\\n\", \"50 30\\n\", \"80 120\\n\", \"304 122\\n\", \"500 800\\n\", \"900 1000\\n\", \"1 1000\\n\", \"997 9\\n\", \"341 678\\n\", \"784 913\\n\", \"57 888\\n\", \"1000...
EASY
{ "id": "taco-train-8092", "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": "Chef has N laddus of K sweetness each. Chef wants to...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"1 2\", \"4 3\"]], \"outputs\": [[\"2\", \"6\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3695", "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": "There is an integer sequence A of length N whose val...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 5\\n\", \"2\\n3\\n\", \"6\\n0 153 10 10 23\\n\", \"2\\n0\\n\", \"99\\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\\n\", \"100...
EASY
{ "id": "taco-train-10907", "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": "Most football fans love it for the goals and exciteme...
code
{ "ground_truth": "{\"fn_name\": \"men_still_standing\", \"inputs\": [[[]], [[\"A4Y\", \"A4Y\"]], [[\"A4Y\", \"A4R\"]], [[\"A4Y\", \"A5R\", \"B5R\", \"A4Y\", \"B6Y\"]], [[\"A4R\", \"A4R\", \"A4R\"]], [[\"A4R\", \"A2R\", \"A3R\", \"A6R\", \"A8R\", \"A10R\", \"A11R\"]]], \"outputs\": [[[11, 11]], [[10, 11]], [[10, 11]]...
EASY
{ "id": "taco-train-13593", "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 two integer sequences, each of length ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\\n3 4\\n\", \"6\\n4 6 0 0 3 3\\n0 5 6 5 0 3\\n\", \"5\\n1 2 3 4 5\\n1 2 3 4 5\\n\", \"1\\n0\\n0\\n\"], \"outputs\": [\"2\\n\", \"8\\n\", \"2\\n\", \"0\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-9039", "rating": null, "split": "confidence_train", "sub_source": "HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a non-negative number, return the next bigger p...
code
{ "ground_truth": "{\"fn_name\": \"next_num\", \"inputs\": [[0], [10], [11], [1234], [123220], [998], [999], [1234567890], [3608528850368400786036724], [3608528850368400786036725]], \"outputs\": [[1], [12], [12], [1236], [123252], [1020], [1020], [1236004020], [3608528850368400786036725], [null]]}", "style": "rule"...
EASY
{ "id": "taco-train-2848", "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": "Vasya became interested in bioinformatics. He's goin...
code
{ "ground_truth": "{\"inputs\": [\"2\\nAG\\n\", \"3\\nTTT\\n\", \"1\\nC\\n\", \"20\\nTAAGCGACCAGGTGCTTTAC\\n\", \"15\\nAGCGAATCCCATTGT\\n\", \"4\\nGACT\\n\", \"1\\nT\\n\", \"3\\nGCA\\n\", \"318\\nTATCAATCGGTACGTGCGCATCATTGTCAATCGGGCTTCATGGCTTGCGGGCGCTACCCGAGGGGAAGCTGCGGACAGGTAGGTAAGATACACACGAACCAAACGGAGTTATGTTGGATAAA...
rating_1401-1600
{ "id": "521_A. DNA Alignment", "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": "You are given a permutation of numbers from 1 to n. ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1 5 2 4 3\\n\", \"4\\n1 3 4 2\\n\", \"5\\n3 5 4 1 2\\n\", \"4\\n3 4 1 2\\n\", \"100\\n22 78 19 70 81 33 15 72 40 51 18 62 36 24 37 20 97 65 89 75 14 55 23 53 1 67 50 99 54 76 41 16 44 60 2 90 7 28 79 43 47 64 71 27 25 8 46 92 95 80 31 100 42 96 86 66 52 63 98 4 56 91 34 83 85 3 ...
rating_>1900
{ "id": "452_F. Permutation", "rating": 2700, "split": "confidence_train", "sub_source": "rating_>1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "By 2312 there were *n* Large Hadron Colliders in the...
code
{ "ground_truth": "{\"inputs\": [\"10 10\\n+ 6\\n+ 10\\n+ 5\\n- 10\\n- 5\\n- 6\\n+ 10\\n+ 3\\n+ 6\\n+ 3\", \"7 5\\n+ 7\\n+ 6\\n+ 4\\n+ 3\\n- 7\", \"10 5\\n+ 2\\n- 8\\n- 4\\n- 10\\n+ 1\", \"10 10\\n+ 1\\n+ 10\\n- 1\\n- 10\\n+ 1\\n- 1\\n+ 7\\n+ 8\\n+ 6\\n- 7\", \"15 15\\n+ 12\\n+ 6\\n+ 13\\n- 13\\n+ 7\\n+ 14\\n+ 8\\n+ ...
rating_1401-1600
{ "id": "154B", "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": "Given a binary tree of size N. Your task is to comple...
code
{ "ground_truth": "{\"inputs\": [\"4 \\n / \\\\ \\n 2 5 \\n / \\\\ / \\\\ \\n 7 1 2 3 \\n /\\n 6\", \"1\\n / \\\\\\n 2 3\\n / \\\\ / \\\\\\n 4 5 6 7\"], \"outputs\": [\"13\", \"11\"]}", "style": "rule" }
EASY
{ "id": "taco-train-5109", "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$ points on a plane. The $i$-th point ha...
code
{ "ground_truth": "{\"inputs\": [\"4\\n7 1\\n1 5 2 3 1 5 4\\n1 3 6 7 2 5 4\\n1 1\\n1000000000\\n1000000000\\n5 10\\n10 7 5 15 8\\n20 199 192 219 1904\\n10 10\\n15 19 8 17 20 10 9 2 10 19\\n12 13 6 17 1 14 7 9 19 3\\n\", \"4\\n1 1000000000\\n1\\n123456\\n1 1000000000\\n21345\\n987654321\\n1 1000000000\\n1000000000\\n1...
MEDIUM_HARD
{ "id": "taco-train-12169", "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": "A frog is initially at position 0 on the number line...
code
{ "ground_truth": "{\"inputs\": [\"1000000000 1 2019\\n\", \"7 5 3\\n\", \"6 4 5\\n\", \"100 100000 1\\n\", \"7526 35 7525\\n\", \"936989 17028 92708\\n\", \"26 92701 7\\n\", \"42651129 26190 16875\\n\", \"172165 93846 84\\n\", \"95544 17793 8856\\n\", \"983 97020 105\\n\", \"236009692 89900 300\\n\", \"14332 13672 1...
rating_>1900
{ "id": "1146_D. Frog Jumping", "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": "Vova promised himself that he would never play compu...
code
{ "ground_truth": "{\"inputs\": [\"10 5\\n1 6 2 7 3 8 4 9 5 10\\n1 2\\n3 4\\n5 6\\n7 8\\n9 10\\n\", \"5 2\\n2 5 3 4 8\\n1 4\\n4 5\\n\", \"10 0\\n1 2 3 4 5 6 7 8 9 10\\n\", \"2 0\\n1000000000 1000000000\\n\", \"2 0\\n1000000000 0\\n\", \"1 0\\n1000000000\\n\", \"2 0\\n0 1000000000\\n\", \"1 0\\n0\\n\", \"2 1\\n0 0\\n1...
rating_1201-1400
{ "id": "893_C. Rumor", "rating": 1300, "split": "confidence_train", "sub_source": "rating_1201-1400" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are a student of University of Aizu. And you wor...
code
{ "ground_truth": "{\"inputs\": [\"5\\n12:57 59\\n20:12 15\\n12:19 21\\n18:52 03\\n16:09 14\\n0\", \"5\\n12:57 59\\n20:22 15\\n12:19 21\\n18:52 03\\n16:09 14\\n0\", \"5\\n12:57 59\\n22:02 15\\n12:19 21\\n18:52 03\\n16:09 14\\n0\", \"5\\n12:57 105\\n20:12 15\\n12:19 21\\n18:52 03\\n16:09 14\\n0\", \"5\\n12:57 59\\n20:...
none
{ "id": "p00647 It's our delight!!", "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": "Kriti and Me were getting bored, so we finally came ...
code
{ "ground_truth": "{\"inputs\": [\"1 3\\n5 \\n2 3 5 \\n5\\n4 S\\n6 S\\n8 S\\n10 S\\n1 K\", \"3 3\\n2 3 4 \\n1 4 5 \\n5\\n3 K\\n3 K\\n3 K\\n2 S\\n1 S\", \"30 30\\n4 5 6 7 11 12 13 14 15 19 21 26 32 41 42 43 49 50 59 61 64 66 76 78 80 82 83 90 92 100 \\n3 4 8 15 20 22 25 29 33 35 42 43 45 50 56 58 68 70 73 75 76 79 80 ...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-9896", "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": "One drew a closed polyline on a plane, that consiste...
code
{ "ground_truth": "{\"inputs\": [\"2\\n2\\n1 1\\n2\\n1 1\\n\\n2\\n1 2\\n2\\n3 3\\n\", \"2\\n4\\n1 1 1 1\\n4\\n1 1 1 1\\n\\n3\\n2 1 1\\n3\\n2 1 1\\n\", \"2\\n4\\n1 4 1 2\\n4\\n3 4 5 12\\n\\n4\\n1 2 3 6\\n2\\n1 3\\n\", \"1\\n4\\n4 4 3 5\\n4\\n3 3 3 3\\n\", \"12\\n4\\n3 4 4 5\\n4\\n3 3 3 3\\n\\n4\\n3 4 5 4\\n4\\n3 3 3 3...
rating_>1900
{ "id": "1444_D. Rectangular Polyline", "rating": 2900, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Siddhant made a special series and named it as G.F Se...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 6\"], \"outputs\": [\"0 1 -1\", \"0 1 -1 2 -1 5\"]}", "style": "rule" }
EASY
{ "id": "taco-train-12551", "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 Fire City, there are n intersections and m one-wa...
code
{ "ground_truth": "{\"inputs\": [\"4 5\\n1 2 1\\n2 3 1\\n3 1 2\\n1 4 1\\n4 3 2\\n2\\n1 2 4\\n4 3 5\\n\", \"4 4\\n1 2 1\\n2 3 1\\n3 1 2\\n1 4 3\\n3\\n1 1 3\\n1 2 4\\n4 0 1\\n\", \"2 1\\n2 1 1\\n1\\n2 1 2\\n\", \"4 5\\n1 2 1\\n2 3 1\\n3 1 2\\n1 4 1\\n4 3 2\\n2\\n1 2 4\\n3 3 5\\n\", \"3 1\\n2 1 1\\n1\\n2 1 2\\n\", \"3 1...
rating_>1900
{ "id": "1515_G. Phoenix and Odometers", "rating": 2700, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "\n\nInput\n\nThe only line of input contains three i...
code
{ "ground_truth": "{\"inputs\": [\"17 18 3\\n\", \"2 3 2\\n\", \"14 5 9\\n\", \"13 14 1\\n\", \"20 20 20\\n\", \"20 20 1\\n\", \"5 5 5\\n\", \"8 2 9\\n\", \"1 1 1\\n\", \"1 1 20\\n\", \"10 11 12\\n\", \"12 9 18\\n\", \"1 19 15\\n\", \"3 7 17\\n\", \"4 6 7\\n\", \"20 20 3\\n\", \"5 5 3\\n\", \"8 2 12\\n\", \"2 1 20\\n...
rating_1401-1600
{ "id": "171_G. Mysterious numbers - 2", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "For given a sequence $A = \\\\{a_0, a_1, ..., a_{n-1...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 2 1\", \"3\\n2 1 3\", \"3\\n3 3 1\", \"3\\n3 1 3\", \"3\\n3 3 2\", \"3\\n6 1 3\", \"3\\n3 5 2\", \"3\\n11 1 3\", \"3\\n0 5 2\", \"3\\n11 1 4\", \"3\\n0 10 2\", \"3\\n6 1 4\", \"3\\n0 10 1\", \"3\\n6 1 6\", \"3\\n0 13 1\", \"3\\n6 0 6\", \"3\\n0 13 2\", \"3\\n6 0 4\", \"3\\n0 6...
none
{ "id": "p02449 Permutation", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There is a tree with N vertices. The vertices are nu...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2\\n2 3\", \"6\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\", \"7\\n1 2\\n6 3\\n4 5\\n1 7\\n1 5\\n2 3\", \"4\\n1 2\\n1 3\\n1 4\", \"3\\n1 2\\n1 3\", \"6\\n1 2\\n1 3\\n1 4\\n2 5\\n2 10\", \"6\\n1 2\\n1 3\\n1 4\\n1 5\\n2 6\", \"7\\n1 2\\n6 3\\n4 5\\n1 7\\n1 5\\n2 6\", \"7\\n1 3\\n6 3\\n4 5\\n...
none
{ "id": "p03492 AtCoder Regular Contest 087 - Squirrel Migration", "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. Find if it can be expressed as sum ...
code
{ "ground_truth": "{\"inputs\": [\"N = 34\", \"N = 23\"], \"outputs\": [\"\\\"Yes\\\"\", \"\\\"No\\\"\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23239", "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": "Thanks to your help, Heidi is confident that no one ...
code
{ "ground_truth": "{\"inputs\": [\"2\", \"4\", \"6\", \"1\", \"3\", \"5\", \"999983\", \"1000000\", \"7\", \"8\", \"9\", \"10\", \"11\", \"12\", \"13\", \"14\", \"15\", \"16\", \"17\", \"18\", \"19\", \"20\", \"21\", \"22\", \"23\", \"24\", \"25\", \"26\", \"27\", \"28\", \"29\", \"1898\", \"2023\", \"2152\", \"2285\...
rating_>1900
{ "id": "802H", "rating": 2200, "split": "confidence_train", "sub_source": "rating_>1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Dr. Bruce Banner hates his enemies (like others don'...
code
{ "ground_truth": "{\"inputs\": [\"1\", \"2\", \"3\", \"4\", \"5\", \"10\", \"18\", \"19\", \"76\", \"77\", \"81\", \"82\", \"85\", \"86\", \"100\", \"99\", \"98\", \"33\", \"34\", \"57\", \"100\"], \"outputs\": [\"I hate it\", \"I hate that I love it\", \"I hate that I love that I hate it\", \"I hate that I love tha...
rating_<=1200
{ "id": "705A", "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 problem statements in [Hindi], [Bengali], [Mand...
code
{ "ground_truth": "{\"inputs\": [\"4 1\\n3\\n2 1 1\\n3 2 3\\n3\\n4 1 3\\n3 5 2\\n3\\n5 4 6\\n1 3 2\\n2\\n1 1\\n1 1\\n\", \"4 2\\n3\\n2 1 1\\n3 2 3\\n3\\n4 1 3\\n3 5 2\\n3\\n5 4 6\\n1 3 2\\n2\\n1 1\\n1 1\\n\"], \"outputs\": [\"YES\\nNO\\nNO\\nNO\\n\", \"YES\\nYES\\nYES\\nNO\\n\"]}", "style": "rule" }
VERY_HARD
{ "id": "taco-train-1812", "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": "Mr. Modulo lives up to his name and is always busy ta...
code
{ "ground_truth": "{\"fn_name\": \"maxModValue\", \"inputs\": [\"n=3\\narr[] = {3, 4, 7}\", \"n=4\\narr[] = {4, 4, 4, 4}\"], \"outputs\": [\"3\", \"0\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-24815", "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": "Ritika has a coin of $N but she is the type of perso...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\", \"N = 12\"], \"outputs\": [\"5\", \"13\"]}", "style": "rule" }
EASY
{ "id": "taco-train-19382", "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 went to the store, selling n types of chocolates...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 1 1\\n\", \"5\\n3 2 5 4 10\\n\", \"5\\n1 2 1 3 6\\n\", \"8\\n10 4 7 6 14 4 2 2\\n\", \"2\\n1000000000 1\\n\", \"2\\n6 16\\n\", \"19\\n3 1 16 11 12 10 3 13 12 9 1 9 8 4 19 16 19 3 3\\n\", \"19\\n10 10 8 11 6 1 6 13 8 20 8 14 9 18 18 7 5 20 6\\n\", \"2\\n921 921\\n\", \"11\\n3...
rating_<=1200
{ "id": "1139_B. Chocolates", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are n heaps of stone. The i-th heap has h_i st...
code
{ "ground_truth": "{\"inputs\": [\"4\\n4\\n1 2 10 100\\n4\\n100 100 100 1\\n5\\n5 1 1 1 8\\n6\\n1 2 3 4 5 6\\n\", \"4\\n4\\n1 2 10 100\\n4\\n100 100 100 1\\n5\\n5 1 1 1 8\\n6\\n1 2 3 6 5 6\\n\", \"4\\n4\\n0 2 10 100\\n4\\n100 000 100 1\\n5\\n5 2 1 1 3\\n6\\n1 4 4 3 5 12\\n\", \"4\\n4\\n1 2 10 100\\n4\\n100 100 100 1\...
rating_1401-1600
{ "id": "1623_C. Balanced Stone Heaps", "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": "$n$ fishermen have just returned from a fishing vaca...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 4 9\\n\", \"4\\n4 3 2 1\\n\", \"3\\n4 2 1\\n\", \"8\\n42 1337 13 37 420 666 616 97\\n\", \"10\\n319645572 758298525 812547177 459359946 355467212 304450522 807957797 916787906 239781206 242840396\\n\", \"2\\n1 1\\n\", \"2\\n500000000 1000000000\\n\", \"2\\n500000001 10000000...
MEDIUM
{ "id": "taco-train-19944", "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": "# Task\nGiven some sticks by an array `V` of positive...
code
{ "ground_truth": "{\"fn_name\": \"counting_triangles\", \"inputs\": [[[2, 3, 7, 4]], [[5, 6, 7, 8]], [[2, 2, 2, 2]], [[1, 2, 5]], [[1, 2, 3, 10, 20, 30, 4]], [[1, 2, 3]]], \"outputs\": [[1], [4], [4], [0], [1], [0]]}", "style": "rule" }
EASY
{ "id": "taco-train-10434", "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": "Monocarp is a little boy who lives in Byteland and h...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3\\n1 2 3\\n5\\n2 3 4 5 1\\n4\\n2 3 1 4\\n1\\n1\\n\"], \"outputs\": [\"2 3 1\\n1 2 3 4 5\\n1 2 4 3\\n-1\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6675", "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 a simple graph, output the number of simple cy...
code
{ "ground_truth": "{\"inputs\": [\"4 6\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\\n\", \"10 3\\n4 8\\n9 4\\n8 9\\n\", \"6 1\\n2 5\\n\", \"6 0\\n\", \"6 15\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n2 3\\n2 4\\n2 5\\n2 6\\n3 4\\n3 5\\n3 6\\n4 5\\n4 6\\n5 6\\n\", \"18 45\\n1 2\\n1 5\\n1 12\\n1 13\\n2 3\\n2 4\\n2 11\\n2 14\\n2 15\\n3 7\...
rating_>1900
{ "id": "11_D. A Simple Task", "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": "Abhi loves chocolates! He visits the Binary Bakery t...
code
{ "ground_truth": "{\"inputs\": [\"10\\n4 1\\n3 1 5 1\\n7 4\\n3 1 2 1 2 1 5\\n7 4\\n0 4 4 5 2 3 3\\n3 2\\n2 1 1\\n6 5\\n0 0 0 5 3 1\\n7 3\\n4 3 3 3 5 2 1\\n9 4\\n5 0 5 4 1 2 2 3 2\\n1 0\\n1\\n6 6\\n2 3 2 5 4 3\\n4 2\\n0 3 0 3\", \"6\\n4 1\\n54 12 52 56\\n7 4\\n44 94 44 39 65 19 51\\n7 4\\n5 89 34 25 58 20 51\\n3 2\\n...
UNKNOWN_DIFFICULTY
{ "id": "taco-train-23546", "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 of characters, find the length of the ...
code
{ "ground_truth": "{\"inputs\": [\"s = \\\"abab\\\"\", \"s = \\\"aaaa\\\"\"], \"outputs\": [\"2\", \"3\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-17490", "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": "The protection of a popular program developed by one...
code
{ "ground_truth": "{\"inputs\": [\"12345\", \"13542\", \"71232\", \"11111\", \"10000\", \"99999\", \"91537\", \"70809\", \"41675\", \"32036\"], \"outputs\": [\"71232\", \"84443\", \"10151\", \"36551\", \"00000\", \"99999\", \"27651\", \"00000\", \"61851\", \"82432\"]}", "style": "rule" }
rating_1201-1400
{ "id": "630L", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Create a function that returns the sum of the two low...
code
{ "ground_truth": "{\"fn_name\": \"sum_two_smallest_numbers\", \"inputs\": [[[5, 8, 12, 18, 22]], [[7, 15, 12, 18, 22]], [[25, 42, 12, 18, 22]], [[1, 8, 12, 18, 5]], [[13, 12, 5, 61, 22]]], \"outputs\": [[13], [19], [30], [6], [17]]}", "style": "rule" }
EASY
{ "id": "taco-train-16166", "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": "N problems are proposed for an upcoming contest. Pro...
code
{ "ground_truth": "{\"inputs\": [\"6 1 2 2\\n2 1 1 3 0 2\", \"10 4 8 5\\n7 2 3 6 1 6 5 4 6 5\", \"6 1 5 2\\n2 1 1 3 0 2\", \"6 1 2 2\\n2 1 1 5 0 2\", \"10 4 8 5\\n7 2 3 4 1 6 5 4 6 5\", \"6 1 5 2\\n2 1 1 3 1 2\", \"6 1 2 2\\n2 1 1 5 0 0\", \"10 4 8 5\\n7 2 6 4 1 6 5 4 6 5\", \"6 1 2 4\\n2 1 1 5 0 0\", \"10 4 5 5\\n7 ...
none
{ "id": "p02824 AtCoder Grand Contest 041 - Voting Judges", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements [Mandarin] , [Bengali] , [H...
code
{ "ground_truth": "{\"inputs\": [\"3\\n5\\n1 2 3 4 5\\n5\\n1 1 2 2 3\\n5\\n3 3 2 2 2\"], \"outputs\": [\"1\\n4\\n3\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-6475", "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": "In this challenge, you will determine whether a stri...
code
{ "ground_truth": "{\"inputs\": [\"STDIN Function\\n----- --------\\n2 q = 2\\nacxz s = 'acxz'\\nbcxz s = 'bcxz'\\n\"], \"outputs\": [\"Funny\\nNot Funny\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-12677", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "The Olympic Games in Bercouver are in full swing now...
code
{ "ground_truth": "{\"inputs\": [\"0 0 10\\n60 0 10\\n30 30 10\\n\", \"0 0 10\\n300 300 13\\n500 -500 16\\n\", \"0 0 10\\n300 300 12\\n500 -500 14\\n\", \"0 0 10\\n300 300 15\\n500 -500 20\\n\", \"0 0 10\\n300 300 11\\n500 -500 12\\n\", \"0 0 30\\n300 300 30\\n500 -500 20\\n\", \"0 0 10\\n300 300 21\\n500 -500 42\\n\...
rating_>1900
{ "id": "2_C. Commentator problem", "rating": 2600, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Takahashi has a deposit of 100 yen (the currency of ...
code
{ "ground_truth": "{\"inputs\": [\"1333333333\", \"103\", \"1000000000000000000\", \"1925339908\", \"121\", \"1000010000000000000\", \"2918372355\", \"1100010000000000000\", \"1759180116\", \"314793131\", \"385473767\", \"693073999\", \"463707925\", \"620557412\", \"55916268\", \"29927702\", \"12264538\", \"23000309\...
none
{ "id": "p02694 AtCoder Beginner Contest 165 - 1%", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "New Year is coming in Line World! In this world, the...
code
{ "ground_truth": "{\"inputs\": [\"8 4\\n1 2 1 2 1 2 1\\n\", \"8 5\\n1 2 1 2 1 1 1\\n\", \"20 19\\n13 16 7 6 12 1 5 7 8 6 5 7 5 5 3 3 2 2 1\\n\", \"50 49\\n11 7 1 41 26 36 19 16 38 14 36 35 37 27 20 27 3 6 21 2 27 11 18 17 19 16 22 8 8 9 1 7 5 12 5 6 13 6 11 2 6 3 1 5 1 1 2 2 1\\n\", \"120 104\\n41 15 95 85 34 11 25 ...
EASY
{ "id": "taco-train-12440", "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 this problem you have to build tournament graph, ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\", \"4\\n\", \"41\\n\", \"5\\n\", \"31\\n\", \"18\\n\", \"100\\n\", \"30\\n\", \"22\\n\", \"29\\n\", \"44\\n\", \"17\\n\", \"36\\n\", \"16\\n\", \"48\\n\", \"15\\n\", \"12\\n\", \"258\\n\", \"27\\n\", \"38\\n\", \"32\\n\", \"14\\n\", \"15\\n\", \"26\\n\", \"45\\n\", \"16\\n\", ...
rating_>1900
{ "id": "323_B. Tournament-graph", "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": "Chef has N subordinates. In order to complete a very...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 1\\n3 3\\n10 5\", \"3\\n2 1\\n3 4\\n10 5\", \"3\\n3 1\\n3 4\\n10 5\", \"3\\n5 2\\n3 4\\n10 5\", \"3\\n5 2\\n4 4\\n10 5\", \"3\\n5 2\\n5 4\\n10 5\", \"3\\n5 2\\n5 4\\n10 3\", \"3\\n5 2\\n5 4\\n9 3\", \"3\\n5 2\\n10 4\\n9 3\", \"3\\n5 2\\n10 5\\n9 3\", \"3\\n5 2\\n2 5\\n9 3\", \...
none
{ "id": "chefteam", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a binary string S of N bits. The bits ...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"11010\", \"101001011\", \"\", \"\"]], \"outputs\": [[\"9\", \"18\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-23248", "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": "Anton came to a chocolate factory. There he found a ...
code
{ "ground_truth": "{\"inputs\": [\"2 3 1 2\\n2 5\\n\", \"1 1 1 1\\n0\\n\", \"10 7 3 5\\n0 1 3 4 5 6 9 10 12 13\\n\", \"4 2 1 2\\n0 1 2 3\\n\", \"4 2 1 1\\n0 1 2 3\\n\", \"10 7 5 3\\n0 2 3 4 5 6 8 9 10 12\\n\", \"4 2 2 1\\n0 1 2 3\\n\", \"6 1000000000 100000000 100000000\\n0 100000000 200000000 300000000 400000000 500...
rating_>1900
{ "id": "163_C. Conveyor", "rating": 2100, "split": "confidence_train", "sub_source": "rating_>1900" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Today Patrick waits for a visit from his friend Spon...
code
{ "ground_truth": "{\"inputs\": [\"10 20 30\", \"1 1 5\", \"100 33 34\", \"777 777 777\", \"2 2 8\", \"12 34 56\", \"789 101112 131415\", \"27485716 99999999 35182\", \"1 293548 5\", \"12059 259855 5874875\", \"46981 105809 585858\", \"9889 1221 2442\", \"100500 200600 300700\", \"318476 318476 318476\", \"23985 3353...
rating_<=1200
{ "id": "599A", "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": "Tracy gives Charlie a [Directed Acyclic Graph] with ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 1 1\\n5 3 3\\n\"], \"outputs\": [\"3\\n4\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-7251", "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": "Prime numbers are arranged in a ordered list U$U$, i...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"1\", \"2\"]], \"outputs\": [[\"3\", \"8\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-3019", "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": "You are given the string S . Compress the string when...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"aaABBb\\\"\", \"S = \\\"aaacca\\\"\"], \"outputs\": [\"\\\"3a3b\\\"\", \"\\\"3a2c1a\\\"\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3449", "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 two integers N$N$ and M$M$. You have t...
code
{ "ground_truth": "{\"inputs\": [[\"2\", \"3 3\", \"4 2\", \"\"]], \"outputs\": [[\"9 1 0\", \"1 0 2\", \"7 5 8\", \"2 2\", \"3 0\", \"1 1\", \"0 1\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-6723", "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": "Each item in the game has a level. The higher the le...
code
{ "ground_truth": "{\"inputs\": [\"4\\nsword weapon 10 2 3 2\\npagstarmor armor 0 15 3 1\\niceorb orb 3 2 13 2\\nlongbow weapon 9 1 2 1\\n5\\nmike gladiator 5 longbow\\nbobby sentry 6 pagstarmor\\npetr gladiator 7 iceorb\\nteddy physician 6 sword\\nblackjack sentry 8 sword\", \"4\\nsword weapon 10 2 3 2\\npagstarmor ...
rating_>1900
{ "id": "105C", "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": "On her way to programming school tiger Dasha faced h...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n\", \"2 3\\n\", \"0 0\\n\", \"1 0\\n\", \"0 5\\n\", \"100 98\\n\", \"62 39\\n\", \"100 99\\n\", \"99 100\\n\", \"100 100\\n\", \"57 57\\n\", \"74 73\\n\", \"0 100\\n\", \"89 25\\n\", \"0 1\\n\", \"100 0\\n\", \"98 100\\n\", \"9 9\\n\", \"85 95\\n\", \"5 4\\n\", \"2 2\\n\", \"2...
rating_<=1200
{ "id": "761_A. Dasha and Stairs", "rating": 1000, "split": "confidence_train", "sub_source": "rating_<=1200" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Find the maximum possible sum of the digits (in base...
code
{ "ground_truth": "{\"inputs\": [\"3141592653589793\", \"100\", \"9995\", \"1265641936938969\", \"101\", \"613\", \"1180\", \"2005985506723837\", \"78\", \"813322357948504\", \"127248513971408\", \"46390584841058\", \"51\", \"67784328360011\", \"89\", \"34\", \"307201070613497\", \"2\", \"1909031865550\", \"1\", \"30...
none
{ "id": "p03427 AtCoder Grand Contest 021 - Digit Sum 2", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Three years have passes and nothing changed. It is s...
code
{ "ground_truth": "{\"inputs\": [\"5\\n0 0 1 0 0\\n\", \"4\\n1 0 0 1\\n\", \"5\\n1 1 0 0 0\\n\", \"3\\n0 1 0\\n\", \"16\\n0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0\\n\", \"250\\n1 0 1 1 0 1 0 1 1 1 1 1 1 0 0 1 1 1 0 1 0 0 1 1 1 1 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0 0 1 0 1 0 0 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 0 1 0 0 0 1 1 1 0 0 0 ...
EASY
{ "id": "taco-train-6444", "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 Little Elephant loves permutations of integers f...
code
{ "ground_truth": "{\"inputs\": [\"2 1\\n1 2\\n1 2\\n\", \"4 3\\n1 3 2 4\\n1 2\\n2 3\\n1 4\\n\", \"7 4\\n7 6 4 2 1 5 3\\n1 3\\n2 1\\n7 2\\n3 5\\n\", \"10 1\\n1 2 3 4 5 6 7 8 9 10\\n1 10\\n\", \"9 20\\n9 8 7 6 5 4 3 2 1\\n4 6\\n9 4\\n5 9\\n6 8\\n1 9\\n5 8\\n6 9\\n7 3\\n1 9\\n8 3\\n4 5\\n9 6\\n3 8\\n4 1\\n1 2\\n3 2\\n4...
VERY_HARD
{ "id": "taco-train-16606", "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": "The 7 puzzle consists of 8 square cards and a frame ...
code
{ "ground_truth": "{\"inputs\": [\"0 1 2 3 4 5 6 7\\n1 0 2 3 4 5 6 7\\n7 6 5 4 3 2 1 0\", \"1 0 2 3 4 5 6 7\\n1 0 2 3 4 5 6 7\\n7 6 5 4 3 2 1 0\", \"0 1 2 3 4 5 6 7\\n0 1 2 3 4 5 6 7\\n7 6 5 4 3 2 1 0\", \"1 0 2 3 4 5 6 7\\n1 0 2 3 4 5 6 7\\n7 6 5 4 3 2 1 0\"], \"outputs\": [\"0\\n1\\n28\", \"1\\n1\\n28\\n\", \"0\\n0...
none
{ "id": "p00121 Seven Puzzle", "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 is a grid with $n$ rows and $m$ columns, and t...
code
{ "ground_truth": "{\"inputs\": [\"3\\n6 10\\n.*.*....*.\\n.*.......*\\n...o....o.\\n.*.*....*.\\n..........\\n.o......o*\\n2 9\\n...***ooo\\n.*o.*o.*o\\n5 5\\n*****\\n*....\\n*****\\n....*\\n*****\\n\", \"1\\n2 7\\n.*.*.**\\n*.*.**.\\n\", \"3\\n6 10\\n.*.*....*.\\n.*.......*\\n...o....o.\\n.*.*....*.\\n..........\\n...
EASY
{ "id": "taco-test-177", "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 a game designer and want to make an obstacle...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n4 2 1 2\\n2\\n3 1\\n\"], \"outputs\": [\"2 4 1 2 \\n1 3\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3828", "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": "Arpa is researching the Mexican wave.\n\nThere are *...
code
{ "ground_truth": "{\"inputs\": [\"10 5 3\", \"10 5 7\", \"10 5 12\", \"840585600 770678331 788528791\", \"25462281 23343504 8024619\", \"723717988 205757169 291917494\", \"27462087 20831796 15492397\", \"966696824 346707476 1196846860\", \"290274403 41153108 327683325\", \"170963478 151220598 222269210\", \"14264008...
rating_<=1200
{ "id": "851A", "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": "You are given a string s, consisting of small Latin ...
code
{ "ground_truth": "{\"inputs\": [\"abcd\\n\", \"abc\\n\", \"xxxyxxx\\n\", \"xxxxxxxxxxfxxxxxxxxxxxxxxxxxxxxxxxxxxxrxtxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxexxxxmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxoxxxxxxxxxxexxxxxxxxixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxoxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxtxxxxxxxxxxxxxxxx...
rating_1201-1400
{ "id": "124_C. Prime Permutation", "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": "Vasya has got two number: *a* and *b*. However, Vasy...
code
{ "ground_truth": "{\"inputs\": [\"5 4 5\", \"12 11 1\", \"260 150 10\", \"78843 5684 42717\", \"93248 91435 1133\", \"100000 10 64479\", \"99999 21 73839\", \"99991 623 36438\", \"99999 334 94854\", \"99252 9827 84849\", \"99313 9833 10561\", \"94885 55815 11417\", \"99492 58525 53481\", \"99858 28531 79193\", \"991...
rating_1201-1400
{ "id": "260A", "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": "Problem\n\nThere are N villages. Each village is num...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\n1 4\\n2 3\", \"5 0\", \"10 5\\n3 4\\n1 2\\n9 6\\n2 6\\n2 9\", \"3 1\\n1 2\", \"3 3\\n1 2\\n2 3\\n3 1\", \"3 2\\n1 2\\n2 3\", \"5 4\\n1 2\\n2 3\\n3 4\\n4 5\", \"4 0\", \"10 5\\n3 4\\n1 2\\n9 6\\n3 6\\n2 9\", \"3 1\\n1 3\", \"5 3\\n1 2\\n2 3\\n3 1\", \"8 4\\n1 2\\n2 3\\n3 4\\n4 ...
none
{ "id": "p01061 Community Integration", "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 squares arranged in a row.\nThe squares ...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n1 3 3\\n\", \"4 2\\n1 3 1\\n2 4 2\\n\", \"1 3\\n1 1 1\\n1 1 2\\n1 1 3\\n\", \"8 10\\n2 6 2\\n5 5 1\\n3 5 2\\n4 7 3\\n4 4 1\\n2 3 1\\n7 7 1\\n1 5 2\\n1 7 3\\n3 4 2\\n\", \"296 296\\n137 238 3\\n42 253 3\\n51 252 3\\n4 148 3\\n10 293 3\\n130 240 3\\n95 201 3\\n22 247 3\\n10 176 ...
VERY_HARD
{ "id": "taco-train-10752", "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": "Everybody knows that the capital of Bergeria is conn...
code
{ "ground_truth": "{\"inputs\": [\"1 1\\n2 1 3\", \"5 70\\n200 170 40\"], \"outputs\": [\"8.965874696353\", \"2.500000000000\"]}", "style": "rule" }
EASY
{ "id": "taco-train-23755", "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": "inner \n\nThe inner tool returns the inner product ...
code
{ "ground_truth": "{\"inputs\": [\"0 1\\n2 3\\n\"], \"outputs\": [\"3\\n[[0 0]\\n [2 3]]\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-6825", "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 cows playing poker at a table. For the c...
code
{ "ground_truth": "{\"inputs\": [\"6\\nAFFAAA\\n\", \"3\\nAFI\\n\", \"3\\nFFF\\n\", \"3\\nFIF\\n\", \"3\\nAAA\\n\", \"3\\nIII\\n\", \"3\\nIIA\\n\", \"3\\nAFF\\n\", \"5\\nFAFFF\\n\", \"3\\nIAA\\n\", \"3\\nIIF\\n\", \"2\\nFA\\n\", \"2\\nFF\\n\", \"2\\nIF\\n\", \"5\\nAAAAI\\n\", \"5\\nIIIIF\\n\", \"10\\nAAAAAAAAAA\\n\",...
EASY
{ "id": "taco-train-6722", "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": "Vlad likes to eat in cafes very much. During his lif...
code
{ "ground_truth": "{\"inputs\": [\"6\\n2 1 2 2 4 1\\n\", \"5\\n1 3 2 1 2\\n\", \"2\\n2018 2017\\n\", \"11\\n1 1 1 1 1 1 1 1 1 1 1\\n\", \"5\\n100 1000 1000 1000 1000\\n\", \"2\\n200000 1\\n\", \"1\\n200000\\n\", \"3\\n2 100 2\\n\", \"5\\n20000 1 2 3 4\\n\", \"3\\n5 5 5\\n\", \"2\\n10 1\\n\", \"1\\n0\\n\", \"8\\n20000...
rating_<=1200
{ "id": "886_B. Vlad and Cafes", "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": "Connect the countless points with lines, till we rea...
code
{ "ground_truth": "{\"inputs\": [\"5\\n7 5 8 6 9\", \"5\\n-1 -2 0 0 -5\", \"5\\n5 4 3 2 1\", \"5\\n1000000000 0 0 0 0\", \"5\\n1000000000 1 0 -999999999 -1000000000\", \"3\\n998 244 353\", \"3\\n-1000000000 0 1000000000\", \"5\\n-1 -1 -1 -1 1\", \"4\\n-9763 530 3595 6660\", \"4\\n-253090305 36298498 374072642 7118467...
rating_1401-1600
{ "id": "849B", "rating": 1600, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Ayrat has number n, represented as it's prime factor...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 3 2\\n\", \"2\\n2 3\\n\", \"5\\n7 5 2 3 13\\n\", \"5\\n11 7 11 7 11\\n\", \"10\\n3 3 3 3 3 3 3 3 3 3\\n\", \"4\\n3 3 3 5\\n\", \"67\\n98929 19079 160079 181891 17599 91807 19079 98929 182233 92647 77477 98929 98639 182233 181891 182233 160079 98929 19079 98639 114941 98929 161...
rating_>1900
{ "id": "615_D. Multipliers", "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": "It’s well know fact among cats that digits 4 and 7 a...
code
{ "ground_truth": "{\"inputs\": [\"10\\n74777447744477747774477774774447744474444444774474444447474744744447747774747474744747774777774444777774747474447777747444444444747747447477774747777447444744777777444774747774774777474747777774447474477474777747474474477477474747447747777444474477474777777777474744777474477444...
MEDIUM_HARD
{ "id": "taco-train-24404", "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": "An array of integers $p_1, p_2, \\dots, p_n$ is call...
code
{ "ground_truth": "{\"inputs\": [\"3\\n-2 1\\n\", \"5\\n1 1 1 1\\n\", \"4\\n-1 2 2\\n\", \"3\\n-1 1\\n\", \"3\\n2 1\\n\", \"3\\n1 0\\n\", \"3\\n1 -1\\n\", \"3\\n-1 -2\\n\", \"3\\n-2 2\\n\", \"4\\n2 -3 -3\\n\", \"4\\n1 3 -3\\n\", \"4\\n-3 1 -2\\n\", \"4\\n0 3 0\\n\", \"4\\n-1 -1 1\\n\", \"4\\n2 1 1\\n\", \"5\\n-2 1 4 ...
MEDIUM
{ "id": "taco-train-4413", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You all know the Dirichlet principle, the point of w...
code
{ "ground_truth": "{\"inputs\": [\"2 2 10\", \"5 5 16808\", \"3 1 4\", \"1 4 10\", \"1 1 2\", \"1 1 3\", \"1 5 2\", \"5 1 7\", \"5 1 24\", \"5 1 25\", \"5 1 26\", \"2 2 5\", \"2 2 10\", \"2 2 11\", \"2 2 17\", \"3 2 27\", \"3 2 81\", \"3 2 82\", \"2 3 10\", \"2 3 32\", \"2 3 34\", \"3 4 243\", \"3 4 256\", \"3 4 1000...
rating_>1900
{ "id": "39E", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Raju is very much interested in winning money throug...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4\\n1 10 100\\n10 20 100\\n20 30 100\\n30 40 100\\n4\\n1 10 50\\n10 20 100\\n20 30 100\\n30 40 100\\n\\nSAMPLE\", \"10\\n45\\n269876887 287890694 61\\n891455470 911442875 95\\n441012503 475998809 29\\n747404821 775131142 38\\n442552118 456806149 54\\n509333872 539796200 86\\n657...
none
{ "id": "lottery-tickets-1", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Polycarp has $x$ of red and $y$ of blue candies. Usi...
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...
HARD
{ "id": "taco-train-2571", "rating": null, "split": "confidence_train", "sub_source": "HARD" }