API Response (JSON)
{
"problem": {
"name": "C. Permute Digits",
"description": {
"content": "You are given two positive integer numbers _a_ and _b_. Permute (change order) of the digits of _a_ to construct maximal number not exceeding _b_. No number in input and/or output can start with the d",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF915C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given two positive integer numbers _a_ and _b_. Permute (change order) of the digits of _a_ to construct maximal number not exceeding _b_. No number in input and/or output can start with the d...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "给定两个正整数 #cf_span[a] 和 #cf_span[b]。请对 #cf_span[a] 的各位数字进行重排,构造一个不超过 #cf_span[b] 的最大数。输入和输出中的任何数都不能以数字 _0_ 开头。\n\n允许保持 #cf_span[a] 不变。\n\n第一行包含整数 #cf_span[a] (#cf_span[1 ≤ a ≤ 1018])。第二行包含整数 #cf_span[b] (#c...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "Let $ a, b \\in \\mathbb{Z}^+ $ with $ 1 \\leq a, b \\leq 10^{18} $, and let $ d $ be the number of digits in $ a $ (i.e., $ d = \\lfloor \\log_{10} a \\rfloor + 1 $).\n\nLet $ S $ be the multiset of digits of...",
"is_translate": false,
"language": "Formal"
}
]
}