API Response (JSON)
{
"problem": {
"name": "H. Count Subarrays",
"description": {
"content": "Given an array of N integers A1, A2 ... AN and an integer K, count number of subarrays of A such that number of inversions in those subarrays is at least K. Inversions in a subarray Ai, Ai + 1,..., A",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 524288
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10058H"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Given an array of N integers A1, A2 ... AN and an integer K, count number of subarrays of A such that number of inversions in those subarrays is at least K.\n\nInversions in a subarray Ai, Ai + 1,..., A...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ N, K \\in \\mathbb{Z}^+ $. \nLet $ A = (A_1, A_2, \\dots, A_N) $ be a sequence of integers. \nFor a subarray $ A[i,j] = (A_i, A_{i+1}, \\dots, A_j) $ with $ 1 \\leq i \\leq j \\leq N ...",
"is_translate": false,
"language": "Formal"
}
]
}