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": "As the name of the task implies, you are asked to do... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5 8\\n3 6\\n2 9\\n7 10\\n1 4\\n\", \"5\\n1 3\\n2 4\\n5 9\\n6 8\\n7 10\\n\", \"6\\n9 12\\n2 11\\n1 3\\n6 10\\n5 7\\n4 8\\n\", \"4\\n1 2\\n3 6\\n4 7\\n5 8\\n\", \"8\\n2 16\\n7 13\\n12 14\\n4 15\\n8 9\\n1 11\\n3 6\\n5 10\\n\", \"5\\n4 6\\n2 5\\n3 9\\n8 10\\n1 7\\n\", \"5\\n1 4\\n2 ... | rating_>1900 | {
"id": "1278_D. Segment 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 ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You came to a local shop and want to buy some chocol... | code | {
"ground_truth": "{\"inputs\": [\"7\\n7 1 3 1 4 10 8\\n2\\n3 4\\n\", \"2\\n5 7\\n1\\n2\\n\", \"2\\n1000000000 1\\n1\\n2\\n\", \"9\\n7 2 3 3 2 5 6 3 3\\n6\\n7 5 4 8 9 2\\n\", \"8\\n8 6 2 1 5 2 2 8\\n4\\n5 8 7 6\\n\", \"8\\n9 8 7 1 7 4 8 10\\n1\\n8\\n\", \"7\\n7 8 4 5 5 5 8\\n2\\n3 5\\n\", \"2\\n123456 123456\\n1\\n2\... | EASY | {
"id": "taco-train-9483",
"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 nums of 0s and 1s and an integer k, re... | code | {
"ground_truth": "{\"fn_name\": \"kLengthApart\", \"inputs\": [[[1, 0, 0, 0, 1, 0, 0, 1], 2]], \"outputs\": [true]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-4551",
"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": "Fox Ciel and her friends are in a dancing room. Ther... | code | {
"ground_truth": "{\"inputs\": [\"2 1\", \"2 2\", \"1 1\", \"2 3\", \"4 4\", \"1 12\", \"12 1\", \"100 100\", \"24 6\", \"7 59\", \"26 75\", \"32 87\", \"42 51\", \"4 63\", \"10 79\", \"20 95\", \"35 55\", \"45 71\", \"7 83\", \"32 100\", \"42 17\", \"1 77\", \"19 93\", \"25 5\", \"35 21\", \"99 99\", \"99 100\", \"... | rating_<=1200 | {
"id": "322A",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin Chinese and Ru... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n12 11\\n3\\n13 11 12\"], \"outputs\": [\"1\\n3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8765",
"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": "Inna loves sweets very much. That's why she decided ... | code | {
"ground_truth": "{\"inputs\": [\"4 4 4\", \"1 1 1\", \"1 50 50\", \"50 1 50\", \"50 50 1\", \"4 4 9\", \"10 10 10\", \"10 10 100\", \"10 10 50\", \"10 10 25\", \"10 10 75\", \"50 50 1000\", \"50 50 2500\", \"50 50 1\", \"50 50 10\", \"50 50 100\", \"50 50 500\", \"50 50 200\", \"50 50 1000\", \"50 50 1500\", \"50 5... | none | {
"id": "390D",
"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": "Find an n × n matrix with different numbers from 1 t... | code | {
"ground_truth": "{\"inputs\": [\"1\\n\", \"3\\n\", \"45\\n\", \"11\\n\", \"31\\n\", \"7\\n\", \"47\\n\", \"19\\n\", \"5\\n\", \"49\\n\", \"43\\n\", \"33\\n\", \"21\\n\", \"9\\n\", \"13\\n\", \"35\\n\", \"23\\n\", \"17\\n\", \"39\\n\", \"15\\n\", \"29\\n\", \"37\\n\", \"25\\n\", \"27\\n\", \"41\\n\", \"53\\n\", \"51... | rating_1401-1600 | {
"id": "710_C. Magic Odd Square",
"rating": 1500,
"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": "There are $n$ persons located on a plane. The $i$-th... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n0 0 0 1\\n1 0 2 0\\n3\\n0 0 1 1\\n1 1 0 0\\n1 0 2 0\\n6\\n0 0 0 1\\n1 0 1 2\\n2 0 2 3\\n3 0 3 -5\\n4 0 4 -5\\n5 0 5 -5\\n\", \"4\\n2\\n0 0 2 1\\n5 5 3 4\\n2\\n0 0 -2 1\\n-5 5 -3 4\\n2\\n0 0 -2 -1\\n-5 -5 -3 -4\\n2\\n0 0 2 -1\\n5 -5 3 -4\\n\", \"4\\n2\\n0 0 1 1\\n5 5 6 6\\n2\... | MEDIUM_HARD | {
"id": "taco-train-17404",
"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 get an array of numbers, return the sum of all of... | code | {
"ground_truth": "{\"fn_name\": \"positive_sum\", \"inputs\": [[[1, 2, 3, 4, 5]], [[1, -2, 3, 4, 5]], [[-1, 2, 3, 4, -5]], [[]], [[-1, -2, -3, -4, -5]]], \"outputs\": [[15], [13], [9], [0], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9189",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given K eggs, and you have access to a buildi... | code | {
"ground_truth": "{\"fn_name\": \"superEggDrop\", \"inputs\": [[1, 2]], \"outputs\": [2]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22865",
"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 will define the median of a sequence b of length ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n10 30 20\", \"10\\n5 9 5 9 8 9 3 5 4 3\", \"1\\n10\", \"3\\n10 9 20\", \"10\\n5 9 5 9 8 4 3 5 4 3\", \"1\\n4\", \"10\\n5 9 5 9 16 8 3 5 4 3\", \"1\\n2\", \"1\\n16\", \"1\\n7\", \"1\\n3\", \"1\\n6\", \"1\\n1\", \"3\\n-1 9 3\", \"3\\n10 31 20\", \"1\\n19\", \"1\\n21\", \"3\\n12 8 ... | none | {
"id": "p03275 AtCoder Beginner Contest 107 - Median of Medians",
"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": "On the competitive programming platform CodeCook, ev... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n1 5 3 4 2\\n4\\n1 3 2 1\\n5\\n1 3 3 3 2\\n10\\n1 2 3 4 5 6 7 8 9 10\\n3\\n3 3 2\\n\", \"5\\n5\\n1 5 3 4 2\\n4\\n1 3 2 1\\n5\\n1 3 3 3 2\\n10\\n1 2 1 4 5 6 7 8 9 10\\n3\\n3 3 2\\n\", \"5\\n5\\n1 5 3 3 2\\n4\\n1 3 2 1\\n5\\n1 3 3 3 2\\n10\\n1 2 1 4 5 6 7 8 9 10\\n3\\n3 3 2\\n\... | MEDIUM_HARD | {
"id": "taco-train-14241",
"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": "There are $n$ models in the shop numbered from $1$ t... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4\\n5 3 4 6\\n7\\n1 4 2 3 6 4 9\\n5\\n5 4 3 2 1\\n1\\n9\\n\", \"4\\n23\\n3198 4895 1585 3881 2650 2366 876 2731 1052 126 2152 3621 2169 4103 1074 2594 2897 3983 3830 3460 729 576 3281\\n1\\n1000000000\\n2\\n1 1\\n100\\n1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ... | MEDIUM | {
"id": "taco-train-2491",
"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": "###Lucky number\n\nWrite a function to find if a numb... | code | {
"ground_truth": "{\"fn_name\": \"is_lucky\", \"inputs\": [[1892376], [189237], [18922314324324234423437], [189223141324324234423437], [1892231413243242344321432142343423437], [0]], \"outputs\": [[true], [false], [false], [true], [true], [true]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14709",
"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 square matrix (i.e. an array of subarrays), f... | code | {
"ground_truth": "{\"fn_name\": \"diagonal_sum\", \"inputs\": [[[[1, 2], [3, 4]]], [[[1, 2, 3], [4, 5, 6], [7, 8, 9]]], [[[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]], [[[2, 5], [3, 6]]], [[[10, 20, 30, 40], [50, 60, 70, 80], [90, 100, 110, 120], [130, 140, 150, 160]]], [[[3, 1, 7], [9, 4, 5], [6,... | EASY | {
"id": "taco-test-267",
"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 Kauravas challenge the Pandavas to break a circu... | code | {
"ground_truth": "{\"inputs\": [\"3\\n20\\n16 -49\\n38 -48\\n0 -42\\n35 -40\\n26 -39\\n37 -47\\n32 -26\\n46 -40\\n41 -9\\n48 -28\\n35 -21\\n29 -41\\n26 -26\\n31 -4\\n7 -31\\n39 0\\n29 -14\\n22 -34\\n34 -43\\n5 -2\\n15\\n-29 33\\n-33 20\\n-35 24\\n-29 20\\n-38 36\\n-33 40\\n-32 21\\n-31 25\\n-30 38\\n-32 35\\n-37 30\... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-20460",
"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": "Your task is to find the first element of an array th... | code | {
"ground_truth": "{\"fn_name\": \"first_non_consecutive\", \"inputs\": [[[1, 2, 3, 4, 6, 7, 8]], [[1, 2, 3, 4, 5, 6, 7, 8]], [[4, 6, 7, 8, 9, 11]], [[4, 5, 6, 7, 8, 9, 11]], [[31, 32]], [[-3, -2, 0, 1]], [[-5, -4, -3, -1]]], \"outputs\": [[6], [null], [6], [11], [null], [0], [-1]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-22094",
"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": "$n$ distinct integers $x_1,x_2,\\ldots,x_n$ are writ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n2 1\\n1 2\\n3 0\\n2 3 7\\n2 -1\\n31415926 27182818\\n2 1000000000000000000\\n1 1000000000000000000\\n2 -1000000000000000000\\n-1000000000000000000 123\\n6 80\\n-5 -20 13 -14 -2 -11\\n\", \"1\\n2 0\\n5 7\\n\", \"1\\n2 0\\n5 7\\n\", \"1\\n2 -1\\n5 7\\n\", \"6\\n2 1\\n1 2\\n3 0\\n2... | MEDIUM_HARD | {
"id": "taco-test-992",
"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 this problem at each moment you have a set of int... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 1 5\\n1 5 11\\n2 1 2\\n1 2 9\\n2 1 2\", \"10\\n1 -311 -186\\n1 -1070 -341\\n1 -1506 -634\\n1 688 1698\\n2 2 4\\n1 70 1908\\n2 1 2\\n2 2 4\\n1 -1053 1327\\n2 5 4\", \"10\\n1 -1365 -865\\n1 1244 1834\\n2 1 2\\n1 -1508 -752\\n2 3 2\\n2 2 1\\n1 -779 595\\n1 -1316 877\\n2 2 1\\n1 -... | rating_1401-1600 | {
"id": "320B",
"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": "After long studying how embryos of organisms become ... | code | {
"ground_truth": "{\"inputs\": [\"(((x x) x) ((x x) (x (x x))))\\n(((x x) (x x)) ((x x) ((x x) (x x))))\\n(((x x) ((x x) x)) (((x (x x)) x) (x x)))\\n(((x x) x) ((x x) (((((x x) x) x) x) x)))\\n(((x x) x) ((x (x x)) (x (x x))))\\n((((x (x x)) x) (x ((x x) x))) ((x (x x)) (x x)))\\n((((x x) x) ((x x) (x (x x)))) (((x... | none | {
"id": "p00733 Dr. Podboq or: How We Became Asymmetric",
"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 a lover of bacteria. You want to raise some ... | code | {
"ground_truth": "{\"inputs\": [\"8\\n\", \"5\\n\", \"343000816\\n\", \"999999993\\n\", \"697681824\\n\", \"999999994\\n\", \"10\\n\", \"999999990\\n\", \"536870912\\n\", \"9\\n\", \"4\\n\", \"7\\n\", \"999999998\\n\", \"2\\n\", \"954746654\\n\", \"999999992\\n\", \"999999996\\n\", \"536870910\\n\", \"999999995\\n\"... | rating_<=1200 | {
"id": "579_A. Raising Bacteria",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4\\n1.00 2.00 3.00 4.00\\n5.00 6.00 7.00 8.00\\n3\\n1.23 8.90 5.67\\n-2.34 -9.01 -6.78\\n3\\n1.00 1.00 1.00\\n1.23 8.90 -5.67\\n2\\n1.23 8.90\\n-5.67 2.34\\n2\\n1.23 8.90\\n5.67 -2.34\"], \"outputs\": [\"12.0761472885 28.6000000000 2.4000000000 -3.2666666667 -5.9000000000\\n-1\\... | MEDIUM_HARD | {
"id": "taco-train-3903",
"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": "Write a function named `first_non_repeating_letter` t... | code | {
"ground_truth": "{\"fn_name\": \"first_non_repeating_letter\", \"inputs\": [[\"a\"], [\"stress\"], [\"moonmen\"], [\"\"], [\"abba\"], [\"aa\"], [\"~><#~><\"], [\"hello world, eh?\"], [\"sTreSS\"], [\"Go hang a salami, I'm a lasagna hog!\"]], \"outputs\": [[\"a\"], [\"t\"], [\"e\"], [\"\"], [\"\"], [\"\"], [\"#\"], ... | EASY | {
"id": "taco-train-19018",
"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": "Pirates have notorious difficulty with enunciating. T... | code | {
"ground_truth": "{\"fn_name\": \"grabscrab\", \"inputs\": [[\"trisf\", [\"first\"]], [\"oob\", [\"bob\", \"baobab\"]], [\"ainstuomn\", [\"mountains\", \"hills\", \"mesa\"]], [\"oolp\", [\"donkey\", \"pool\", \"horse\", \"loop\"]], [\"ortsp\", [\"sport\", \"parrot\", \"ports\", \"matey\"]], [\"ourf\", [\"one\", \"tw... | EASY | {
"id": "taco-train-12641",
"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": "Mike is the president of country What-The-Fatherland... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 2 3 4 5 4 3 2 1 6\\n\", \"19\\n519879446 764655030 680293934 914539062 744988123 317088317 653721289 239862203 605157354 943428394 261437390 821695238 312192823 432992892 547139308 408916833 829654733 223751525 672158759\\n\", \"2\\n10 9\\n\", \"20\\n452405440 586588704 50906... | rating_1601-1900 | {
"id": "548_D. Mike and Feet",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "This is the hard version of the problem. The differe... | code | {
"ground_truth": "{\"inputs\": [\"5\\na\\nabcdfdcecba\\nabbaxyzyx\\ncodeforces\\nacbba\\n\", \"1\\nadaaaecabaaacgaeaacigabaabacaa\\n\", \"1\\nwxclhkkhlcxwuzpxjlljxpzu\\n\", \"1\\naixprmmrpxiawxwlaccalwxw\\n\", \"1\\noaaaigaakaaaakaagiaaaozavgbaaloaibbiaolaabgvaz\\n\", \"1\\njtnvmzzmvntjmbrocppcorbm\\n\", \"1\\navcbk... | rating_1601-1900 | {
"id": "1326_D2. Prefix-Suffix Palindrome (Hard version)",
"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": "Dothraki are planning an attack to usurp King Robert... | code | {
"ground_truth": "{\"inputs\": [\"aaabbbb\\n\", \"cdefghmnopqrstuvw\\n\", \"cdcdcdcdeeeef\\n\"], \"outputs\": [\"YES\\n\", \"NO\\n\", \"YES\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-9942",
"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": "User ainta loves to play with cards. He has *a* card... | code | {
"ground_truth": "{\"inputs\": [\"2 3\", \"4 0\", \"0 4\", \"8 6\", \"28691 28312\", \"1 1\", \"46000 39000\", \"1234 5678\", \"19310 18\", \"38 5\", \"2 122\", \"9966 12376\", \"4 2\", \"0 26501\", \"500 500\", \"98751 29491\", \"1 18468\", \"75232 0\", \"83093 94343\", \"86224 91008\", \"92608 85844\", \"94989 927... | none | {
"id": "398A",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4\\nhasan jaddouh\\nfarhod khakimiyon\\nkerim kochekov\\nhasan khateeb\"], \"outputs\": [\"hasan jaddouh\\nfarhod\\nkerim\\nhasan khateeb\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1133",
"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": "A fashion show rates participants according to their... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 1\\n3 2\\n3\\n2 3 2\\n1 3 2\\n\\nSAMPLE\", \"2\\n2\\n1 1\\n3 2\\n3\\n2 3 2\\n1 6 2\\n\\nSAMPLE\", \"2\\n2\\n0 1\\n3 2\\n3\\n2 3 2\\n1 6 2\\n\\nSBMPLE\", \"2\\n2\\n0 1\\n3 2\\n3\\n2 3 2\\n1 11 2\\n\\nSBMPLE\", \"2\\n2\\n0 1\\n3 2\\n3\\n1 3 2\\n1 11 2\\n\\nSBMPLE\", \"2\\n2\... | none | {
"id": "have-a-nice-day",
"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": "Mr. Chanek The Ninja is one day tasked with a missio... | code | {
"ground_truth": "{\"inputs\": [\"4 2 1\\n1 1 10\\n2 2 20\\n2 3 30\\n5 2 40\\n\", \"4 1 0\\n1 1 10\\n1 999 30\\n1 1000 40\\n1 2 20\\n\", \"1 1 0\\n1 1 10\\n\", \"20 17 0\\n1 964 972064\\n1 529 914335\\n1 926 994468\\n1 603 980092\\n1 545 946148\\n1 88 952185\\n1 979 918633\\n1 438 967889\\n1 871 926455\\n1 424 95204... | rating_>1900 | {
"id": "1425_D. Danger of Mad Snakes",
"rating": 2300,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The Chef likes to stay in touch with his staff. So, ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1\\n0 1\\n0 0\\n1 0\\n2\\n0 1\\n0 0\\n1 0\\n2\\n0 0\\n0 2\\n2 1\", \"3\\n1\\n0 1\\n0 -1\\n1 0\\n2\\n0 1\\n0 0\\n1 0\\n2\\n0 0\\n0 2\\n2 1\", \"3\\n2\\n0 1\\n0 -1\\n1 0\\n2\\n0 1\\n0 0\\n1 0\\n2\\n0 0\\n0 2\\n2 1\", \"3\\n2\\n0 -1\\n0 -1\\n1 0\\n2\\n0 0\\n0 0\\n1 0\\n2\\n1 0\\n1 ... | none | {
"id": "comm3",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Snuke loves flags.\n\nSnuke is placing N flags on a ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 2\\n2 2\\n2 2\\n2 2\\n2 2\", \"3\\n1 3\\n2 5\\n1 9\", \"22\\n93 6440\\n78 6647\\n862 11\\n8306 9689\\n798 99\\n801 521\\n188 206\\n6079 971\\n4559 209\\n50 94\\n92 6270\\n5403 560\\n803 83\\n1855 99\\n42 504\\n75 484\\n629 11\\n92 122\\n3359 37\\n28 16\\n648 14\\n11 269\", \"5... | none | {
"id": "p03802 AtCoder Regular Contest 069 - Flags",
"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": "Fibonotci sequence is an integer recursive sequence ... | code | {
"ground_truth": "{\"inputs\": [\"10 8\\n3\\n1 2 1\\n2\\n7 3\\n5 4\\n\", \"4 10007\\n3\\n29491273 336201633 1060883\\n1\\n3 1589311\\n\", \"12 12345\\n15\\n832 73 289 4 47 9 472 9 9 9 32 4 4 4 2\\n1\\n18 8\\n\", \"1 1\\n1\\n1\\n1\\n11 11\\n\", \"15 12345\\n15\\n832 73 289 4 47 9 472 9 9 9 32 4 4 4 2\\n1\\n18 8\\n\",... | rating_>1900 | {
"id": "575_A. Fibonotci",
"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": "You are given a directed graph with N vertices and M... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n1 2\\n2 1\", \"5 9\\n3 2\\n3 1\\n4 1\\n4 2\\n3 5\\n5 3\\n3 4\\n1 2\\n2 5\", \"3 3\\n1 2\\n1 3\\n2 3\", \"5 9\\n5 2\\n3 1\\n4 1\\n4 2\\n3 5\\n5 3\\n3 4\\n1 2\\n2 5\", \"3 2\\n1 2\\n1 3\\n2 3\", \"6 3\\n1 2\\n1 3\\n2 3\", \"5 9\\n3 2\\n3 1\\n4 1\\n4 2\\n3 5\\n5 3\\n5 4\\n1 2\\n4... | none | {
"id": "p03414 AtCoder Regular Contest 092 - Two Faced Edges",
"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": "Jack stays in a n-storey hostel. His dorm room is on... | code | {
"ground_truth": "{\"inputs\": [\"3\\n30 10 20 U\\n10 10 10 U\\n80 60 60 D\\n\\nSAMPLE\", \"32\\n10 5 5 U\\n10 5 5 D\\n10 3 3 D\\n10 9 9 U\\n10 10 10 U\\n10 10 10 D\\n100 80 20 U\\n100 80 45 U\\n100 80 46 U\\n100 80 40 D\\n100 80 0 D\\n100 80 79 D\\n100 100 3 U\\n100 100 4 U\\n100 100 5 U\\n100 100 2 U\\n100 100 1 D... | none | {
"id": "jacks-dilemma",
"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": "In the Kingdom of AtCoder, only banknotes are used a... | code | {
"ground_truth": "{\"inputs\": [\"36\\n\", \"91\\n\", \"314159265358979323846264338327950288419716939937551058209749445923078164062862089986280348253421170\\n\", \"30\", \"476640020082194381531155118436783393866726953614433851622190777875571135215042541028243752681838573\", \"22\", \"41\", \"402419059500366785869358... | MEDIUM | {
"id": "taco-train-4911",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an NxN matrix Mat. Sort all elements of the mat... | code | {
"ground_truth": "{\"inputs\": [\"N=4\\r\\nMat=[[10,20,30,40],\\r\\n[15,25,35,45] \\r\\n[27,29,37,48] \\r\\n[32,33,39,50]]\", \"N=3\\r\\nMat=[[1,5,3],[2,8,7],[4,6,9]]\"], \"outputs\": [\"10 15 20 25 \\r\\n27 29 30 32\\r\\n33 35 37 39\\r\\n40 45 48 50\", \"1 2 3 \\r\\n4 5 6\\r\\n7 8 9\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-20994",
"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've got two numbers. As long as they are both lar... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 17\\n7 987654321\\n\", \"10\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n7 987654321\\n\", \"1\\n536870912 32\\n\", \"3\\n1000000000 1\\n1000000000 1\\n1 100000000\\n\", \"20\\n1000000000 999999... | EASY | {
"id": "taco-train-5403",
"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": "ICPC Calculator\n\nIn mathematics, we usually specif... | code | {
"ground_truth": "{\"inputs\": [\"1\\n9\\n4\\n+\\n.1\\n.2\\n.3\\n9\\n+\\n.0\\n.+\\n..*\\n...1\\n...*\\n....1\\n....2\\n..0\\n10\\n+\\n.+\\n..6\\n..2\\n.+\\n..1\\n..*\\n...7\\n...6\\n.3\\n0\", \"1\\n9\\n4\\n+\\n.1\\n.2\\n.3\\n9\\n+\\n.0\\n.+\\n..*\\n...1\\n...+\\n....1\\n....2\\n..0\\n10\\n+\\n.+\\n..6\\n..2\\n.+\\n.... | none | {
"id": "p01087 ICPC Calculator",
"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": "Mastermind is a bright student of his class. To judg... | code | {
"ground_truth": "{\"inputs\": [\"15\\n246 615 762 124 278 287 62 662 292 362 261 2 734 604 784 \\n2000\\n40619\\n98809\\n71074\\n99684\\n55334\\n80682\\n82891\\n12426\\n92462\\n62953\\n53253\\n29420\\n49126\\n79977\\n58255\\n35533\\n86215\\n36493\\n96343\\n25745\\n7788\\n20373\\n21133\\n26408\\n10676\\n48217\\n9207... | MEDIUM | {
"id": "taco-train-15343",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a non-negative integer, you could swap two digi... | code | {
"ground_truth": "{\"fn_name\": \"maximumSwap\", \"inputs\": [[2736]], \"outputs\": [7236]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-9461",
"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": "Arkady likes to walk around his kitchen. His labyrin... | code | {
"ground_truth": "{\"inputs\": [\"2 1\\n1 2 1 100\\n\", \"5 6\\n1 2 0 1\\n2 5 2 3\\n2 5 0 1\\n1 3 0 1\\n3 4 1 2\\n4 5 2 3\\n\", \"6 5\\n1 2 0 10\\n2 5 7 8\\n5 3 8 12\\n5 4 12 16\\n5 6 15 20\\n\", \"20 19\\n1 4 0 1579\\n1 19 0 324\\n1 15 0 1614\\n8 1 0 1001\\n1 18 0 1956\\n7 1 0 1182\\n1 3 0 849\\n14 1 0 2136\\n1 9 0... | rating_>1900 | {
"id": "827_F. Dirty Arkady's Kitchen",
"rating": 3200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are standing at the point $0$ on a coordinate li... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n3\\n4\\n12\\n\", \"1\\n84123456\\n\", \"10\\n999999999\\n999999990\\n999999995\\n999999951\\n999999999\\n999999990\\n999999999\\n999999992\\n999999997\\n999999999\\n\", \"1\\n82749056\\n\", \"1\\n10241\\n\", \"1\\n22812\\n\", \"1\\n56\\n\", \"1\\n6942\\n\", \"1\\n99999\\n\",... | EASY | {
"id": "taco-train-7175",
"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 positive integer m, a positive number is... | code | {
"ground_truth": "{\"inputs\": [\"24 9\\n\", \"24 1\\n\", \"5040 1000000000\\n\", \"2020 2020\\n\"], \"outputs\": [\"\\n226\\n\", \"\\n38\\n\", \"\\n111121111315213227111\\n\", \"\\n-1\\n\"]}",
"style": "rule"
} | none | {
"id": "1297_G. M-numbers",
"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": "Mr. Suzuki has opened a new mobile sales shop for fr... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2\\n6\\n4\\n3\\n9\\n0\", \"5\\n2\\n6\\n4\\n6\\n9\\n0\", \"5\\n2\\n10\\n4\\n6\\n9\\n0\", \"5\\n2\\n6\\n4\\n7\\n9\\n0\", \"5\\n2\\n10\\n4\\n7\\n9\\n0\", \"5\\n2\\n17\\n8\\n7\\n9\\n0\", \"5\\n4\\n6\\n4\\n7\\n14\\n0\", \"5\\n2\\n17\\n8\\n7\\n12\\n0\", \"5\\n4\\n6\\n5\\n7\\n14\\n0\",... | none | {
"id": "p00112 A Milk Shop",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let's introduce the designation , where *x* is a str... | code | {
"ground_truth": "{\"inputs\": [\"10 3\\nabab\\nbab\", \"841 7\\nqjqhrksmvedtqldrqgchhsofokfcovut\\nqhtmothoulodshrfejterjlguvooccsvqrrdfqfvkqhtecuhhuqhshthrkusrc\", \"901 8\\nkikjbkgkkjeeficiigjjidfhkfdckjdkkbkfhkhdcjidjbfdfkbhbfjeiffkfgcaigck\\ngcjifhjjfedbfbdhickjbkkghfhbigkeff\", \"933 5\\nabaabdcbbabacbdddadbbb... | rating_>1900 | {
"id": "314B",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a pyramid of the following form with a... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 7\\n1 5\\n5 3\"], \"outputs\": [\"1\\n2\\n0\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-24625",
"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": "After entering high school, Takeko, who joined the p... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4 3 2 1\", \"6\\n1 3 6 5 8 2\", \"4\\n4 3 2 0\", \"6\\n0 3 6 5 8 2\", \"4\\n0 3 2 1\", \"6\\n1 0 6 5 8 2\", \"6\\n1 5 6 4 12 0\", \"4\\n-1 5 0 1\", \"6\\n0 3 1 5 8 2\", \"6\\n-2 3 6 0 13 2\", \"6\\n-1 1 0 5 10 3\", \"4\\n-1 1 0 2\", \"6\\n1 3 6 0 8 2\", \"6\\n1 3 0 5 8 4\", \"6\... | none | {
"id": "p00348 Sort",
"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 need count how many valleys you will pass.\n\nSta... | code | {
"ground_truth": "{\"fn_name\": \"counting_valleys\", \"inputs\": [[\"UFFFD\"], [\"DFFFD\"], [\"UFFFU\"], [\"DFFFU\"], [\"UFFDDFDUDFUFU\"], [\"UFFDDFDUDFUFUUFFDDFDUDFUFU\"], [\"UFFDDFDUDFUFUUFFDDUFFDDUFFDDUDUDUDUDUDUUUUUUUUU\"], [\"UFFDDFDUDFUFUUFFDDFDUDFUFUUFFDDFDUDFUFUUFFDDFDUDFUFU\"], [\"UFFDDFDUDFUFUUFFDDFDUDFUF... | EASY | {
"id": "taco-train-4474",
"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": "Little penguin Polo likes permutations. But most of ... | code | {
"ground_truth": "{\"inputs\": [\"4\", \"7\", \"1\", \"2\", \"3\", \"8\", \"10\", \"47\", \"74\", \"99\", \"128\", \"257\", \"1000000\", \"77845\", \"100000\", \"100001\", \"999999\", \"777777\", \"687500\", \"17\", \"18\", \"19\", \"20\", \"4587\", \"15475\", \"68450\", \"6100\", \"1047\", \"670041\", \"875495\", \... | rating_1601-1900 | {
"id": "288C",
"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": "You are given a 4-character string S consisting of u... | code | {
"ground_truth": "{\"inputs\": [\"ASSA\\n\", \"STOP\\n\", \"FFEE\\n\", \"FREE\\n\", \"AVVA\\n\", \"HHTT\\n\", \"ILIL\\n\", \"ZZZZ\\n\", \"OPQN\\n\", \"YSKY\\n\", \"JJKP\\n\", \"TGHH\\n\", \"EEFF\", \"FQEE\", \"SPOT\", \"ASRA\", \"EEQF\", \"SPNT\", \"ARSA\", \"EEQG\", \"RPNT\", \"ARSB\", \"EDQG\", \"TNPR\", \"AQSB\",... | EASY | {
"id": "taco-train-21020",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A girl named Xenia has a cupboard that looks like an... | code | {
"ground_truth": "{\"inputs\": [\"1 1\", \"1 2\", \"2 1\", \"2 2\", \"2 3\", \"4 1\", \"5 1\", \"5 2\", \"5 3\", \"5 4\", \"5 5\", \"5 6\", \"5 9\", \"5 10\", \"5 11\", \"674098 1358794\", \"3983458 7761504\", \"4841874 9131511\", \"667586 5534221\", \"1526002 6904227\", \"4835362 5823289\", \"5693778 7001807\", \"6... | rating_1601-1900 | {
"id": "342C",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Create a function xMasTree(height) that returns a chr... | code | {
"ground_truth": "{\"fn_name\": \"xMasTree\", \"inputs\": [[3], [7], [2], [4], [6]], \"outputs\": [[[\"__#__\", \"_###_\", \"#####\", \"__#__\", \"__#__\"]], [[\"______#______\", \"_____###_____\", \"____#####____\", \"___#######___\", \"__#########__\", \"_###########_\", \"#############\", \"______#______\", \"___... | EASY | {
"id": "taco-train-10788",
"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": "Nauuo is a girl who loves playing cards.\n\nOne day ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 2 0\\n3 0 1\\n\", \"3\\n0 2 0\\n1 0 3\\n\", \"11\\n0 0 0 5 0 0 0 4 0 0 11\\n9 2 6 0 8 1 7 0 3 0 10\\n\", \"8\\n0 0 0 0 0 0 0 0\\n7 8 1 2 3 4 5 6\\n\", \"8\\n0 0 0 0 4 5 7 8\\n0 6 0 0 0 1 2 3\\n\", \"8\\n0 0 0 0 0 0 7 8\\n0 1 2 3 4 5 0 6\\n\", \"1\\n1\\n0\\n\", \"1\\n0\\n1\\n\"... | MEDIUM_HARD | {
"id": "taco-train-5113",
"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 a little town called Križ live $N$ people. Each o... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 100\\n1 100\\n4 70\\n3 70\\n\", \"3\\n2 120\\n3 50\\n2 80\\n\", \"5\\n3 30\\n3 20\\n4 100\\n5 40\\n3 60\\n\"], \"outputs\": [\"170\\n\", \"150\\n\", \"110\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-14893",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given three positive integers x, y, n. Your ... | code | {
"ground_truth": "{\"inputs\": [\"7 2 4\\n\", \"3 7 6\\n\", \"6243 60593 42244\\n\", \"7487 17563 1102\\n\", \"1 2 2\\n\", \"43003 70913 71178\\n\", \"46084 75979 30535\\n\", \"60489 34395 34632\\n\", \"100000 10 10\\n\", \"38133 49787 9840\\n\", \"76730 91851 71438\\n\", \"28598 12497 10464\\n\", \"72657 93778 5094... | rating_1601-1900 | {
"id": "281_B. Nearest Fraction",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "# Your Task\nYou have a cuboid with dimensions x,y,z ... | code | {
"ground_truth": "{\"fn_name\": \"subcuboids\", \"inputs\": [[1, 1, 1], [2, 2, 2], [2, 3, 3], [4, 5, 6], [3, 7, 11]], \"outputs\": [[1], [27], [108], [3150], [11088]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-10183",
"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 studying a swarm of N fireflies. Each firefl... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\\n3 0 -4 0 0 3\\n-3 -2 -1 3 0 0\\n-3 -1 2 0 3 0\", \"3\\n3\\n3 0 -4 0 0 3\\n-3 -2 -1 3 0 0\\n-3 -1 2 0 3 0\\n3\\n-5 0 0 1 0 0\\n-7 0 0 1 0 0\\n-6 3 0 1 0 0\\n4\\n1 2 3 1 2 3\\n3 2 1 3 2 1\\n1 0 0 0 0 -1\\n0 10 0 0 -10 -1\"], \"outputs\": [\"Case #1: 0.00000000 1.00000000\", \"... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-20579",
"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": "In AD 3456, the earth is too small for hundreds of b... | code | {
"ground_truth": "{\"inputs\": [\"0 0 0 3 3 3\\n###\\n###\\n###\\n###\\n###\\n###\\n###\\n###\\n###\\n3 3 0 0 0 3\\n#..\\n###\\n###\\n###\\n###\\n###\\n#.#\\n###\\n###\\n0 0 2 2 2 2\\n...\\n...\\n...\\n.#.\\n#..\\n...\\n##.\\n##.\\n...\\n0 1 2 2 1 1\\n...\\n...\\n...\\n.#.\\n#..\\n...\\n##.\\n##.\\n...\\n3 2 0 2 3 2... | none | {
"id": "p00913 Cubic Colonies",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Vasya studies music. \n\nHe has learned lots of inte... | code | {
"ground_truth": "{\"inputs\": [\"C E G\", \"C# B F\", \"A B H\", \"G H E\", \"D# B G\", \"D# B F#\", \"F H E\", \"B F# G\", \"F# H C\", \"C# F C\", \"G# C# E\", \"D# H G#\", \"C F A\", \"H E G#\", \"G D# B\", \"E C G\", \"G# C# F\", \"D# C G#\", \"C# F B\", \"D# C G\", \"A D F\", \"F# H D\", \"D A F\", \"D A F#\", ... | rating_<=1200 | {
"id": "88A",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Polycarp must pay exactly n burles at the checkout. ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1000\\n30\\n1\\n32\\n1000000000\\n5\\n\", \"1\\n10111\\n\", \"1\\n10555\\n\", \"2\\n3000002\\n3000001\\n\", \"1\\n3000002\\n\", \"1\\n10011\\n\", \"1\\n1147\\n\", \"2\\n3000002\\n2510467\\n\", \"1\\n2727013\\n\", \"6\\n1000\\n30\\n1\\n41\\n1000000000\\n5\\n\", \"1\\n10001\\n\", ... | rating_<=1200 | {
"id": "1551_A. Polycarp and Coins",
"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": "A little girl loves problems on trees very much. Her... | code | {
"ground_truth": "{\"inputs\": [\"3 6\\n1 2\\n1 3\\n0 3 1 2\\n0 2 3 1\\n0 1 5 2\\n1 1\\n1 2\\n1 3\\n\", \"6 11\\n1 2\\n2 5\\n5 4\\n1 6\\n1 3\\n0 3 1 3\\n0 3 4 5\\n0 2 1 4\\n0 1 5 5\\n0 4 6 2\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n\", \"2 4\\n2 1\\n0 1 4519 1\\n1 1\\n0 2 4348 1\\n0 2 9116 1\\n\", \"9 26\\n1 5\\n6 1\\n... | rating_>1900 | {
"id": "276_E. Little Girl and Problem on Trees",
"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": "Given an integer array arr, return the number of long... | code | {
"ground_truth": "{\"inputs\": [\"n = 5\\r\\narr = [1,3,5,4,7]\"], \"outputs\": [\"2\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-9495",
"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": "Squirrel Liss is interested in sequences. She also h... | code | {
"ground_truth": "{\"inputs\": [\"9\\n1 2 3 5 6 7 8 9 10\\n\", \"5\\n2 3 4 6 9\\n\", \"2\\n1009 2018\\n\", \"7\\n1 2 3 4 7 9 10\\n\", \"2\\n601 1202\\n\", \"8\\n3 4 5 6 7 8 9 10\\n\", \"2\\n5101 10202\\n\", \"3\\n21 67 243\\n\", \"5\\n2 3 7 9 10\\n\", \"1\\n99991\\n\", \"3\\n1 4 7\\n\", \"3\\n3 14 22\\n\", \"10\\n2 ... | rating_1401-1600 | {
"id": "265_D. Good Sequences",
"rating": 1500,
"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": "Accepts a string from the user and print the reverse... | code | {
"ground_truth": "{\"inputs\": [[\"1\", \"Tracy\"]], \"outputs\": [[\"ycarT\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-3854",
"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": "An accordion is a string (yes, in the real world acc... | code | {
"ground_truth": "{\"inputs\": [\"|[a:b:|]\\n\", \"|]:[|:]\\n\", \":][:\\n\", \":[]:\\n\", \"[[:]]\\n\", \"[::]\\n\", \"]:|:[\\n\", \":::::]\\n\", \"::::]\\n\", \"::[]\\n\", \"[]\\n\", \"[a|[::]\\n\", \"dsfdsfds\\n\", \":[||]:\\n\", \"::]\\n\", \":::]\\n\", \"[||]\\n\", \":[[[:]]]:\\n\", \"::]::[:]::[::\\n\", \"[:|:... | EASY | {
"id": "taco-train-15529",
"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 person is getting ready to leave and needs a pair ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1\\n2\\n\"], \"outputs\": [\"2\\n3\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-19770",
"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 is a game called \"Unique Bid Auction\". You c... | code | {
"ground_truth": "{\"inputs\": [\"6\\n2\\n1 1\\n3\\n2 1 3\\n4\\n2 2 2 3\\n1\\n1\\n5\\n2 3 2 4 2\\n6\\n1 1 5 5 4 4\\n\", \"2\\n6\\n1 1 1 3 3 3\\n4\\n1 1 1 3\\n\", \"4\\n19\\n16 3 11 9 3 13 11 9 14 10 10 19 19 15 11 8 8 7 3\\n10\\n8 6 1 4 1 4 2 9 7 10\\n7\\n7 1 1 4 4 1 2\\n1\\n1\\n\", \"8\\n12\\n10 1 3 2 11 5 12 11 12... | EASY | {
"id": "taco-train-9836",
"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": "Arkady is playing Battleship. The rules of this game... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n#..#\\n#.#.\\n....\\n.###\", \"10 4\\n#....##...\\n.#...#....\\n..#..#..#.\\n...#.#....\\n.#..##.#..\\n.....#...#\\n...#.##...\\n.#...#.#..\\n.....#..#.\\n...#.#...#\", \"19 6\\n##..............###\\n#......#####.....##\\n.....#########.....\\n....###########....\\n...########... | rating_1201-1400 | {
"id": "965B",
"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": "Chef is stuck in a two dimensional maze having N row... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 2\", \"1\\n2 4\", \"1\\n8 1\", \"1\\n4 4\", \"1\\n8 4\", \"1\\n2 1\", \"1\\n4 7\", \"1\\n8 3\", \"1\\n8 5\", \"1\\n8 7\", \"1\\n8 12\", \"1\\n8 6\", \"1\\n13 1\", \"1\\n10 1\", \"1\\n1 2\", \"1\\n3 5\", \"1\\n4 1\", \"1\\n4 13\", \"1\\n7 3\", \"1\\n13 5\", \"1\\n15 7\", \"1\\n... | none | {
"id": "chefpath",
"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 is the Class Representative of his class. His t... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\\n8 vaibhav\\n9 raju\\n11 prakhar\\n2\\n\\nSAMPLE\", \"10\\n61\\n20 ujzhf\\n65 ubpvyvkxw\\n60 knah\\n75 ehbtv\\n45 ay\\n16 uwfdb\\n79 ogxyi\\n49 redmrg\\n9 dmmucjfrsb\\n96 uwflgbasxf\\n87 xkm\\n5 yb\\n6 ab\\n31 oxbrmaqly\\n27 gyyqes\\n40 grazrn\\n29 gxxetoll\\n86 fsmwqcuxb\\n7... | none | {
"id": "rajus-class",
"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": "It’s Christmas time and JW’s $1$-dimensional shop is... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n1 4\\n2 4 5\\n\", \"3 2\\n1 5 10\\n4 6\\n\", \"2 3\\n3 1\\n2 5 4\\n\"], \"outputs\": [\"0\\n\", \"1\\n\", \"1\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-23467",
"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": "The T9 typing predictor helps with suggestions for po... | code | {
"ground_truth": "{\"fn_name\": \"T9\", \"inputs\": [[[\"hello\", \"world\"], \"43556\"], [[\"good\", \"home\", \"new\"], \"4663\"], [[\"gone\", \"hood\", \"good\", \"old\"], \"4663\"], [[\"Hello\", \"world\"], \"43556\"], [[\"gOOD\", \"hOmE\", \"NeW\"], \"4663\"], [[\"goNe\", \"hood\", \"GOOD\", \"old\"], \"4663\"]... | EASY | {
"id": "taco-train-20086",
"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": "Mad scientist Mike has constructed a rooted tree, wh... | code | {
"ground_truth": "{\"inputs\": [\"5\\n1 2\\n5 1\\n2 3\\n4 2\\n12\\n1 1\\n2 3\\n3 1\\n3 2\\n3 3\\n3 4\\n1 2\\n2 4\\n3 1\\n3 3\\n3 4\\n3 5\", \"1\\n1\\n3 1\", \"2\\n1 2\\n13\\n1 1\\n3 1\\n3 2\\n2 1\\n3 1\\n3 2\\n2 2\\n3 1\\n3 2\\n1 1\\n2 2\\n3 1\\n3 2\", \"3\\n1 2\\n1 3\\n4\\n1 1\\n2 2\\n3 1\\n3 3\", \"6\\n2 1\\n3 2\\... | rating_>1900 | {
"id": "343D",
"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": "Given a number k and string num of digits (0 to 9) de... | code | {
"ground_truth": "{\"inputs\": [\"k = 2\\r\\nnum = \\\"143729\\\"\", \"k = 3\\r\\nnum = \\\"10056\\\"\"], \"outputs\": [\"\\\"1329\\\"\", \"\\\"0\\\"\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-7399",
"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": "Morning desert sun horizon\n\nRise above the sands o... | code | {
"ground_truth": "{\"inputs\": [\"7\\n5\\nacbac\\n8\\nacabacba\\n12\\naaaaaaaaaaaa\\n10\\nabacabadac\\n8\\ndcbaabcd\\n3\\ncba\\n6\\nsparky\\n\", \"1\\n10\\ngepardotop\\n\", \"7\\n1\\na\\n2\\naa\\n2\\nab\\n2\\nba\\n2\\nbb\\n26\\nabcdefghijklmnopqrstuvwxyz\\n26\\nzyxwvutsrqponmlkjihgfedcba\\n\", \"1\\n10\\ngepardotpp\... | rating_>1900 | {
"id": "1562_E. Rescue Niwen!",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After a hard day Vitaly got very hungry and he wants... | code | {
"ground_truth": "{\"inputs\": [\"3\\naAbB\", \"4\\naBaCaB\", \"5\\nxYyXzZaZ\", \"26\\naAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyY\", \"26\\nzAyBxCwDvEuFtGsHrIqJpKoLnMmNlOkPjQiRhSgTfUeVdWcXbY\", \"5\\naArRaRaR\", \"2\\ndA\", \"2\\ncB\", \"10\\nhNcMeXsSlHsUwYeMcA\", \"100\\nqDpInBmCrFwXpDbFgOzVvOcEmJrUcToAdEwE... | rating_<=1200 | {
"id": "525A",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "She is an apprentice wizard. She first learned the m... | code | {
"ground_truth": "{\"inputs\": [\"12 3\\n2 3 6\\n12 4\\n1 2 3 6\\n0 0\", \"12 3\\n2 3 6\\n13 4\\n1 2 3 6\\n0 0\", \"12 3\\n2 3 6\\n12 4\\n2 2 3 6\\n0 0\", \"12 3\\n1 4 11\\n13 4\\n1 2 3 6\\n0 0\", \"7 3\\n4 1 29\\n13 4\\n2 2 6 6\\n0 0\", \"17 3\\n2 4 11\\n13 4\\n1 2 3 6\\n0 0\", \"15 3\\n2 6 11\\n13 4\\n1 2 3 6\\n0 ... | none | {
"id": "p00661 Time Manipulation",
"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": "Recall that MEX of an array is a minimum non-negativ... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n1\\n2\\n1\\n2\\n\", \"7 3\\n0\\n1\\n2\\n2\\n0\\n0\\n10\\n\", \"4 3\\n1\\n2\\n1\\n3\\n\", \"3 3\\n0\\n1\\n2\\n2\\n0\\n0\\n10\\n\", \"4 2\\n1\\n2\\n1\\n0\\n\", \"4 2\\n1\\n3\\n1\\n0\\n\", \"4 2\\n1\\n3\\n2\\n0\\n\", \"4 2\\n0\\n3\\n2\\n0\\n\", \"3 2\\n0\\n6\\n2\\n0\\n\", \"2 3\\... | rating_1401-1600 | {
"id": "1294_D. MEX maximizing",
"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": "Kabra is a very good friend of JP. So JP has assigne... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n2 1 3 4\\n3 4 2 1\\nR 1\\nL 2\\nL 1\\nL 5\\n\\nSAMPLE\", \"4 3\\n2 1 3 4\\n3 4 2 1\\nR 1\\nL 2\\nL 1\\nL 5\\n\\nSAMPLE\", \"4 3\\n2 1 3 4\\n3 4 2 1\\nR 1\\nL 0\\nL 1\\nL 5\\n\\nSAMPLE\", \"4 4\\n2 1 3 4\\n3 4 2 1\\nR 1\\nL 2\\nL 0\\nL 5\\n\\nSAMELP\", \"4 3\\n2 1 3 4\\n3 4 2 1... | none | {
"id": "jp-and-rotations",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The statement of this problem shares a lot with prob... | code | {
"ground_truth": "{\"inputs\": [\"6\\n2 2 1 1 2 1 25\\n3 3 1 2 2 2 25\\n10 10 1 1 10 10 75\\n10 10 10 10 1 1 75\\n5 5 1 3 2 2 10\\n97 98 3 5 41 43 50\\n\", \"10\\n8 5279 1 1543 6 1521 6\\n25276 2 25276 2 1365 1 36\\n49526 2 1 1 9796 2 29\\n374 73 225 73 291 27 26\\n4786 11 3871 11 2870 7 36\\n39 811 14 811 32 455 31... | rating_>1900 | {
"id": "1623_D. Robot Cleaner Revisit",
"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": "We all know that passwords are not very secure unles... | code | {
"ground_truth": "{\"inputs\": [\"2\\n123456 0.6666\\nqwerty 0.3334\\n\", \"3\\nqwerty 0.5432\\n123456 0.3334\\npassword 0.1234\\n\"], \"outputs\": [\"1.3334\\n\", \"1.5802\\n\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-1399",
"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": "Did you ever hear about 'Dragon Food' ? Its used to ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 5 4\\n5 0 1\\n4 3 7\", \"3\\n3 5 4\\n2 0 1\\n4 3 7\", \"3\\n3 5 4\\n2 0 1\\n4 3 12\", \"3\\n3 5 4\\n2 0 1\\n4 3 0\", \"3\\n3 5 4\\n10 0 1\\n4 3 7\", \"3\\n3 5 4\\n2 1 1\\n4 3 12\", \"3\\n3 5 4\\n1 0 1\\n4 3 6\", \"3\\n3 5 4\\n10 0 1\\n3 3 7\", \"3\\n3 5 0\\n2 0 1\\n4 3 7\", \"... | EASY | {
"id": "taco-train-8662",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "You are given a string, s, and a list of words, words... | code | {
"ground_truth": "{\"fn_name\": \"findSubstring\", \"inputs\": [[\"\\\"barfoothefoobarman\", [\"\\\"foo\", \"\\\"bar\\\"\"]], [\"\\\"wordgoodgoodgoodbestword\\\"\", [\"\\\"word\\\"\", \"\\\"good\\\"\", \"\\\"best\\\"\", \"\\\"word\\\"\"]], [\"\\\"barfoofoobarthefoobarman\\\"\", [\"\\\"bar\\\"\", \"\\\"foo\\\"\", \"\... | MEDIUM_HARD | {
"id": "taco-train-8527",
"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": "Two students of AtCoder Kindergarten are fighting ov... | code | {
"ground_truth": "{\"inputs\": [\"56 25 31\", \"10 30 20\", \"30 30 100\", \"106 25 31\", \"4 24 20\", \"10 29 20\", \"30 47 100\", \"8 25 31\", \"4 29 20\", \"30 26 100\", \"16 25 31\", \"30 16 100\", \"16 16 31\", \"4 45 20\", \"43 16 100\", \"16 16 42\", \"4 45 8\", \"6 16 100\", \"16 2 42\", \"1 45 8\", \"6 16 1... | none | {
"id": "p03943 AtCoder Beginner Contest 047 - Fighting over Candies",
"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": "Polycarp studies at the university in the group whic... | code | {
"ground_truth": "{\"inputs\": [\"3\\n0 2 2\\n\", \"4\\n1 2 1 0\\n\", \"6\\n2 0 1 3 2 0\\n\", \"100\\n2 0 0 2 0 0 0 0 0 2 0 0 0 5 0 0 0 0 0 0 0 1 0 7 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 7 4 0 0 0 0 5 0 0 0 0 0 0 7 4 0 0 0 0 0 0 7 7 0 0 0 0 0 2 0 0 0 0 0 0 0 0 4 7 7 0 0 0\\n\", \"2\\n1 0... | rating_<=1200 | {
"id": "769_B. News About Credit",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A stowaway and a controller play the following game.... | code | {
"ground_truth": "{\"inputs\": [\"5 3 2\\nto head\\n0001001\\n\", \"3 2 1\\nto tail\\n0001\\n\", \"50 4 12\\nto tail\\n000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000010001000000000000000000000000000000000000000100000000100000000000000000000000000000000000000000... | rating_1401-1600 | {
"id": "74_B. Train",
"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": "Write a program which performs the following operati... | code | {
"ground_truth": "{\"inputs\": [\"18\\ninsert 8\\ninsert 2\\ninsert 3\\ninsert 7\\ninsert 22\\ninsert 1\\nfind 1\\nfind 2\\nfind 3\\nfind 4\\nfind 5\\nfind 6\\nfind 7\\nfind 8\\nprint\\ndelete 3\\ndelete 7\\nprint\", \"18\\ninsert 8\\ninsert 2\\ninsert 3\\ninsert 7\\ninsert 22\\ninsert 1\\nfind 1\\nfind 2\\nfind 1\\... | none | {
"id": "p02285 Binary Search Tree III",
"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": "Miki is a high school student. She has a part time j... | code | {
"ground_truth": "{\"inputs\": [\"3 0 2\\n0.10000000000\\n0.00000100000\\n0.37500000000\", \"3 0 2\\n0.10000000000\\n0.37499999977\\n1.00000000000\", \"3 0 2\\n0.10000000000\\n0.50000000000\\n1.00000000000\", \"3 0 2\\n0.20000000000\\n0.00000100000\\n0.37500000000\", \"3 0 2\\n0.4085591484323763\\n0.00000100000\\n0.... | none | {
"id": "p01418 Sleeping Time",
"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 contains 0's, 1's, and 2's, the task... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"1012012112110\\\"\", \"S = \\\"111122\\\"\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-345",
"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": "Devu and Churu love to play games a lot. Today, they... | code | {
"ground_truth": "{\"inputs\": [[\"3 5\", \"1 2 3\", \"> 1 D\", \"< 2 C\", \"= 3 D\", \"> 4 C\", \"< 5 D\"], \"3 5\\n1 2 3\\n> 1 D\\n< 2 C\\n= 3 D\\n> 4 C\\n< 5 D\"], \"outputs\": [[\"DCDDC\"], \"DCDDC\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-2712",
"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": "This is an output-only problem. You shouldn't read a... | code | {
"ground_truth": "{\"inputs\": [\"\"], \"outputs\": [\"\"]}",
"style": "rule"
} | none | {
"id": "p02592 AtCoder Grand Contest 047 - Product Simulation",
"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": "Do you know the story about the three musketeers? An... | code | {
"ground_truth": "{\"inputs\": [\"5\\n10 20 30\\n1 1 1 1 51\\n\", \"7\\n30 20 10\\n34 19 50 33 88 15 20\\n\", \"5\\n10 20 30\\n1 1 1 1 50\\n\", \"6\\n10 5 10\\n10 9 5 25 20 5\\n\", \"3\\n2 2 2\\n1 1 1\\n\", \"1\\n100000000 100000000 100000000\\n100000000\\n\", \"1\\n100000000 100000000 100000000\\n1\\n\", \"4\\n6 7 ... | rating_>1900 | {
"id": "611_E. New Year and Three Musketeers",
"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": "Problem statement\n\nGiven a permutation $ P $ of le... | code | {
"ground_truth": "{\"inputs\": [\"7\\n0 4 2 3 6 5 1\", \"7\\n0 6 2 3 6 5 1\", \"7\\n0 6 2 3 9 5 1\", \"7\\n0 6 3 3 9 5 1\", \"7\\n0 6 3 4 9 5 1\", \"7\\n0 6 3 4 9 1 1\", \"7\\n0 6 3 4 9 1 0\", \"7\\n0 6 3 7 9 1 0\", \"7\\n-1 6 3 7 9 1 0\", \"7\\n-1 6 1 7 3 1 0\", \"7\\n-2 6 1 7 3 1 0\", \"7\\n-2 6 1 2 3 1 0\", \"7\\... | none | {
"id": "p02220 Parity Sort",
"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": "In a bizarre game of chess ,knight was so drunk, tha... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"17\", \"10\"]], \"outputs\": [[\"2111\", \"0\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-6233",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A class of students wrote a multiple-choice test.\n\... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\nABC\\nBCD\\nCDE\\n5 4 12\\n\", \"2 4\\nABCD\\nABCE\\n1 2 3 4\\n\", \"10 10\\nCBBBBBBBBB\\nABBBBEBBBB\\nBDBBBBBBBB\\nBBBBBBBBBB\\nBABBBBBEBB\\nEBBBBBBBBB\\nBBBCBDCBBB\\nBEBBEBBBBB\\nBBBBBBBBBB\\nBBBDBBBABB\\n840 678 490 900 683 84 256 233 468 856\\n\", \"2 1\\nB\\nA\\n317\\n\",... | rating_<=1200 | {
"id": "1201_A. Important Exam",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let's call the roundness of the number the number of... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n9 77 13\\n\", \"5 3\\n15 16 3 25 9\\n\", \"3 2\\n50 4 20\\n\", \"3 1\\n16 10 125\\n\", \"5 3\\n1360922189858001 5513375057164001 4060879738933651 3260997351273601 5540397778584001\\n\", \"2 2\\n16 25\\n\", \"3 2\\n16 625 10\\n\", \"3 1\\n4 10 25\\n\", \"200 100\\n1 1 1 1 1 1 1... | rating_>1900 | {
"id": "837_D. Round Subset",
"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": "Create a function that will return true if all number... | code | {
"ground_truth": "{\"fn_name\": \"validate_sequence\", \"inputs\": [[[1, 2, 3, 4, 5, 8, 7, 8, 9]], [[2, 8, 6, 7, 4, 3, 1, 5, 9]], [[1, 2, 3, 4, 5, 6, 7, 8, 9]], [[0, 1, 2, 3, 4, 5, 6, 7, 8]], [[1, 3, 5, 7, 9, 11, 13, 15]], [[1, 3, 5, 7, 8, 12, 14, 16]], [[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]], [[0, 2, 4, 6, 8]], [[2, 4,... | EASY | {
"id": "taco-train-15295",
"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": "D: Arrow / Arrow\n\nproblem\n\nrodea is in a one-dim... | code | {
"ground_truth": "{\"inputs\": [\"5 1\\n2\\n1\\n3\", \"6 1\\n2\\n1\\n3\", \"5 1\\n2\\n1\\n0\", \"6 1\\n2\\n1\\n4\", \"5 1\\n1\\n1\\n0\", \"6 1\\n2\\n1\\n8\", \"5 1\\n1\\n1\\n1\", \"7 1\\n1\\n1\\n0\", \"8 1\\n1\\n1\\n0\", \"10 1\\n1\\n1\\n1\", \"11 1\\n6\\n1\\n5\", \"15 1\\n3\\n1\\n2\", \"15 1\\n6\\n1\\n5\", \"15 1\\... | none | {
"id": "p02033 Arrow",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.