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": "The territory of Berland is represented by a rectang... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"3 3\\n\", \"2 100\\n\", \"4 38\\n\", \"1 3\\n\", \"1 2\\n\", \"99 2\\n\", \"99 2\\n\", \"3 2\\n\", \"2 100\\n\", \"2 99\\n\", \"3 1\\n\", \"1 100\\n\", \"6 3\\n\", \"99 1\\n\", \"1 100\\n\", \"10 13\\n\", \"100 2\\n\", \"100 2\\n\", \"2 3\\n\", \"4 38\\n\", \"11 17\\n\",... | rating_>1900 | {
"id": "43_D. Journey",
"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": "Little Vova studies programming in an elite school. ... | code | {
"ground_truth": "{\"inputs\": [\"5 3 5 18 4\\n3 5 4\\n\", \"5 3 5 16 4\\n5 5 5\\n\", \"5 3 5 17 4\\n5 5 5\\n\", \"5 3 5 12 1\\n5 5 1\\n\", \"5 3 5 13 1\\n5 5 1\\n\", \"7 4 5 26 5\\n5 2 4 5\\n\", \"7 4 5 27 5\\n5 2 4 5\\n\", \"1 0 1000 999 1000\\n\\n\", \"1 0 1000 1000 1000\\n\\n\", \"1 0 1000 1000 999\\n\\n\", \"5 ... | MEDIUM_HARD | {
"id": "taco-test-179",
"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": "Let's denote that some array b is bad if it contains... | code | {
"ground_truth": "{\"inputs\": [\"2 3\\n-1 -1\\n\", \"5 3\\n1 -1 -1 1 2\\n\", \"4 200000\\n-1 -1 12345 -1\\n\", \"5 2\\n1 -1 -1 1 2\\n\", \"10 11\\n-1 11 -1 -1 -1 -1 10 -1 -1 -1\\n\", \"10 2\\n-1 -1 -1 2 2 1 -1 -1 -1 -1\\n\", \"10 14\\n-1 9 11 11 -1 -1 -1 -1 -1 -1\\n\", \"10 2\\n-1 -1 -1 -1 -1 -1 -1 1 1 -1\\n\", \"1... | rating_>1900 | {
"id": "1140_E. Palindrome-less Arrays",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of size N and you have to tell whether... | code | {
"ground_truth": "{\"inputs\": [\"Arr[] = {1, 2, 3, 2, 1}\", \"Arr[] = {1, 2, 3, 4, 5}\"], \"outputs\": [\"PERFECT\", \"NOT PERFECT\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-3622",
"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 points on a number line, i-th of which i... | code | {
"ground_truth": "{\"inputs\": [\"5 3\\n1 2 4 7 8\\n2\\n1 5\\n1 2\", \"15 220492538\\n4452279 12864090 23146757 31318558 133073771 141315707 263239555 350278176 401243954 418305779 450172439 560311491 625900495 626194585 891960194\\n5\\n6 14\\n1 8\\n1 13\\n7 12\\n4 12\", \"5 3\\n1 2 4 4 8\\n2\\n1 5\\n1 2\", \"5 3\\n... | none | {
"id": "p02543 ACL Contest 1 - Keep Distances",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an 8\\times 8 chessboard. Your enemy k... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2 1\\n\"], \"outputs\": [\"0 0 2 0 0 0 0 0\\n1 0 0 0 0 0 0 0\\n0 0 2 0 0 0 0 0\\n0 0 0 0 0 0 0 0\\n0 0 0 0 0 0 0 0\\n0 0 0 0 0 0 0 0\\n0 0 0 0 0 0 0 0\\n0 0 0 0 0 0 0 0\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-19024",
"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": "Ram has to pay Shyam R rupees and but the coins whic... | code | {
"ground_truth": "{\"inputs\": [\"24\\n{1,7,3}\\n\\nSAMPLE\", \"9\\n{10}\", \"-19\\n{10}\", \"79\\n{2,8}\"], \"outputs\": [\"Rupee 1 coin 0\\nRupee 3 coin 1\\nRupee 7 coin 3\", \"ERROR\", \"ERROR\", \"ERROR\"]}",
"style": "rule"
} | none | {
"id": "minimum-coins",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a bracket sequence s (not necessarily ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n(((\\n\", \"3\\n(()\\n\", \"5\\n()))()\\n\", \"100\\n((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((\\n\", \"9\\n(\\n\", \"100... | rating_>1900 | {
"id": "1015_F. Bracket Substring",
"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": "One day Jeff got hold of an integer sequence a_1, a_... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\n\", \"8\\n1 2 1 3 1 2 1 5\\n\", \"3\\n1 10 5\\n\", \"4\\n9 9 3 5\\n\", \"6\\n1 2 2 1 1 2\\n\", \"6\\n2 6 3 8 7 2\\n\", \"7\\n2 1 2 1 2 1 2\\n\", \"8\\n1 1 1 1 1 1 1 1\\n\", \"9\\n2 3 3 3 2 1 2 3 2\\n\", \"10\\n3 1 1 1 1 3 1 2 2 1\\n\", \"12\\n10 9 8 7 7 8 9 10 10 9 8 7\\n\",... | EASY | {
"id": "taco-train-14044",
"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": "Xenny was a teacher and his class consisted of N boy... | code | {
"ground_truth": "{\"inputs\": [\"1\\n2\\nBBGG\\n\\nSAMPLE\", \"3\\n8\\nBGBBGGBGBGGBBBGG\\n5\\nGGGGGBBBBB\\n7\\nGGBBBGBGBGGBGB\", \"1\\n2\\nBBGG\\n\\nELPMAS\", \"1\\n2\\nBGBG\\n\\nELPMAS\", \"3\\n8\\nBGBBGGBBBGGBGBGG\\n5\\nGGGGGBBBBB\\n7\\nGGBBBGBGBGGBGB\", \"3\\n8\\nBGBBGGBGBGGBBBGG\\n5\\nGGGGGBBBBB\\n7\\nGBGBBGBGB... | none | {
"id": "xenny-and-classroom-circuits",
"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 and Ru... | code | {
"ground_truth": "{\"inputs\": [\"1\\n4 2 1\\n1 1 2 2\\n1 1\\n1 1\\n1 1\\n3 1\\n0 1\\n0 1\\n1 0\\n1 0\", \"1\\n4 2 1\\n1 1 2 2\\n1 1\\n1 1\\n1 1\\n3 1\\n0 1\\n0 1\\n1 0\\n1 0\"], \"outputs\": [\"5\", \"5\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-10774",
"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": "There are N pieces of source code. The characteristi... | code | {
"ground_truth": "{\"inputs\": [\"3 3 0\\n100 -100 0\\n0 100 100\\n100 100 100\\n-100 100 100\", \"5 2 -4\\n-2 5\\n100 41\\n100 40\\n-3 0\\n-6 -2\\n18 -13\", \"2 3 -10\\n1 2 3\\n3 2 1\\n1 2 2\", \"3 3 0\\n100 -100 0\\n0 100 101\\n100 100 100\\n-100 100 100\", \"5 2 -4\\n-2 5\\n100 41\\n100 40\\n-4 0\\n-6 -2\\n18 -13... | none | {
"id": "p03102 AtCoder Beginner Contest 121 - Can you solve this?",
"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": "A factory produces thimbles in bulk. Typically, it c... | code | {
"ground_truth": "{\"inputs\": [\"5 2 2 1 8\\n1 1 2\\n1 5 3\\n1 2 1\\n2 2\\n1 4 2\\n1 3 2\\n2 1\\n2 3\", \"5 4 10 1 6\\n1 1 5\\n1 5 5\\n1 3 2\\n1 5 2\\n2 1\\n2 2\", \"1 1 2 1 1\\n2 1\"], \"outputs\": [\"3\\n6\\n4\", \"7\\n1\", \"0\"]}",
"style": "rule"
} | rating_1601-1900 | {
"id": "627B",
"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": "You are given a rooted tree consisting of n vertices... | code | {
"ground_truth": "{\"inputs\": [\"10 6\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 7\\n7 8\\n7 9\\n9 10\\n4 3 8 9 10\\n3 2 4 6\\n3 2 1 5\\n3 4 8 2\\n2 6 10\\n3 5 4 7\\n\", \"2 3\\n1 2\\n1 1\\n1 2\\n2 1 2\\n\", \"3 7\\n1 2\\n2 3\\n1 1\\n1 2\\n1 3\\n2 1 2\\n2 1 3\\n2 2 3\\n3 1 2 3\\n\", \"10 6\\n1 2\\n1 3\\n1 4\\n2 5\\n2 6\\n3 ... | rating_1601-1900 | {
"id": "1328_E. Tree Queries",
"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": "Shik's job is very boring. At day 0, his boss gives ... | code | {
"ground_truth": "{\"inputs\": [\"5\\nabcde\\nabcde\", \"5\\nabcde\\nbbbbb\", \"4\\nacaa\\naaca\", \"5\\nabcde\\naaacc\", \"5\\nabcde\\nabdde\", \"4\\naacb\\naacb\", \"5\\nabcde\\nbbbba\", \"4\\nbcaa\\naaca\", \"5\\nabcde\\naaacb\", \"5\\nabcde\\nabddd\", \"5\\nacbde\\nbbbba\", \"4\\nbcaa\\naacb\", \"5\\nabcde\\nbca... | none | {
"id": "p03942 AtCoder Grand Contest 007 - Shik and Copying String",
"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 and Rus... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6\\n3 4 5 1 1 2\\n10\\n3 2 9 5 2 9 4 14 7 10\\n8\\n14 5 13 19 17 10 18 12\", \"3\\n6\\n3 4 5 1 1 2\\n10\\n3 2 9 5 2 9 4 14 7 10\\n8\\n9 5 13 19 17 10 18 12\", \"3\\n6\\n3 4 5 1 1 2\\n10\\n3 2 9 5 2 9 4 14 7 10\\n8\\n9 5 13 19 23 10 18 12\", \"3\\n6\\n3 4 5 1 1 2\\n10\\n3 2 9 5 2... | MEDIUM_HARD | {
"id": "taco-train-15631",
"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 the root of a n-ary tree find the number of dup... | code | {
"ground_truth": "{\"inputs\": [\"1 N 2 2 3 N 4 N 4 4 3 N N N N N\", \"1 N 2 3 N 4 5 6 N N N N\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-2595",
"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": "Fluttershy has been put in charge of a high-end bout... | code | {
"ground_truth": "{\"inputs\": [\"4 3\\n10 20 30\\n5 5 10\\n2 20\\n1 30\\n1 32\\n3 120\\n\", \"3 1\\n10\\n10\\n1 10\\n1 10\\n1 10\\n\", \"10 3\\n10 30 60\\n5 30 30\\n1 10\\n2 12\\n1 15\\n2 20\\n2 30\\n3 90\\n3 90\\n3 100\\n1 105\\n1 140\\n\"], \"outputs\": [\"3\\n\", \"3\\n\", \"6\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-4877",
"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 square grid with some cells open (.)... | code | {
"ground_truth": "{\"inputs\": [\"3\\n.X.\\n.X.\\n...\\n0 0 0 2\\n\"], \"outputs\": [\"3\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-5232",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are on a game show \"Who Wants to Be a Millionai... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3\\n\\nSAMPLE\", \"444\\n793\\n255\\n144\\n906\\n931\\n102\\n101\\n301\\n341\\n340\\n308\\n524\\n678\\n587\\n405\\n718\\n733\\n466\\n145\\n13\\n27\\n717\\n714\\n899\\n911\\n121\\n602\\n864\\n882\\n876\\n761\\n886\\n640\\n697\\n44\\n29\\n288\\n938\\n525\\n331\\n160\\n940\\n50\\n4... | none | {
"id": "who-wants-to-be-a-millionaire-7",
"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": "Write a program to find the transpose of a square mat... | code | {
"ground_truth": "{\"inputs\": [\"N = 4\\nmat[][] = {{1, 1, 1, 1},\\n {2, 2, 2, 2}\\n {3, 3, 3, 3}\\n {4, 4, 4, 4}}\", \"N = 2\\nmat[][] = {{1, 2},\\n {-9, -2}}\"], \"outputs\": [\"{{1, 2, 3, 4}, \\n {1, 2, 3, 4} \\n {1, 2, 3, 4}\\n {1, 2, 3, 4}} \\n\", \"{{1, -9}, \\n {2, -... | EASY | {
"id": "taco-train-21680",
"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": "Consider the infinite x$x$ axis. There are N$N$ impa... | code | {
"ground_truth": "{\"inputs\": [[\"2\", \"4 3 10 10\", \"2 3 10 10\"]], \"outputs\": [[\"no\", \"yes\"]]}",
"style": "rule"
} | VERY_HARD | {
"id": "taco-train-24488",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "A new dog show on TV is starting next week. On the s... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n\", \"3 5\\n1 5 3\\n\", \"1 2\\n1\\n\", \"15 15\\n2 1 2 3 2 3 4 5 6 5 6 5 6 5 6\\n\", \"5 3\\n2 3 4 5 6\\n\", \"18 27\\n2 3 4 3 4 5 6 7 8 9 10 9 8 9 8 9 10 9\\n\", \"14 14\\n2 3 4 5 6 7 8 9 10 11 12 13 14 15\\n\", \"4 4\\n2 3 2 3\\n\", \"9 9\\n2 1 2 3 4 5 6 5 6\\n\", \"4 4... | rating_>1900 | {
"id": "847_D. Dog Show",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an undirected connected weighted graph... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 1\\n1 3 1\\n2 3 3\\n\", \"3 2\\n1 2 1\\n2 3 1\\n\", \"15 14\\n1 2 522\\n2 3 575\\n3 4 426\\n4 5 445\\n5 6 772\\n6 7 81\\n7 8 447\\n8 9 629\\n9 10 497\\n10 11 202\\n11 12 775\\n12 13 325\\n13 14 982\\n14 15 784\\n\", \"53 53\\n1 2 980\\n2 3 221\\n3 4 895\\n4 5 501\\n5 6 152... | MEDIUM_HARD | {
"id": "taco-train-1788",
"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 Arr of size N, the array contains numb... | code | {
"ground_truth": "{\"inputs\": [\"N = 4, K = 3\\nArr[] = {2, 2, 1, 2}\", \"N = 6, K = 3\\nArr[] = {2, 2, 1, 0, 0, 1}\"], \"outputs\": [\"2\", \"0\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12223",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You have two variables *a* and *b*. Consider the fol... | code | {
"ground_truth": "{\"inputs\": [\"12 5\", \"31 12\", \"1000000000000000000 7\", \"31960284556200 8515664064180\", \"1000000000000000000 1000000000000000000\", \"1 1000\", \"1 1000000\", \"1 1000000000000000\", \"1 99999999999999999\", \"1 4\", \"1000000000000001 500000000000000\", \"1 1000000000000000000\", \"2 4\",... | rating_<=1200 | {
"id": "946B",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "King Richard is leading a troop of $N^2$ knights int... | code | {
"ground_truth": "{\"inputs\": [\"7\\n4\\n1 2 4\\n2 3 3\\n3 4 1\\n3 4 0\\n7\\n0\\n6\\n9\\n11\\n24\\n25\\n48\\n\"], \"outputs\": [\"1 1\\n1 7\\n4 6\\n3 4\\n2 5\\n2 4\\n7 7\\n\"]}",
"style": "rule"
} | MEDIUM_HARD | {
"id": "taco-train-4086",
"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": "After being invaded by the Kingdom of AlDebaran, bom... | code | {
"ground_truth": "{\"inputs\": [\"3 4\\n5 1\\n10 1\\n8 0\\n1 10\\n4 5\\n6 7\\n8 9\\n\", \"4 2\\n2 0\\n3 1\\n5 1\\n7 0\\n1 4\\n4 7\\n\", \"3 2\\n5 0\\n10 0\\n8 0\\n6 9\\n66 99\\n\", \"12 20\\n536130100 1\\n150049660 1\\n79245447 1\\n132551741 0\\n89484841 1\\n328129089 0\\n623467741 0\\n248785745 0\\n421631475 0\\n49... | MEDIUM_HARD | {
"id": "taco-train-14856",
"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": "You are given five integers $n$, $dx_1$, $dy_1$, $dx... | code | {
"ground_truth": "{\"inputs\": [\"4\\n2 0\\n0 2\\n\", \"5\\n2 6\\n1 5\\n\", \"2\\n3 4\\n1 2\\n\", \"1\\n-1 -2\\n1 2\\n\", \"12\\n2 4\\n0 6\\n\", \"9\\n6 -3\\n-3 0\\n\", \"5\\n-6 -7\\n-5 -5\\n\", \"100000\\n999999 1000000\\n1000000 1000000\\n\", \"19645\\n74326 37377\\n32893 74327\\n\", \"69871\\n76233 42061\\n36055 ... | VERY_HARD | {
"id": "taco-test-856",
"rating": null,
"split": "confidence_train",
"sub_source": "VERY_HARD"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given N points in the xy-plane. You have a c... | code | {
"ground_truth": "{\"inputs\": [\"3\\n6.47634 7.69628\\n5.16828 4.79915\\n6.69533 6.20378\\n6\\n7.15296 4.08328\\n6.50827 2.69466\\n5.91219 3.86661\\n5.29853 4.16097\\n6.10838 3.46039\\n6.34060 2.41599\\n8\\n7.90650 4.01746\\n4.10998 4.18354\\n4.67289 4.01887\\n6.33885 4.28388\\n4.98106 3.82728\\n5.12379 5.16473\\n7... | none | {
"id": "p00713 Circle and Points",
"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": "Polycarpus is an amateur businessman. Recently he wa... | code | {
"ground_truth": "{\"inputs\": [\"1029 102\", \"27191 17\", \"1 0\", \"9 0\", \"20 1\", \"100 23\", \"10281 1\", \"2111 21\", \"3021 112\", \"1000000000000000000 999999999999999999\", \"29287101 301\", \"302918113 8113\", \"23483247283432 47283432\", \"47283432 7283432\", \"7283432 7283431\", \"2304324853947 5853947... | rating_1201-1400 | {
"id": "219B",
"rating": 1400,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider the following function $f(X)$, which takes ... | code | {
"ground_truth": "{\"inputs\": [\"1 127\\n\", \"74 74\\n\"], \"outputs\": [\"1083\\n\", \"11\\n\"]}",
"style": "rule"
} | HARD | {
"id": "taco-train-11227",
"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": "Logan is cleaning his apartment. In particular, he m... | code | {
"ground_truth": "{\"inputs\": [\"2\\n5 2\\n\"], \"outputs\": [\"2.000000\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-14892",
"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": "A Sky bag to lock accepts only the Prime number (all... | code | {
"ground_truth": "{\"inputs\": [\"3\\n3 001\\n5 45654\\n4 1234\\n\\nSAMPLE\", \"15\\n3 001\\n5 55555\\n4 9955\\n2 22\\n1 7\\n3 001\\n5 10101\\n4 2468\\n2 98\\n1 5\\n3 401\\n5 55254\\n4 5432\\n3 343\\n1 9\", \"30\\n3 601\\n5 55155\\n4 9055\\n2 02\\n1 7\\n3 801\\n5 14101\\n4 2268\\n2 18\\n1 1\\n3 401\\n5 55254\\n4 543... | none | {
"id": "travel-sky-bag-lock",
"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": "Bitville is a seaside city that has a number of shop... | code | {
"ground_truth": "{\"inputs\": [\"5 5 5\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 2 10\\n1 3 10\\n2 4 10\\n3 5 10\\n4 5 10\\n\"], \"outputs\": [\"30\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-25316",
"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": "The annual student team competition in table tennis ... | code | {
"ground_truth": "{\"inputs\": [\"4 1\\n9 12 5 13\\n\", \"6 2\\n16 2 1 7 5 10\\n\", \"6 3\\n7 9 8 3 6 5\\n\"], \"outputs\": [\"1\\n\", \"1\\n\", \"3\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-6330",
"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 number N, generate bit patterns from 0 to 2^N... | code | {
"ground_truth": "{\"inputs\": [\"N = 2\", \"N=3\"], \"outputs\": [\"00 01 11 10\", \"000 001 011 010 110 111 101 100\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-15674",
"rating": null,
"split": "confidence_train",
"sub_source": "MEDIUM"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Snuke has a rooted tree with N vertices, numbered 1 ... | code | {
"ground_truth": "{\"inputs\": [\"15\\n1 2 3 2 5 6 2 2 9 10 1 12 13 12\\n1 1 1 0 1 1 0 0 1 0 0 1 1 0 0\", \"6\\n1 1 2 3 3\\n0 1 1 0 0 0\", \"1\\n\\n0\", \"15\\n1 2 3 2 5 6 2 2 9 10 1 11 13 12\\n1 1 1 0 1 1 0 0 1 0 0 1 1 0 0\", \"1\\n\\n-1\", \"15\\n1 2 3 2 5 6 2 2 9 10 1 12 13 12\\n1 1 1 0 1 0 0 0 1 0 0 1 1 0 0\", \... | none | {
"id": "p03368 AtCoder Grand Contest 023 - 01 on Tree",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Matryoshka\n\nMatryoshka is a famous Russian folk cr... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 2 3\\n4 2 3\\n3\\n2 5 2\\n3 3 4\\n5 5 5\\n5\\n1 1 1\\n2 2 2\\n3 3 3\\n4 4 4\\n5 5 5\\n5\\n1 1 1\\n2 1 1\\n3 1 1\\n4 1 1\\n5 1 1\\n10\\n3 1 4\\n1 5 9\\n2 6 5\\n3 5 8\\n9 7 9\\n3 2 3\\n8 4 6\\n2 6 4\\n3 3 8\\n3 2 7\\n0\", \"2\\n1 4 3\\n4 2 3\\n3\\n2 5 2\\n3 3 4\\n5 5 5\\n5\\n1 1... | none | {
"id": "p01928 Matryoshka Doll",
"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": "Error Handling is very important in coding and seems ... | code | {
"ground_truth": "{\"fn_name\": \"get_count\", \"inputs\": [[\"Test\"], [\"Here is some text\"], [\"To be a Codewarrior or not to be\"], [\"To Kata or not to Kata\"], [\"aeiou\"], [\"TEst\"], [\"HEre Is sOme text\"], [[\"To Kata or not to Kata\"]], [null], [\"Test \"], [\"Here is some text \"], [\" ... | EASY | {
"id": "taco-train-2263",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Consider a conveyor belt represented using a grid co... | code | {
"ground_truth": "{\"inputs\": [\"4\\n3 3\\nRRD\\nDDR\\nRRC\\n1 4\\nDDDC\\n6 9\\nRDDDDDRRR\\nRRDDRRDDD\\nRRDRDRRDR\\nDDDDRDDRR\\nDRRDRDDDR\\nDDRDRRDDC\\n1 1\\nC\\n\", \"10\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n1 1\\nC\\n\", \"10\\n4 4\\nDDDD\\nDRDR\\nDRDD\\nDRRC\... | rating_<=1200 | {
"id": "1391_B. Fix You",
"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": "Let's define a function f(x) (x is a positive intege... | code | {
"ground_truth": "{\"inputs\": [\"5\\n4\\n37\\n998244353\\n1000000007\\n12345678901337426966631415\\n\", \"1\\n10000000\\n\", \"1\\n1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\\n\", \"1\\n999999999999999999999999999999999999999999999999999999999999999999999999... | rating_<=1200 | {
"id": "1455_A. Strange Functions",
"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": "Each evening after the dinner the SIS's students gat... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n\", \"9 11\\n\", \"5 0\\n\", \"3 2\\n\", \"4 1\\n\", \"7 7\\n\", \"9 26\\n\", \"11 16\\n\", \"19 35\\n\", \"102 4175\\n\", \"999999994 108004280\\n\", \"99 3728\\n\", \"100 3727\\n\", \"103 1976\\n\", \"104 2380\\n\", \"105 1910\\n\", \"106 634\\n\", \"107 3295\\n\", \"1001 10... | EASY | {
"id": "taco-train-3759",
"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": "Note the unusual memory limit.\n\nFor a rectangular ... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n...\\n.##\\n.##\", \"6 7\\n.####.#\\n....#.\\n....#.\\n....#.\\n.####.#\\n....##\", \"5 7\\n.####.#\\n....#.\\n....#.\\n....#.\\n.####.#\\n....##\", \"5 7\\n.####.$\\n....#.\\n.#....\\n....#.\\n.####.#\\n....\\\"#\", \"2 3\\n...\\n.##\\n.##\", \"2 1\\n...\\n.##\\n.##\", \"2 7\... | none | {
"id": "p03056 AtCoder Grand Contest 033 - Complexity",
"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": "EDIT : Please note that the user enters the whole s... | code | {
"ground_truth": "{\"inputs\": [\"4\\nEnergy Level: 217\\nEnergy Level: 246\\nEnergy Level: 4\\nEnergy Level: 349\", \"4\\nEnergy Level: 217\\nEnergy Level: 246\\nEnergy Level: 4\\nEnergy Level: 497\", \"4\\nEnergy :leveL 111\\nEnerhy Lfvel: 419\\nEnerfy :lfveL 1\\nEnergy :leveL 816\", \"4\\nxgdErp Lf:dlv 110\\neynh... | none | {
"id": "rdioactv",
"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": "Daenerys Targaryen has an army consisting of *k* gro... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n5 8\", \"1 2\\n7 1\", \"1 2\\n4 4\", \"1 4\\n2 2 1 2\", \"10000 100\\n749 2244 949 2439 2703 44 2394 124 285 3694 3609 717 1413 155 974 1778 1448 1327 1487 3458 319 1395 3783 2184 2062 43 826 38 3276 807 1837 4635 171 1386 1768 1128 2020 2536 800 782 3058 174 455 83 647 595 65... | rating_1601-1900 | {
"id": "839B",
"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": "Alice and Bob decided to eat some fruit. In the kitc... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"2 2\\n\", \"1 4\\n\", \"4181 6765\\n\", \"416445288135075809 416445288135075809\\n\", \"964542760623675601 965233603018687501\\n\", \"2 1000000000000000000\\n\", \"999999999999999999 999999999999999998\\n\", \"498454011879264 806515533049393\\n\", \"1 1000000000000000000... | rating_>1900 | {
"id": "586_E. Alice, Bob, Oranges and Apples",
"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": "All of us know that girls in Arpa’s land are... ok, ... | code | {
"ground_truth": "{\"inputs\": [\"abbbbbbaaa baababaaab 10\\n1 2 1 0 0\\n2 7 8 4 7\\n2 3 9 2 8\\n3 4 6 1 1\\n0 8 5 2 4\\n2 8 10 4 7\\n7 10 1 0 0\\n1 4 6 0 2\\n0 9 8 0 6\\n4 8 5 0 1\\n\", \"abc d 4\\n0 3 2 0 0\\n0 3 1 0 0\\n1 2 1 0 0\\n0 1 3 2 2\\n\", \"xkbvkadjec gqjlhxpnsx 10\\n2 7 1 0 0\\n2 5 8 0 0\\n4 7 8 0 4\\n0... | rating_>1900 | {
"id": "741_E. Arpa’s abnormal DNA and Mehrdad’s deep interest",
"rating": 3400,
"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": "While purchasing certain items, a discount of 10% is... | code | {
"ground_truth": "{\"inputs\": [\"3 \\n100 120\\n10 20\\n1200 20\", \"3 \\n100 120\\n10 20\\n1200 40\", \"3 \\n100 215\\n10 20\\n1200 40\", \"3 \\n100 215\\n10 20\\n1200 44\", \"3 \\n000 215\\n10 20\\n1200 44\", \"3 \\n001 215\\n10 20\\n1200 44\", \"3 \\n001 215\\n10 20\\n1237 44\", \"3 \\n001 215\\n10 20\\n1869 44\... | none | {
"id": "flow009",
"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": "Using roman numerals the numbers $1, 2, 3, 4, 5, 6, ... | code | {
"ground_truth": "{\"inputs\": [\"VII\\n\", \"VI\\n\", \"III\\n\"], \"outputs\": [\"VII\\n\", \"IV\\n\", \"III\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-11531",
"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 directed graph with $n$ vertices and... | code | {
"ground_truth": "{\"inputs\": [\"4 5\\n1 2\\n1 3\\n3 4\\n2 4\\n1 4\\n\", \"3 3\\n1 2\\n2 3\\n3 1\\n\", \"6 8\\n1 2\\n2 3\\n3 1\\n4 3\\n5 4\\n6 5\\n1 6\\n6 2\\n\", \"3 4\\n1 2\\n2 3\\n3 2\\n3 1\\n\", \"3 6\\n1 2\\n2 3\\n3 1\\n2 1\\n1 3\\n3 2\\n\", \"3 6\\n1 2\\n2 3\\n3 1\\n2 1\\n3 2\\n1 3\\n\", \"10 2\\n8 7\\n10 5\\... | HARD | {
"id": "taco-train-5402",
"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": "Fibonacci numbers have the following form:\n\nLet's ... | code | {
"ground_truth": "{\"inputs\": [\"2\\n13\\n16\", \"10\\n1\\n2\\n3\\n4\\n5\\n6\\n7\\n8\\n9\\n10\", \"10\\n24\\n37\\n42\\n58\\n60\\n73\\n79\\n84\\n92\\n99\", \"5\\n484775665757\\n968685776575\\n687675666422\\n348587665784\\n373875686864\", \"1\\n123456789101112\", \"22\\n304056783818718320\\n491974210728665289\\n18791... | rating_>1900 | {
"id": "126D",
"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": "Problem statement\n\nThere is an unsigned $ 2 $ deci... | code | {
"ground_truth": "{\"inputs\": [\"5\\n00001\\n3\", \"5\\n00001\\n4\", \"5\\n00000\\n3\", \"5\\n00001\\n1\", \"5\\n10001\\n1\", \"5\\n10001\\n2\", \"5\\n10001\\n4\", \"5\\n10000\\n1\", \"5\\n00010\\n1\", \"5\\n00001\\n0\", \"5\\n00010\\n0\", \"5\\n01100\\n0\", \"5\\n00011\\n0\", \"5\\n00011\\n2\", \"5\\n11101\\n3\", ... | none | {
"id": "p01866 Hamming Distance",
"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": "Lech got into a tree consisting of n vertices with a... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n1 2 3 4 5\\n1 2\\n2 3\\n3 4\\n4 5\\n1 5\\n2 5\\n1 4\\n3 3\\n\", \"5 3\\n0 3 2 1 4\\n1 2\\n2 3\\n3 4\\n3 5\\n1 4\\n1 5\\n2 4\\n\", \"10 10\\n0 5 1 9 8 10 5 6 1 0\\n1 10\\n10 5\\n5 7\\n7 3\\n3 6\\n6 4\\n4 2\\n2 8\\n8 9\\n1 9\\n3 9\\n6 9\\n1 10\\n1 6\\n7 3\\n10 10\\n5 2\\n1 10\\n... | rating_>1900 | {
"id": "840_E. In a Trap",
"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": "We have a grid with H rows and W columns of squares.... | code | {
"ground_truth": "{\"inputs\": [\"1 1\\n1\\n1\", \"3 5\\n5\\n1 2 3 4 5\", \"2 2\\n3\\n2 1 1\", \"2 2\\n2\\n3 1 1\", \"2 1\\n1\\n2\", \"1 2\\n1\\n2\", \"2 2\\n3\\n1 1 2\", \"3 5\\n5\\n1 2 5 4 3\", \"1 4\\n2\\n3 1 0\", \"2 2\\n3\\n1 2 1\", \"2 2\\n2\\n2 2 1\", \"1 4\\n3\\n2 2 0\", \"3 5\\n5\\n1 2 6 4 2\", \"2 2\\n3\\n... | none | {
"id": "p03640 AtCoder Regular Contest 080 - Grid Coloring",
"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": "Last year iElectro has given a circuit deigning prob... | code | {
"ground_truth": "{\"inputs\": [\"14 8\\n..XXXX..\\nXX..XXXX\\n.X..XXXX\\n...XXXX.\\n..XX..XX\\nX.X.XX.X\\n....X.XX\\nX....X..\\n.....XX.\\n.X.XX.XX\\nXX.XXXX.\\nX.X.XX..\\nX..X..X.\\n..X.XX.X\\n\\n3 7\\nX..X.XX\\nX.X.XXX\\nX..XXX.\\n\\n14 6\\nX.XXXX\\n.X.XX.\\nXXX...\\nX..X..\\n......\\n.X.X..\\nXX..X.\\n.XX..X\\nX... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-24397",
"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": "Tokitsukaze is playing a game derivated from Japanes... | code | {
"ground_truth": "{\"inputs\": [\"3p 9m 2p\\n\", \"9m 9m 9m\\n\", \"1s 2s 3s\\n\", \"2m 9s 1m\\n\", \"1m 1m 2m\\n\", \"3p 9p 4m\\n\", \"4p 4s 2m\\n\", \"3s 5s 7s\\n\", \"5m 6m 7s\\n\", \"1s 8m 9m\\n\", \"6p 8p 6s\\n\", \"2p 2p 2p\\n\", \"8m 9s 4p\\n\", \"7s 2s 3m\\n\", \"4s 1m 1s\\n\", \"1p 5p 9p\\n\", \"1s 2s 4s\\n... | rating_<=1200 | {
"id": "1191_B. Tokitsukaze and Mahjong",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a string S. For each index i(1<=i<=N-1), erase ... | code | {
"ground_truth": "{\"inputs\": [\"S = aabb\", \"S = aabaa\"], \"outputs\": [\"ab\", \"aba\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12111",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are a coach at your local university. There are ... | code | {
"ground_truth": "{\"inputs\": [\"6\\n1 10 17 12 15 2\\n\", \"10\\n1337 1337 1337 1337 1337 1337 1337 1337 1337 1337\\n\", \"6\\n1 1000 10000 10 100 1000000000\\n\", \"1\\n1337\\n\", \"100\\n1342 1342 1342 1339 1338 1340 1339 1338 1341 1341 1339 1342 1337 1337 1337 1341 1340 1338 1338 1340 1337 1337 1337 1339 1337 1... | rating_<=1200 | {
"id": "1133_C. Balanced Team",
"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": "Scheme? - Too loudly said. Just a new idea. Now Chef... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2\\n3\\n5\", \"3\\n2\\n3\\n6\", \"3\\n2\\n3\\n3\", \"3\\n3\\n3\\n6\", \"3\\n2\\n3\\n2\", \"3\\n4\\n3\\n2\", \"3\\n4\\n5\\n2\", \"3\\n4\\n5\\n4\", \"3\\n2\\n5\\n4\", \"3\\n2\\n5\\n5\", \"3\\n2\\n6\\n5\", \"3\\n2\\n8\\n5\", \"3\\n2\\n2\\n5\", \"3\\n2\\n6\\n6\", \"3\\n2\\n2\\n3\", ... | MEDIUM | {
"id": "taco-train-15169",
"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": "Maria is the most active old lady in her house. She ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n5\\n1 1 2 2 1\\n6\\n2 3 4 5 6 7\\n6\\n1 5 4 5 1 9\\n5\\n1 2 3 5 6\\n\", \"8\\n1\\n1\\n1\\n2\\n1\\n3\\n1\\n4\\n1\\n5\\n1\\n6\\n1\\n7\\n1\\n8\\n\", \"2\\n2\\n179 57\\n2\\n444 1329\\n\", \"8\\n1\\n1\\n1\\n2\\n1\\n3\\n1\\n4\\n1\\n5\\n1\\n6\\n1\\n7\\n1\\n8\\n\", \"2\\n2\\n179 57\\n2\... | EASY | {
"id": "taco-train-1839",
"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": "Sigma and Sugim are playing a game.\n\nThe game is p... | code | {
"ground_truth": "{\"inputs\": [\"4 1 2\\n1 2\\n3 4\\n2 4\\n1 2\\n3 4\\n1 3\", \"5 1 2\\n1 2\\n1 3\\n1 4\\n4 5\\n2 1\\n1 3\\n1 5\\n5 4\", \"3 3 1\\n1 2\\n2 3\\n1 2\\n2 3\", \"4 1 2\\n1 2\\n1 3\\n1 4\\n2 1\\n2 3\\n1 4\", \"4 2 1\\n1 2\\n3 4\\n2 4\\n1 2\\n3 4\\n1 3\", \"4 1 2\\n1 4\\n3 4\\n2 4\\n1 2\\n3 4\\n1 3\", \"4... | none | {
"id": "p03990 AtCoder Grand Contest 005 - Sugigma: The Showdown",
"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": "International Abbreviation Olympiad takes place annu... | code | {
"ground_truth": "{\"inputs\": [\"5\\nIAO'15\\nIAO'2015\\nIAO'1\\nIAO'9\\nIAO'0\", \"4\\nIAO'9\\nIAO'99\\nIAO'999\\nIAO'9999\", \"1\\nIAO'111110\", \"2\\nIAO'0\\nIAO'00\", \"1\\nIAO'111111\", \"1\\nIAO'111111111\", \"1\\nIAO'001\", \"1\\nIAO'2000\", \"1\\nIAO'11109999\", \"1\\nIAO'11111\", \"1\\nIAO'100000\", \"1\\n... | rating_>1900 | {
"id": "662D",
"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": "Tic-tac-toe is played by two players A and B on a 3 x... | code | {
"ground_truth": "{\"fn_name\": \"tictactoe\", \"inputs\": [[[[0, 0], [2, 0], [1, 1], [2, 1], [2, 2], [], []]]], \"outputs\": [\"A\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-11966",
"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 have $n \\times n$ square grid and an integer $k... | code | {
"ground_truth": "{\"inputs\": [\"2 2\\n\", \"123 456789\\n\", \"250 1000000000\\n\", \"250 1\\n\", \"1 3\\n\", \"3 497285769\\n\", \"3 212096267\\n\", \"4 221874066\\n\", \"244 315404017\\n\", \"218 325181815\\n\", \"246 629926913\\n\", \"216 639704712\\n\", \"244 22597665\\n\", \"218 737408162\\n\", \"242 74718596... | HARD | {
"id": "taco-train-6212",
"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": "There are n people in this world, conveniently numbe... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n1 2 10\\n2 3 5\\n\", \"3 3\\n1 2 10\\n2 3 15\\n3 1 10\\n\", \"3 4\\n2 3 1\\n2 3 2\\n2 3 4\\n2 3 8\\n\", \"4 2\\n1 2 12\\n3 4 8\\n\", \"50 0\\n\", \"12 20\\n1 3 1000000000\\n3 2 1000000000\\n1 4 1000000000\\n4 2 1000000000\\n1 5 1000000000\\n5 2 1000000000\\n1 6 1000000000\\n6 ... | rating_>1900 | {
"id": "1266_D. Decreasing Debts",
"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": "Arnie the Worm has finished eating an apple house ye... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n1 2 3 1\", \"3 3\\n1 3 2 1\", \"4 4\\n1 2 4 3 1\", \"6 7\\n3 2 4 1 6 5 1 3\", \"8 12\\n4 6 5 1 4 3 1 8 3 7 8 5 4\", \"5 6\\n3 4 1 2 5 1 3\", \"7 9\\n3 2 7 3 5 1 2 6 1 3\", \"6 7\\n1 5 6 1 4 3 2 1\", \"4 3\\n1 2 3 1\", \"10 40\\n10 3 8 4 10 2 8 1 2 6 3 5 7 6 10 8 9 7 8 5 4 9 1 ... | rating_>1900 | {
"id": "62D",
"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": "Given 2 numbers n1 and n2, following operations can ... | code | {
"ground_truth": "{\"inputs\": [\"1\\n9\\n10\\n1\\n\\nSAMPLE\", \"4\\n14723\\n5512\\n100\\n28436\\n33903\\n100\\n84816\\n75747\\n100\\n92281\\n31380\\n100\", \"1\\n45819\\n95605\\n83\", \"4\\n11833\\n5512\\n100\\n28436\\n33903\\n100\\n84816\\n75747\\n100\\n92281\\n31380\\n100\", \"1\\n45819\\n95605\\n90\", \"1\\n9\\... | none | {
"id": "magic-gcd",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an array of numbers, return a string made up of... | code | {
"ground_truth": "{\"fn_name\": \"sort_transform\", \"inputs\": [[[111, 112, 113, 114, 115, 113, 114, 110]], [[51, 62, 73, 84, 95, 100, 99, 126]], [[66, 101, 55, 111, 113]], [[78, 117, 110, 99, 104, 117, 107, 115, 120, 121, 125]], [[101, 48, 75, 105, 99, 107, 121, 122, 124]], [[80, 117, 115, 104, 65, 85, 112, 115, 6... | EASY | {
"id": "taco-train-23069",
"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": "Recently in school Alina has learned what are the pe... | code | {
"ground_truth": "{\"inputs\": [\"2 3 3\\n1 1 1\\n3 2\\n4 0\", \"4 2 6\\n3 2\\n2 2 2\\n3 3\\n3 2\\n2 2 2\\n3 2\", \"2 2 2\\n3 2\\n2 2 1\", \"4 1 6\\n3 4\\n3 3\\n3 3\\n2 2 1\\n1 1 1\\n4 0\", \"1 1 6\\n2 1 1\\n2 1 1\\n1 1 1\\n1 1 1\\n2 1 1\\n2 1 1\", \"4 1 6\\n3 1\\n1 3 1\\n1 2 1\\n1 3 1\\n2 4 1\\n4 3\", \"19 12 8\\n3... | rating_>1900 | {
"id": "707D",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Let's consider some integer X. We will call the foll... | code | {
"ground_truth": "{\"inputs\": [\"2 6\\n\\nSAMPLE\", \"66310194949619470 78796097193844620\", \"40 400\", \"66310194949619470 110703580224664925\", \"40 600\", \"2 6\\n\\nSAMLPE\", \"82050604218176325 110703580224664925\", \"40 741\", \"3 6\\n\\nSAMLPE\", \"82050604218176325 201433845673849245\", \"10 741\", \"3 10\... | none | {
"id": "sequences-everywhere",
"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": "Naruto has sneaked into the Orochimaru's lair and is... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2\\n1 100\\n4\\n1 2 3 6\\n\", \"6\\n6\\n-1 1 1 1 1 1\\n6\\n1 -1 1 1 1 1\\n6\\n1 1 -1 1 1 1\\n6\\n1 1 1 -1 1 1\\n6\\n1 1 1 1 -1 1\\n6\\n1 1 1 1 1 -1\\n\", \"2\\n2\\n1 100\\n4\\n1 2 3 6\\n\", \"6\\n6\\n-1 1 1 1 1 1\\n6\\n1 -1 1 1 1 1\\n6\\n1 1 -1 1 1 1\\n6\\n1 1 1 -1 1 1\\n6\\n1 1... | EASY | {
"id": "taco-train-15487",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "The goal of this Kata is to return the greatest dista... | code | {
"ground_truth": "{\"fn_name\": \"greatest_distance\", \"inputs\": [[[9, 7, 1, 2, 3, 7, 0, -1, -2]], [[0, 7, 0, 2, 3, 7, 0, -1, -2]], [[1, 2, 3, 4]]], \"outputs\": [[4], [6], [0]]}",
"style": "rule"
} | EASY | {
"id": "taco-train-24113",
"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": "Today is Sid’s birthday and he is very excited about... | code | {
"ground_truth": "{\"inputs\": [\"1\\n3 2\\n\\nSAMPLE\", \"1\\n2 2\\n\\nSAMPLE\", \"1\\n2 4\\n\\nSAMPLE\", \"1\\n3 1\\n\\nSAMPLE\", \"1\\n2 1\\n\\nSAMPLE\", \"1\\n4 5\\n\\nUAMPLE\", \"1\\n4 1\\n\\nSAMPLE\", \"1\\n1 1\\n\\nSAMPLE\", \"1\\n6 1\\n\\nSAMQLE\", \"1\\n3 2\\n\\nUAMPLF\", \"1\\n10 1\\n\\nSAMQLE\", \"1\\n9 1... | none | {
"id": "birthday-party-6",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given a rectangular field of n × m cells. Ea... | code | {
"ground_truth": "{\"inputs\": [\"3 3\\n*.*\\n.*.\\n*.*\\n\", \"4 5\\n**..*\\n..***\\n.*.*.\\n*.*.*\\n\", \"1 1\\n*\\n\", \"1 1\\n.\\n\", \"1 10\\n**********\\n\", \"1 10\\n*.***.**.*\\n\", \"10 1\\n*\\n*\\n*\\n*\\n*\\n.\\n*\\n.\\n*\\n*\\n\", \"10 1\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n.\\n\", \"10 10\\n*.*...*.**\... | MEDIUM_HARD | {
"id": "taco-train-14377",
"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": "You are given a string $s$ consisting of lowercase L... | code | {
"ground_truth": "{\"inputs\": [\"abacaba\\n5\\n2 1 4\\n1 4 b\\n1 5 b\\n2 4 6\\n2 1 7\\n\", \"dfcbbcfeeedbaea\\n15\\n1 6 e\\n1 4 b\\n2 6 14\\n1 7 b\\n1 12 c\\n2 6 8\\n2 1 6\\n1 7 c\\n1 2 f\\n1 10 a\\n2 7 9\\n1 10 a\\n1 14 b\\n1 1 f\\n2 1 11\\n\", \"aaab\\n1\\n2 4 4\\n\", \"aaab\\n1\\n2 4 4\\n\", \"abacaba\\n5\\n2 1 ... | MEDIUM_HARD | {
"id": "taco-train-23043",
"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": "There are n people who want to participate in a boat... | code | {
"ground_truth": "{\"inputs\": [\"5\\n5\\n1 2 3 4 5\\n8\\n6 6 6 6 6 6 8 8\\n8\\n1 2 2 1 2 1 1 2\\n3\\n1 3 3\\n6\\n1 1 3 4 2 2\\n\", \"4\\n14\\n2 6 5 9 5 8 13 14 12 5 6 14 5 2\\n36\\n15 22 27 7 23 36 10 17 33 21 18 22 3 4 32 24 8 19 36 22 17 11 24 10 33 4 30 6 2 17 11 16 18 1 2 20\\n2\\n2 2\\n12\\n4 9 10 6 1 9 5 8 8 ... | rating_<=1200 | {
"id": "1399_C. Boats Competition",
"rating": 1200,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Write a program that calculates the day of the week f... | code | {
"ground_truth": "{\"inputs\": [\"d = 28, m = 12, y = 1995\", \"d = 30, m = 8, y = 2010\"], \"outputs\": [\"Thursday\", \"Monday\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-7541",
"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 want to perform the combo on your opponent in on... | code | {
"ground_truth": "{\"inputs\": [\"3\\n4 2\\nabca\\n1 3\\n10 5\\ncodeforces\\n2 8 3 2 9\\n26 10\\nqwertyuioplkjhgfdsazxcvbnm\\n20 10 1 2 3 5 10 5 9 4\\n\", \"1\\n11 2\\nthisisatest\\n3 5\\n\", \"2\\n2 2\\nyz\\n1 1\\n2 2\\nyz\\n1 1\\n\", \"1\\n11 2\\nthisisatest\\n3 5\\n\", \"2\\n2 2\\nyz\\n1 1\\n2 2\\nzy\\n1 1\\n\", ... | EASY | {
"id": "taco-train-20187",
"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 benches in the Berland Central park. It ... | code | {
"ground_truth": "{\"inputs\": [\"4\\n6\\n1\\n1\\n1\\n1\\n\", \"1\\n10\\n5\\n\", \"3\\n6\\n1\\n6\\n5\\n\", \"3\\n7\\n1\\n6\\n5\\n\", \"100\\n66\\n95\\n19\\n88\\n15\\n29\\n52\\n37\\n75\\n21\\n90\\n93\\n75\\n91\\n71\\n53\\n55\\n90\\n78\\n19\\n63\\n43\\n25\\n52\\n10\\n55\\n76\\n47\\n42\\n57\\n45\\n35\\n53\\n2\\n62\\n61... | rating_<=1200 | {
"id": "1042_A. Benches",
"rating": 1100,
"split": "confidence_train",
"sub_source": "rating_<=1200"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "After a long party Petya decided to return home, but... | code | {
"ground_truth": "{\"inputs\": [\"5\\n2 2 1\\nBB\\n1 1 1\\nAB\\n3 2 8\\nAABBBBAABB\\n5 3 4\\nBBBBB\\n2 1 1\\nABABAB\\n\", \"5\\n2 1 1\\nBB\\n1 1 1\\nAB\\n3 2 8\\nAABBBBAABB\\n5 3 4\\nBBBBB\\n2 1 1\\nABABAB\\n\", \"5\\n2 1 1\\nBB\\n1 1 1\\nAB\\n3 0 8\\nAABBBBAABB\\n5 3 4\\nBBBBB\\n2 1 1\\nABABAB\\n\", \"5\\n3 1 0\\nB... | EASY | {
"id": "taco-train-5303",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin chinese, Russia... | code | {
"ground_truth": "{\"inputs\": [\"2\\n2 3\\n1 2\\n2 3\\n1 3\"], \"outputs\": [\"0\\n1\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-18846",
"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 sequence $a=[a_1,a_2,\\dots,a_n]$ co... | code | {
"ground_truth": "{\"inputs\": [\"4\\n6\\n55 45 30 30 40 100\\n4\\n10 23 7 13\\n5\\n10 55 35 30 65\\n6\\n4 1 1 1 1 4\\n\", \"4\\n3\\n6 6 12\\n4\\n18 6 6 6\\n5\\n1 1 1 1 1\\n3\\n12 6 6\\n\", \"3\\n4\\n18 6 6 6\\n5\\n1 1 1 1 1\\n3\\n12 6 6\\n\", \"1\\n2\\n1 1\\n\", \"1\\n3\\n1 1 1\\n\", \"1\\n7\\n1 1 1 1 1 1 1\\n\", \... | EASY | {
"id": "taco-train-14944",
"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": "Oleg the bank client lives in Bankopolia. There are ... | code | {
"ground_truth": "{\"inputs\": [\"4 4\\n1 2\\n1 3\\n1 4\\n3 4\\n\", \"4 3\\n1 2\\n1 3\\n1 4\\n\", \"5 10\\n1 2\\n1 3\\n1 4\\n1 5\\n2 3\\n2 4\\n2 5\\n3 4\\n3 5\\n5 4\\n\", \"8 12\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n4 5\\n5 6\\n5 7\\n5 8\\n6 7\\n6 8\\n7 8\\n\", \"2 1\\n1 2\\n\", \"8 13\\n1 2\\n1 3\\n1 4\\n2 3\\n2 4\\n3 4\... | rating_>1900 | {
"id": "794_D. Labelling Cities",
"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": "Oleg Petrov loves crossword puzzles and every Thursd... | code | {
"ground_truth": "{\"inputs\": [\"code\\nedoc\\n\\ncode\\n\", \"aaa\\naaa\\n\\naa\\n\", \"tt\\ntt\\n\\ntttt\\n\", \"wwwwwwwscwwwwwwwwwwwwwwwwzwewwwwwwwwwwowwwwwwwwwww\\nwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwcewwbwwwkw\\n\\nwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww\\n\", \"ylylylyyyy\\nlyyyyyyyyy\\n\\nl\\n... | rating_>1900 | {
"id": "613_E. Puzzle Lover",
"rating": 3200,
"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": "A median in an array with the length of *n* is an el... | code | {
"ground_truth": "{\"inputs\": [\"3 10\\n10 20 30\", \"3 4\\n1 2 3\", \"2 2\\n3 2\", \"5 1\\n1 1 2 1 2\", \"5 4\\n5 5 4 3 5\", \"10 2\\n2 2 1 3 2 1 2 1 1 3\", \"10 55749\\n46380 58202 54935 26290 18295 83040 6933 89652 75187 93963\", \"10 809\\n949 31 175 118 640 588 809 398 792 743\", \"50 1\\n1 2 1 2 1 1 1 2 2 2 2... | rating_1401-1600 | {
"id": "166C",
"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": "The Winter holiday will be here soon. Mr. Chanek wan... | code | {
"ground_truth": "{\"inputs\": [\"9 3\\n100101011\\n101\\n\", \"300 9\\n10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101... | rating_>1900 | {
"id": "1575_H. Holiday Wall Ornaments",
"rating": 2200,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given a large number N, write a program to count the ... | code | {
"ground_truth": "{\"inputs\": [\"N = 3\", \"N = 1\"], \"outputs\": [\"10\", \"3\"]}",
"style": "rule"
} | EASY | {
"id": "taco-train-12650",
"rating": null,
"split": "confidence_train",
"sub_source": "EASY"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Read problems statements in Mandarin Chinese and Rus... | code | {
"ground_truth": "{\"inputs\": [\"3\\n2 3\\n3 6\\n5 4\", \"4\\n5 12\\n10 11\\n11 9\\n30 1\", \"6\\n2 4\\n4 3\\n5 5\\n1 6\\n3 1\\n6 2\", \"5\\n1 1000000000\\n1000000000 1\\n2 999999999\\n3 999999998\\n4 999999997\", \"10\\n10 1\\n20 2\\n30 3\\n40 4\\n50 5\\n60 6\\n70 7\\n80 8\\n90 9\\n100 10\", \"15\\n15 1\\n30 2\\n4... | MEDIUM_HARD | {
"id": "taco-test-407",
"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": "Appleman has a very big sheet of paper. This sheet h... | code | {
"ground_truth": "{\"inputs\": [\"7 4\\n1 3\\n1 2\\n2 0 1\\n2 1 2\\n\", \"10 9\\n2 2 9\\n1 1\\n2 0 1\\n1 8\\n2 0 8\\n1 2\\n2 1 3\\n1 4\\n2 2 4\\n\", \"10 5\\n2 1 9\\n2 4 10\\n1 1\\n2 0 1\\n2 0 1\\n\", \"10 5\\n1 8\\n1 1\\n1 1\\n1 3\\n1 2\\n\", \"10 10\\n2 5 9\\n2 2 9\\n2 1 7\\n2 3 9\\n2 3 4\\n2 0 6\\n2 3 9\\n2 2 8\\... | HARD | {
"id": "taco-train-9787",
"rating": null,
"split": "confidence_train",
"sub_source": "HARD"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). Implement the required function(s) as specified; do not read from standard input.",
"role": "system"
},
{
"content": "Given an interger array arr[] of size n and an interg... | code | {
"ground_truth": "{\"inputs\": [\"\\r\\nn=3\\r\\narr[] = {2,2,4},k=4\\r\\n\", \"\\r\\nn=4\\r\\narr[] = {7,7,7,7},k=5\\r\\n\"], \"outputs\": [\" 3\\r\\n\", \" 4\\r\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-25314",
"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": "Most of the events were over and the participants we... | code | {
"ground_truth": "{\"inputs\": [\"10\\n334\\n260 655 444 763 178 600 238 228 972 734 33 575 158 766 317 233 673 758 742 638 270 619 637 200 506 944 377 528 131 687 858 391 694 654 872 606 744 452 579 830 837 988 603 823 573 277 933 668 267 203 287 256 756 145 485 674 683 524 884 426 218 890 932 90 497 676 894 428 85... | UNKNOWN_DIFFICULTY | {
"id": "taco-train-1942",
"rating": null,
"split": "confidence_train",
"sub_source": "UNKNOWN_DIFFICULTY"
} |
codeforces | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "Two little greedy bears have found two pieces of che... | code | {
"ground_truth": "{\"inputs\": [\"15 20\", \"14 8\", \"6 6\", \"1 1\", \"1 1024\", \"1024 729\", \"1024 1048576\", \"36 30\", \"100 10\", \"21 35\", \"9900 7128\", \"7920 9900\", \"576000 972000\", \"691200 583200\", \"607500 506250\", \"881280 765000\", \"800000 729000\", \"792000 792000\", \"513600 513600\", \"847... | rating_1201-1400 | {
"id": "371B",
"rating": 1300,
"split": "confidence_train",
"sub_source": "rating_1201-1400"
} |
taco | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given integers N and K. Find the number of t... | code | {
"ground_truth": "{\"inputs\": [\"3 2\\n\", \"5 3\\n\", \"31415 9265\\n\", \"35897 932\\n\", \"200000 1\\n\", \"200000 2\\n\", \"200000 3\\n\", \"190873 5562\\n\", \"88992 4567\\n\", \"99999 199997\\n\", \"99999 199998\\n\", \"1 1\\n\", \"1 200000\\n\", \"100004 8\\n\", \"10003 8\\n\", \"100000 7\\n\", \"166827 6625... | EASY | {
"id": "taco-train-10044",
"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": "Lexicographical order is a generalization of the way... | code | {
"ground_truth": "{\"inputs\": [\"Bruce XXII\\nHenri XX\\nMaru XXXVI\\nPhilippe XL\\nLou XVI\\nLovro XVI\\nKubus XXXII\\nMaru XXXIX\\nBob XXXVIII\\nRichard XXXIX\\nCarlos II\\nJames XXXIII\\nAnne XXIV\\nAnne XXVI\\nPhilip XLVII\\nIlya III\\nKubus XLII\\nJulka XIX\\nMary XLVII\\nLukas XVIII\\nZemco L\\nRichard II\\nA... | none | {
"id": "direrctory",
"rating": 0,
"split": "confidence_train",
"sub_source": "none"
} |
codecontests | [
{
"content": "Please reason step by step, then provide your complete solution as a single Python code block (```python ... ```). The program must read from standard input and write the answer to standard output.",
"role": "system"
},
{
"content": "You are given an undirected unweighted graph consist... | code | {
"ground_truth": "{\"inputs\": [\"2\\n4 3 2 3 4\\n1 2 3\\n1 2\\n1 3\\n1 4\\n7 9 1 5 7\\n2 10 4 8 5 6 7 3 3\\n1 2\\n1 3\\n1 4\\n3 2\\n3 5\\n4 2\\n5 6\\n1 7\\n6 7\\n\", \"2\\n4 3 2 3 4\\n1 2 3\\n1 2\\n1 3\\n1 4\\n7 9 1 5 7\\n2 10 4 8 5 6 7 3 3\\n1 2\\n1 3\\n1 4\\n3 2\\n3 5\\n4 2\\n5 6\\n1 4\\n6 7\\n\", \"2\\n4 3 2 3 4... | rating_>1900 | {
"id": "1343_E. Weights Distributing",
"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": "Ma5termind is going through the Euler's book of know... | code | {
"ground_truth": "{\"inputs\": [\"2\\n1 10\\n2 5\\n\"], \"outputs\": [\"9\\n2\\n\"]}",
"style": "rule"
} | MEDIUM | {
"id": "taco-train-12359",
"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": "Problem description.\n\n\n “Murphy’s Law doesn’t mea... | code | {
"ground_truth": "{\"inputs\": [\"5\\n100\\n23\\n4\\n1000\\n5\"], \"outputs\": [\"68\\n21\\n4\\n320\\n5\"]}",
"style": "rule"
} | none | {
"id": "aba15f",
"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": "Maxim wants to buy some games at the local game shop... | code | {
"ground_truth": "{\"inputs\": [\"5 4\\n2 4 5 2 4\\n5 3 4 6\", \"5 2\\n20 40 50 20 40\\n19 20\", \"6 4\\n4 8 15 16 23 42\\n1000 1000 1000 1000\", \"5 1\\n1 1 1 1 1\\n5\", \"5 1\\n10 1 1 1 1\\n1000\", \"5 1\\n100 100 100 100 100\\n100\", \"2 1\\n2 1\\n1\", \"2 3\\n3 1\\n2 4 2\", \"1 5\\n4\\n1 4 3 3 2\", \"5 3\\n4 2 3... | rating_<=1200 | {
"id": "1009A",
"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": "Heidi is now just one code away from breaking the en... | code | {
"ground_truth": "{\"inputs\": [\"10 5 12\\n16 3 24 13 9 8 7 5 12 12\\n\", \"4 3 10\\n3 4 7 2\\n\", \"4 3 10\\n3 4 7 3\\n\", \"4 3 10\\n3 7 7 3\\n\", \"10 5 12\\n16 3 24 8 9 8 7 5 12 12\\n\", \"4 3 10\\n5 7 7 3\\n\", \"4 2 10\\n3 4 14 3\\n\", \"4 3 10\\n5 7 7 2\\n\", \"4 3 10\\n5 7 12 2\\n\", \"4 3 14\\n3 4 7 2\\n\"... | rating_>1900 | {
"id": "958_C3. Encryption (hard)",
"rating": 2500,
"split": "confidence_train",
"sub_source": "rating_>1900"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.