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": "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\nOne i...
code
taco:codeforces
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n4\\n5 6 15 30\\n4\\n10 6 30 15\\n3\\n3 4 6\\n\", \"output\": \"30\\n31\\n10\\n\"}, {\"input\": \"1\\n5\\n30 30 15 10 6\\n\", \"output\": \"31\\n\"}, {\"input\": \"1\\n5\\n6 10 15 30 30\\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\nConsi...
code
taco:geeksforgeeks
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"N = 3\\narr = {1, 2, 2}\", \"output\": \"4\"}, {\"input\": \"N = 6\\narr = {1, 4, 3, 6, 2, 1}\", \"output\": \"10\"}], \"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\n\n\t How many equilateral hexagons of side length $\\sqrt{13}$ have one vertex at $(0,0)$ and the ...
216
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\nHow many integer values of $k$, with $1 \\leq k \\leq 70$, are such that $x^{k}-1 \\equiv 0 \\pmod...
21
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_n\\}$ be a sequence of integers such that $a_1=2016$ and \\[\\frac{a_{n-1}+a_n}{2}=n^2-n...
7986
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\nWriti...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 2\\n1 2\\n1 3\\n\", \"output\": \"2\\n\"}, {\"input\": \"3 1\\n1 2\\n2 3\\n\", \"output\": \"2\\n\"}, {\"input\": \"20 7\\n9 7\\n3 7\\n15 9\\n1 3\\n11 9\\n18 7\\n17 18\\n20 1\\n4 11\\n2 11\\n12 18\\n8 18\\n1...
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 base-nine representation of the number $N$ is $27{,}006{,}000{,}052_{\\text{nine}}.$ Find the ...
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\nAfter...
code
taco:codeforces
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10\\n1 1 100000 100000 73712\\n1 1 100000 100000 193808\\n1 1 100000 100000 69429\\n1 1 100000 100000 162666\\n1 1 100000 100000 94759\\n1 1 100000 100000 21899\\n1 1 100000 100000 76524\\n1 1 100000 100000 18...
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\": \"10\\n1 2 3 4 5 4 3 2 1 0\\n\", \"output\": \"! -1\\n\"}, {\"input\": \"10\\n1 2 1 0 -1 0 -1 -2 -1 0\\n\", \"output\": \"! -1\\n\"}, {\"input\": \"100\\n-1 -2 -1 -2 -3 -2 -1 0 1 0 -1 0 1 0 1 2 1 0 1 0 1 0 1 0 -...
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, b, c$ be distinct positive integers such that $b+c-a$, $c+a-b$, and $a+b-c$ are all perfec...
91
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:leetcode
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [10], \"output\": 4}], \"fn_name\": \"minDays\"}", "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\nWe de...
code
taco:codechef
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"8\\n1\\n2\\n3\\n5\\n8\\n13\\n21\\n34\\n\", \"output\": \"1\\n4\\n10\\n58\\n578\\n20098\\n5236738\\n24641495\\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 U...
code
taco:codeforces
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 1\\n1 2\\n2 3\\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\nNotic...
code
taco:codeforces
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 1 1 0 1\\n\", \"output\": \"0\\n\"}, {\"input\": \"84633708 687509 234119 265599 226693\\n\", \"output\": \"3650325824\\n\"}, {\"input\": \"174 914867 134668 860580 813837\\n\", \"output\": \"1906368573\\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\nCompute the $100^{\\text{th}}$ smallest positive integer $n$ that satisfies the following three co...
6491
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 $S$ be a randomly selected four-element subset of $\\{1, 2, 3, 4, 5, 6, 7, 8\\}$. Let $m$ and ...
41
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
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n2 0 1\", \"output\": \"4\"}], \"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\nTriangle $ABC$ lies entirely in the first quadrant of the Cartesian plane, and its sides have slop...
237
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 $N=30^{2015}$. Find the number of ordered 4-tuples of integers $(A,B,C,D)\\in\\{1,2,\\ldots,N...
24
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 2 3 2 1\\n\", \"output\": \"1 2 3 2 1 \\n\"}, {\"input\": \"3\\n10 6 8\\n\", \"output\": \"10 6 6 \\n\"}, {\"input\": \"7\\n1 2 1 2 1 2 1\\n\", \"output\": \"1 2 1 1 1 1 1 \\n\"}, {\"input\": \"7\\n1 2 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\nLet line $AC$ be perpendicular to line $CE$. Connect $A$ to $D$, the midpoint of $CE$, and connect...
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\nKelly drove north for 9 miles and then east for 12 miles at an average rate of 42 miles per hour t...
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\nHow many rectangles are in this figure? Each angle is a right angle.\n\n[asy]\nunitsize(0.06inch);...
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\nPolan...
code
taco:codeforces
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n\", \"output\": \"1\"}, {\"input\": \"4\\n\", \"output\": \"2\"}, {\"input\": \"10\\n\", \"output\": \"2\"}, {\"input\": \"153\\n\", \"output\": \"1\"}, {\"input\": \"1000\\n\", \"output\": \"1\"}, {\"inpu...
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:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n1 8 8 1 2 2 2 2 2 2 2 2 1 8 8 1\\n\", \"output\": \"YES\\n1 2 2 1 \\n2 8 8 2 \\n2 8 8 2 \\n1 2 2 1 \\n\"}, {\"input\": \"3\\n1 1 1 1 1 3 3 3 3\\n\", \"output\": \"YES\\n1 3 1 \\n3 1 3 \\n1 3 1 \\n\"}, {\"i...
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 triangle $\\triangle JKL$ shown, $\\tan K = \\frac{3}{2}$. What is $KL$?\n\n[asy]\npair J,K,L;\...
14
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\nLooki...
code
taco:codewars
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [100], \"output\": [\"None\"]}, {\"input\": [2], \"output\": [\"7\"]}, {\"input\": [3], \"output\": [\"0\"]}, {\"input\": [8], \"output\": [\"7\"]}, {\"input\": [1111], \"output\": [\"9\"]}, {\"input\": [3000], \"o...
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 of the region defined by the inequality $|3x-18|+|2y+7| \\leq 3$?\n\nRemember to ...
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\nThe triangle shown is an equilateral triangle with side length 12 cm. A side of the triangle is th...
33
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 $f(x) = \\log_{10} \\left(\\sin(\\pi x) \\cdot \\sin(2 \\pi x) \\cdot \\sin (3 \\pi x) \\cdots...
12
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\n$A$, $B$, and $C$ are three piles of rocks. The mean weight of the rocks in $A$ is 40 pounds, the ...
59
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 diagram below, for each row except the bottom row, the number in each cell is determined by...
13
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\nBerla...
code
taco:codeforces
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"63 5\\n76826 79919 83599 93821 79919 46132 46132 46132 79919 76826 79919 79919 76826 79919 79919 76826 76826 46132 76826 40347 79919 46132 76826 83599 79919 79919 46132 46132 46132 83599 83599 79919 46132 8359...
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 $r_1, r_2, \\ldots, r_{47}$ be the roots of $x^{47} - 1 = 0$. Compute \\( \\sum_{i=1}^{47} r_i...
0
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 $\\triangle ABC$, let $D$ be a point on side $\\overline{AB}$, $F$ be a point on side $\\overli...
143
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\nGeral...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n\", \"output\": \"1\\n\"}, {\"input\": \"4\\n\", \"output\": \"2\\n\"}, {\"input\": \"3\\n\", \"output\": \"1\\n\"}, {\"input\": \"8\\n\", \"output\": \"3\\n\"}, {\"input\": \"10\\n\", \"output\": \"4\\n\"...
9,319
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\nCalculate the value of \\(\\dfrac{3\\times 5}{9\\times 11}\\times \\dfrac{7\\times 9\\times 11}{3\...
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\nValer...
code
taco:codeforces
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"250 300 2\\n157 204\\n\", \"output\": \"1 2\\n1 3\\n1 4\\n1 5\\n1 6\\n1 7\\n1 8\\n1 9\\n1 10\\n1 11\\n1 12\\n1 13\\n1 14\\n1 15\\n1 16\\n1 17\\n1 18\\n1 19\\n1 20\\n1 21\\n1 22\\n1 23\\n1 24\\n1 25\\n1 26\\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\nBarba...
code
taco:codeforces
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n2 1 1 5\\n+*-\\n\", \"output\": \"2*1*1*5\\n\"}, {\"input\": \"10\\n1 1 0 1 1 1 1 0 0 0\\n*-+\\n\", \"output\": \"1+1+0+1+1+1+1+0+0+0\\n\"}, {\"input\": \"10\\n0 2 2 2 0 0 0 2 0 0\\n-*+\\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 $a$ and $b$ be positive real numbers satisfying\n$$a -12b = 11 -\\frac{100}{a} \\,\\,\\,\\,an...
47
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:codeforces
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n1 2 2 1\\n4 8 9 2\\n\", \"output\": \"3\\n12\\n\"}, {\"input\": \"1\\n0 0 0 0\\n\", \"output\": \"0\\n\"}, {\"input\": \"1\\n0 0 0 0\\n\", \"output\": \"0\\n\"}, {\"input\": \"1\\n0 0 1 0\\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\nIn the addition problem \n\\[ \\setlength{\\tabcolsep}{1mm}\\begin{tabular}{cccccc}& W & H & I & T...
169069
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\nHow many positive integers are less than $200\\pi$?\n\nRemember to put your answer on its own line...
628
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\nAnd a...
code
taco:codeforces
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 1 1\\n0 100000\\n-100000 -100000\\n\", \"output\": \"2\\n\"}, {\"input\": \"55 11 44\\n0 3343 3387 3470 3825 3832 3971 4026 4043 4389 4492 4886 5015 5084 5161 5436 5595 5616 5677 5987 6251 6312 6369 6469 648...
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\nPasse...
code
taco:codewars
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [432, 3554, 291, 28, 2], \"output\": [\"112.2\"]}, {\"input\": [5, 76, 4, 1, 0], \"output\": [\"158.3\"]}, {\"input\": [48, 192, 19, 2, 3], \"output\": [\"39.6\"]}, {\"input\": [1, 2, 1, 1, 0], \"output\": [\"118.8...
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 a...
code
taco:geeksforgeeks
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"n = 11\\r\\nnums = [1,1,1,0,0,0,1,1,1,1,0]\\r\\nk = 2\", \"output\": \"6\"}], \"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\nChill...
code
taco:codeforces
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n\", \"output\": \"-1\\n\"}, {\"input\": \"5\\n\", \"output\": \"10080\"}, {\"input\": \"6\\n\", \"output\": \"100170\"}, {\"input\": \"4\\n\", \"output\": \"1050\"}, {\"input\": \"15\\n\", \"output\": \"10...
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 per...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 1\\n\", \"output\": \"1\\n\"}, {\"input\": \"4 2\\n\", \"output\": \"7\\n\"}, {\"input\": \"5 3\\n\", \"output\": \"31\\n\"}, {\"input\": \"5 4\\n\", \"output\": \"76\\n\"}, {\"input\": \"200 1\\n\", \"outpu...
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
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [\"\\\"aaaabbbbcccc\\\"\"], \"output\": \"\\\"abccba\\\"abccba\"}], \"fn_name\": \"sortString\"}", "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\nElect...
code
taco:codeforces
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6\\n11 6\\n10 4\\n01 3\\n00 3\\n00 7\\n00 9\\n\", \"output\": \"22\\n\"}, {\"input\": \"5\\n11 1\\n01 1\\n00 100\\n10 1\\n01 1\\n\", \"output\": \"103\\n\"}, {\"input\": \"6\\n11 19\\n10 22\\n00 18\\n00 29\\n1...
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 angle of a triangle is twice another, and the sides opposite these angles have lengths 15 and ...
16
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 sequence of numbers $x_{1},x_{2},x_{3},\\cdots,x_{100}$ has the property that, for every integer...
173
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 dart board is a regular octagon divided into regions as shown below. Suppose that a dart thrown ...
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\nYou'v...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6 6\\n1 1 2 3 5 8\\n1 2\\n3 2\\n1 4\\n4 3\\n4 5\\n4 6\\n\", \"output\": \"3\\n\"}, {\"input\": \"5 6\\n4 2 5 2 4\\n1 2\\n2 3\\n3 1\\n5 3\\n5 4\\n3 4\\n\", \"output\": \"2\\n\"}, {\"input\": \"3 1\\n13 13 4\\n1...
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 $\\mathbf{v}_1,$ $\\mathbf{v}_2,$ $\\dots,$ $\\mathbf{v}_k$ be unit vectors such that\n\\[\\ma...
8
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 point is chosen at random within the square in the coordinate plane whose vertices are $(0, 0), ...
4
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\nTerry decides to practice his arithmetic by adding the numbers between $10$ and $99$ inclusive. Ho...
59
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_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [\"\\\"1101\\\"\"], \"output\": 8}], \"fn_name\": \"numSteps\"}", "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\nA coo...
code
taco:codeforces
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n1 1\\n2 2\\n3 3\\n\", \"output\": \"-1\\n\"}, {\"input\": \"6\\n1 5\\n2 3\\n1 10\\n7 10\\n7 7\\n10 10\\n\", \"output\": \"3\\n\"}, {\"input\": \"4\\n1 5\\n2 2\\n2 4\\n2 5\\n\", \"output\": \"1\\n\"}, {\"in...
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 smallest natural number $n$ such that the expression $n^2 - n + 11$ has exactly four prim...
132
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
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 3\\n0 0 5\\n8 3 2\\n0\\n10\\n20\", \"output\": \"0\\n1\\n0\"}], \"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\nBerla...
code
taco:codeforces
VERY_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"46865942276811740149949176718949673344632458696505595472917789224885825949034661409971763949176343056701403524645790892802371117466746709730235969308113002256137529699677021858777002204698794034488631496662175...
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:atcoder
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 2\\n1 2 3\\n2 2 2\\n1 2\\n2 3\\n\", \"output\": \"Yes\\n\"}, {\"input\": \"1 0\\n5\\n5\\n\", \"output\": \"Yes\\n\"}, {\"input\": \"2 1\\n1 1\\n2 1\\n1 2\\n\", \"output\": \"No\\n\"}, {\"input\": \"17 9\\n-9...
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\nFive bricklayers working together finish a job in $3$ hours. Working alone, each bricklayer takes ...
270
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 Nic...
code
taco:hackerearth
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"100\\n30 43 6335\\n19170 26502 15725\\n6401 11480 26963\\n5706 24466 28146\\n16828 23283 9962\\n44 493 11943\\n609 4829 32392\\n3903 14606 154\\n77 294 17422\\n1002 18718 19896\\n5383 5449 14772\\n1870 11540 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\nIn a simple graph, there are two disjoint sets of vertices $A$ and $B$ where $A$ has $k$ vertices ...
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\nRead ...
code
taco:codechef
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n2 4\\n1 5\", \"output\": \"2\\n1\"}], \"fn_name\": null}", "has_tests": true }
5,550
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\nNow y...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5\\n\", \"output\": \"3\\n1 2 3 \"}, {\"input\": \"8\\n\", \"output\": \"4\\n1 3 5 7 \"}, {\"input\": \"2\\n\", \"output\": \"1\\n1 \"}, {\"input\": \"4\\n\", \"output\": \"1\\n1 \"}, {\"input\": \"6\\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\nThere...
code
taco:atcoder
UNKNOWN_DIFFICULTY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"17 7 4298580\", \"output\": \"128832\\n\"}, {\"input\": \"123 35 678901234\", \"output\": \"410672012\\n\"}, {\"input\": \"9 0 702443618\", \"output\": \"1\\n\"}, {\"input\": \"6 1 998244353\", \"output\": \"4...
5,342
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\nFind the number of ordered pairs $(a, b)$ of positive integers such that $a < b$ and $100 \\leq a,...
20
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\nHow many ways can the integers from $-7$ to $7$ inclusive be arranged in a sequence such that the ...
128
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's ...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 5\\n1 3 4\\n1 2 5\\n5 6 1\\n1 2 4\\n\", \"output\": \"5\\n\"}, {\"input\": \"3 2\\n4 6 3\\n2 4 1\\n3 5 4\\n\", \"output\": \"-1\\n\"}, {\"input\": \"2 1855\\n159106 161198 437057705\\n149039 158409 889963913...
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\nWhen you simplify $\\sqrt[3]{24a^4b^6c^{11}}$, what is the sum of the exponents of the variables t...
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\nNelson is having his friend drop his unique bouncy ball from a $12$ foot building, and Nelson will...
31
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 smallest three-digit divisor of the number \\(1\\underbrace{00\\ldots 0}_{100\\text{ zero...
111
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\nLeo the fox has a $5 \\times 5$ checkerboard grid with alternating red and black squares. He fills...
169
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$ and $b$ be natural numbers such that $2a-b$, $a-2b$, and $a+b$ are all distinct squares. W...
21
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:hackerrank
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 2 3\\nCALIFORNIA 10\\nHAWAII 8\\nNEWYORK 12\\nNEWYORK\\nNEWYORK\\nCALIFORNIA\\nNEWYORK\\nHAWAII\\n\", \"output\": \"49.2\\n1\\n1\\n2\\n1\\n1\\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\n$n$ t...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n3\\n12 16 14\\n1\\n1\\n3\\n1 2 3\\n6\\n81 75 75 93 93 87\\n\", \"output\": \"YES\\n3 1 3 \\nYES\\n1 \\nNO\\nYES\\n5 5 4 1 4 5 \\n\"}, {\"input\": \"4\\n3\\n12 16 14\\n1\\n1\\n3\\n1 2 3\\n6\\n8 75 75 93 93 ...
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\": [[6, 4, 14, 6, 8, 13, 9, 7, 10, 6, 12], 2], \"output\": 4}], \"fn_name\": \"maxJumps\"}", "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\nA two...
code
taco:codeforces
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 5 14\\n3 10 5 6 17\\n18 20 9 15 16\\n8 7 19 13 4\\n14 11 2 12 1\\n\", \"output\": \"(()((\\n()(()\\n)(())\\n(()))\\n\"}, {\"input\": \"3 4 2\\n3 10 12 2\\n7 9 4 11\\n8 5 6 1\\n\", \"output\": \"()((\\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\nFind the number of ways to write $24$ as the sum of at least three positive integer multiples of $...
120
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\nChef ...
code
taco:codechef
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n3 10\\n3 4 5\\n2 4 2\\n3 8\\n3 4 5\\n2 4 2\\n5 20\\n23 54 124 54 83\\n2 9 5 2 10\\n5 20\\n4 7 12 34 13\\n30 4 3 0 9\\n\", \"output\": \"2\\n1\\n0\\n2\\n\"}], \"fn_name\": null}", "has_tests": true }
4,418
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\nOf the integers $a$, $b$, and $c$ that satisfy $0 < c < b < a$ and\n$$a^3 - b^3 - c^3 - abc + 1 = ...
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\nThere exist $r$ unique nonnegative integers $n_1 > n_2 > \\cdots > n_r$ and $r$ unique integers $a...
21
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 following list of numbers, the integer $n$ appears $n$ times in the list for $1 \\leq n \\l...
142
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\nStann...
code
taco:hackerearth
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"12\\n23\\n6\\n57\\n35\\n33\\n15\\n26\\n12\\n9\\n61\\n42\\n27\\n\", \"output\": \"191\\n\"}, {\"input\": \"12\\n50\\n32\\n72\\n68\\n1\\n59\\n66\\n72\\n36\\n45\\n30\\n40\\n\", \"output\": \"187\\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\nVasya...
code
taco:codeforces
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"999983 999979\\n\", \"output\": \"Masha\\n\"}, {\"input\": \"419 430\\n\", \"output\": \"Dasha\\n\"}, {\"input\": \"51291 51292\\n\", \"output\": \"Equal\\n\"}, {\"input\": \"99087 99090\\n\", \"output\": \"Eq...
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:atcoder
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6\\nkhabarovsk 20\\nmoscow 10\\nkazan 50\\nkazan 35\\nmoscow 60\\nkhabarovsk 40\\n\", \"output\": \"3\\n4\\n6\\n1\\n5\\n2\\n\"}, {\"input\": \"10\\nyakutsk 10\\nyakutsk 20\\nyakutsk 30\\nyakutsk 40\\nyakutsk 5...
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\nAfter...
code
taco:codechef
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n1 2 4\\n2 2 3\", \"output\": \"YES\\nNO\"}], \"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\nLast Sunday at noon the date on the calendar was 15 (April 15, 2007). What will be the date on th...
9
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\nForre...
code
taco:kattis
EASY
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"E HHHeellloWooorrrrlld!!\\n\", \"output\": \"H3e2l3o1W1o3r4l2d1!2\\n\"}, {\"input\": \"D H3e2l3o1W1o3r4l2d1!2\\n\", \"output\": \"HHHeellloWooorrrrlld!!\\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\nLet $N$ be the number of positive divisors of $2010^{2010}$ that end in the digit 2. What is the r...
503
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 mon...
code
taco:codeforces
MEDIUM_HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 2 1\\n1 100 1\\n1 100 100\\n\", \"output\": \"99\\n\"}, {\"input\": \"100 100 100\\n1 1 1\\n1 1 1\\n\", \"output\": \"0\\n\"}, {\"input\": \"50 80 92\\n41 51 56\\n75 93 12\\n\", \"output\": \"0\\n\"}, {\"inp...
2,464
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\nTwo p...
code
taco:hackerrank
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n2 \\n1 2\\n3 \\n1 2 3\\n\", \"output\": \"1\\n2\\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\nHow many 3-term geometric sequences $a$, $b$, $c$ are there where $a$, $b$, and $c$ are positive i...
39
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\nSherl...
code
taco:hackerrank
MEDIUM
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n3\\n1 2 3\\n3\\n1 1 2\\n\", \"output\": \"0\\n2\\n\"}], \"fn_name\": null}", "has_tests": true }
2,755
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\nYou a...
code
taco:atcoder
HARD
{ "domain": "code", "rm_type": "code_sandbox", "tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 2\\n\", \"output\": \"2\\n\"}, {\"input\": \"2525 425\\n\", \"output\": \"687232272\\n\"}, {\"input\": \"3000 1\\n\", \"output\": \"815951975\\n\"}, {\"input\": \"2929 1\\n\", \"output\": \"898933669\\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\nHow many different solutions does the congruence $x^3 + 3x^2 + x + 3 \\equiv 0 \\pmod{25}$ have? P...
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\nA charity sells 140 benefit tickets for a total of \\$2001. Some tickets sell for full price (a wh...
782
math
dapo-17k
null
{ "domain": "math", "rm_type": "dapo" }
null
null