API Response (JSON)
{
"problem": {
"name": "D. Strange Queries",
"description": {
"content": "You are given an array with n integers a1, a2, ..., an, and q queries to answer. Each query consists of four integers l1, r1, l2 and r2. Your task is to count the number of pairs of indices (i, j) sa",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 3000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10113D"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an array with n integers a1, a2, ..., an, and q queries to answer.\n\nEach query consists of four integers l1, r1, l2 and r2. Your task is to count the number of pairs of indices (i, j) sa...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $ be the size of the array. \nLet $ A = (a_1, a_2, \\dots, a_n) $ be a sequence of integers with $ a_i \\in \\{1, 2, \\dots, n\\} $. \nLet $ q \\in \\mathbb{Z}^+ $ ...",
"is_translate": false,
"language": "Formal"
}
]
}