API Response (JSON)
{
"problem": {
"name": "A6. Rasta-lover Pair",
"description": {
"content": "A pair (p, q) of integer numbers is called Rasta - lover if and only if 1 ≤ p, q < n and there is a positive integer like x such that: px ≡ q (modn) Subtasks 1 - 3: Given n, calculate the number o",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 15000,
"memory_limit": 1048576
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CFA6"
},
"statements": [
{
"statement_type": "Markdown",
"content": "A pair (p, q) of integer numbers is called Rasta - lover if and only if 1 ≤ p, q < n and there is a positive integer like x such that:\n\npx ≡ q (modn)\n\nSubtasks 1 - 3: \n\nGiven n, calculate the number o...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "一对整数 #cf_span[(p, q)] 被称为 #cf_span[Rasta - lover],当且仅当 #cf_span[1 ≤ p, q < n] 且存在一个正整数 #cf_span[x] 使得:\n\n#cf_span[px ≡ q] #cf_span[(modn)]\n\n子任务 #cf_span[1 - 3]:\n\n给定 #cf_span[n],计算 #cf_span[Rasta - love...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions:**\n\n- Let $ n \\in \\mathbb{Z}^+ $.\n- Let $ \\mathbb{Z}_n^* = \\{ p \\in \\mathbb{Z} \\mid 1 \\leq p < n, \\gcd(p, n) = 1 \\} $ be the multiplicative group modulo $ n $.\n- Let $ \\lambda(n) $ denot...",
"is_translate": false,
"language": "Formal"
}
]
}