API Response (JSON)
{
"problem": {
"name": "G. Count Permutations",
"description": {
"content": "Given N and K, count number of permutations of [1, 2, 3...N] in which no two adjacent elements differ by more than K. For example, permutation [4, 1, 2, 3] cannot be counted for . First line contains",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10058G"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given N and K, count number of permutations of [1, 2, 3...N] in which no two adjacent elements differ by more than K. For example, permutation [4, 1, 2, 3] cannot be counted for .\n\nFirst line contains...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ T \\in \\mathbb{Z} $ be the number of test cases. \nFor each test case $ i \\in \\{1, \\dots, T\\} $: \n- $ N_i \\in \\mathbb{Z} $ denotes the size of the set $ \\{1, 2, \\dots, N_i\\} $....",
"is_translate": false,
"language": "Formal"
}
]
}