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": "After a successful year of milk production, Farmer J... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n2 3 2\\n3 1\\n2 1\\n\", \"5 2\\n1 1 1 1 1\\n1 2\\n1 3\\n\", \"5 1\\n1 1 1 1 1\\n2 5\\n\", \"5 2\\n1 1 1 1 1\\n1 2\\n1 4\\n\", \"5 1\\n1 1 1 1 1\\n1 3\\n\", \"5 1\\n1 2 3 2 1\\n1 2\\n\", \"5 5\\n1 1 1 1 1\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n\", \"2 1\\n2 2\\n1 1\\n\", \"5 2\\n1 1 1... | rating_>1900 | {
"id": "1307_E. Cow and Treats",
"rating": 2500,
"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": "Given two positive numbers B and C, what is the mini... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 4\\n8 12\"], \"outputs\": [\"2\\n3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-16873",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "In this problem, we use the 24-hour clock.\n\nTakaha... | code | {
"ground_truth": "{\"inputs\": [\"10 0 15 0 30\", \"10 0 12 0 120\", \"10 0 15 0 25\", \"4 0 12 0 120\", \"10 -1 15 0 25\", \"4 0 12 0 102\", \"10 -1 15 0 14\", \"4 0 12 0 22\", \"10 -1 15 1 14\", \"4 0 12 -1 22\", \"6 -1 15 1 14\", \"8 0 12 -1 22\", \"6 -1 15 1 5\", \"8 0 12 -1 34\", \"6 -2 15 1 5\", \"11 0 12 -1 3... | none | {
"id": "p02663 NOMURA Programming Competition 2020 - Study Scheduling",
"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 had a strictly increasing sequence of positive... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n2\\n1\\n\", \"3\\n1\\n2\\n3\\n\", \"1\\n139\\n\", \"100\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18\\n18... | rating_>1900 | {
"id": "509_C. Sums of Digits",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array A of N integers. The task is to find i... | code | {
"ground_truth": "{\"inputs\": [\"N=7 A[] = {3, 4, 7, 1, 2, 9, 8}\", \"N=7 A[] = {65, 30, 7, 90, 1, 9, 8}\"], \"outputs\": [\"1\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24658",
"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": "Evi has N integers a_1,a_2,..,a_N. His objective is ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 8\", \"3\\n1 1 3\", \"3\\n4 2 5\", \"4\\n-100 -100 -100 -100\", \"2\\n5 8\", \"3\\n1 1 6\", \"3\\n4 3 5\", \"4\\n-100 -45 -100 -100\", \"2\\n5 11\", \"3\\n1 1 8\", \"3\\n3 3 5\", \"3\\n0 1 8\", \"3\\n3 0 5\", \"2\\n10 6\", \"3\\n0 0 8\", \"3\\n3 0 10\", \"3\\n0 0 14\", \"3\\n3... | none | {
"id": "p04031 AtCoder Beginner Contest 043 - Be Together",
"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": "Polycarpus takes part in the \"Field of Wonders\" TV... | code | {
"ground_truth": "{\"inputs\": [\"4\\na**d\\n2\\nabcd\\nacbd\\n\", \"5\\nlo*er\\n2\\nlover\\nloser\\n\", \"3\\na*a\\n2\\naaa\\naba\\n\", \"1\\n*\\n1\\na\\n\", \"1\\n*\\n1\\nz\\n\", \"1\\n*\\n2\\na\\nz\\n\", \"2\\n**\\n1\\naa\\n\", \"2\\n**\\n1\\nfx\\n\", \"2\\n**\\n2\\nfx\\nab\\n\", \"2\\n**\\n2\\nfx\\naf\\n\", \"2\... | MEDIUM | {
"id": "taco-train-5940",
"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": "Once upon a time a little frog whose name was Vasya ... | code | {
"ground_truth": "{\"inputs\": [\"2\", \"3\", \"4\", \"5\", \"6\", \"1\", \"9149\", \"2877\", \"2956\", \"3035\", \"3114\", \"3193\", \"3273\", \"7000\", \"7079\", \"4653\", \"9995\", \"9996\", \"9997\", \"9998\", \"9999\", \"10000\"], \"outputs\": [\"1 2 \", \"1 3 2 \", \"1 4 2 3 \", \"1 5 2 4 3 \", \"1 6 2 5 3 4 \... | rating_<=1200 | {
"id": "53C",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef bought an electronic board and pen. He wants to... | code | {
"ground_truth": "{\"inputs\": [[\"5\", \"3 3\", \"100\", \"010\", \"000\", \"000\", \"010\", \"001\", \"4 4\", \"0000\", \"0110\", \"0000\", \"0011\", \"1100\", \"0000\", \"1100\", \"0000\", \"3 3\", \"100\", \"000\", \"001\", \"000\", \"010\", \"000\", \"3 3\", \"000\", \"010\", \"000\", \"100\", \"000\", \"001\",... | HARD | {
"id": "taco-train-4158",
"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 sequence of $n$ integers $a_1, \\, a... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n4 -7 -1 5 10\\n1\\n0\\n3\\n1 10 100\\n4\\n-3 2 10 2\\n9\\n25 -171 250 174 152 242 100 -205 -258\\n\", \"20\\n2\\n0 -7\\n3\\n4 3 -2\\n2\\n6 0\\n2\\n0 5\\n3\\n0 -3 0\\n3\\n3 0 2\\n2\\n4 -9\\n1\\n0\\n2\\n0 6\\n3\\n0 -5 1\\n2\\n9 -6\\n3\\n-2 -3 -1\\n3\\n2 -4 -4\\n3\\n-1 -4 -2\\n... | MEDIUM_HARD | {
"id": "taco-train-18683",
"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": "Alice is playing with some stones.\n\nNow there are ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 4 5\\n1 0 5\\n5 3 2\\n\", \"20\\n9 4 8\\n10 6 7\\n4 6 0\\n7 7 6\\n3 3 10\\n4 2 1\\n4 4 0\\n2 0 0\\n8 8 7\\n3 1 7\\n3 10 7\\n1 7 3\\n7 9 1\\n1 6 9\\n0 9 5\\n4 0 0\\n2 10 0\\n4 8 5\\n10 0 1\\n8 1 1\\n\", \"64\\n0 0 0\\n0 0 1\\n0 0 2\\n0 0 3\\n0 1 0\\n0 1 1\\n0 1 2\\n0 1 3\\n0 2 ... | rating_<=1200 | {
"id": "1236_A. Stones",
"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": "Vova again tries to play some computer card game.\n\... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n6 2 8\", \"3 6\\n9 1 14\", \"5 1\\n1 3 1 3 1\", \"5 1\\n5 5 5 5 5\", \"5 1\\n5 4 4 4 4\", \"100 1\\n1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1... | rating_1601-1900 | {
"id": "818E",
"rating": 1900,
"split": "confidence_train",
"sub_source": "rating_1601-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": "Recently, on a programming lesson little Petya showe... | code | {
"ground_truth": "{\"inputs\": [\"C:\\\\folder1\\\\file1.txt\", \"C:\\\\folder1\\\\folder2\\\\folder3\\\\file1.txt\\nC:\\\\folder1\\\\folder2\\\\folder4\\\\file1.txt\\nD:\\\\folder1\\\\file1.txt\", \"C:\\\\file\\\\file\\\\file\\\\file\\\\file.txt\\nC:\\\\file\\\\file\\\\file\\\\file2\\\\file.txt\", \"C:\\\\file\\\\f... | rating_1601-1900 | {
"id": "66C",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "In this kata you need to create a function that takes... | code | {
"ground_truth": "{\"fn_name\": \"sum_differences_between_products_and_LCMs\", \"inputs\": [[[[15, 18], [4, 5], [12, 60]]], [[[1, 1], [0, 0], [13, 91]]], [[[15, 7], [4, 5], [19, 60]]], [[[20, 50], [10, 10], [50, 20]]], [[]]], \"outputs\": [[840], [1092], [0], [1890], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17936",
"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 squares in a row. The leftmost square co... | code | {
"ground_truth": "{\"inputs\": [\"48792 105960835 681218449 90629745 90632170\", \"491995 412925347 825318103 59999126 59999339\", \"5 1 5 2 4\", \"4 7 6 4 5\", \"1788 105960835 681218449 90629745 90632170\", \"4 7 11 4 5\", \"491995 412925347 465710940 59999126 59999339\", \"1788 122437383 681218449 90629745 906321... | none | {
"id": "p03666 AtCoder Grand Contest 017 - Moderate Differences",
"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, majority of students and teachers of Su... | code | {
"ground_truth": "{\"inputs\": [\"1 2\\n1 100\\n\", \"5 5\\n2 100\\n3 200\\n4 300\\n5 800\\n5 900\\n\", \"5 5\\n2 100\\n3 200\\n4 300\\n5 400\\n5 900\\n\", \"5 5\\n2 5\\n2 4\\n2 1\\n3 6\\n3 7\\n\", \"1 3000\\n918 548706881\\n\", \"1 3000\\n2006 226621946\\n\", \"10 2\\n1 1\\n1 1\\n1 1\\n1 1\\n1 1\\n2 1\\n2 1\\n2 1\\... | rating_1601-1900 | {
"id": "1019_A. Elections",
"rating": 1700,
"split": "confidence_train",
"sub_source": "rating_1601-1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Given a string s, process q queries, each having one... | code | {
"ground_truth": "{\"inputs\": [\"ababababa\\n3\\n2 1 7 aba\\n1 5 c\\n2 1 7 aba\\n\", \"abcdcbc\\n5\\n2 1 7 bc\\n1 4 b\\n2 4 7 bc\\n1 2 a\\n2 1 4 aa\\n\", \"abcdabcdab\\n5\\n2 2 8 ab\\n2 1 10 ab\\n1 3 a\\n1 4 b\\n2 1 4 ab\\n\", \"abcdabcdab\\n5\\n2 2 8 ba\\n2 1 10 ab\\n1 3 a\\n1 4 b\\n2 1 4 ab\\n\", \"ababababa\\n3\... | rating_>1900 | {
"id": "914_F. Substrings in a String",
"rating": 3000,
"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": "My futon\n\nYou bought N futons in preparation for y... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n5\\n6\\n1 1\\n5\\n2\\n1 1\\n20\\n5\\n4 1\\n2 4 5 9\\n8\\n4 3\\n3 5 2 1\\n10 4 7\\n5 5\\n2 2 2 2 2\\n1 3 5 7 9\\n2 5\\n2 5\\n2 5 2 5 2\\n0 0\", \"1 1\\n5\\n6\\n1 1\\n5\\n2\\n1 1\\n20\\n5\\n4 1\\n2 4 5 9\\n8\\n4 3\\n3 5 2 1\\n10 4 7\\n5 5\\n2 2 2 2 2\\n1 3 5 7 9\\n2 5\\n2 5\\n2 ... | none | {
"id": "p01849 The Most Powerful Bed",
"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 a rectangular chocolate bar consisting of n... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 2 1\\n2 2 3\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 1\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 2\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 2 4\\n2 2 1\\n2 2 2\\n2 2 4\\n\", \"4\\n2 1 1\\n2 2 3\\n2 2 2\\n2 2 4\\n\", \"4\\n2 1 1\\n2 2 3\\n2 2 2\\n4 2 4\\n\", \"4\\n2 2 2\\n2 2 1\\n4 2 2\\n2 2... | HARD | {
"id": "taco-train-17999",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array a_1, a_2, ..., a_n of integer... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n\", \"3\\n3 1 10\\n\", \"4\\n5 5 7 2\\n\", \"100\\n3 2 1 3 2 3 1 2 0 0 1 2 1 3 2 0 2 0 2 3 1 1 1 0 1 0 3 2 2 0 0 1 0 1 3 3 1 2 2 2 3 0 2 1 3 0 2 1 0 0 1 2 2 3 1 3 2 2 2 0 0 1 0 1 0 2 3 2 2 1 0 2 0 2 0 3 3 3 1 1 3 1 1 1 1 0 0 1 0 0 2 3 1 2 1 3 0 3 0 0\\n\", \"1\\n23424\\n... | rating_>1900 | {
"id": "1101_G. (Zero XOR Subset)-less",
"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": "P \"Today is the recording of a program of a liver t... | code | {
"ground_truth": "{\"inputs\": [\"4 2 3\\n1 2\\n2 3\\n3 4\", \"6 1 5\\n1 2\\n1 4\\n2 3\\n4 5\\n3 6\", \"8 3 6\\n1 2\\n2 4\\n3 4\\n4 5\\n5 6\\n6 7\\n7 8\", \"4 1 4\\n1 2\\n2 3\\n3 4\", \"4 2 3\\n1 3\\n2 3\\n3 4\", \"2 1 5\\n1 2\\n1 4\\n2 3\\n4 5\\n3 6\", \"6 1 5\\n1 2\\n1 4\\n2 3\\n2 5\\n3 6\", \"4 2 3\\n1 3\\n1 3\\n... | none | {
"id": "p01062 Courage Test",
"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": "N hotels are located on a straight line. The coordin... | code | {
"ground_truth": "{\"inputs\": [\"9\\n1 3 6 13 15 18 19 29 31\\n10\\n4\\n1 8\\n7 3\\n6 7\\n8 5\", \"9\\n1 3 6 13 15 18 19 29 31\\n10\\n2\\n1 8\\n7 3\\n6 7\\n8 5\", \"9\\n1 6 6 13 23 18 19 29 31\\n10\\n3\\n1 8\\n7 3\\n6 7\\n8 10\", \"9\\n1 3 6 13 23 18 19 29 31\\n10\\n2\\n1 8\\n7 5\\n6 7\\n8 5\", \"9\\n1 3 6 13 23 18... | none | {
"id": "p04017 AtCoder Regular Contest 060 - Tak and Hotels",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 1 1\\n1 1 1 1 1\\n2 1 1\\n1 2\", \"1\\n4 2 3\\n1 2 3 4\", \"3\\n8 1 1\\n2 3 4 5 6 7 8 9\\n6 2 3\\n7 8 9 1 2 3\\n10 5 5\\n5 5 5 5 5 5 5 5 5 5\", \"2\\n6 1 1\\n1 1 1 1 1 2\\n10 2 4\\n1 1 1 1 1 1 3 4 5 8\", \"3\\n10 5 7\\n10 9 8 7 6 5 4 3 2 1\\n6 1 6\\n6 5 4 3 2 1\\n10 3 2\\n1 1 ... | EASY | {
"id": "taco-test-967",
"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 is a road with length l meters. The start of t... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 10\\n1 9\\n1 10\\n1\\n5 7\\n1 2 3 4 6\\n2 1000000000\\n413470354 982876160\\n9 478\\n1 10 25 33 239 445 453 468 477\\n\", \"5\\n2 10\\n1 9\\n1 10\\n1\\n5 7\\n1 2 3 4 6\\n2 1000000000\\n413470354 988915189\\n9 478\\n1 10 25 33 239 445 453 468 477\\n\", \"5\\n2 10\\n1 9\\n1 10\\... | rating_1401-1600 | {
"id": "1408_C. Discrete Acceleration",
"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": "problem\n\nThere are $ V $ islands, numbered $ 0, 1,... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n0 1 3\\n0 2 4\\n1 3 1\\n2 3 5\", \"4 4\\n0 1 3\\n0 2 4\\n1 3 1\\n0 3 5\", \"4 8\\n0 1 6\\n0 2 4\\n1 3 1\\n0 3 5\", \"4 4\\n0 1 3\\n0 2 0\\n1 3 1\\n2 3 5\", \"2 15\\n0 1 0\\n0 1 4\\n2 3 0\\n0 3 9\", \"5 8\\n0 1 6\\n0 0 4\\n2 3 4\\n1 4 5\", \"2 15\\n0 1 0\\n0 1 4\\n2 3 0\\n0 1 9... | none | {
"id": "p01935 Protect from the enemy attack",
"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 $n$ barrels lined up in a row, numbered fro... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 1\\n5 5 5 5\\n3 2\\n0 0 0\\n\", \"2\\n4 2\\n5 5 5 5\\n3 2\\n0 0 0\\n\", \"2\\n4 2\\n5 5 5 5\\n3 2\\n0 0 1\\n\", \"2\\n4 3\\n5 5 2 5\\n3 2\\n0 1 0\\n\", \"2\\n4 3\\n5 5 2 1\\n3 2\\n0 1 0\\n\", \"2\\n4 3\\n5 1 2 1\\n3 2\\n0 1 0\\n\", \"2\\n4 2\\n2 5 5 0\\n3 2\\n0 0 0\\n\", \"2\\... | EASY | {
"id": "taco-train-24515",
"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 Preorder, Inorder and Postorder traversals of s... | code | {
"ground_truth": "{\"inputs\": [\"N = 5\\npreorder[] = {1, 2, 4, 5, 3}\\ninorder[] = {4, 2, 5, 1, 3}\\npostorder[] = {4, 5, 2, 3, 1}\", \"N = 5\\npreorder[] = {1, 5, 4, 2, 3}\\ninorder[] = {4, 2, 5, 1, 3}\\npostorder[] = {4, 1, 2, 3, 5}\"], \"outputs\": [\"Yes\", \"No\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-587",
"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 list of words, list of single letters (might... | code | {
"ground_truth": "{\"fn_name\": \"maxScoreWords\", \"inputs\": [[[\"\\\"dog\\\"\", \"\\\"cat\\\"\", \"\\\"dad\\\"\", \"\\\"good\\\"\"], [\"\\\"a\\\"\", \"\\\"a\\\"\", \"\\\"c\\\"\", \"\\\"d\\\"\", \"\\\"d\\\"\", \"\\\"d\\\"\", \"\\\"g\\\"\", \"\\\"o\\\"\", \"\\\"o\\\"\"], [1, 0, 9, 5, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 2... | MEDIUM | {
"id": "taco-train-4491",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A string is a palindrome if it reads the same from t... | code | {
"ground_truth": "{\"inputs\": [\"mew\", \"wuffuw\", \"qqqqqqqq\", \"ijvji\", \"iiiiiii\", \"wobervhvvkihcuyjtmqhaaigvvgiaahqmtjyuchikvvhvrebow\", \"wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\", \"wobervhvvkihcuyjtmqhaaigvahheoqleromusrartldojsjvy\", \"ijvxljt\", \"fyhcncnchyf\", \"ffffffffffff\", \"fyhcncfs... | rating_<=1200 | {
"id": "981A",
"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": "There is a sequence $A = a_0, a_1, ..., a_{n-1}$. Yo... | code | {
"ground_truth": "{\"inputs\": [\"5 6\\n0 0 2 5\\n0 1 2 3\\n1 0 1\\n1 1 3\\n0 1 4 8\\n1 0 4\", \"5 6\\n0 0 2 5\\n0 1 2 3\\n1 0 1\\n1 1 3\\n0 1 4 4\\n1 0 4\", \"5 6\\n0 0 2 5\\n0 2 2 3\\n1 0 1\\n1 1 3\\n0 1 4 4\\n1 0 4\", \"5 6\\n0 0 2 5\\n0 1 2 3\\n1 0 1\\n1 1 3\\n0 1 4 3\\n1 0 4\", \"5 6\\n0 0 2 5\\n0 1 2 5\\n1 0 1... | none | {
"id": "p02344 Weighted Union Find Trees",
"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": "A positive integer is called a 2-3-integer, if it is... | code | {
"ground_truth": "{\"inputs\": [\"1 10\\n\", \"100 200\\n\", \"1 2000000000\\n\", \"1088391168 1934917632\\n\", \"1088391167 1934917632\\n\", \"1088391169 1934917632\\n\", \"1088391168 1934917631\\n\", \"1088391168 1934917633\\n\", \"4 134217728\\n\", \"209952 43046722\\n\", \"25165825 43046719\\n\", \"5183 25165825... | EASY | {
"id": "taco-train-15570",
"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": "Snuke has an integer sequence A of length N.\n\nHe w... | code | {
"ground_truth": "{\"inputs\": [\"10\\n10 71 84 33 6 47 23 25 52 64\", \"7\\n1 2 3 1000000000 4 5 6\", \"5\\n3 2 4 1 2\", \"10\\n10 71 113 33 6 47 23 25 52 64\", \"7\\n1 2 3 1100000000 4 5 6\", \"5\\n3 2 4 2 2\", \"10\\n10 102 113 33 6 47 23 25 52 64\", \"7\\n1 2 3 1100000000 4 5 2\", \"10\\n10 102 113 60 6 47 23 25... | none | {
"id": "p03312 AtCoder Regular Contest 100 - Equal Cut",
"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 number obtained by multiplying 1 by 2, 3, 5 seve... | code | {
"ground_truth": "{\"inputs\": [\"3 8\\n1 27\\n1 86\\n0\", \"3 8\\n2 27\\n1 86\\n0\", \"3 9\\n2 27\\n1 86\\n0\", \"3 8\\n1 35\\n1 86\\n0\", \"5 8\\n2 27\\n1 86\\n0\", \"3 9\\n4 27\\n1 86\\n0\", \"3 9\\n6 27\\n1 86\\n0\", \"3 9\\n6 31\\n1 86\\n0\", \"3 6\\n6 31\\n1 86\\n0\", \"3 6\\n6 9\\n1 86\\n0\", \"3 6\\n8 9\\n1 ... | none | {
"id": "p00162 Hamming Numbers",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a number 'N'. The task is to find the N^{th} nu... | code | {
"ground_truth": "{\"inputs\": [\"N = 10\", \"N = 21\"], \"outputs\": [\"33\", \"222\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-17928",
"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": "An army of *n* droids is lined up in one row. Each d... | code | {
"ground_truth": "{\"inputs\": [\"5 2 4\\n4 0\\n1 2\\n2 1\\n0 2\\n1 3\", \"3 2 4\\n1 2\\n1 3\\n2 2\", \"1 1 0\\n0\", \"1 1 0\\n1\", \"1 1 1\\n0\", \"4 5 33\\n2 10 2 3 2\\n10 6 4 5 0\\n3 1 7 3 2\\n4 4 2 1 5\", \"4 5 40\\n0 10 9 0 4\\n10 5 5 7 4\\n9 9 5 5 2\\n6 7 9 4 3\", \"31 2 1913\\n845 576\\n862 325\\n914 283\\n43... | rating_>1900 | {
"id": "514D",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "For a given sequence $A = \\\\{a_0, a_1, ..., a_{n-1... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 2 2 4\\n3\\n2\\n3\\n5\", \"4\\n1 2 2 6\\n3\\n2\\n3\\n5\", \"4\\n1 0 2 6\\n3\\n2\\n3\\n5\", \"4\\n1 0 2 6\\n4\\n2\\n3\\n5\", \"4\\n1 0 2 4\\n3\\n2\\n3\\n5\", \"4\\n1 0 2 4\\n3\\n2\\n6\\n6\", \"4\\n1 0 0 4\\n3\\n2\\n6\\n6\", \"4\\n1 0 0 4\\n3\\n4\\n12\\n0\", \"4\\n1 0 0 5\\n3\\n... | none | {
"id": "p02453 Lower Bound",
"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 currently studying the language $A j o b$ ( ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 1 2\\n2 1 5\\n5 3 13\\n\", \"5\\n5 2 3\\n6 5 11\\n7 6 3\\n6 5 7\\n6 5 5\\n\"], \"outputs\": [\"1\\n3\\n2\\n\", \"2\\n7\\n2\\n0\\n2\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-13701",
"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": "Pravin and Saddam are room-mates.They always solve a... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2\\n3 5\\n\\nSAMPLE\", \"12\\n3 9\\n4 8\\n2 18\\n6 13\\n9 14\\n8 16\\n10 11\\n11 15\\n16 17\\n16 18\\n17 17\\n18 18\", \"12\\n3 9\\n4 8\\n2 18\\n6 13\\n9 14\\n8 16\\n10 11\\n11 5\\n16 17\\n16 18\\n17 17\\n18 18\", \"2\\n2 2\\n3 5\\n\\nSAMPLE\", \"12\\n3 9\\n4 8\\n4 18\\n6 13\\... | none | {
"id": "pravin-saddam-and-their-aptitude-question",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Polycarp plays \"Game 23\". Initially he has a numbe... | code | {
"ground_truth": "{\"inputs\": [\"120 51840\\n\", \"42 42\\n\", \"48 72\\n\", \"1 1\\n\", \"1 2\\n\", \"1 4\\n\", \"1 5\\n\", \"1 6\\n\", \"3024 94058496\\n\", \"1953125 500000000\\n\", \"139999978 419999934\\n\", \"1 223092870\\n\", \"2 5\\n\", \"289777775 341477104\\n\", \"12 26\\n\", \"4 9\\n\", \"5 11\\n\", \"3 ... | EASY | {
"id": "taco-train-24451",
"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": "After the huge success of Hero ISL this season our f... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 2\\n3 4\\n250000000 4\\n\\nSAMPLE\", \"3\\n1 2\\n3 4\\n250000000 4\\n\\nSAMPLE\", \"3\\n1 2\\n3 2\\n250000000 4\\n\\nS@MPLE\", \"3\\n1 2\\n5 4\\n250000000 4\\n\\nELPM@S\", \"3\\n1 2\\n5 4\\n173743654 4\\n\\nELPM@S\", \"3\\n1 1\\n3 4\\n173743654 4\\n\\nS@MPME\", \"3\\n2 1\\n3 4... | none | {
"id": "our-coach-and-messi",
"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 plays the sleuth with his friends. The rules o... | code | {
"ground_truth": "{\"inputs\": [\"Is it a melon?\", \"Is it an apple?\", \" Is it a banana ?\", \"Is it an apple and a banana simultaneouSLY?\", \"oHtSbDwzHb?\", \"sZecYdUvZHrXx?\", \"uMtXK?\", \"U?\", \"aqFDkCUKeHMyvZFcAyWlMUSQTFomtaWjoKLVyxLCw vcufPBFbaljOuHWiDCROYTcmbgzbaqHXKPOYEbuEtRqqoxBbOETCsQzhw?\"... | rating_<=1200 | {
"id": "49A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given two strings of equal length s and t co... | code | {
"ground_truth": "{\"inputs\": [\"3\\nxabb\\naabx\\ntechnocup\\ntechnocup\\na\\nz\\n\", \"3\\nxabb\\naabx\\nteohnccup\\ntechnocup\\na\\nz\\n\", \"3\\nbcbw\\nxaaa\\ntdohncbup\\npvconhcet\\nb\\nz\\n\", \"3\\nxabb\\naabx\\ntdohnccup\\ntechnocup\\na\\nz\\n\", \"3\\nxabb\\nxbaa\\ntdohnccup\\ntechnocup\\na\\nz\\n\", \"3\\... | rating_<=1200 | {
"id": "1223_B. Strings Equalization",
"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 ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Every now and then people in the office moves teams o... | code | {
"ground_truth": "{\"fn_name\": \"boredom\", \"inputs\": [[{\"tim\": \"change\", \"jim\": \"accounts\", \"randy\": \"canteen\", \"sandy\": \"change\", \"andy\": \"change\", \"katie\": \"IS\", \"laura\": \"change\", \"saajid\": \"IS\", \"alex\": \"trading\", \"john\": \"accounts\", \"mr\": \"finance\"}], [{\"tim\": \... | EASY | {
"id": "taco-train-13684",
"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": "We define a function F, on a array , P ,as follows:\... | code | {
"ground_truth": "{\"inputs\": [\"5\\n963\\n14075639 871832047 740863415 853611575 691872814 191740938 186080015 279974590 643245531 56305544 3375183 561681421 86400797 741466680 522756063 501085006 850389576 881837630 52506268 253196605 26571105 829255314 158940758 447984814 71181476 99364735 406991443 359819525 60... | EASY | {
"id": "taco-train-2345",
"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": "Squirrel Liss loves nuts. There are n trees (numbere... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2\\n1\\n2\\n1\\n1\\n\", \"2\\n1\\n2\\n\", \"1\\n1\\n\", \"2\\n1\\n0\\n\", \"2\\n2\\n0\\n\", \"2\\n2\\n1\\n\", \"1\\n2\\n\", \"5\\n2\\n1\\n2\\n2\\n1\\n\", \"2\\n3\\n0\\n\", \"2\\n4\\n1\\n\", \"1\\n3\\n\", \"5\\n3\\n1\\n2\\n2\\n1\\n\", \"5\\n3\\n1\\n2\\n3\\n1\\n\", \"2\\n4\\n0\\n\... | rating_<=1200 | {
"id": "265_B. Roadside Trees (Simplified Edition)",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Bawris, are wells or ponds in which the water may be... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 7 4 7\\n5 2 3 1\\n9 2 7 1\\n\\nSAMPLE\", \"3\\n2 7 4 7\\n5 2 3 1\\n9 0 7 1\\n\\nSAMPLE\", \"3\\n2 7 4 17\\n5 4 3 1\\n9 0 8 0\\n\\nSAMPLE\", \"3\\n2 7 4 17\\n5 4 6 1\\n9 0 8 0\\n\\nSAMPLE\", \"3\\n2 7 4 17\\n5 1 6 2\\n9 0 13 0\\n\\nSAMPLE\", \"3\\n1 26 0 7\\n1 21 3 -1\\n232 0 1... | none | {
"id": "rajasthans-bawri",
"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": "Each palindrome can be always created from the other... | code | {
"ground_truth": "{\"inputs\": [\"bobseesanna\"], \"outputs\": [\"18\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-16621",
"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 an array of integers, find out whether there ar... | code | {
"ground_truth": "{\"fn_name\": \"containsNearbyAlmostDuplicate\", \"inputs\": [[[1, 2, 3, 1], 3, 0]], \"outputs\": [true]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-9877",
"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 two strings A and B, find the minimum number of... | code | {
"ground_truth": "{\"inputs\": [\"A = \\\"abcd\\\", B = \\\"cdabcdab\\\"\", \"A = \\\"aa\\\", B = \\\"a\\\"\"], \"outputs\": [\"3\", \"1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-16123",
"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": "Petya loves lucky numbers very much. Everybody knows... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 7\\n\", \"4\\n1 4 2 4\\n\", \"4\\n4 4 7 7\\n\", \"10\\n477777477 774747744 7474444 826252677 914843775 635834163 153357983 34088559 444477 4444\\n\", \"50\\n4 4 4 4 4 4 4 7 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 7\\n\", \"47\\n7744477... | rating_>1900 | {
"id": "145_D. Lucky Pair",
"rating": 2900,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Little Vlad is fond of popular computer game Bota-2.... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 2 15 9\\n\", \"4\\n8 2 2 7\\n\", \"1\\n1\\n\", \"1\\n123819\\n\", \"10\\n9 6 8 5 5 2 8 9 2 2\\n\", \"100\\n17 23 71 25 50 71 85 46 78 72 89 26 23 70 40 59 23 43 86 81 70 89 92 98 85 88 16 10 26 91 61 58 23 13 75 39 48 15 73 79 59 29 48 32 45 44 25 37 58 54 45 67 27 77 20 64 95... | HARD | {
"id": "taco-train-14143",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The entire network is under the inspection and direc... | code | {
"ground_truth": "{\"inputs\": [[\"techtrishna online event\", \"onlin\"]], \"outputs\": [[\"Y\"]]}",
"style": "rule"
} | UNKNOWN_DIFFICULTY | {
"id": "taco-train-19081",
"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": "We want to find the numbers higher or equal than 1000... | code | {
"ground_truth": "{\"fn_name\": \"max_sumDig\", \"inputs\": [[2000, 3], [2000, 4], [2000, 7], [3000, 7], [4000, 4], [5000, 2], [5000, 3], [5000, 4], [5000, 5], [5000, 6], [5000, 7], [5000, 8], [5000, 9]], \"outputs\": [[[11, 1110, 12555]], [[21, 1120, 23665]], [[85, 1200, 99986]], [[141, 1600, 220756]], [[35, 2000, ... | EASY | {
"id": "taco-train-11364",
"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": "## Description\n\nThe task is described in the title:... | code | {
"ground_truth": "{\"fn_name\": \"sum_arrangements\", \"inputs\": [[123], [1185]], \"outputs\": [[1332], [99990]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8256",
"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 restaurant received *n* orders for the rental. Eac... | code | {
"ground_truth": "{\"inputs\": [\"2\\n7 11\\n4 7\", \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\", \"6\\n4 8\\n1 5\\n4 7\\n2 5\\n1 3\\n6 8\", \"1\\n1 1\", \"2\\n4 6\\n4 8\", \"3\\n22 22\\n14 21\\n9 25\", \"4\\n20 59\\n30 62\\n29 45\\n29 32\", \"5\\n40 124\\n40 117\\n67 106\\n36 121\\n38 102\", \"6\\n124 155\\n50 93\\n45 120\\... | rating_1401-1600 | {
"id": "597B",
"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": "Abendsen assigned a mission to Juliana. In this miss... | code | {
"ground_truth": "{\"inputs\": [\"8 10\\n1 2 1 2 5 4 5\\n1 2\\n3 2\\n3 1\\n1 1\\n1 1\\n3 5\\n3 7\\n3 4\\n2 2\\n3 5\\n\", \"8 11\\n1 1 2 3 3 6 6\\n1 1\\n1 1\\n1 3\\n3 2\\n3 4\\n3 6\\n3 7\\n2 3\\n1 6\\n3 7\\n3 6\\n\", \"10 10\\n1 1 2 1 5 3 2 6 9\\n2 1\\n1 6\\n1 6\\n3 6\\n2 9\\n1 3\\n1 5\\n3 5\\n1 8\\n3 5\\n\", \"2 1\\... | rating_>1900 | {
"id": "1017_G. The Tree",
"rating": 3200,
"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": "Balph is learning to play a game called Buma. In thi... | code | {
"ground_truth": "{\"inputs\": [\"OOOWWW\\n\", \"BBWBB\\n\", \"BBWWBB\\n\", \"BWWB\\n\", \"WWWOOOOOOWWW\\n\", \"AA\\n\", \"A\\n\", \"ABCDEF\\n\", \"BA\\n\", \"CC\\n\", \"B\\n\", \"FEDCBA\\n\", \"CBWBB\\n\", \"BBWBWB\\n\", \"BVWB\\n\", \"WWWOONOOOWWW\\n\", \"AB\\n\", \"C\\n\", \"EEDCBA\\n\", \"BBWBC\\n\", \"BBWBWA\\n... | rating_<=1200 | {
"id": "1267_B. Balls of Buma",
"rating": 900,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Alice, Bob, and Clara are eating at a new restaurant... | code | {
"ground_truth": "{\"inputs\": [\"6 2 2 2\\n\", \"1 1 1 1\\n\"], \"outputs\": [\"possible\\n\", \"impossible\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-9541",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "The police department of your city has just started ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n-1 -1 1\", \"8\\n1 -1 1 -1 -1 1 1 1\", \"11\\n-1 -1 2 -1 -1 -1 -1 -1 -1 -1 -1\", \"7\\n-1 -1 1 1 -1 -1 1\", \"21\\n-1 -1 -1 -1 -1 3 2 -1 6 -1 -1 2 1 -1 2 2 1 6 5 -1 5\", \"98\\n-1 -1 1 -1 -1 -1 -1 1 -1 -1 1 -1 -1 1 -1 1 1 1 -1 1 1 1 1 1 -1 1 -1 -1 -1 -1 1 -1 -1 1 1 -1 1 1 1 -1 -... | rating_<=1200 | {
"id": "427A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There is a given list of strings where each string c... | code | {
"ground_truth": "{\"inputs\": [\"7\\naab\\ndefgab\\nabcde\\naabcde\\ncedaaa\\nbbbbbbbbbb\\njabjjjad\", \"4\\naab\\naac\\naacghgh\\naabghgh\\n\"], \"outputs\": [\"BAD SET\\naabcde\", \"BAD SET\\naacghgh\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-9648",
"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": "Vikrant and Sarthak are roommates and this morning t... | code | {
"ground_truth": "{\"inputs\": [\"10000000\", \"999997\", \"10000\", \"50\", \"999941\", \"5000000\", \"20\", \"1\"], \"outputs\": [\"0\", \"28\", \"105\", \"3080536278\", \"220832291331\", \"60730481328\", \"3080928753\", \"754606\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-25251",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a function $f$ written in some basic l... | code | {
"ground_truth": "{\"inputs\": [\"9\\nadd\\nfor 43\\nend\\nfor 10\\nfor 15\\nadd\\nend\\nadd\\nend\\n\", \"2\\nfor 62\\nend\\n\", \"11\\nfor 100\\nfor 100\\nfor 100\\nfor 100\\nfor 100\\nadd\\nend\\nend\\nend\\nend\\nend\\n\", \"1\\nadd\\n\", \"65\\nfor 2\\nfor 2\\nfor 2\\nfor 2\\nfor 2\\nfor 2\\nfor 2\\nfor 2\\nfor... | MEDIUM_HARD | {
"id": "taco-train-14087",
"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 an NxN chessboard and a Knight at position (x, ... | code | {
"ground_truth": "{\"inputs\": [\"N = 8, x = 0, y = 0, K = 3\", \"N = 4, x = 1, y = 2, k = 4\"], \"outputs\": [\"0.125000\", \"0.024414\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2988",
"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": "Marut loves good strings. According to him, good str... | code | {
"ground_truth": "{\"inputs\": [\"0\", \"1\\nabcd\\nabCD\", \"1\\n1A23bCD\", \"1\\n1234\", \"1\\nabcc\\nabCD\", \"1\\n1021\", \"1\\nbacc\\nabCD\", \"1\\n1694\", \"1\\nbacb\\nabCD\", \"1\\n1223\", \"1\\nbacb\\nabCC\", \"1\\n1735\", \"1\\nbacc\\nabCC\", \"1\\n2032\", \"1\\nbacc\\nCbCa\", \"1\\n1789\", \"1\\nbacc\\nCbD... | none | {
"id": "marut-and-strings-4",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef recorded a video explaining his favorite recipe... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1\\n5\\n2\\n1 1\\n3\\n1 2 3\\n4\\n2 1 2 2\\n\"], \"outputs\": [\"1\\n1\\n3\\n3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3737",
"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": "Little Vasya likes painting fractals very much.\n\nH... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n..**\\n..**\\n....\\n....\\n\", \"6 11\\n......*.***\\n*.*.*....**\\n.***....*.*\\n..***.*....\\n.*.*.....**\\n......*.*..\\n\", \"4 4\\n***.\\n****\\n****\\n****\\n\", \"10 10\\n.***..*...\\n*..*...**.\\n*..**.**.*\\n*......**.\\n***....***\\n.*...*.**.\\n.*........\\n*.**.**... | rating_>1900 | {
"id": "228_C. Fractal Detector",
"rating": 2000,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A median in an array with the length of n is an elem... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n1 2 3\\n\", \"3 10\\n10 20 30\\n\", \"100 37\\n20 20 3 35 36 14 30 9 33 36 32 46 43 22 43 50 34 6 13 25 1 34 10 6 21 30 19 17 1 23 9 23 38 21 7 43 49 28 33 42 4 19 39 23 12 42 31 13 26 23 1 26 24 48 10 6 12 48 40 18 10 26 9 5 22 45 46 23 46 34 34 45 3 7 16 39 14 29 48 1 12 37 ... | rating_1401-1600 | {
"id": "166_C. Median",
"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": "Michael works in a bakery. At the end of his shift, ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n1 3 4 2\\n4 3 2 1\\n\", \"6\\n1 2 3 4 5 6\\n6 5 4 3 2 1\\n\"], \"outputs\": [\"Possible\\n\", \"Impossible\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-22609",
"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": "Read problems statements in Mandarin Chinese and Ru... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n5\\n1 2 2 2\\n1 2 2 2\\n2 2 3\\n1 2 3 3\\n2 1 5\", \"3\\n1 2 3\\n5\\n1 2 2 2\\n1 2 2 2\\n2 2 3\\n1 2 3 3\\n2 1 5\", \"1\\n1\\n1\\n2 1 5\", \"10\\n2 2 2 2 2 2 2 2 2 2\\n1\\n1 1 10 2\", \"3\\n1 2 3\\n5\\n1 2 2 2\\n1 2 2 2\\n2 2 3\\n1 2 3 3\\n2 1 5\\n\", \"1\\n5\\n1\\n1 1 1... | HARD | {
"id": "taco-test-395",
"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 an array A, consisting of N integers. ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n0 0\\n6\\n1 1 1 2 2 2\\n4\\n1 2 2 8\\n\", \"2\\n2\\n2 2\\n3\\n3 3 3\\n\", \"1\\n5\\n0 0 0 0 0\\n\", \"1\\n5\\n1 3 5 7 9\\n\", \"1\\n5\\n9 7 5 3 1\\n\", \"1\\n7\\n1 1 1 2 2 2 2\\n\", \"1\\n6\\n3 3 3 1 1 1\\n\", \"1\\n7\\n3 3 3 1 1 1 1\\n\", \"2\\n2\\n0 9\\n2\\n9 0\\n\", \"1\\... | VERY_HARD | {
"id": "taco-test-438",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a tree consising of N vertices. What i... | code | {
"ground_truth": "{\"inputs\": [\"1000\\n45\\n1 2 3 4 4 2 1 4 9 10 11 12 10 10 15 15 10 9 9 1 2 3 4 4 2 1 12 9 10 11 12 10 10 15 15 10 9 9 20 22 20 22 20 1\", \"25\\n9997\\n1 1 1 1 3 1 1 8 2 1 8 9 8 6 13 8 1 6 9 10 14 9 2 11 8 15 21 16 9 7 16 10 27 1 19 23 8 22 2 26 12 31 21 13 11 21 3 46 19 28 21 43 49 1 8 40 5 6 3... | MEDIUM_HARD | {
"id": "taco-train-23390",
"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": "There are *k* sensors located in the rectangular roo... | code | {
"ground_truth": "{\"inputs\": [\"3 3 4\\n1 1\\n1 2\\n2 1\\n2 2\", \"3 4 6\\n1 1\\n2 1\\n1 2\\n2 2\\n1 3\\n2 3\", \"7 4 5\\n1 3\\n2 2\\n5 1\\n5 3\\n4 3\", \"10 10 10\\n3 8\\n1 7\\n2 3\\n4 2\\n4 8\\n3 3\\n2 8\\n5 5\\n6 3\\n3 1\"], \"outputs\": [\"1\\n-1\\n-1\\n2\", \"1\\n-1\\n-1\\n2\\n5\\n-1\", \"13\\n2\\n9\\n5\\n-1\... | rating_1601-1900 | {
"id": "724C",
"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": "-----Problem-----\n\n\t\t\tOnce THANMAY met PK who i... | code | {
"ground_truth": "{\"inputs\": [[\"0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\", \"1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\", \"0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\", \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\", \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0\",... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-9554",
"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": "Read problem statements in [Mandarin Chinese] and [B... | code | {
"ground_truth": "{\"inputs\": [\"8\"], \"outputs\": [\"32\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15901",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an array $a$ of length $n$ consisting ... | code | {
"ground_truth": "{\"inputs\": [\"5\\n6\\n1 6 1 1 4 4\\n2\\n1 2\\n2\\n1 1\\n5\\n4 5 4 5 4\\n6\\n2 3 2 1 3 1\\n\", \"1\\n12\\n2 2 2 2 4 4 4 4 6 6 6 6\\n\", \"1\\n12\\n2 2 2 2 4 4 4 4 6 6 6 6\\n\", \"1\\n12\\n1 2 2 2 4 4 4 4 6 6 6 6\\n\", \"5\\n6\\n2 6 1 1 4 4\\n2\\n1 2\\n2\\n1 1\\n5\\n4 5 4 5 4\\n6\\n2 3 2 1 3 1\\n\"... | MEDIUM | {
"id": "taco-train-4885",
"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": "After the phenomenal success of the 36th Chamber of ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3\\n15 23 65\\n3\\n15 62 16\\n2\\n35 9\"], \"outputs\": [\"2\\n2\\n1\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-8599",
"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 problem statement looms below, filling you with ... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n..XXX\\n...X.\\n...X.\\n...X.\\n5\\n1 3\\n3 3\\n4 5\\n5 5\\n1 5\\n\", \"1 1\\nX\\n1\\n1 1\\n\", \"1 1\\n.\\n1\\n1 1\\n\", \"3 3\\n..X\\n.X.\\nX..\\n10\\n1 3\\n1 3\\n1 3\\n2 3\\n1 3\\n1 2\\n1 3\\n2 2\\n2 3\\n2 2\\n\", \"3 3\\n...\\nXXX\\nXX.\\n10\\n2 3\\n1 2\\n2 2\\n1 3\\n2 3\\... | MEDIUM_HARD | {
"id": "taco-train-23545",
"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 and Bob play 5-in-a-row game. They have a play... | code | {
"ground_truth": "{\"inputs\": [\"O.......O.\\n.....O.X..\\n......O...\\n....X.O...\\n.O.O.....X\\n.XO.....XX\\n...X...X.O\\n........O.\\n........O.\\n.X.X.....X\", \"....OX....\\n..........\\n.O..X...X.\\nXXO..XO..O\\nO.......X.\\n...XX.....\\n..O.O...OX\\n.........X\\n.....X..OO\\n........O.\", \"..O..X.X..\\n.O..... | rating_1401-1600 | {
"id": "825B",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "I have the `par` value for each hole on a golf course... | code | {
"ground_truth": "{\"fn_name\": \"golf_score_calculator\", \"inputs\": [[\"443454444344544443\", \"353445334534445344\"], [\"123456123456123456\", \"123456123456123456\"]], \"outputs\": [[-1], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-6576",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "There are $n$ candy boxes in front of Tania. The box... | code | {
"ground_truth": "{\"inputs\": [\"5 3 10\\n1 2 3 4 5\\nRGBRR\\n\", \"2 1 15\\n5 6\\nRG\\n\", \"6 1 21\\n4 2 3 5 1 6\\nRGBGRB\\n\", \"6 1 21\\n6 5 4 3 2 1\\nRGBRGB\\n\", \"1 1 10\\n10\\nR\\n\", \"2 1 10\\n5 5\\nRG\\n\", \"2 1 10\\n5 6\\nRR\\n\", \"5 3 10\\n1 2 3 4 5\\nRGBRG\\n\", \"9 1 6\\n1 1 1 3 3 3 2 2 2\\nRGGBRRG... | HARD | {
"id": "taco-train-1",
"rating": null,
"split": "confidence_train",
"sub_source": "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": "A classroom in a school has six rows with 3 desks in... | code | {
"ground_truth": "{\"inputs\": [\"..-**-..\\n..-**-..\\n..-..-..\\n..-..-..\\n..-..-..\\n..-..-..\", \"**-**-**\\n**-**-**\\n..-**-.*\\n**-**-**\\n..-..-..\\n..-**-..\", \"**-**-*.\\n*.-*.-**\\n**-**-**\\n**-**-**\\n..-..-..\\n..-**-..\", \"..-..-..\\n..-..-..\\n..-..-..\\n..-..-..\\n..-..-..\\n..-..-..\", \"**-**-*... | rating_1401-1600 | {
"id": "926D",
"rating": 1600,
"split": "confidence_train",
"sub_source": "rating_1401-1600"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a Binary Tree of size N. Find the sum of all th... | code | {
"ground_truth": "{\"inputs\": [\"1\\r\\n / \\\\\\r\\n 2 3\", \"1\\r\\n / \\\\\\r\\n 2 3\\r\\n / \\\\ \\\\\\r\\n 4 5 8 \\r\\n / \\\\ / \\\\\\r\\n 7 2 6 9\"], \"outputs\": [\"2\", \"13\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-14349",
"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": "In operating systems that use paging for memory manag... | code | {
"ground_truth": "{\"inputs\": [\"N = 9, C = 4\\r\\npages = {5, 0, 1, 3, 2, 4, 1, 0, 5}\"], \"outputs\": [\"8\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14265",
"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": "Today, Wet Shark is given n integers. Using any of t... | code | {
"ground_truth": "{\"inputs\": [\"3\\n1 2 3\\n\", \"5\\n999999999 999999999 999999999 999999999 999999999\\n\", \"1\\n1\\n\", \"15\\n39 52 88 78 46 95 84 98 55 3 68 42 6 18 98\\n\", \"15\\n59 96 34 48 8 72 67 90 15 85 7 90 97 47 25\\n\", \"15\\n87 37 91 29 58 45 51 74 70 71 47 38 91 89 44\\n\", \"15\\n11 81 49 7 11 ... | EASY | {
"id": "taco-train-18698",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Chef has an array A of length N. \n\nChef wants to a... | code | {
"ground_truth": "{\"inputs\": [\"4\\n4 15\\n3 5 6 2\\n3 8\\n1 2 1\\n1 1\\n0\\n5 7\\n1 2 4 2 1\\n\", \"5\\n2 3\\n1 2\\n1 1\\n0\\n3 15\\n1 2 4\\n4 5\\n1 2 1 2\\n2 6\\n2 4\\n\", \"3\\n5 31\\n0 1 2 3 4\\n6 15\\n1 2 3 5 7 8\\n4 7\\n1 2 3 4\\n\", \"4\\n4 15\\n3 5 6 2\\n6 8\\n1 3 1 2 3 1\\n1 10\\n5\\n3 11\\n2 2 2\\n\", \"... | EASY | {
"id": "taco-test-926",
"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 containing only zeros and ones, find t... | code | {
"ground_truth": "{\"fn_name\": \"replace_zero\", \"inputs\": [[[1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 1]], [[1, 1, 0, 1, 1, 0, 1, 1]], [[1, 1, 1, 0, 1, 1, 0, 1, 1, 1]], [[0, 1, 1, 1]], [[1, 1, 1, 0]], [[1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 1]], [[0, 0, 0, 0, 0, 1]], [[0, 0, 0, 0, 1, 0]], [[1, 0, 0, 0, 0... | EASY | {
"id": "taco-train-12129",
"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 acrostic is a text in which the first letter of ea... | code | {
"ground_truth": "{\"fn_name\": \"read_out\", \"inputs\": [[[\"Jolly\", \"Amazing\", \"Courteous\", \"Keen\"]], [[\"Marvelous\", \"Excellent\", \"Gifted\"]]], \"outputs\": [[\"JACK\"], [\"MEG\"]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-15206",
"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": "The little girl loves the problems on array queries ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n5 3 2\\n1 2\\n2 3\\n1 3\", \"5 3\\n5 2 4 1 3\\n1 5\\n2 3\\n2 3\", \"34 21\\n23 38 16 49 44 50 48 34 33 19 18 31 11 15 20 47 44 30 39 33 45 46 1 13 27 16 31 36 17 23 38 5 30 16\\n8 16\\n14 27\\n8 26\\n1 8\\n5 6\\n23 28\\n4 33\\n13 30\\n12 30\\n11 30\\n9 21\\n1 14\\n15 22\\n4 11... | rating_1401-1600 | {
"id": "276C",
"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": "Kenus, the organizer of International Euclidean Olym... | code | {
"ground_truth": "{\"inputs\": [\"10\\n1 1\\n2 2\\n5 1000000000000000000\\n7 3\\n1 334334334334334334\\n23847657 23458792534\\n111111111 111111111\\n7 7\\n4 19\\n9 10\", \"3\\n4 4\\n6 10\\n12 11\", \"10\\n1 1\\n2 2\\n5 1000000000000000000\\n7 3\\n1 334334334334334334\\n23847657 23458792534\\n111111111 011111111\\n7 ... | none | {
"id": "p03710 AtCoder Grand Contest 015 - Kenus the Ancient Greek",
"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're given an array a. You should repeat the follo... | code | {
"ground_truth": "{\"inputs\": [\"3 5\\n1 2 3\\n\", \"4 2\\n10 3 5 3\\n\", \"1 2\\n1000000000\\n\", \"3 1\\n3 5 10\\n\", \"7 5\\n5 8 10 3 6 10 8\\n\", \"10 20\\n9 10 9 10 10 9 3 10 9 3\\n\", \"50 30\\n26 87 83 27 2 51 94 38 21 9 6 7 85 20 68 56 30 55 62 51 16 82 100 28 93 70 33 52 50 87 55 36 93 84 63 94 96 2 42 84 ... | rating_<=1200 | {
"id": "1088_B. Ehab and subtraction",
"rating": 1000,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Two players play a game.\n\nInitially there are $n$ ... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 1 3\", \"3\\n2 2 2\", \"9\\n44 53 51 80 5 27 74 79 94\", \"10\\n38 82 23 37 96 4 81 60 67 86\", \"10\\n58 26 77 15 53 81 68 48 22 65\", \"1\\n124\", \"2\\n2 1\", \"3\\n1 1 1000\", \"2\\n322 322\", \"3\\n9 92 12\", \"3\\n1 2 2\"], \"outputs\": [\"2\", \"2\", \"53\", \"60\", \"5... | rating_<=1200 | {
"id": "984A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Geek wants to send an encrypted message in the form o... | code | {
"ground_truth": "{\"inputs\": [\"S = \\\"ababcababcd\\\"\", \"S = \\\"zzzzzzz\\\"\"], \"outputs\": [\"ab*c*d\", \"z*z*z\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-14149",
"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": "One evening Johnny found some funny looking beens in... | code | {
"ground_truth": "{\"inputs\": [\"2\\n3\\n0 1 2\\n3\\n0 0 3\", \"2\\n3\\n0 1 2\\n3\\n0 0 3\\n\", \"1\\n3\\n0 0 2\\n\", \"2\\n2\\n1 0\\n2\\n0 0\\n\", \"1\\n5\\n0 1 2 1 0\\n\", \"3\\n4\\n0 1 2 1\\n3\\n0 0 2\\n2\\n2 0\\n\", \"1\\n6\\n0 0 0 0 0 1\\n\", \"2\\n3\\n0 1 1\\n1\\n1\\n\", \"1\\n2\\n0 1\\n\", \"1\\n4\\n0 1 1 0\... | MEDIUM_HARD | {
"id": "taco-test-497",
"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": "You are given an undirected graph with N vertices an... | code | {
"ground_truth": "{\"inputs\": [\"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 1\\n1 1 2\\n0 0 2\\n1 1 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 1\\n1 1 2\\n0 0 2\\n1 0 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 2\\n1 1 2\\n0 0 2\\n1 1 3\", \"4 7\\n1 0 1\\n0 0 1\\n0 2 3\\n1 0 1\\n1 1 2\\n0 0 2\\n0 0 3\", \"4 7\\n1 0 1\\n0 0 1\\n0... | none | {
"id": "p02558 AtCoder Library Practice Contest - Disjoint Set Union",
"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 remember the game of Snakes and Ladders ? We ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n11025 64\\n297 345\\n3266 10057\\n5366 9583\\n1815 5123\\n1255 1449\\n315 1580\\n160 513\\n2557 3726\\n452 4632\\n560 3339\\n6643 9342\\n2591 5273\\n1473 5777\\n826 10203\\n1572 3833\\n101 323\\n2311 5011\\n2124 5492\\n6325 6700\\n7925 9037\\n5995 6129\\n1157 3090\\n463 3925\\n2... | none | {
"id": "rani-and-ladders-2",
"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": "Ilya is very fond of graphs, especially trees. Durin... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6 2 3\\n1 2\\n1 3\\n\", \"1\\n10\\n\", \"2\\n6 2\\n1 2\\n\", \"10\\n2 3 4 5 6 7 8 9 10 11\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n6 7\\n4 8\\n8 9\\n9 10\\n\", \"4\\n6 2 3 2\\n1 2\\n2 3\\n3 4\\n\", \"1\\n15\\n\", \"2\\n6 3\\n1 2\\n\", \"1\\n23\\n\", \"1\\n17\\n\", \"1\\n11\\n\", \"1\\n13... | rating_>1900 | {
"id": "842_C. Ilya And The Tree",
"rating": 2000,
"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": "As technologies develop, manufacturers are making th... | code | {
"ground_truth": "{\"inputs\": [\"ya\\n4\\nah\\noy\\nto\\nha\", \"hp\\n2\\nht\\ntp\", \"ah\\n1\\nha\", \"bb\\n4\\nba\\nab\\naa\\nbb\", \"bc\\n4\\nca\\nba\\nbb\\ncc\", \"ba\\n4\\ncd\\nad\\ncc\\ncb\", \"pg\\n4\\nzl\\nxs\\ndi\\nxn\", \"bn\\n100\\ndf\\nyb\\nze\\nml\\nyr\\nof\\nnw\\nfm\\ndw\\nlv\\nzr\\nhu\\nzt\\nlw\\nld\... | rating_<=1200 | {
"id": "868A",
"rating": 900,
"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": "There is the faculty of Computer Science in Berland.... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2014 2016 2015\", \"1\\n2050\", \"1\\n2010\", \"1\\n2011\", \"3\\n2010 2011 2012\", \"3\\n2049 2047 2048\", \"5\\n2043 2042 2041 2044 2040\", \"5\\n2012 2013 2014 2015 2016\", \"1\\n2045\", \"1\\n2046\", \"1\\n2099\", \"1\\n2100\", \"3\\n2011 2010 2012\", \"3\\n2011 2012 2010\",... | rating_<=1200 | {
"id": "769A",
"rating": 800,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problem statements in [Hindi], [Bengali], [Mand... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\nsuf mas\\n3\\ngood game guys\\n4\\nhell bell best test\"], \"outputs\": [\"2\\n0\\n2\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-7009",
"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": "Vasya has a string s of length n. He decides to make... | code | {
"ground_truth": "{\"inputs\": [\"6\\n4\\nabab\\n6\\nqwerty\\n5\\naaaaa\\n6\\nalaska\\n9\\nlfpbavjsm\\n1\\np\\n\", \"1\\n369\\nssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss... | rating_1201-1400 | {
"id": "1316_B. String Modification",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.