data_source
stringclasses
3 values
prompt
listlengths
2
2
ability
stringclasses
1 value
reward_model
dict
sub_source
stringclasses
12 values
extra_info
dict
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Example\n\nInput\n\n3 3 4\n1 2 1 1\n2 3 2 4\n3 1 1 1...
code
{ "ground_truth": "{\"inputs\": [\"3 3 4\\n1 2 1 1\\n2 3 2 4\\n3 1 1 1\", \"3 3 4\\n1 2 1 1\\n2 3 3 4\\n3 1 1 1\", \"3 3 4\\n1 2 1 1\\n2 3 3 5\\n3 1 1 1\", \"3 3 4\\n2 2 1 1\\n2 3 3 5\\n3 1 1 0\", \"3 3 4\\n1 2 1 1\\n2 3 1 4\\n3 1 1 1\", \"3 3 7\\n2 2 1 1\\n2 3 3 5\\n3 1 1 1\", \"3 3 2\\n1 2 1 1\\n2 3 1 4\\n3 1 1 1\"...
none
{ "id": "p01823 Marching Course", "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": "Let's call an array $t$ dominated by value $v$ in th...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1\\n1\\n6\\n1 2 3 4 5 1\\n9\\n4 1 2 4 5 4 3 2 1\\n4\\n3 3 3 3\\n\", \"1\\n2\\n2 2\\n\", \"1\\n11\\n1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n12\\n1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n11\\n1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n12\\n1 1 1 1 1 1 1 1 1 1 1 1\\n\", \"1\\n2\\n2 2\\n\", \"1\\n11\\n...
EASY
{ "id": "taco-train-8531", "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": "Your are given a string $S$ containing only lowercas...
code
{ "ground_truth": "{\"inputs\": [[\"3\", \"abcd\", \"4\", \"a b c d\", \"aabbbcccdddd\", \"4\", \"a b c d\", \"acd\", \"3\", \"a b d\"]], \"outputs\": [[\"1\", \"1\", \"0\"]]}", "style": "rule" }
UNKNOWN_DIFFICULTY
{ "id": "taco-train-25095", "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": "A round is a musical arrangement in which two or mor...
code
{ "ground_truth": "{\"inputs\": [\"2 16\\nHot cross buns! = Hot cross buns! =\\n4 4 4 4 4 4 4 4\\nOne a pen- ny, Two a pen- ny, Hot cross buns! =\\n2 2 2 2 2 2 2 2 4 4 4 4\\n\", \"5 32\\nAnd ev- ry-\\n1 1 1\\none neath a vine and fig tree, = shall live in\\n2 1 1 2 2 2 2 1 1 1 1\\npeace and un- a- fraid. =\\n2 2 2 2 ...
HARD
{ "id": "taco-train-1563", "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": "There's a new security company in Paris, and they dec...
code
{ "ground_truth": "{\"fn_name\": \"show_me\", \"inputs\": [[\"Francis\"], [\"Jean-Eluard\"], [\"Le Mec\"], [\"Bernard-Henry-Levy\"], [\"Meme Gertrude\"], [\"A-a-a-a----a-a\"], [\"Z-------------\"], [\"Jean-luc\"], [\"Jean--Luc\"], [\"JeanLucPicard\"], [\"-Jean-Luc\"], [\"Jean-Luc-Picard-\"]], \"outputs\": [[true], [t...
EASY
{ "id": "taco-train-8260", "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 computer Science there is common need to generate...
code
{ "ground_truth": "{\"inputs\": [\"1\\n2\\n\\nSAMPLE\"], \"outputs\": [\"2\"]}", "style": "rule" }
none
{ "id": "random-shuffle", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given n × m table. Each cell of the table is...
code
{ "ground_truth": "{\"inputs\": [\"1 1\\n0\\n\", \"2 3\\n1 0 1\\n0 1 0\\n\", \"2 2\\n1 1\\n1 1\\n\", \"1 10\\n0 0 0 0 0 0 0 0 0 0\\n\", \"11 1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n1\\n\", \"10 11\\n1 1 0 1 1 0 0 0 1 0 0\\n1 0 0 1 1 1 0 0 1 1 0\\n0 0 1 0 1 1 0 1 0 1 1\\n0 1 1 1 0 1 0 1 0 0 0\\n1 1 1 1 1 1 1 0 1 0...
EASY
{ "id": "taco-train-5128", "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": "# Sort an array by value and index\n\nYour task is to...
code
{ "ground_truth": "{\"fn_name\": \"sort_by_value_and_index\", \"inputs\": [[[1, 2, 3, 4, 5]], [[23, 2, 3, 4, 5]], [[26, 2, 3, 4, 5]], [[9, 5, 1, 4, 3]]], \"outputs\": [[[1, 2, 3, 4, 5]], [[2, 3, 4, 23, 5]], [[2, 3, 4, 5, 26]], [[1, 9, 5, 3, 4]]]}", "style": "rule" }
EASY
{ "id": "taco-train-9053", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given m strings and a tree on n nodes. Each ...
code
{ "ground_truth": "{\"inputs\": [\"2 5 3\\n1 2 a\\naab\\nabab\\naaa\\nb\\na\\n2 1 1 5\\n1 2 1 3\\n2 1 3 5\\n\", \"9 5 6\\n1 2 a\\n2 7 c\\n1 3 b\\n3 4 b\\n4 6 b\\n3 5 a\\n5 8 b\\n5 9 c\\nababa\\ncabbb\\nbac\\nbbbac\\nabacaba\\n2 7 1 4\\n2 5 1 5\\n6 3 4 4\\n6 9 4 5\\n5 7 3 5\\n5 3 1 5\\n\", \"9 5 6\\n1 2 a\\n2 7 c\\n1 ...
rating_>1900
{ "id": "1608_G. Alphabetic Tree", "rating": 3500, "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": "Kitahara Haruki has bought n apples for Touma Kazusa...
code
{ "ground_truth": "{\"inputs\": [\"4\\n100 100 100 200\\n\", \"3\\n100 200 100\\n\", \"9\\n100 100 100 200 100 100 200 100 200\\n\", \"3\\n100 100 100\\n\", \"7\\n200 200 200 100 200 200 200\\n\", \"100\\n100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 1...
rating_<=1200
{ "id": "433_A. Kitahara Haruki's Gift", "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": "Count the given numbers on your fingers and find the ...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 6\"], \"outputs\": [\"3\", \"4\"]}", "style": "rule" }
EASY
{ "id": "taco-train-1642", "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": "The jet's speed is changed after every mile covered o...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\", \"N = 5\"], \"outputs\": [\"16\", \"81\"]}", "style": "rule" }
EASY
{ "id": "taco-train-21362", "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": "Bike loves looking for the second maximum element in...
code
{ "ground_truth": "{\"inputs\": [\"5\\n9 8 3 5 7\\n\", \"5\\n5 2 1 4 3\\n\", \"10\\n29272229 8752316 10025994 52398694 57994948 49609605 28150935 66061676 44865054 87041483\\n\", \"10\\n3106954 3413954 3854371 85952704 17834583 20954227 58810981 7460648 97908613 97965110\\n\", \"10\\n4547989 39261040 94929326 3813145...
rating_1601-1900
{ "id": "280_B. Maximum Xor Secondary", "rating": 1800, "split": "confidence_train", "sub_source": "rating_1601-1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "String can be called correct if it consists of chara...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1001\\n\", \"1\\n1\\n\", \"5\\n11100\\n\", \"2\\n11\\n\", \"100\\n1110111100001111011111111010110011111111011110000111101101011100110110001011000000101010110101011100\\n\", \"100\\n11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...
rating_<=1200
{ "id": "976_A. Minimum Binary Number", "rating": 800, "split": "confidence_train", "sub_source": "rating_<=1200" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You got a box with a combination lock. The lock has ...
code
{ "ground_truth": "{\"inputs\": [\"3\\n579\", \"4\\n2014\", \"1\\n1\", \"3\\n039\", \"4\\n4444\", \"5\\n46802\", \"10\\n4447444444\", \"10\\n5810438174\", \"30\\n027027027027027027027027027027\", \"50\\n41012516454101251645410125164541012516454101251645\", \"72\\n464553044645330446455304464553064645530445455304464553...
rating_1401-1600
{ "id": "496B", "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": "It was exam time in pesce, mandya and Rubal was feel...
code
{ "ground_truth": "{\"inputs\": [\"2\\n9\\n5 4 2 8 3 1 7 9\\n5\\n1 5 2 4\", \"2\\n9\\n5 4 2 8 3 1 7 9\\n5\\n1 5 2 3\", \"2\\n9\\n5 6 2 8 3 1 7 9\\n5\\n1 5 2 4\", \"2\\n9\\n5 6 2 8 3 1 7 9\\n5\\n1 5 3 4\", \"2\\n9\\n5 4 2 8 3 1 7 9\\n5\\n1 5 3 4\", \"2\\n9\\n5 4 2 8 6 1 7 9\\n5\\n1 5 2 3\", \"2\\n9\\n5 4 2 8 3 1 7 6\\...
none
{ "id": "icq4", "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": "We have 3N colored balls with IDs from 1 to 3N. A st...
code
{ "ground_truth": "{\"inputs\": [\"3\\nRRRGGGBBB\", \"5\\nBBRGRRGRGGRBBGB\", \"3\\nBBBGGGRRR\", \"3\\nRRRBGGBGB\", \"3\\nBRRGGGRBB\", \"5\\nBGRGRRBRGGRBBGB\", \"3\\nBGRGGRRBB\", \"5\\nBGBBRGGRGRRGRBB\", \"3\\nRGRBGRBGB\", \"5\\nBGRGRRBBGGRBRGB\", \"5\\nBRRBRGGBBGRGRGB\", \"5\\nBRRBRBGBGGRGRGB\", \"3\\nBBBGGRRGR\", \"...
none
{ "id": "p02940 AtCoder Grand Contest 037 - RGB Balls", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given a string s. You need to reverse the str...
code
{ "ground_truth": "{\"fn_name\": \"reverseWord\", \"inputs\": [\"s = Geeks\", \"s = for\"], \"outputs\": [\"skeeG\", \"rof\"]}", "style": "rule" }
EASY
{ "id": "taco-train-15638", "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": "A soldier wants to buy w bananas in the shop. He has...
code
{ "ground_truth": "{\"inputs\": [\"3 17 4\\n\", \"1 2 1\\n\", \"1 1 1\\n\", \"1 5 6\\n\", \"1 1000000000 1\\n\", \"1000 0 1000\\n\", \"859 453892 543\\n\", \"1000 1000000000 1000\\n\", \"1000 500500000 1000\\n\", \"1000 500500001 1000\\n\", \"1000 500499999 1000\\n\", \"634 87973 214\\n\", \"432 10000 241\\n\", \"111...
EASY
{ "id": "taco-train-4203", "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": "Tower of JOIOI\n\nThe JOIOI Tower is a game that use...
code
{ "ground_truth": "{\"inputs\": [\"6\\nJOIIOI\", \"6\\nIOIIOJ\", \"6\\nIJIJOO\", \"6\\nJOIJOI\", \"6\\nIOIIJO\", \"6\\nOJIIOI\", \"6\\nOJJIOI\", \"6\\nIOIJJO\", \"6\\nIJIIOO\", \"6\\nJOIIJO\", \"6\\nIOOIJI\", \"6\\nOOIIJI\", \"6\\nOJKIOI\", \"6\\nOOJIJI\", \"6\\nJOIIIO\", \"6\\nJOIJOJ\", \"6\\nIJIOOI\", \"6\\nHJIJOO\...
none
{ "id": "p00529 Tower of JOIOI", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given an integer input N and you have to find...
code
{ "ground_truth": "{\"inputs\": [\"N = 10\", \"N = 9\"], \"outputs\": [\"YES\", \"NO\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9280", "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 Statement\n\nIn the headquarter building of ...
code
{ "ground_truth": "{\"inputs\": [\"3 10 3\\n000 0000000000\\n110 0000001111\\n101 1111111100\\n2 2 0\\n1 1 0\\n2 1 1\\n01 1\\n11 11 10\\n10000000000 10000000000\\n11000000000 01000000000\\n01100000000 00100000000\\n00110000000 00010000000\\n00011000000 00001000000\\n00001100000 00000100000\\n00000110000 00000010000\\...
none
{ "id": "p01702 Unknown Switches", "rating": 0, "split": "confidence_train", "sub_source": "none" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given two positive integers a and b. In one ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n10 4\\n13 9\\n100 13\\n123 456\\n92 46\\n\", \"1\\n515151 2\\n\", \"21\\n1 3218\\n28 10924\\n908802 141084\\n82149 9274\\n893257 10248\\n2750048 802705\\n2857 142\\n980 209385\\n1 3218\\n28 10924\\n908802 141084\\n82149 9274\\n893257 10248\\n2750048 802705\\n2857 142\\n980 20938...
rating_<=1200
{ "id": "1328_A. Divisibility Problem", "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": "On the Internet, data is divided into packets, and e...
code
{ "ground_truth": "{\"inputs\": [\"7\\n1 4 2 5 4 3\\n2 1 5\\n3 1 6\\n4 1 7\\n5 2 7 6\\n6 1 1\\n7 0\\n6\\n1 2 2\\n1 5 3\\n1 2 1\\n5 1 3\\n6 3 3\\n1 7 4\", \"7\\n1 4 2 5 4 3\\n2 1 5\\n3 1 6\\n4 1 7\\n5 2 7 6\\n6 1 1\\n7 0\\n6\\n1 2 2\\n1 5 3\\n1 2 0\\n5 1 3\\n6 3 3\\n1 7 4\", \"7\\n1 4 2 5 4 6\\n2 1 5\\n3 1 6\\n4 1 7\\...
none
{ "id": "p00144 Packet Transportation", "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 of unique integers, each integer is st...
code
{ "ground_truth": "{\"fn_name\": \"numFactoredBinaryTrees\", \"inputs\": [[[2, 4]]], \"outputs\": [3]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-23150", "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": "Snuke has X+Y balls. X of them have an integer A wri...
code
{ "ground_truth": "{\"inputs\": [\"3\\n3 3 4 4 5\\n2 1 1 5 3\\n3 1 4 2 5\", \"3\\n3 3 4 8 5\\n2 1 1 5 3\\n3 1 4 2 5\", \"3\\n3 3 4 8 5\\n2 2 1 5 3\\n3 1 4 2 5\", \"3\\n3 3 4 7 5\\n2 1 1 10 3\\n3 1 4 2 5\", \"3\\n3 3 4 7 5\\n2 1 1 10 3\\n3 1 1 2 5\", \"3\\n1 3 4 7 5\\n2 2 1 10 3\\n3 1 1 0 8\", \"3\\n1 3 7 7 5\\n0 2 1 ...
none
{ "id": "p02656 AtCoder Grand Contest 045 - Division into Multiples", "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 have been recently hired as a developer in CodeC...
code
{ "ground_truth": "{\"inputs\": [[\"1\", \"5\", \"1 3\", \"4 4\", \"4 10\", \"1 11\", \"2 7\"]], \"outputs\": [[\"2\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-4736", "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": "This problem consists of three subproblems: for solv...
code
{ "ground_truth": "{\"inputs\": [\"10 2\\n2\\n7\\n3\\n9\\n8\\n7\\n9\\n7\\n1\\n9\", \"10 5\\n2\\n7\\n3\\n9\\n8\\n7\\n9\\n7\\n1\\n9\", \"2 1\\n2\\n1\"], \"outputs\": [\"15\", \"21\", \"0\"]}", "style": "rule" }
none
{ "id": "391F1", "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": "Raju has a crush on girl of his class. He wanted to ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n5 2 3 4 1\\n4\\n10\\n4\\n2\\n12\\n\\nSAMPLE\", \"25 \\n2145 4578 5124 5689 2145 2354 1254 2254 7856 9875 2125 7856 2145 5896 6357 875 458 7512 47896 254 1 578 2587 5421 8745\\n10\\n876\\n5478\\n1333\\n16601\\n6358\\n48354\\n25478\\n15562\\n3383\\n2587\", \"25 \\n2145 4578 5124 5...
none
{ "id": "choclate-weight", "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": "Mad scientist Mike has applied for a job. His task i...
code
{ "ground_truth": "{\"inputs\": [\"6 11\\n1 2 10\\n1 6 8\\n2 3 4\\n2 5 2\\n2 6 3\\n3 4 5\\n3 5 4\\n3 6 2\\n4 5 7\\n4 6 2\\n5 6 3\\n\", \"10 17\\n9 1 8\\n7 10 1\\n5 4 4\\n1 10 1\\n3 10 1\\n10 5 1\\n6 3 6\\n10 4 1\\n4 6 5\\n7 5 3\\n2 10 1\\n9 3 7\\n9 10 1\\n8 10 1\\n10 6 1\\n2 7 2\\n2 8 1\\n\", \"2 1\\n1 2 1\\n\", \"5 ...
rating_>1900
{ "id": "343_E. Pumping Stations", "rating": 2900, "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": "Tuzik and his master Vanka are playing some unusual ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1\\n1 2\", \"2\\n1 0\\n1 2\", \"2\\n2 0\\n-1 1\", \"2\\n7 1\\n1 0\", \"2\\n1 1\\n1 -1\", \"2\\n1 0\\n0 2\", \"2\\n2 0\\n0 2\", \"2\\n2 0\\n-1 2\", \"2\\n2 0\\n0 1\", \"2\\n2 0\\n1 1\", \"2\\n2 0\\n1 2\", \"2\\n2 1\\n1 2\", \"2\\n4 0\\n1 2\", \"2\\n7 0\\n1 2\", \"2\\n7 0\\n1 0\...
none
{ "id": "puppygm", "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": "As you know, the game of \"Nim\" is played with n pi...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 2\\n1 2\\n\", \"2\\n1 1\\n1 1\\n\", \"3\\n0 4\\n1 5\\n2 3\\n\", \"10\\n955 199\\n618 994\\n485 602\\n335 433\\n116 562\\n500 553\\n301 990\\n668 720\\n753 271\\n549 124\\n\", \"10\\n40 61\\n67 7\\n90 42\\n86 68\\n41 73\\n97 35\\n8 71\\n68 12\\n67 40\\n35 74\\n\", \"3\\n0 0\\n0...
rating_>1900
{ "id": "662_A. Gambling Nim", "rating": 2400, "split": "confidence_train", "sub_source": "rating_>1900" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Vasya has got a magic matrix a of size n × m. The ro...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n1 5 7\\n2 3 1\\n1 2\\n\", \"1 4\\n1 1 2 1\\n1 3\\n\", \"3 3\\n2 0 1\\n1 0 0\\n0 0 0\\n1 1\\n\", \"13 8\\n5 7 7 7 9 1 10 7\\n2 10 5 4 5 4 9 1\\n8 6 10 8 10 9 9 5\\n7 10 9 8 6 7 5 8\\n1 6 4 2 4 9 3 10\\n10 4 4 6 5 6 6 4\\n7 5 3 9 8 5 1 3\\n9 6 1 9 10 5 3 7\\n6 3 7 6 9 9 1 6\\n8 ...
rating_>1900
{ "id": "1042_E. Vasya and Magic Matrix", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A National Geographic film crew is visiting the ZOO ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 1\\n1 1\\n\", \"2\\n1 99999\\n99999 99999\\n\", \"3\\n1 1\\n3 2\\n4 3\\n\"], \"outputs\": [\"0.000\\n\", \"9999700002.000\\n\", \"0.500\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-4781", "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": "Chef is given a contract to build towers in Chefland...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 1\\n2 2\\n2 3\\n53 7\"], \"outputs\": [\"0\\n1\\n2\\n1\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-11060", "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": "In this Kata, we will calculate the **minumum positiv...
code
{ "ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[[1, 2, 8, 7]], [[2, 12, 3, 1]], [[4, 2, 8, 3, 1]], [[4, 2, 7, 3, 1]], [[4, 2, 12, 3]]], \"outputs\": [[4], [7], [19], [18], [1]]}", "style": "rule" }
EASY
{ "id": "taco-train-4473", "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": "An english word is given as input and it is modified ...
code
{ "ground_truth": "{\"inputs\": [\"S = \\\"GEEK\\\"\", \"S = \\\"ALL\\\"\"], \"outputs\": [\"EEKGAY\", \"ALL\"]}", "style": "rule" }
EASY
{ "id": "taco-train-607", "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": "Given a positive integer N, find a possible arrangem...
code
{ "ground_truth": "{\"inputs\": [\"5\\n1\\n2\\n3\\n4\\n5\", \"5\\n1\\n2\\n3\\n4\\n5\\n\", \"1\\n1\\n\", \"5\\n1\\n2\\n3\\n4\\n5\"], \"outputs\": [\"0 \\n0 1 \\n2 0 1 \\n0 1 3 2 \\n4 0 1 3 2 \", \"0 \\n0 1 \\n2 0 1 \\n0 1 3 2 \\n4 0 1 3 2 \", \"0\\n\", \"0 \\n0 1 \\n2 0 1 \\n0 1 3 2 \\n4 0 1 3 2 \"]}", "style": "rul...
VERY_HARD
{ "id": "taco-test-56", "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": "\"She loves me\", \"She loves me not\", \"She loves ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1\\n2\\n3\\n10\\n\\nSAMPLE\", \"64\\n159297998\\n24435194\\n36701392\\n69645530\\n38591177\\n150073105\\n171554925\\n4769107\\n48186188\\n92980498\\n202706670\\n253829104\\n235038229\\n5859136\\n125741147\\n48357310\\n268519617\\n169557272\\n29923942\\n206794813\\n35005212\\n247...
none
{ "id": "heartbroken-lala", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You are given a integer N and another integer K. You ...
code
{ "ground_truth": "{\"inputs\": [\"N = 3, K = 2\", \"N = 2, K = 3\"], \"outputs\": [\"7\", \"19\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9201", "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 JOI Institute has 2 ^ L venomous snakes, numbere...
code
{ "ground_truth": "{\"inputs\": [\"3 5\\n12345678\\n000\\n0??\\n1?0\\n?11\\n???\", \"3 5\\n12345678\\n000\\n0??\\n0?1\\n?11\\n???\", \"3 5\\n12345678\\n100\\n0??\\n0?1\\n?11\\n???\", \"3 5\\n12345678\\n000\\n0??\\n0?1\\n?01\\n???\", \"3 5\\n12345678\\n000\\n0??\\n0?1\\n0?1\\n???\", \"3 5\\n12345678\\n000\\n1??\\n1?0\...
none
{ "id": "p00574 Snake Escaping", "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": "Polycarpus has recently got interested in sequences ...
code
{ "ground_truth": "{\"inputs\": [\"2 6 12 11\\n\", \"3 6 81 9\\n\", \"2 3 5 1\\n\", \"397 24 21491 18004\\n\", \"65 101 43738 16242\\n\", \"550 5 88379 9433\\n\", \"0 0 16709 12233\\n\", \"0 0 23896 0\\n\", \"239 695 50503 18287\\n\", \"452 53 51476 50033\\n\", \"3 0 42953 1\\n\", \"1 1 2 0\\n\", \"937 859 7333 2141\...
rating_<=1200
{ "id": "172_B. Pseudorandom Sequence Period", "rating": 1200, "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": "Having read half of the book called \"Storm and Calm...
code
{ "ground_truth": "{\"inputs\": [\"Abo\", \"OEIS\", \"auBAAbeelii\", \"AaaBRAaaCAaaDAaaBRAaa\", \"EA\", \"BBBAABAABAABBBB\", \"b\", \"AABAABAABAA\", \"aaaaaaa\", \"AAAAAAABBB\", \"aabaaaaaaaaaaaaaaab\", \"aaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaabaaaaa...
rating_>1900
{ "id": "137E", "rating": 2000, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "A 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\\n\", \"10 3\\n1 1 1 1 2 1 1 1 1\\n\", \"2 1\\n0\\n\", \"2 1\\n5\\n\", \"10 4\\n0 0 6 2 7 1 6 4 0\\n\", \"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...
HARD
{ "id": "taco-train-2749", "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": "Recently Watson learned the concept of coprime numbe...
code
{ "ground_truth": "{\"inputs\": [\"1\\n5\\n2 3 2 3 2\\n\\nSAMPLE\", \"5\\n10\\n6 3 7 2 1 2 9 5 5 8\\n10\\n3 10 1 4 6 3 2 1 7 2\\n10\\n6 7 10 9 7 5 10 8 6 5\\n10\\n4 1 5 7 7 2 7 5 6 3\\n10\\n7 4 1 7 8 8 1 7 9 4\", \"10\\n50\\n30 9 21 27 20 34 13 30 10 22 41 35 14 2 26 26 1 35 29 18 9 40 16 10 24 49 26 28 48 23 28 21 9...
none
{ "id": "sherlock-and-coprime-subset", "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": "Little Robber Girl likes to scare animals in her zoo...
code
{ "ground_truth": "{\"inputs\": [\"4\\n2 1 4 3\\n\", \"7\\n36 28 57 39 66 69 68\\n\", \"5\\n1 2 1 2 1\\n\", \"78\\n7 3 8 8 9 8 10 9 12 11 16 14 17 17 18 18 20 20 25 22 27 26 29 27 35 35 36 36 37 37 38 38 40 39 42 42 48 46 49 49 58 50 60 58 65 61 68 66 69 69 69 69 70 69 71 71 77 73 78 77 80 79 85 83 86 86 86 86 88 87 ...
EASY
{ "id": "taco-train-19023", "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": "Consider sequences \\\\{A_1,...,A_N\\\\} of length N...
code
{ "ground_truth": "{\"inputs\": [\"100000 100000\", \"3 200\", \"3 2\", \"101000 100000\", \"3 224\", \"5 2\", \"101010 100000\", \"4 224\", \"5 1\", \"4 169\", \"4 227\", \"4 64\", \"7 2\", \"8 64\", \"5 0\", \"8 80\", \"8 5\", \"3 214\", \"3 3\", \"3 190\", \"14 2\", \"2 224\", \"4 168\", \"4 55\", \"4 82\", \"1 2\...
none
{ "id": "p02715 AtCoder Beginner Contest 162 - Sum of gcd of Tuples (Hard)", "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": "Vasya has recently bought some land and decided to s...
code
{ "ground_truth": "{\"inputs\": [\"1 2\\n2 2\\n\", \"2 3\\n1 2\\n2 3\\n\", \"6 6\\n2 1\\n3 2\\n2 5\\n3 3\\n5 1\\n2 1\\n\", \"100 1500\\n3 3\\n3 2\\n1 3\\n3 1\\n2 3\\n3 2\\n3 2\\n2 1\\n3 1\\n2 3\\n3 3\\n3 1\\n1 1\\n3 1\\n3 3\\n2 2\\n2 2\\n1 2\\n1 1\\n3 1\\n2 2\\n2 3\\n2 3\\n2 2\\n3 3\\n3 2\\n1 1\\n3 3\\n2 2\\n1 3\\n3 ...
rating_1601-1900
{ "id": "182_E. Wooden Fence", "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": "Everyone knows that agents in Valorant decide, who w...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1\\n2\\n1\\n3\\n3\\n102\\n4\\n2069\\n\", \"2\\n3\\n212\\n2\\n11\\n\", \"1\\n33\\n200000000000000000000000000000022\\n\", \"1\\n3\\n101\\n\", \"1\\n3\\n999\\n\", \"1\\n2\\n11\\n\", \"1\\n3\\n212\\n\", \"1\\n3\\n222\\n\", \"1\\n2\\n21\\n\", \"1\\n4\\n1212\\n\", \"4\\n1\\n2\\n1\\n3...
EASY
{ "id": "taco-test-441", "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 32 bit number N .Find the number you g...
code
{ "ground_truth": "{\"inputs\": [\"N=4289384\", \"N=1\"], \"outputs\": [\"4290677911\", \"4294967294\"]}", "style": "rule" }
EASY
{ "id": "taco-train-8207", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "There are n students who have taken part in an olymp...
code
{ "ground_truth": "{\"inputs\": [\"1000000000000 5\\n\", \"1000000000000 499999999999\\n\", \"18 2\\n\", \"9 10\\n\", \"1000000000000 1\\n\", \"1000000000000 32416187567\\n\", \"1000000000000 5915587276\\n\", \"216929598879 768233755932\\n\", \"999999999999 10000000000\\n\", \"1 1\\n\", \"999999999999 1000000000000\\...
rating_<=1200
{ "id": "818_A. Diplomas and Certificates", "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": "Given a positive integer n. Find three distinct posi...
code
{ "ground_truth": "{\"inputs\": [\"6\\n18\\n63\\n73\\n91\\n438\\n122690412\\n\", \"1\\n669278611\\n\", \"10\\n10\\n52\\n91\\n23\\n44\\n99\\n28\\n54\\n99\\n51\\n\", \"1\\n1000989070\\n\", \"10\\n10\\n52\\n91\\n46\\n44\\n99\\n28\\n54\\n99\\n51\\n\", \"6\\n18\\n63\\n73\\n91\\n726\\n122690412\\n\", \"1\\n1247459608\\n\",...
rating_<=1200
{ "id": "1617_B. GCD Problem", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string and number of rows ‘n’. Print the stri...
code
{ "ground_truth": "{\"inputs\": [\"str = \\\"ABCDEFGH\\\"\\nn = 2\", \"str = \\\"GEEKSFORGEEKS\\\"\\nn = 3\"], \"outputs\": [\"\\\"ACEGBDFH\\\"\", \"GSGSEKFREKEOE\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-12194", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "We have a weighted directed graph with N vertices nu...
code
{ "ground_truth": "{\"inputs\": [\"4\\n1 1 1\\n1 1 1\\n1 1 1\\n1 1 1\", \"3\\n2 1\\n1 4\\n3 3\", \"10\\n190587 2038070 142162180 88207341 215145790 38 2 5 20\\n32047998 21426 4177178 52 734621629 2596 102224223 5 1864\\n41 481241221 1518272 51 772 146 8805349 3243297 449\\n918151 126080576 5186563 46354 6646 491776 5...
none
{ "id": "p02966 AtCoder Grand Contest 036 - Negative Cycle", "rating": 0, "split": "confidence_train", "sub_source": "none" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string S of '(' and ')' parentheses, we add t...
code
{ "ground_truth": "{\"fn_name\": \"minAddToMakeValid\", \"inputs\": [[\"\\\"())\\\"\"]], \"outputs\": [1]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-14195", "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": "Rahul has set upon the quest for a new logo of his c...
code
{ "ground_truth": "{\"inputs\": [\"3\\n\\nSAMPLE\", \"18\", \"15\", \"14\", \"26\", \"3\\n\\nSAMQLE\", \"9\", \"36\", \"54\", \"4\", \"57\", \"0\", \"61\", \"1\", \"60\", \"2\", \"42\", \"24\", \"44\", \"56\", \"20\", \"34\", \"65\", \"38\", \"37\", \"72\", \"81\", \"59\", \"31\", \"21\", \"10\", \"8\", \"7\", \"3\\n...
none
{ "id": "rahuls-logo", "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": "Rohan is programmer. He designed a game called X-Gam...
code
{ "ground_truth": "{\"inputs\": [\"1\\n3\\n1 2 3\\n\\nSAMPLE\", \"1\\n3\\n1 2 3\\n\\nSAMPME\", \"1\\n3\\n1 2 -1\\n\\nSAMPME\", \"1\\n3\\n1 0 0\\n\\nSAMPME\", \"1\\n3\\n2 4 3\\n\\nSAMPME\", \"1\\n3\\n2 4 0\\n\\nEMPMAS\", \"1\\n3\\n1 4 0\\n\\nEMPMAS\", \"1\\n3\\n4 4 0\\n\\nEMPSAN\", \"1\\n3\\n4 14 0\\n\\nEMPSAN\", \"1\...
none
{ "id": "x-game", "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, return a string consisting of \"0\"...
code
{ "ground_truth": "{\"fn_name\": \"baseNeg2\", \"inputs\": [[2]], \"outputs\": [\"110\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-5544", "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 will be given two ASCII strings, `a` and `b`. You...
code
{ "ground_truth": "{\"fn_name\": \"highest_value\", \"inputs\": [[\"AaBbCcXxYyZz0189\", \"KkLlMmNnOoPp4567\"], [\"ABcd\", \"0123\"], [\"!\\\"?$%^&*()\", \"{}[]@~'#:;\"], [\"ABCD\", \"DCBA\"]], \"outputs\": [[\"KkLlMmNnOoPp4567\"], [\"ABcd\"], [\"{}[]@~'#:;\"], [\"ABCD\"]]}", "style": "rule" }
EASY
{ "id": "taco-train-5452", "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": "Alice has scored X marks in her test and Bob has sco...
code
{ "ground_truth": "{\"inputs\": [\"2 1\", \"1 2\"], \"outputs\": [\"Yes\", \"No\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4630", "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": "Your city has n junctions. There are m one-way roads...
code
{ "ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n3\\n1 2\\n2 3\\n3 2\\n\", \"5\\n2 8 0 6 0\\n6\\n1 4\\n1 3\\n2 4\\n3 4\\n4 5\\n5 1\\n\", \"10\\n1 3 2 2 1 3 1 4 10 10\\n12\\n1 2\\n2 3\\n3 1\\n3 4\\n4 5\\n5 6\\n5 7\\n6 4\\n7 3\\n8 9\\n9 10\\n10 9\\n\", \"2\\n7 91\\n2\\n1 2\\n2 1\\n\", \"10\\n1 1 1 1 1 1 1 2 2 2\\n15\\n2 ...
MEDIUM_HARD
{ "id": "taco-train-10005", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given a string s of length N, you have to tell whethe...
code
{ "ground_truth": "{\"inputs\": [\"s = \\\"aaa\\\"\", \"s = \\\"cbc\\\"\"], \"outputs\": [\"NO\", \"YES\"]}", "style": "rule" }
EASY
{ "id": "taco-train-499", "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": "F: Disordered Data Detection / Anomaly detection\n\n...
code
{ "ground_truth": "{\"inputs\": [\"7\\n4 1 10 5 7 7 3\\n5\\n2 5 0\\n3 6 1\\n3 6 2\\n1 7 2\\n1 7 5\", \"7\\n4 1 10 5 7 7 3\\n5\\n1 5 0\\n3 6 1\\n3 6 2\\n1 7 2\\n1 7 5\", \"7\\n3 1 10 5 7 1 3\\n5\\n1 5 0\\n3 6 1\\n3 6 2\\n1 7 2\\n1 7 5\", \"7\\n3 1 10 5 7 1 3\\n5\\n2 5 0\\n3 6 1\\n3 6 2\\n1 7 2\\n1 7 5\", \"7\\n3 1 10 ...
none
{ "id": "p01777 Disordered Data Detection", "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": "Kostya is playing the computer game Cookie Clicker. ...
code
{ "ground_truth": "{\"inputs\": [\"3 9\\n1 0\\n2 3\\n5 4\\n\", \"3 13\\n1 0\\n2 2\\n6 5\\n\", \"1 10000000000000000\\n1 0\\n\", \"3 6\\n1 0\\n2 2\\n5 4\\n\", \"20 6531\\n97 32\\n52 74\\n96 23\\n20 53\\n24 5\\n26 12\\n13 38\\n82 64\\n9 17\\n78 58\\n29 96\\n47 11\\n43 37\\n5 55\\n38 48\\n65 64\\n59 45\\n2 0\\n80 29\\n3...
rating_>1900
{ "id": "377_E. Cookie Clicker", "rating": 2800, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "There is a row of N walls in Geeksland. The king of G...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\\r\\ncolors[][] = {{14, 2, 11},\\r\\n {11, 14, 5},\\r\\n {14, 3, 10}}\", \"N = 2\\r\\ncolors[][] = {{1, 2, 3},\\r\\n {1, 4, 6}}\"], \"outputs\": [\"10\", \"3\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-21977", "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 n segments on a number line; each endp...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3 10\\n1 5\\n\", \"5\\n2 6\\n1 3\\n0 4\\n1 20\\n0 4\\n\", \"4\\n1 3\\n2 6\\n0 4\\n3 3\\n\", \"3\\n4 5\\n1 2\\n9 20\\n\", \"3\\n1 6\\n2 5\\n3 4\\n\", \"2\\n1 3\\n2 2\\n\", \"3\\n6 10\\n4 8\\n5 9\\n\", \"2\\n2 2\\n1 3\\n\", \"6\\n2 4\\n3 6\\n2 6\\n2 5\\n1 4\\n1 4\\n\", \"2\\n4 4\\...
rating_1401-1600
{ "id": "1029_C. Maximal Intersection", "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": "All modern mobile applications are divided into free...
code
{ "ground_truth": "{\"inputs\": [\"3 1\\n3 1\\n2 2\\n1 3\\n\", \"2 1\\n2 0\\n0 2\\n\", \"1 1\\n2 1\\n\", \"1 3\\n2 1\\n\", \"5 1\\n0 5\\n4 0\\n1 2\\n4 4\\n1 0\\n\", \"4 1\\n0 0\\n1 0\\n2 1\\n2 1\\n\", \"1 1\\n1 1\\n\", \"1 3\\n1 1\\n\", \"1 1\\n1 2\\n\", \"3 2\\n3 1\\n2 2\\n1 3\\n\", \"1 3\\n1 2\\n\", \"1 1\\n2 2\\n\...
rating_>1900
{ "id": "436_F. Banners", "rating": 3000, "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 three people sitting in a room - Alice, Bo...
code
{ "ground_truth": "{\"inputs\": [\"4\\n30 35 25\\n30 35 40\\n30 35 35\\n30 25 35\\n\"], \"outputs\": [\"Yes\\nNo\\nYes\\nNo\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-18559", "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 famous Russian nesting dolls named matryos...
code
{ "ground_truth": "{\"inputs\": [\"7\\n4 1\\n4 2\\n4 2\\n2 1\\n5 4\\n6 4\\n3 2\\n\", \"1\\n2 1\\n\", \"1\\n1000000000 999999999\\n\", \"10\\n17 15\\n5 4\\n18 16\\n13 12\\n19 17\\n3 1\\n12 10\\n5 3\\n18 16\\n11 10\\n\", \"10\\n19 17\\n15 14\\n10 7\\n15 14\\n5 2\\n13 10\\n20 18\\n13 10\\n6 4\\n16 15\\n\", \"10\\n12 11\...
HARD
{ "id": "taco-train-22078", "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 two numbers X and Y, and a range [L, R] where 1...
code
{ "ground_truth": "{\"inputs\": [\"X = 44, Y = 3 \\nL = 1, R = 5\", \"X = 16, Y = 2\\nL = 1, R = 3\"], \"outputs\": [\"47\", \"18\"]}", "style": "rule" }
EASY
{ "id": "taco-train-4078", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"3\\n4\\n1 2 3 4\\n4\\n1 -5 1 -5\\n6\\n-5 -1 -1 2 -2 -3\", \"3\\n4\\n1 2 3 7\\n4\\n1 -5 1 -5\\n6\\n-5 -1 -1 2 -2 -3\", \"3\\n4\\n1 2 3 8\\n4\\n1 -5 1 -5\\n6\\n-5 -1 -1 2 -2 -3\", \"3\\n4\\n1 2 1 8\\n4\\n1 -5 1 -5\\n6\\n-5 -1 -1 2 -2 -3\", \"3\\n4\\n1 2 3 7\\n4\\n1 -5 1 -5\\n6\\n-5 -1...
MEDIUM
{ "id": "taco-train-7994", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "You want to build a standard house of cards, but you ...
code
{ "ground_truth": "{\"fn_name\": \"house_of_cards\", \"inputs\": [[1], [2], [3]], \"outputs\": [[7], [15], [26]]}", "style": "rule" }
EASY
{ "id": "taco-train-2581", "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": "Two players, Player 1 and Player 2, are given an inte...
code
{ "ground_truth": "{\"inputs\": [\"N = 8\", \"N = 1\"], \"outputs\": [\"1\", \"1\"]}", "style": "rule" }
EASY
{ "id": "taco-train-9664", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array Arr[] that contains N integers (may be...
code
{ "ground_truth": "{\"inputs\": [\"N = 5\\nArr[] = {6, -3, -10, 0, 2}\", \"N = 6\\nArr[] = {2, 3, 4, 5, -1, 0}\"], \"outputs\": [\"180\", \"120\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-20833", "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": "Little Elephant from the Zoo of Lviv likes cards. He...
code
{ "ground_truth": "{\"inputs\": [\"2\\n3\\n1 2 3\\n4\\n1 1 3 2\", \"2\\n3\\n1 2 3\\n4\\n2 1 3 2\", \"2\\n3\\n1 2 1\\n7\\n2 1 3 2\", \"2\\n3\\n1 2 2\\n1\\n1 0 3 3\", \"2\\n5\\n1 2 3\\n4\\n2 1 3 2\", \"2\\n2\\n1 2 1\\n7\\n1 1 3 2\", \"2\\n3\\n1 2 1\\n8\\n1 1 3 3\", \"2\\n5\\n2 2 2\\n7\\n1 1 3 3\", \"2\\n4\\n1 2 2\\n7\\...
MEDIUM_HARD
{ "id": "taco-train-15550", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Alice got an array of length $n$ as a birthday prese...
code
{ "ground_truth": "{\"inputs\": [\"2 3\\n-1 3\\n0 0\\n-1 -4\", \"3 2\\n0 2\\n5 0\", \"8 8\\n-21 -60\\n-96 -10\\n-4 -19\\n-27 -4\\n57 -15\\n-95 62\\n-42 1\\n-17 64\", \"1 1\\n0 0\", \"100000 1\\n1000 1000\", \"11 1\\n0 -10\", \"3 1\\n1 -1\", \"1 2\\n-1 -1\\n-2 -2\", \"1 2\\n0 -1\\n0 1\", \"1 1\\n1 -2\", \"3 1\\n2 -1\"...
rating_1601-1900
{ "id": "1009C", "rating": 1700, "split": "confidence_train", "sub_source": "rating_1601-1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Read problems statements in Mandarin Chinese, Russia...
code
{ "ground_truth": "{\"inputs\": [\"2\\n4 4 1 1\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n0 0 0 0\\n4 4 1 1\\n0 1 1 0\\n0 1 1 0\\n0 1 1 0\\n1 0 0 1\"], \"outputs\": [\"5\\n-1\"]}", "style": "rule" }
HARD
{ "id": "taco-test-409", "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": "You are given a string $s$. You have to determine wh...
code
{ "ground_truth": "{\"inputs\": [\"8\\naaaabbb\\nbbaaaaabbb\\naaaaaa\\nabab\\na\\nb\\naaaab\\nbbaaa\\n\", \"1\\nabababababababababababababababababababababababab\\n\"], \"outputs\": [\"YES\\nYES\\nYES\\nNO\\nNO\\nNO\\nNO\\nYES\\n\", \"NO\\n\"]}", "style": "rule" }
EASY
{ "id": "taco-train-25282", "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 is studying in the last class of school and so...
code
{ "ground_truth": "{\"inputs\": [\"2 3 3\\n\", \"2 2 2\\n\", \"1 2 5\\n\", \"1000000000000000000 1000000000000000000 1000000000000000000\\n\", \"135645 1 365333453\\n\", \"1 12 1728\\n\", \"110 1000 998\\n\", \"1 5 5\\n\", \"1 3 6561\\n\", \"563236 135645 356563\\n\", \"1 10 999999999999999999\\n\", \"5 5 4\\n\", \"1...
rating_>1900
{ "id": "493_E. Vasya and Polynomial", "rating": 2800, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an array Arr[] of N distinct integers and a ran...
code
{ "ground_truth": "{\"inputs\": [\"N = 4\\nArr = {8 , 3, 5, 2}\\nL = 7, R = 11\", \"N = 5\\nArr = {5, 1, 4, 3, 2}\\nL = 2, R = 7\"], \"outputs\": [\"1\", \"2\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-25290", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "Given a matrix you need to find the submatrix with t...
code
{ "ground_truth": "{\"inputs\": [\"3 3\\n2 6 8\\n4 8 3\\n6 9 4\\n\"], \"outputs\": [\"4\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-1239", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "In BerSoft $n$ programmers work, the programmer $i$ ...
code
{ "ground_truth": "{\"inputs\": [\"4 2\\n10 4 10 15\\n1 2\\n4 3\", \"10 4\\n5 4 1 5 4 3 7 1 2 5\\n4 6\\n2 1\\n10 8\\n3 5\", \"2 0\\n3 1\", \"2 0\\n1 1\", \"10 35\\n322022227 751269818 629795150 369443545 344607287 250044294 476897672 184054549 986884572 917181121\\n6 3\\n7 3\\n1 9\\n7 9\\n10 7\\n3 4\\n8 6\\n7 4\\n6 1...
rating_1401-1600
{ "id": "978F", "rating": 1500, "split": "confidence_train", "sub_source": "rating_1401-1600" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given a 0-1 rectangular matrix. What is the ...
code
{ "ground_truth": "{\"inputs\": [\"2\\n8 8\\n00010001\\n00101000\\n01000100\\n10000010\\n01000100\\n00101000\\n11010011\\n11000011\\n10 10\\n1111111000\\n1000001000\\n1011001000\\n1011001010\\n1000001101\\n1001001010\\n1010101000\\n1001001000\\n1000001000\\n1111111000\", \"1\\n12 11\\n11111111111\\n10000000001\\n1011...
rating_>1900
{ "id": "11C", "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": "You are given an array x of n positive numbers. You s...
code
{ "ground_truth": "{\"fn_name\": \"isSelfCrossing\", \"inputs\": [[[2, 1, 1, 2]]], \"outputs\": [true]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-4173", "rating": null, "split": "confidence_train", "sub_source": "MEDIUM_HARD" }
codeforces
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "You are given an array of *n* elements, you must mak...
code
{ "ground_truth": "{\"inputs\": [\"3\\n2 7 28\", \"1\\n1\", \"1\\n548\", \"1\\n963837006\", \"10\\n1 1 1 1 1 1 1 1 1 1\", \"10\\n26 723 970 13 422 968 875 329 234 983\", \"10\\n319645572 758298525 812547177 459359946 355467212 304450522 807957797 916787906 239781206 242840396\", \"100\\n1 1 1 1 2 1 1 1 1 1 2 2 1 1 2 ...
rating_<=1200
{ "id": "660A", "rating": 1200, "split": "confidence_train", "sub_source": "rating_<=1200" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given two strings s and t, your goal is to convert s ...
code
{ "ground_truth": "{\"fn_name\": \"canConvertString\", \"inputs\": [[\"\\\"input\\\"\", \"\\\"ouput\\\"\", 9]], \"outputs\": [true]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-10132", "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": "Anica is having peculiar dream. She is dreaming abou...
code
{ "ground_truth": "{\"inputs\": [\"2\\n1 10\\n5 8\\n\", \"3\\n17 144\\n121 121\\n89 98\\n\", \"1\\n1 1000000000\\n\"], \"outputs\": [\"18\\n8\\n\", \"265\\n25\\n10\\n\", \"1863025563\\n\"]}", "style": "rule" }
HARD
{ "id": "taco-train-16548", "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": "User ainta loves to play with cards. He has a cards ...
code
{ "ground_truth": "{\"inputs\": [\"4 0\\n\", \"0 4\\n\", \"8 6\\n\", \"1 1\\n\", \"38 5\\n\", \"2 122\\n\", \"4 2\\n\", \"4 9\\n\", \"8 10\\n\", \"206 209\\n\", \"5 17\\n\", \"1 2\\n\", \"2 1\\n\", \"1 1\\n\", \"1 0\\n\", \"0 1\\n\", \"2 2\\n\", \"4 1\\n\", \"4 2\\n\", \"4 3\\n\", \"4 4\\n\", \"4 5\\n\", \"4 6\\n\", ...
HARD
{ "id": "taco-train-21775", "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": "Nezzar has n balls, numbered with integers 1, 2, …, ...
code
{ "ground_truth": "{\"inputs\": [\"5\\n6\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n1 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 4\\n5\\n1 1 2 2 3\\n4\\n2 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 1 2 3 3\\n5\\n1 1 2 2 3\\n4\\n1 2 2 2\\n3\\n2 2 3\\n1\\n1\\n\", \"5\\n6\\n1 1 2 2 3 3\\n5\\n1 1 2 2 3\\n4\\n1 2 2 2...
rating_<=1200
{ "id": "1478_A. Nezzar and Colorful Balls", "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": "Takahashi is practicing shiritori alone again today....
code
{ "ground_truth": "{\"inputs\": [\"4\\nhoge\\nenglish\\nhoge\\nenigma\", \"9\\nbasic\\nc\\ncpp\\nphp\\npython\\nnadesico\\nocaml\\nlua\\nassembly\", \"3\\nabc\\narc\\nagc\", \"8\\na\\naa\\naaa\\naaaa\\naaaaa\\naaaaaa\\naaa\\naaaaaaa\", \"4\\nhoge\\nenglish\\nhnge\\nenigma\", \"9\\nbasic\\nc\\npcp\\nphp\\npython\\nnad...
none
{ "id": "p03261 AtCoder Beginner Contest 109 - Shiritori", "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 integer array arr[] of size n which contains...
code
{ "ground_truth": "{\"inputs\": [\"n = 4\\r\\narr = {1,0,0,0}\", \"n = 3\\r\\narr = {1,0,1}\"], \"outputs\": [\"1\", \"0\"]}", "style": "rule" }
EASY
{ "id": "taco-train-3694", "rating": null, "split": "confidence_train", "sub_source": "EASY" }
codecontests
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.", "role": "system" }, { "content": "For a given sequence of distinct non-negative intege...
code
{ "ground_truth": "{\"inputs\": [\"5\\n0 1 5 2 6\\n\", \"7\\n6 9 8 7 3 5 2\\n\", \"7\\n32 35 2 20 52 59 28\\n\", \"3\\n4 9 1\\n\", \"109\\n74 18 237 179 195 112 156 11 72 68 173 202 78 250 224 251 107 55 186 144 57 62 28 210 132 64 93 6 211 0 174 163 248 226 167 246 46 102 253 180 121 56 151 35 150 254 168 201 242 11...
rating_>1900
{ "id": "1447_E. Xor Tree", "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 ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Consider an array that has no prime numbers, and none...
code
{ "ground_truth": "{\"fn_name\": \"solve\", \"inputs\": [[10], [50], [100], [150], [200], [300], [400], [500], [1000], [2000], [3000]], \"outputs\": [[44], [169], [644], [896], [1060], [1668], [4084], [4681], [9110], [18118], [46166]]}", "style": "rule" }
EASY
{ "id": "taco-train-17558", "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": "Fox Ciel is participating in a party in Prime Kingdo...
code
{ "ground_truth": "{\"inputs\": [\"5\\n2 2 2 2 2\\n\", \"4\\n3 4 8 9\\n\", \"12\\n2 3 4 5 6 7 8 9 10 11 12 13\\n\", \"24\\n2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25\\n\", \"15\\n3 3 3 3 3 3 3 4 2 4 2 2 2 4 2\\n\", \"152\\n29 23 17 25 13 29 29 29 25 23 25 29 19 25 13 25 13 23 21 27 15 29 29 25 27...
rating_>1900
{ "id": "512_C. Fox And Dinner", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }
taco
[ { "content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.", "role": "system" }, { "content": "Given an integer array of N elements. You need to fin...
code
{ "ground_truth": "{\"inputs\": [\"N = 3\\r\\narr[] = {-8 -66 -60}\", \"N = 6\\r\\narr[] = {-21 -67 -37 -18 4 -65}\"], \"outputs\": [\"-68\", \"-14\"]}", "style": "rule" }
MEDIUM
{ "id": "taco-train-5890", "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": "Create a function `longer` that accepts a string and ...
code
{ "ground_truth": "{\"fn_name\": \"longer\", \"inputs\": [[\"Another Green World\"], [\"Darkness on the edge of Town\"], [\"Have you ever Seen the Rain\"], [\"Like a Rolling Stone\"], [\"This will be our Year\"], [\"hello Hello\"]], \"outputs\": [[\"Green World Another\"], [\"of on the Town edge Darkness\"], [\"the y...
EASY
{ "id": "taco-train-2889", "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 have been chosen by the judges, now it's ...
code
{ "ground_truth": "{\"inputs\": [\"3 998244353\", \"96 925309799\", \"6 966666661\", \"2 998244353\", \"3 143320251\", \"2 1660952267\", \"6 259722551\", \"1 81577459\", \"8 556099089\", \"0 4861465\", \"9 345897173\", \"157 925309799\", \"10 259722551\", \"4 1745284472\", \"5 394143938\", \"12 81577459\", \"13 25572...
none
{ "id": "p02826 AtCoder Grand Contest 041 - Problem Scores", "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": "Tom is very weak at maths, his teacher gave him a si...
code
{ "ground_truth": "{\"inputs\": [\"3\\n21 4 0\\n5 4 3\\n22 7 10\\n\\nSAMPLE\", \"3\\n21 4 0\\n5 4 3\\n22 7 12\\n\\nSAMPLE\", \"3\\n21 4 0\\n5 4 3\\n22 7 3\\n\\nSAMPLE\", \"3\\n21 4 0\\n5 4 3\\n22 13 3\\n\\nSAMPLE\", \"3\\n21 5 0\\n5 4 3\\n22 13 3\\n\\nSAMPLE\", \"3\\n21 5 0\\n5 4 3\\n22 26 3\\n\\nSAMPLE\", \"3\\n21 5...
none
{ "id": "simple-divison-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": "You are given 2 integers a and b. Let a number be de...
code
{ "ground_truth": "{\"inputs\": [\"4\\n0 0 13\\n1 0 7\\n3 0 10007\\n1 1 19\\n\"], \"outputs\": [\"-1\\n1\\n5003\\n18\\n\"]}", "style": "rule" }
MEDIUM_HARD
{ "id": "taco-train-10175", "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": "Omkar's most recent follower, Ajit, has entered the ...
code
{ "ground_truth": "{\"inputs\": [\"4\\n3 4\\n0000\\n00#0\\n0000\\n2 1\\n#\\n#\\n1 2\\n##\\n6 29\\n#############################\\n#000##0###0##0#0####0####000#\\n#0#0##00#00##00####0#0###0#0#\\n#0#0##0#0#0##00###00000##00##\\n#000##0###0##0#0##0###0##0#0#\\n#############################\\n\", \"1\\n12 12\\n#000#0#0##...
rating_>1900
{ "id": "1536_E. Omkar and Forest", "rating": 2300, "split": "confidence_train", "sub_source": "rating_>1900" }