Cross-Tokenizer On-Policy Distillation via Byte-Prefix Marginalization
Paper • 2607.22334 • Published
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 |
arXiv:2607.22334 · Project page
Prompt corpus behind every reported result in BPM (Byte-Prefix Marginalization), a cross-tokenizer on-policy distillation method. Prompt-only.
| Domain | Rows | Source | Upstream license |
|---|---|---|---|
| Mathematics | 10,000 | dapo-17k |
Apache-2.0 |
| Code | 10,000 | taco:* |
Apache-2.0 |
| Field | Type | Notes |
|---|---|---|
prompt |
list of {role, content} |
Chat-format user turn |
label |
string | Reference answer for mathematics; empty for code |
domain |
string | math or code |
source |
string | e.g. dapo-17k, taco:codeforces |
metadata |
dict | rm_type (dapo / code_sandbox); code rows carry tests |
difficulty |
string | Code rows: EASY / MEDIUM / HARD |
idx, has_starter |
int, bool | Function-signature code rows |
from datasets import load_dataset
ds = load_dataset("K1zE/BPM", split="train")
Redistributed for research reproduction; items remain subject to their original sources' terms.
@misc{wang2026bpm,
title={Cross-Tokenizer On-Policy Distillation via Byte-Prefix Marginalization},
author={Hao Wang and Kun Yuan and Wenlin Zhong and Minglei Zhang and Han Xiao and Ming Sun and Honggang Qi},
year={2026},
archivePrefix={arXiv},
primaryClass={cs.LG},
eprint={2607.22334},
}