prompt listlengths 1 1 | label stringlengths 0 22 | domain stringclasses 2
values | source stringclasses 11
values | difficulty stringclasses 6
values | metadata unknown | idx int64 7 9.5k ⌀ | has_starter bool 2
classes |
|---|---|---|---|---|---|---|---|
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFind the value of $(52+6\\sqrt{43})^{3/2}-(52-6\\sqrt{43})^{3/2}$.\n\nRemember to put your answer ... | 828 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nA closed non-selfintersecting broken line is drawn on an infinite chessboard along the sides of it... | 17 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nRead ... | code | taco:codechef | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n3\\n1 4 5\\n1 3 4\", \"output\": \"1 2 0\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $A_1,A_2,A_3,\\cdots,A_{12}$ be the vertices of a regular dodecagon. How many distinct squares... | 183 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nOlive... | code | taco:kattis | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 4\\n1000 1\\n2000 2\\n500 2\\n1200 0\\n\", \"output\": \"4200\\n\"}, {\"input\": \"3 4\\n1000 0\\n2000 1\\n500 1\\n\", \"output\": \"3000\\n\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThe L... | code | taco:codechef | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"2\", \"2 2\", \"1 4\", \"2 7\", \"2 1\", \"1 4\", \"2 7\"], \"output\": [\"11.000000000\", \"7.333333333\"]}, {\"input\": \"2\\n2 2\\n1 4\\n2 7\\n2 1\\n1 4\\n0 7\", \"output\": \"11.0000000000\\n7.3333333333\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nA rectangular box has width $12$ inches, length $16$ inches, and height $\\frac{m}{n}$ inches, whe... | 41 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $T=TNFTPP$. Points $A$ and $B$ lie on a circle centered at $O$ such that $\\angle AOB$ is righ... | 44 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $t$ be the smallest positive real number for which $\\cos t = \\cos t^\\circ.$ (We are taking... | 6 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFind the remainder when $3^{2007}$ is divided by $2007$.\n\nRemember to put your answer on its own... | 1620 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nCompute the number of triangles of different sizes which contain the gray triangle in the figure b... | 4 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nIt is... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 1\\n1\\n1\\n\", \"output\": \"1\\n1 \\n\"}, {\"input\": \"4 5\\n4 1 2 4 4\\n4 3 2 1\\n\", \"output\": \"7\\n4 4 2 4 4 1 4 \\n\"}, {\"input\": \"2 2\\n1 2\\n2 1\\n\", \"output\": \"3\\n2 2 2 \\n\"}], \"fn_nam... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nIn th... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n2 4 4 2\\n\", \"output\": \"8\\n\"}, {\"input\": \"4\\n2 2 3 5\\n\", \"output\": \"0\\n\"}, {\"input\": \"4\\n100003 100004 100005 100006\\n\", \"output\": \"10000800015\\n\"}, {\"input\": \"8\\n5 3 3 3 3 ... | 4,368 | false | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThere... | code | taco:codeforces | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6 2 3 3\\n7 10 50 12 1 8\\n\", \"output\": \"5\\n\"}, {\"input\": \"1 1 100 99\\n100\\n\", \"output\": \"1\\n\"}, {\"input\": \"7 4 2 1\\n1 3 5 4 2 7 6\\n\", \"output\": \"6\\n\"}, {\"input\": \"2 1 49 2\\n50 ... | 6,574 | false | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nHow many right triangles have integer leg lengths $a$ and $b$ and a hypotenuse of length $b+1$, wh... | 6 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nFilom... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"BUYSTICKERS\\n4\\nBUYER 10\\nSTICKY 10\\nTICKERS 1\\nERS 8\\n\", \"output\": \"28\\n\"}, {\"input\": \"ABBBA\\n2\\nAAAAA 10\\nBB 3\\n\", \"output\": \"IMPOSSIBLE\\n\"}], \"fn_name\": null}",
"has_tests": tru... | 2,763 | false | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nSuppose $a$ is an integer such that $0 \\le a \\le 14$, and $235935623_{74}-a$ is a multiple of $1... | 0 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nAnoth... | code | taco:codewars | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [666], \"output\": [\"Last chunk 56699078708088; Max is 18 for digit 8\"]}, {\"input\": [934], \"output\": [\"Last chunk 78863403327510987087; Max is 30 for digit 7\"]}, {\"input\": [617], \"output\": [\"Last chunk... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nShow that the number \\( 4\\sin\\frac{\\pi}{34}\\left(\\sin\\frac{3\\pi}{34}+\\sin\\frac{7\\pi}{34... | 1 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nIn the figure below, $ABDC,$ $EFHG,$ and $ASHY$ are all squares; $AB=EF =1$ and $AY=5$.\n\nWhat is... | 15 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFor positive real numbers $s$, let $\\tau(s)$ denote the set of all obtuse triangles that have are... | 736 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe function $g(x)$ is defined as $\\sqrt{\\frac{x}{2}}$ for all positive $x$. \n\nCalculate the v... | 19 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nView ... | code | taco:hackerearth | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"20 20 889\\n-6553 -9251 -4384 -8093 -241 -6819 -7363 1884 225 2775 3071 2432 -7074 -2986 -3797 -4772 -7761 -1584 -9358 4520\\n-2143 -1741 440 -4061 -183 244 4409 -3123 -7861 -2900 -6716 3505 -4219 -7280 4416 -... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nA fes... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"50 3 1\\n49 1 1\\n26 1 4\\n6 1 10\\n\", \"output\": \"-31\\n\"}, {\"input\": \"10 2 1\\n1 1000 4\\n9 1000 4\\n\", \"output\": \"1992\\n\"}, {\"input\": \"30 8 2\\n15 97 3\\n18 64 10\\n20 14 20\\n16 18 36\\n10 ... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nPrinc... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 10\\n700282491 332230980 954401907 59481241 188256336 995466811 463183048 725322957 89294440 697458143\\n\", \"output\": \"2824348\"}, {\"input\": \"10 23\\n411970360 640040178 804073268 984486113 986486863 ... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nProbl... | code | taco:codechef | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"1\", \"9\"], \"output\": [\"XXXDDD\"]}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nDanie... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10 3\\n.b..bz....\\n1 h\\n3 c\\n9 f\\n\", \"output\": \"4\\n3\\n1\\n\"}, {\"input\": \"4 4\\n.cc.\\n2 .\\n3 .\\n2 a\\n1 a\\n\", \"output\": \"1\\n3\\n1\\n1\\n\"}, {\"input\": \"3 3\\n...\\n1 .\\n2 a\\n3 b\\n\"... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $n$ be the number of integer values of $x$ such that $P = x^4 + 6x^3 + 11x^2 + 3x + 31$ is the... | 1 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nYou h... | code | taco:codechef | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"1\", \"3 1\", \"2 0 0\"], \"output\": [\"2\"]}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nStrin... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"pastimeofwhimsy\\n\", \"output\": \"1\\n\"}, {\"input\": \"yarn\\n\", \"output\": \"4\\n\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThere... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n2 2 2\\n\", \"output\": \"-1\\n\"}, {\"input\": \"9\\n1 0 0 1073741823\\n1 1 1 987654321\\n1 2 2 123456789\\n2 0 0\\n2 1073741822 1073741822\\n2 987654323 987654323\\n2 123456788 123456789\\n2 86087500 860... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nToday, Ivan the Confessor prefers continuous functions $f:[0,1] \\rightarrow \\mathbb{R}$ satisfyi... | 5 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFor positive integers $1 \\le n \\le 100$, let\n\\[ f(n) = \\sum_{i=1}^{100} i \\left\\lvert i-n \... | 2080 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe figure below shows $13$ circles of radius $1$ within a larger circle. All the intersections oc... | 7 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nLet's... | code | taco:leetcode | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [\"\\\"ABC\\\"\"], \"output\": 33}], \"fn_name\": \"uniqueLetterString\"}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nOne day while Tony plays in the backyard of the Kubik's home, he wonders about the width of the ba... | 82 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nLeoni... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 1 1\\nA\\nT\\n\", \"output\": \"0\"}, {\"input\": \"4 4 1\\nATGC\\nGCTA\\n\", \"output\": \"0\"}, {\"input\": \"5 3 1\\nATATA\\nATA\\n\", \"output\": \"3\"}, {\"input\": \"4 4 2\\nATGC\\nGCTA\\n\", \"output\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $N$ be the smallest positive integer such that $N + 2N + 3N + \\ldots + 9N$ is a number all of... | 37 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFind the number of pairs \\((a, b)\\) of positive integers such that the greatest common divisor (... | 32768 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe integers 2 through 9 are each placed in the figure with one integer in each of the eight small... | 11 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nGener... | code | taco:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10 10\\n1 10\\n3 10\\n7 8\\n6 8\\n7 4\\n9 4\\n7 6\\n5 8\\n1 8\\n2 8\\n5\\n4\\n10 7 6 4\\n3\\n1 9 4\\n3\\n8 3 5\\n3\\n4 9 7\\n3\\n7 9 10\\n\", \"output\": \"Bumi\\nIroh\\nIroh\\nBumi\\nBumi\\n\"}], \"fn_name\":... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nProvi... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 3 4\\n10 1 3\\n0 1 20\\n\", \"output\": \"9\\n\"}, {\"input\": \"2 3 100\\n10 1 10\\n10 1 10\\n\", \"output\": \"21\\n\"}, {\"input\": \"2 2 1\\n10 10\\n10 10\\n\", \"output\": \"4\\n\"}], \"fn_name\": null}... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe three-digit number $999$ has a special property: It is divisible by $27$, and its digit sum is... | 75 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nWhat is the largest number, with its digits all different, whose digits add up to 16?\n\nRemember ... | 643210 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nRead ... | code | taco:codechef | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n1 10 10\\n0 10\\n2 2 10\\n0 5\\n7 10\\n2 2 100\\n0 5\\n5 10\", \"output\": \"NO\\nYES\\nYES\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nn eve... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"30\\n000100000100000110000000001100\\n\", \"output\": \"YES\\n\"}, {\"input\": \"6\\n314159\\n\", \"output\": \"NO\\n\"}, {\"input\": \"3\\n000\\n\", \"output\": \"YES\\n\"}, {\"input\": \"15\\n522085220852208... | 4,936 | false | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFor $n$ a positive integer, denote by $P(n)$ the product of all positive integer divisors of $n$. ... | 6 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nVasya... | code | taco:codeforces | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n\", \"output\": \"1\\n1 \"}, {\"input\": \"4\\n\", \"output\": \"4\\n1 1 1 1 \"}, {\"input\": \"27\\n\", \"output\": \"27\\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 \"}, {\"input\": \"239\\n\"... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nA seq... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 3\\n1000000000 1000000000\\n1 2\\n1 1\\n2 2\\n\", \"output\": \"999999986\\n1000000000\\n1000000000\\n\"}, {\"input\": \"2 3\\n0 0\\n1 2\\n1 1\\n2 2\\n\", \"output\": \"0\\n0\\n0\\n\"}, {\"input\": \"4 1\\n1... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nGiven... | code | taco:geeksforgeeks | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": \"N = 2, M = 2\", \"output\": \"12\"}, {\"input\": \"N = 2, M = 3\", \"output\": \"26\"}], \"fn_name\": \"numOfWays\"}",
"has_tests": true
} | 2,077 | true | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nYou a... | code | taco:hackerrank | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n4 10 20\\n\", \"output\": \"0\\n\"}, {\"input\": \"6\\n1 7 10 2 20 22\\n\", \"output\": \"1\\n\"}, {\"input\": \"5\\n1 2 2 3 4 \\n\", \"output\": \"3\\n\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nIn rectangle $ABCD$, $AB = 12$ and $BC = 10$. Points $E$ and $F$ lie inside rectangle $ABCD$ so t... | 36 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nGerda... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 4 6\\n1 2\\n2 3\\n3 4\\n3 5\\n1 3 2 4\\n1 3 2 4\\n1 4 4 5\\n1 4 4 1\\n2 3 1 4\\n2 2 2 3\\n\", \"output\": \"Yes\\nYes\\nYes\\nNo\\nNo\\nYes\\n\"}, {\"input\": \"5 4 6\\n1 2\\n2 3\\n3 4\\n3 5\\n1 3 2 4\\n1 3 ... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nTracy... | code | taco:hackerearth | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"accsxxdwbaabwdxxscca\\n100\\n8 3\\n14 1\\n1 18\\n7 16\\n13 14\\n0 12\\n6 10\\n12 8\\n18 6\\n5 4\\n11 2\\n17 0\\n4 17\\n10 15\\n16 13\\n3 11\\n9 9\\n15 7\\n2 5\\n8 3\\n14 1\\n1 18\\n7 16\\n13 14\\n0 12\\n6 10\\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe equation of the line shown can be written as $y=mx+b$. Find $mb$.\n[asy]\nsize(100,0);\nadd(s... | 2 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nVasya... | code | taco:codeforces | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 4\\n1 0 1 0\\n0 1 0 1\\n1 0 1 0\\n2 2\\n\", \"output\": \"2\"}, {\"input\": \"10 10\\n1 0 1 1 1 1 0 0 1 1\\n1 1 1 1 1 1 1 1 0 1\\n1 0 0 1 1 1 1 1 1 1\\n1 0 1 1 1 1 0 1 1 1\\n0 0 1 0 1 1 1 1 1 1\\n1 1 1 0 0 1... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nCorner $A$ of a rectangular piece of paper of width 8 inches is folded over so that it coincides w... | 10 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThere... | code | taco:atcoder | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 4\\n1 4\\n2 2 5 1\\n1 3 3 2\\n2 2 5 1\\n\", \"output\": \"11\\n\"}, {\"input\": \"5 3\\n1 2 3 4\\n10 1 1\\n1 1 1\\n1 10 1\\n1 1 1\\n1 1 10\\n\", \"output\": \"20\\n\"}, {\"input\": \"3 4\\n1 4\\n2 2 5 1\\n1 ... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThe o... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 10\\n1 12\\n1 13\\n\", \"output\": \"2\\n\"}, {\"input\": \"2 10\\n1 5\\n1 12\\n\", \"output\": \"2\\n\"}, {\"input\": \"2 10\\n1 5\\n1 4\\n\", \"output\": \"2\\n\"}, {\"input\": \"2 10\\n1 5\\n4 1\\n\", \"o... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nA seq... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"(()(()))()\\n\", \"output\": \"YES\\n\"}, {\"input\": \"())()\\n\", \"output\": \"NO\\n\"}], \"fn_name\": null}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nAn equilateral triangle is inscribed in the ellipse whose equation is $x^2+4y^2=4$. One vertex of ... | 937 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nBroth... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"20\\n26 47 23\\n1 -2 17\\n-14 -22 46\\n19 34 -18\\n22 -10 -34\\n15 14 -48\\n-30 -12 -12\\n-23 40 -48\\n-50 -41 -35\\n48 -5 46\\n-2 -11 10\\n-49 47 -15\\n31 6 10\\n-41 35 15\\n28 28 25\\n43 -7 -10\\n-19 -48 49\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nA tripod has three legs each of length $5$ feet. When the tripod is set up, the angle between any ... | 183 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\n99 identical balls lie on a table. 50 balls are made of copper, and 49 balls are made of zinc. The... | 98 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nKseni... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10 10\\n##########\\n#>>>>>>###\\n#^v###>^##\\n#^<###^<<#\\n#^<<####^#\\n#^#^#>v#^#\\n#^####v#^#\\n#^##>>>>^#\\n#^########\\n##########\\n\", \"output\": \"27\\n\"}, {\"input\": \"3 4\\n####\\n#>^#\\n####\\n\"... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nIn a plane, 2014 lines are distributed into 3 groups. In each group, all the lines are parallel to... | 302561952 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $\\tau(n)$ denote the number of positive integer divisors of $n$ . Find the sum of the six lea... | 540 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nPoints \\(A=(6,13)\\) and \\(B=(12,11)\\) lie on circle \\(\\omega\\) in the plane. Suppose that t... | 93 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nYour ... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"227 8150970\\n\", \"output\": \"995.187670491695712\\n\"}, {\"input\": \"929128198 12048223\\n\", \"output\": \"3841450630.23324680328369\\n\"}, {\"input\": \"130 9992\\n\", \"output\": \"1163.180188159378758\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nClub Truncator is in a soccer league with six other teams, each of which it plays once. In any of ... | 341 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThis ... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5\\n1 10\\n2 1\\n3 1\\n4 10\\n5 1\\n25\\n1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n2 1\\n2 2\\n2 3\\n2 4\\n2 5\\n3 1\\n3 2\\n3 3\\n3 4\\n3 5\\n4 1\\n4 2\\n4 3\\n4 4\\n4 5\\n5 1\\n5 2\\n5 3\\n5 4\\n5 5\\n\", \"output\": \"... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFind the value of the sum: \n\\[ \\sum_{i=1}^{2001} \\lfloor \\sqrt{i} \\rfloor \\]\nwhere \\( \\l... | 58718 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nSolve the congruence $6n \\equiv 7 \\pmod{13}$, as a residue modulo 13. (That is, find the value ... | 12 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nGiven... | code | taco:leetcode | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [[3, 3, 3, 3, 5, 5, 5, 2, 2, 7]], \"output\": 2}], \"fn_name\": \"minSetSize\"}",
"has_tests": true
} | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nWhat is the $100$th digit after the decimal point when $\\frac{3}{26}$ is expressed as a decimal?\... | 3 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet A, M, and C be nonnegative integers such that A + M + C = 12. What is the maximum value of \\(... | 112 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThe C... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n0 0\\n0 1\\n0 2\\n1 0\\n1 1\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"output\": \"1 1\\n\"}, {\"input\": \"2\\n0 0\\n0 1\\n0 2\\n0 3\\n1 0\\n1 2\\n2 0\\n2 1\\n2 2\\n\", \"output\": \"0 3\\n\"}, {\"input\": \"2\\n5 1... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nSnuke... | code | taco:atcoder | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 2 10 20 15 200\\n\", \"output\": \"110 10\\n\"}, {\"input\": \"1 2 1 2 100 1000\\n\", \"output\": \"200 100\\n\"}, {\"input\": \"17 19 22 26 55 2802\\n\", \"output\": \"2634 934\\n\"}, {\"input\": \"1 2 10 2... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nFor a positive integer $n$, let $p(n)$ denote the smallest prime divisor of $n$. Find the maximum ... | 6 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nOn th... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"9\\n0 6 1\\n4 10 1\\n7 9 1\\n10 10 0\\n7 0 0\\n9 4 1\\n5 7 1\\n9 9 1\\n8 4 1\\n\", \"output\": \"Impossible\\n\"}, {\"input\": \"8\\n7 0 1\\n10 4 1\\n2 0 1\\n9 1 1\\n8 10 1\\n6 9 0\\n1 8 1\\n0 9 1\\n\", \"outp... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe $XYZ$ company has to pay $\\$5,000$ for rent each month. In addition, their monthly electricit... | 7945 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nThis ... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n8 8\\n\", \"output\": \"1 1\\n1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n2 8\\n2 1\\n2 2\\n2 3\\n2 4\\n2 5\\n2 6\\n2 7\\n2 8\\n3 8\\n3 1\\n3 2\\n3 3\\n3 4\\n3 5\\n3 6\\n3 7\\n3 8\\n4 8\\n4 1\\n4 2\\n4 3\\n4... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nHow many rectangles are there whose four vertices are points on this grid? [asy]\nsize(50);\ndot((... | 10 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThe Imomi archipelago consists of $n \\geqslant 2$ islands. Between each pair of distinct islands ... | 3 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nSomet... | code | taco:codeforces | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"dotdotdotdotdotdotdotdotdotdotdotdoatdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdotdot\\n\", \"output\": \"dot..........do@....................dot\\n\"}, {\"input\": \"zdotdotatdotz\\n\", \"outpu... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $f(x)=3x^3-5x^2+2x-6$. If the roots of $f$ are given by $\\alpha$, $\\beta$, and $\\gamma$, fi... | 68 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nBryan has some 3 cent stamps and some 4 cent stamps. What is the least number of stamps he can com... | 9 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nSquare $ABCD$ with side length $2$ begins in position $1$ with side $AD$ horizontal and vertex $A$... | 133 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nToday... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10 4\\n2 2 2 2 2 2 2 2 2 2\\n\", \"output\": \"No\"}, {\"input\": \"1 125\\n5\\n\", \"output\": \"No\"}, {\"input\": \"8 32\\n2 2 2 2 2 2 2 2\\n\", \"output\": \"No\"}, {\"input\": \"1 8\\n2\\n\", \"output\": ... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\n# Def... | code | taco:codewars | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [3], \"output\": [\"30\"]}, {\"input\": [4], \"output\": [\"210\"]}, {\"input\": [5], \"output\": [\"2310\"]}, {\"input\": [8], \"output\": [\"9699690\"]}, {\"input\": [9], \"output\": [\"223092870\"]}], \"fn_name\... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nWhat is the largest positive integer that is not the sum of a positive integral multiple of $42$ a... | 215 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nWhat is the area, in square units, of triangle $ABC$? [asy]\nunitsize(0.15inch);\npath X = (-6.5, ... | 19 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nSuppose \\( \\{a_1,a_2,\\ldots,a_7\\} \\) is a set of pair-wisely different positive integers. If ... | 360 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nOn the student government ballot at Dusable High School, the six candidates for president are list... | 12441600 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nLet $p(x)$ be a monic polynomial of degree 4, such that $p(1) = 17,$ $p(2) = 34,$ and $p(3) = 51.$... | 92 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nSuppose the polynomial $f(x) = x^{2014}$ is expressed as $f(x) = \\sum^{2014}_{k=0} a_k \\binom{x}... | 2004 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nA res... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n7 11\\n4 7\\n\", \"output\": \"1\\n\"}, {\"input\": \"5\\n1 2\\n2 3\\n3 4\\n4 5\\n5 6\\n\", \"output\": \"3\\n\"}, {\"input\": \"6\\n4 8\\n1 5\\n4 7\\n2 5\\n1 3\\n6 8\\n\", \"output\": \"2\\n\"}, {\"input\... | null | null | |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nWe ha... | code | taco:atcoder | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n1 1\\n4 3 2\\n\", \"output\": \"POSSIBLE\\n\"}, {\"input\": \"3\\n1 2\\n1 2 3\\n\", \"output\": \"IMPOSSIBLE\\n\"}, {\"input\": \"8\\n1 1 1 3 4 5 5\\n4 1 6 2 2 1 3 3\\n\", \"output\": \"POSSIBLE\\n\"}, {\"... | null | null | |
[
{
"role": "user",
"content": "Solve the following math problem step by step. The last line of your response should be of the form Answer: $Answer (without quotes) where $Answer is the answer to the problem.\n\nThere is a unique angle $\\theta$ between $0^{\\circ}$ and $90^{\\circ}$ such that for nonnegative... | 547 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
[
{
"role": "user",
"content": "You are given a competitive programming problem. Think step by step, then provide a single complete Python program in a ```python code block. If a starter code / function signature is given, implement it; otherwise read from standard input and write to standard output.\n\nGaius... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"12 15 7 2\\n\", \"output\": \"171106\\n\"}, {\"input\": \"34 55 2 9\\n\", \"output\": \"13600171\\n\"}, {\"input\": \"46 51 4 5\\n\", \"output\": \"25703220\\n\"}, {\"input\": \"2 1 1 1\\n\", \"output\": \"1\\... | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.