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\nAlice... | code | taco:codechef | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n1\\n2\\n3\\n\", \"output\": \"1\\n250000003\\n388888893\\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\nSally... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 4 7\\n-2 0\\n0 -1\\n-2 1\\n1 0\\n2 1\\n2 3\\n3 -1\\n\", \"output\": \"6\\n\"}, {\"input\": \"3 2 5\\n-2 0\\n-2 1\\n0 1\\n1 -1\\n0 -1\\n\", \"output\": \"1 people left behind\\n\"}], \"fn_name\": null}",
"h... | 3,391 | 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\nIf $p$, $p^2 + 2$ are both primes, how many divisors does $p^5 + 2p^2$ have?\n\nRemember to put yo... | 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\nKrish... | code | taco:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n2 2 2\\n2 2 3\\n\", \"output\": \"HVVH\\nVHHV\\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\nConsider polynomials $P$ of degree $2015$, all of whose coefficients are in the set \\{0,1,\\dots,... | 460 | 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\nEvery... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n4 1 7\\n\", \"output\": \"2\\n-2 10\\n\"}, {\"input\": \"1\\n10\\n\", \"output\": \"-1\\n\"}, {\"input\": \"4\\n1 3 5 9\\n\", \"output\": \"1\\n7\\n\"}, {\"input\": \"4\\n4 3 4 5\\n\", \"output\": \"0\\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 ordered pairs of integers \\((a,b)\\) satisfy all of the following inequalities? \n\n\\[ ... | 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\nIn a bag of marbles, \\(\\frac{3}{5}\\) of the marbles are blue and the rest are red. If the numbe... | 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\nThere... | code | taco:hackerrank | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6\\n1 1 2 2 3 4\\n\", \"output\": \"4\\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\n\\( \\triangle ABC \\) has \\( AB = 5 \\), \\( BC = 12 \\), and \\( AC = 13 \\). A circle is inscr... | 43 | 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 a sign pyramid, a cell gets a \"+\" if the two cells below it have the same sign, and it gets a... | 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\nLet $a, b, c$ be the roots of the polynomial $x^3 - 20x^2 + 22$. Find \\[ \\frac{bc}{a^2} + \\frac... | -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\nConsider the numbers $\\{24, 27, 55, 64, x\\}$. Given that the mean of these five numbers is prime... | 60 | 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\nIn th... | code | taco:codewars | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [[]], \"output\": [\"[0]\"]}], \"fn_name\": \"hyperrectangularity_properties\"}",
"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\nThe side lengths of a trapezoid are $\\sqrt[4]{3}, \\sqrt[4]{3}, \\sqrt[4]{3}$, and $2 \\cdot \\sq... | 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\nVanya... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3 7\\n\", \"output\": \"YES\\n\"}, {\"input\": \"100 99\\n\", \"output\": \"YES\\n\"}, {\"input\": \"100 50\\n\", \"output\": \"NO\\n\"}, {\"input\": \"1000000000 1\\n\", \"output\": \"YES\\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\nIn th... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 1\\n1000000002 5\\n1 2 2\\n\", \"output\": \"No\\n\"}, {\"input\": \"2 1\\n1000000002 5\\n2 2 2\\n\", \"output\": \"Yes\\n\"}, {\"input\": \"2 1\\n1000000002 9\\n1 2 2\\n\", \"output\": \"No\\n\"}, {\"input\... | 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 $PQ$ in the triangle below.\n\n\n[asy]\nunitsize(1inch);\npair P,Q,R;\nP = (0,0);\nQ= (sqrt(3... | 27 | 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 [i]derangement [/i] of the letters $ABCDEF$ is a permutation of these letters so that no letter ... | 2275 | 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:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n5\\n2 1 1 2 4\\n6\\n1 2 1 1 3 2\\n9\\n3 1 2 2 1 6 6 3 3\\n\", \"output\": \"2\\n1\\n8\\n\"}, {\"input\": \"3\\n5\\n2 1 1 2 4\\n6\\n1 2 1 1 3 2\\n9\\n3 1 2 2 2 6 6 3 3\\n\", \"output\": \"2\\n1\\n7\\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\nGiven... | code | taco:geeksforgeeks | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"LinkedList:1->2->3->4\", \"output\": \"1 3 2 4\"}, {\"input\": \"LinkedList:11->15->20->5->10\", \"output\": \"11 20 5 15 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\nIsosceles right triangle $ABC$ encloses a semicircle of area $2\\pi$. The circle has its center $O... | 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\nGiven positive integers $x$ and $y$ such that $\\frac{1}{x} + \\frac{1}{2y} = \\frac{1}{7}$, what ... | 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\nAs yo... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 1\\n0\\n7\\nt 0\\nt 1\\nt 2\\nt 3\\nt 4\\nt 5\\nt 6\\n\", \"output\": \"0\\n1\\n3\\n2\\n3\\n5\\n3\\n\"}, {\"input\": \"3 0\\n2 6 6\\n10\\nt 1\\nt 2\\nt 3\\nt 4\\nt 5\\nt 6\\nt 7\\nt 8\\nt 9\\nt 10\\n\", \"ou... | 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\nRodrigo has a very large sheet of graph paper. First he draws a line segment connecting point $(0,... | 7000 | 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\nMonis... | code | taco:codechef | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"2\", \"3\", \"5 6 2\", \"1.0 0.0 0.5\", \"4\", \"2 2 2 2\", \"0.5 0.5 0.5 0.5\"], \"output\": [\"6.000000000000000\", \"1.000000000000000\"]}], \"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\nIvar ... | code | taco:codeforces | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 5\\n1 2 1 2 1\\n3 10 1 1 1\\n\", \"output\": \"3\\n5\\n4\\n4\\n3\\n\"}, {\"input\": \"4 4\\n1 2 3 4\\n9 1 10 6\\n\", \"output\": \"1\\n4\\n4\\n1\\n\"}, {\"input\": \"10 3\\n1 1 1 1 1 1 1 1 1 1\\n10 10 5\\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\nGiven... | code | taco:geeksforgeeks | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"S = \\\"geeksforgeeks\\\"\", \"output\": \"7\"}, {\"input\": \"S = \\\"abdefgabef\\\"\", \"output\": \"6\"}], \"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 base $10$, the number $2013$ ends in the digit $3$. In base $9$, on the other hand, the same n... | 13 | 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 maximum possible value obtainable by inserting a single set of parentheses into the expre... | 77 | 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 | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6\\n3 5 4 7 10 12\\n\", \"output\": \"3\\n3 4 5 \\n\"}, {\"input\": \"5\\n-1 2 5 8 11\\n\", \"output\": \"1\\n-1 \\n\"}, {\"input\": \"1\\n42\\n\", \"output\": \"1\\n42 \\n\"}, {\"input\": \"3\\n0 -536870912 5... | 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 all real numbers $a$ for which the following equation has a unique real solution:\n$$\\sum_{i... | 2450 | 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 a... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5\\n1 7\\n6 4\\n2 10\\n9 8\\n3 5\\n\", \"output\": \"3\\n5 3 1 \\n\"}, {\"input\": \"3\\n5 4\\n3 2\\n6 1\\n\", \"output\": \"3\\n3 2 1 \\n\"}, {\"input\": \"1\\n1 2\\n\", \"output\": \"1\\n1 \\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\nDenis... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"13\\n1 7\\n1 12\\n3 1\\n6 1\\n1 4\\n5 1\\n1 11\\n9 1\\n1 13\\n10 12\\n1 8\\n1 2\\n\", \"output\": \"37\\n1 0\\n7 1\\n7 0\\n1 1\\n12 2\\n10 3\\n10 2\\n12 3\\n12 1\\n1 2\\n3 3\\n3 2\\n1 3\\n6 4\\n6 3\\n1 4\\n4 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\nThis ... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"8\\n5 6 2\\n2 4 3 5 7\\n5 11 2\\n2 4 3 5 7\\n3 2 3\\n4 2 6\\n5 2 3\\n10 1 3 9 2\\n2 10000 2\\n10000 10000\\n2 9999 2\\n10000 10000\\n4 6 4\\n3 2 3 2\\n5 5 3\\n1 2 2 1 2\\n\", \"output\": \"3\\n4\\n1\\n1\\n2\\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\nSeven... | code | taco:hackerrank | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6\\n2 2 2 0 1\\n1 1\\n2 2 2 1 1\\n1 1\\n2 2 2 2 1\\n1 1\\n2 2 2 3 1\\n1 1\\n2 2 2 4 1\\n1 1\\n488 629 183156769 422223791 10\\n350 205\\n236 164\\n355 8\\n3 467\\n355 164\\n350 467\\n3 479\\n72 600\\n17 525\\n... | 7,701 | 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\nChef ... | code | taco:codechef | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n3 2\\n2 3\\n3 3\", \"output\": \"7\\n0101010\\n7\\n1010101\\n8\\n01010101\"}], \"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\nWaraw... | code | taco:codeforces | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 5 5\\nRRGGB\\nRRGGY\\nYYBBG\\nYYBBR\\nRBBRG\\n1 1 5 5\\n2 2 5 5\\n2 2 3 3\\n1 1 3 5\\n4 4 5 5\\n\", \"output\": \"16\\n4\\n4\\n4\\n0\\n\"}, {\"input\": \"6 10 5\\nRRRGGGRRGG\\nRRRGGGRRGG\\nRRRGGGYYBB\\nYYYBB... | 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 N... | code | taco:atcoder | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n1 2\\n2 3\\n3 4\\n\", \"output\": \"2\\n\"}, {\"input\": \"4\\n1 2\\n1 3\\n1 4\\n\", \"output\": \"3\\n\"}, {\"input\": \"6\\n1 2\\n1 3\\n3 4\\n1 5\\n5 6\\n\", \"output\": \"10\\n\"}, {\"input\": \"10\\n8 ... | 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 sum of all perfect squares that divide 2016.\n\nRemember to put your answer on its own li... | 210 | 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\nVanja... | code | taco:codechef | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"3\", \"2 6 4\", \"-4 10\", \"1 1 -1\", \"2\", \"2 0 7\", \"3 4\"], \"output\": [\"1\", \"0\", \"2\"]}], \"fn_name\": null}",
"has_tests": true
} | 1,900 | 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 positive five-digit integers have the product of their five digits equal to $900$?\n\nRem... | 210 | 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 a typical morning Aiden gets out of bed, goes through his morning preparation, rides the bus, a... | 126 | 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\nKevin... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10\\n-3 1 -2\\n-5 -1 -2\\n5 4 2\\n-5 3 0\\n-5 -2 5\\n1 2 5\\n-5 0 4\\n3 3 -4\\n-1 2 5\\n0 5 5\\n\", \"output\": \" 0\\n\"}, {\"input\": \"20\\n16 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\nFor a... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"9 2 5\\n\", \"output\": \"2 1 4 3 6 7 8 9 5 \"}, {\"input\": \"3 2 1\\n\", \"output\": \"1 2 3 \"}, {\"input\": \"7 4 4\\n\", \"output\": \"-1\"}, {\"input\": \"1000000 999998 3\\n\", \"output\": \"-1\"}, {\"i... | 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 s... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5\\nAABBB\\n\", \"output\": \"6\\n\"}, {\"input\": \"3\\nAAA\\n\", \"output\": \"3\\n\"}, {\"input\": \"7\\nAAABABB\\n\", \"output\": \"15\\n\"}, {\"input\": \"3\\nABA\\n\", \"output\": \"1\\n\"}, {\"input\": ... | 6,059 | 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\nThe c... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"cxunrvxqydbqbcgmzlhz\\n8\\ncgmzl\\nz\\nvxqydbqbcgmz\\nvxqydbqbcgmz\\ncgmzlhz\\nc\\nz\\nb\\n6\\n6 7 2 2\\n5 6 6 17\\n2 4 13 19\\n5 8 8 9\\n1 7 6 11\\n5 6 8 11\\n\", \"output\": \"6 0\\n5 0\\n2 0\\n5 0\\n3 1\\n5... | 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\nLimak... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 2 1\\nRL\\n\", \"output\": \"2\\n\"}, {\"input\": \"5 500000 500000\\nUUUUU\\n\", \"output\": \"562499132\\n\"}, {\"input\": \"90 500000 500000\\nUDUDUDLUUDRRURLUDDULLLLDDRLRDLDDDRUURDDLDDLDDRUDLULRRDUULULDR... | 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 $k$ be a nonnegative integer. Evaluate $$\\sum_{j=0}^k2^{k-j}\\binom{k+j}j.$$ Please provide t... | 5 | 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:kattis | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"prognova 4\\n\", \"output\": \"Yes\\n\"}, {\"input\": \"helloworld 6\\n\", \"output\": \"No\\n\"}], \"fn_name\": null}",
"has_tests": true
} | 7,752 | 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\nMarie does three equally time-consuming tasks in a row without taking breaks. She begins the first... | 150 | 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\\}_{n \\geq 1}$ be an increasing and bounded sequence. Calculate the limit:\n\n$$\\lim... | 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\nHarry... | code | taco:hackerearth | UNKNOWN_DIFFICULTY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"104\\n6000000000000000000000000000000006\\n6753562912709360626187920237592289736129319478450361063206155476569374525474430786886870344745254739656745516023601630548749139216379822957320297816260639072192653576... | 5,249 | 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\nRoy h... | code | taco:hackerrank | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n1\\n1 1\\n1\\n2\\n1 1\\n1 2\\n3\\n1 1\\n1 2 3\\n5\\n1 1\\n1 2 3 4 5\\n\", \"output\": \"1\\n0\\n6\\n54\\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\nPetra... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10\\n99\\n\", \"output\": \"1\\n\"}, {\"input\": \"90\\n10\\n\", \"output\": \"10\\n\"}, {\"input\": \"23425\\n487915\\n\", \"output\": \"12085\\n\"}], \"fn_name\": null}",
"has_tests": true
} | 5,529 | 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\nEvaluate \\( \\sum_{k=1}^{2007}(-1)^{k}k^{2} \\)\n\nRemember to put your answer on its own line af... | -2015028 | 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 car has a 4-digit integer price, which is displayed in digital numbers (like those on a digital ... | 6815 | 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 a... | code | taco:codeforces | MEDIUM_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n2 1\\n\", \"output\": \"1\\n1 2\"}, {\"input\": \"4\\n3 4 1 2\\n\", \"output\": \"2\\n1 3\\n2 4\"}, {\"input\": \"6\\n2 5 3 1 4 6\\n\", \"output\": \"9\\n1 4\\n2 6\\n4 1\\n1 6\\n4 1\\n2 6\\n4 1\\n5 1\\n4 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\nDetermine the number of ordered pairs of positive integers $(x, y)$ with $y < x \\le 100$ such tha... | 99 | 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 a... | code | taco:atcoder | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 5 3\\n8\\n7\\n4\\n2\\n\", \"output\": \"2\\n\"}, {\"input\": \"2 10 4\\n20\\n20\\n\", \"output\": \"4\\n\"}, {\"input\": \"5 2 1\\n900000000\\n900000000\\n1000000000\\n1000000000\\n1000000000\\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\nADZEN... | code | taco:hackerrank | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"6 2 \\n1 \\n2 \\n3 \\n1 \\n6 \\n10\\n\", \"output\": \"21\\n\"}, {\"input\": \"5 4\\n1\\n2\\n3\\n4\\n5\\n\", \"output\": \"14\\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\nFor a positive integer $n$, let $A(n)$ be the remainder when $n$ is divided by $11$. Define $T(n) ... | 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\nSerej... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"14 724 55\\n\", \"output\": \"565782537\"}, {\"input\": \"112 440 258\\n\", \"output\": \"253936997\"}, {\"input\": \"29 27 7\\n\", \"output\": \"0\"}, {\"input\": \"8 967 200\\n\", \"output\": \"655825701\"},... | 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 $ABC$, $AB = 13$, $AC = 15$, and $BC = 14$. Let $I$ be the incenter. The incircle of... | 28 | 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\nIf $a$, $b$, and $c$ are positive integers such that $\\gcd(a,b) = 168$ and $\\gcd(a,c) = 693$, th... | 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 star-shaped figure below, if all side lengths are equal to $3$ and the three largest angles... | 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\nWay t... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n\", \"output\": \"0\\n\"}, {\"input\": \"3\\n\", \"output\": \"1\\n\"}, {\"input\": \"2\\n\", \"output\": \"0\\n\"}, {\"input\": \"4\\n\", \"output\": \"0\\n\"}, {\"input\": \"5\\n\", \"output\": \"2\\n\"}... | 1,555 | 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\nHigh ... | code | taco:kattis | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 2 1\\n1 1\\n2 0 2\\n2 1 3\\n1 2\\n\", \"output\": \"home\\n2\\n2 0 1\\n2 2 3\\n\"}, {\"input\": \"5 2 1\\n1 1\\n2 0 2\\n2 1 3\\n2 2 4\\n1 3\\n\", \"output\": \"detention\\n\"}, {\"input\": \"3 3 3\\n2 1 2\\n... | 9,296 | 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:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2\\n2\\n1\\n\", \"output\": \"4\\n1\\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\nA square with side length \\(3\\) is inscribed in an isosceles triangle with one side of the squar... | 85 | 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 e... | code | taco:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\n3\\n3 2 2\\n\", \"output\": \"10 \\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 | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n7 5 5 7\\n\", \"output\": \"5.666666667\\n5.666666667\\n5.666666667\\n7.000000000\\n\"}, {\"input\": \"5\\n7 8 8 10 12\\n\", \"output\": \"7.000000000\\n8.000000000\\n8.000000000\\n10.000000000\\n12.000000... | 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\nFollowing the directions of the arrows, how many different paths are there from $A$ to $C$?\n\n[as... | 5 | 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\": \"500000000 500000000 999999999 999999999\\n\", \"output\": \"4\\n\"}, {\"input\": \"123 123 999999999 999999999\\n\", \"output\": \"4\\n\"}, {\"input\": \"2 2 456 456\\n\", \"output\": \"? 1 1\\n? 1000000000 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\nThe f... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 5\\n0 2\\n-1 -1\\n1 1\\n0 -1\\n2 0\\n\", \"output\": \"5.6362760864\\n\"}, {\"input\": \"10 20\\n-5.871 -18.070\\n5.871 18.070\\n-19.000 0.000\\n-15.371 -11.167\\n15.371 11.167\\n5.871 -18.070\\n-15.371 11.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\nNarut... | code | taco:codechef | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 \\n5 2 \\n50 40 30 20 10 \", \"output\": \"43.3333333333\\n\\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\nYou a... | code | taco:codeforces | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"monday\\ntuesday\\n\", \"output\": \"NO\\n\"}, {\"input\": \"sunday\\nsunday\\n\", \"output\": \"YES\\n\"}, {\"input\": \"saturday\\ntuesday\\n\", \"output\": \"YES\\n\"}, {\"input\": \"tuesday\\nthursday\\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\nA village is surrounded by a circular wall with four gates oriented towards the north, south, east... | 48 | 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 $n$ such that $4^{4^{4^2}} = 2^{8^n}$.\n\nRemember to put your answer on its own line after \... | 11 | 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\nWe glue together $990$ one-inch cubes into a $9 \\times 10 \\times 11$ inch rectangular solid. The... | 382 | 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 a... | code | taco:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\nbcdef\\nabcdefg\\nbcde\\nbcdef\\n\", \"output\": \"3\\n2 1 1\\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 S... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"5 3\\na\\nab\\nabc\\nabcd\\nabcde\\n\", \"output\": \"10\\n\"}, {\"input\": \"8 6\\nbcde\\nbcdf\\nbcdg\\ncccc\\ndddd\\nefgh\\nefgi\\nefgj\\n\", \"output\": \"18\\n\"}, {\"input\": \"10 5\\na\\nhandful\\nof\\ns... | 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\nCalcu... | code | taco:hackerrank | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"3\\n3 3 2\\n3 4 3\\n1 1 1\\n\", \"output\": \"2\\n1122\\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\nBob h... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4 30\\n0 0\\n9 3\\n12 24\\n0 30\\n3\\n29 3 1\\n5 21 13\\n21 4 30\\n\", \"output\": \"2\\n\"}, {\"input\": \"5 30\\n9 3\\n12 6\\n15 15\\n12 24\\n0 30\\n5\\n7 21 5\\n21 16 7\\n27 13 4\\n6 16 15\\n26 25 20\\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\nConsider the integer,\n$$N = 9 + 99 + 999 + 9999 + \\cdots + \\underbrace{99\\ldots 99}_{321 ~digi... | 342 | 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 smallest whole number larger than the perimeter of any triangle with a side of length ... | 48 | 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\n12 distinct points are equally spaced around a circle. How many ways can Bryan choose 3 points out... | 40 | 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\nAlice... | code | taco:codechef | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"4\\n1 1 1 3\\n2 3 1 5\\n4 2 3 4\\n2 1 4 7\\n\", \"output\": \"NO\\nYES\\nYES\\nNO\\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\nIn In... | code | taco:codechef | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": [\"2\", \"600000\", \"250000\"], \"output\": [\"577500\", \"250000\"]}], \"fn_name\": null}",
"has_tests": true
} | 7,725 | 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\nRoman... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"275126649 81\\n\", \"output\": \"0\"}, {\"input\": \"12345678902468000 2\\n\", \"output\": \"503999496000\"}, {\"input\": \"3593106551449275 59\\n\", \"output\": \"865762883\"}, {\"input\": \"181939172581 23\\... | 2,902 | 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 each positive integer $n$, let $S(n)$ denote the sum of the digits of $n$. For how many value... | 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\nIn a round-robin chess tournament organized at a school, every two students played one match again... | 65 | 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\nPaul ... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1\\na\\n1\\n1\\na\\n\", \"output\": \"1\\n\"}, {\"input\": \"1\\nz\\n1\\n1\\nx\\n\", \"output\": \"0\\n\"}, {\"input\": \"4\\nevery\\nthing\\nis\\nok\\n4\\n4 3 1 2\\nokiseverything\\n\", \"output\": \"14\\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\nSuppose that $f(x)$ and $g(x)$ are functions on $\\mathbb{R}$ such that the range of $f$ is $[-5,3... | 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\nWrite... | code | taco:aizu | UNKNOWN_DIFFICULTY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"1 2 3 2 5 6\\n6 5 4 3 2 1\", \"output\": \"No\\n\"}, {\"input\": \"1 2 3 2 5 6\\n6 1 4 3 2 1\", \"output\": \"No\\n\"}, {\"input\": \"1 2 3 2 5 6\\n6 0 4 3 2 1\", \"output\": \"No\\n\"}, {\"input\": \"1 2 3 2 ... | 3,814 | 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\nVasya... | code | taco:codeforces | MEDIUM | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"10\\nj 10\\ni 9\\nh 8\\ng 7\\nf 6\\ne 5\\nd 4\\nc 3\\nb 2\\na 1\\n\", \"output\": \"10\\na noob\\nb noob\\nc noob\\nd noob\\ne random\\nf random\\ng random\\nh average\\ni hardcore\\nj pro\\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\nI lov... | code | taco:codewars | EASY | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"fn\", \"cases\": [{\"input\": [1], \"output\": [\"0\"]}, {\"input\": [2], \"output\": [\"1\"]}, {\"input\": [3], \"output\": [\"1\"]}, {\"input\": [4], \"output\": [\"2\"]}, {\"input\": [5], \"output\": [\"3\"]}, {\"input\": [6], \"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\nOnce ... | code | taco:codeforces | VERY_HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"8 4 9 371687114\\n1 7 22 31 35 38 62 84\\n\", \"output\": \"1827639\"}, {\"input\": \"2 1000000000 1000000000000 10000\\n1 2\\n\", \"output\": \"3\"}, {\"input\": \"1 1 1 2\\n0\\n\", \"output\": \"0\"}, {\"inp... | 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\nAlice... | code | taco:codeforces | HARD | {
"domain": "code",
"rm_type": "code_sandbox",
"tests": "{\"type\": \"stdin\", \"cases\": [{\"input\": \"2 1 1\\n30 9\\n46\\n73\\n\", \"output\": \"103\"}, {\"input\": \"2 1 1\\n76 91\\n34\\n77\\n\", \"output\": \"153\"}, {\"input\": \"4 1 2\\n1 19 10 3\\n18\\n19\\n13\\n15\\n\", \"output\": \"47\\n\"}, {\"input\"... | 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\n9. The real quartic $P x^{4}+U x^{3}+M x^{2}+A x+C$ has four different positive real roots. Find t... | 16 | math | dapo-17k | null | {
"domain": "math",
"rm_type": "dapo"
} | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.